2 # From configure.in Revision: 1.120.2.7 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="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 --with-septel[=DIR] include Septel support (located in directory DIR, if supplied). default=yes, on Linux, if present
862 --without-flex don't use flex
863 --without-bison don't use bison
865 Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
874 Use these variables to override the choices made by `configure' or to help
875 it to find libraries and programs with nonstandard names/locations.
880 if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
887 if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892 ac_dir_suffix= ac_top_builddir=
896 .) # No --srcdir option. We are building in place.
898 if test -z "$ac_top_builddir"; then
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
910 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
912 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
913 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
914 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
915 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
918 # Check for guested configure; otherwise get Cygnus style configure.
919 if test -f $ac_srcdir/configure.gnu; then
921 $SHELL $ac_srcdir/configure.gnu --help=recursive
922 elif test -f $ac_srcdir/configure; then
924 $SHELL $ac_srcdir/configure --help=recursive
925 elif test -f $ac_srcdir/configure.ac ||
926 test -f $ac_srcdir/configure.in; then
930 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
936 test -n "$ac_init_help" && exit 0
937 if $ac_init_version; then
940 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
941 Free Software Foundation, Inc.
942 This configure script is free software; the Free Software Foundation
943 gives unlimited permission to copy, distribute and modify it.
949 This file contains any messages produced by compilers while
950 running configure, to aid debugging if configure makes a mistake.
952 It was created by $as_me, which was
953 generated by GNU Autoconf 2.57. Invocation command line was
964 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
965 uname -m = `(uname -m) 2>/dev/null || echo unknown`
966 uname -r = `(uname -r) 2>/dev/null || echo unknown`
967 uname -s = `(uname -s) 2>/dev/null || echo unknown`
968 uname -v = `(uname -v) 2>/dev/null || echo unknown`
970 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
971 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
973 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
974 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
975 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
976 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
977 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
978 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
979 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
987 test -z "$as_dir" && as_dir=.
1003 # Keep a trace of the command line.
1004 # Strip out --no-create and --no-recursion so they do not pile up.
1005 # Strip out --silent because we don't want to record it for future runs.
1006 # Also quote any args containing shell meta-characters.
1007 # Make two passes to allow for proper duplicate-argument suppression.
1012 ac_must_keep_next=false
1018 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1022 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1023 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1028 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1029 if test $ac_must_keep_next = true; then
1030 ac_must_keep_next=false # Got value, back to normal.
1033 *=* | --config-cache | -C | -disable-* | --disable-* \
1034 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1035 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1036 | -with-* | --with-* | -without-* | --without-* | --x)
1037 case "$ac_configure_args0 " in
1038 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041 -* ) ac_must_keep_next=true ;;
1044 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1045 # Get rid of the leading space.
1051 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1052 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1054 # When interrupted or exit'd, cleanup temporary files, and complete
1055 # config.log. We remove comments because anyway the quotes in there
1056 # would cause problems or look ugly.
1057 # WARNING: Be sure not to use single quotes in there, as some shells,
1058 # such as our DU 5.0 friend, will then `close' the trap.
1059 trap 'exit_status=$?
1060 # Save into config.log some information that might help in debugging.
1065 ## ---------------- ##
1066 ## Cache variables. ##
1067 ## ---------------- ##
1070 # The following way of writing the cache mishandles newlines in values,
1073 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1088 ## ----------------- ##
1089 ## Output variables. ##
1090 ## ----------------- ##
1093 for ac_var in $ac_subst_vars
1095 eval ac_val=$`echo $ac_var`
1096 echo "$ac_var='"'"'$ac_val'"'"'"
1100 if test -n "$ac_subst_files"; then
1107 for ac_var in $ac_subst_files
1109 eval ac_val=$`echo $ac_var`
1110 echo "$ac_var='"'"'$ac_val'"'"'"
1115 if test -s confdefs.h; then
1122 sed "/^$/d" confdefs.h | sort
1125 test "$ac_signal" != 0 &&
1126 echo "$as_me: caught signal $ac_signal"
1127 echo "$as_me: exit $exit_status"
1129 rm -f core core.* *.core &&
1130 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133 for ac_signal in 1 2 13 15; do
1134 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1138 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1139 rm -rf conftest* confdefs.h
1140 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143 # Predefined preprocessor variables.
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_NAME "$PACKAGE_NAME"
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_STRING "$PACKAGE_STRING"
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1170 # Let the site file select an alternate cache file if it wants to.
1171 # Prefer explicitly selected file to automatically selected ones.
1172 if test -z "$CONFIG_SITE"; then
1173 if test "x$prefix" != xNONE; then
1174 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179 for ac_site_file in $CONFIG_SITE; do
1180 if test -r "$ac_site_file"; then
1181 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1182 echo "$as_me: loading site script $ac_site_file" >&6;}
1183 sed 's/^/| /' "$ac_site_file" >&5
1188 if test -r "$cache_file"; then
1189 # Some versions of bash will fail to source /dev/null (special
1190 # files actually), so we avoid doing that.
1191 if test -f "$cache_file"; then
1192 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1193 echo "$as_me: loading cache $cache_file" >&6;}
1195 [\\/]* | ?:[\\/]* ) . $cache_file;;
1196 *) . ./$cache_file;;
1200 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1201 echo "$as_me: creating cache $cache_file" >&6;}
1205 # Check that the precious variables saved in the cache have kept the same
1207 ac_cache_corrupted=false
1208 for ac_var in `(set) 2>&1 |
1209 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1210 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1211 eval ac_new_set=\$ac_env_${ac_var}_set
1212 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1213 eval ac_new_val="\$ac_env_${ac_var}_value"
1214 case $ac_old_set,$ac_new_set in
1216 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1217 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1218 ac_cache_corrupted=: ;;
1220 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1221 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1222 ac_cache_corrupted=: ;;
1225 if test "x$ac_old_val" != "x$ac_new_val"; then
1226 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1227 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1228 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1229 echo "$as_me: former value: $ac_old_val" >&2;}
1230 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1231 echo "$as_me: current value: $ac_new_val" >&2;}
1232 ac_cache_corrupted=:
1235 # Pass precious variables to config.status.
1236 if test "$ac_new_set" = set; then
1238 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1239 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1240 *) ac_arg=$ac_var=$ac_new_val ;;
1242 case " $ac_configure_args " in
1243 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1244 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1248 if $ac_cache_corrupted; then
1249 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1250 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1251 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1252 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1253 { (exit 1); exit 1; }; }
1257 ac_cpp='$CPP $CPPFLAGS'
1258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1283 if test -f $ac_dir/install-sh; then
1285 ac_install_sh="$ac_aux_dir/install-sh -c"
1287 elif test -f $ac_dir/install.sh; then
1289 ac_install_sh="$ac_aux_dir/install.sh -c"
1291 elif test -f $ac_dir/shtool; then
1293 ac_install_sh="$ac_aux_dir/shtool install -c"
1297 if test -z "$ac_aux_dir"; then
1298 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1299 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1300 { (exit 1); exit 1; }; }
1302 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1303 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1304 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1306 # Make sure we can run config.sub.
1307 $ac_config_sub sun4 >/dev/null 2>&1 ||
1308 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1309 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1310 { (exit 1); exit 1; }; }
1312 echo "$as_me:$LINENO: checking build system type" >&5
1313 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1314 if test "${ac_cv_build+set}" = set; then
1315 echo $ECHO_N "(cached) $ECHO_C" >&6
1317 ac_cv_build_alias=$build_alias
1318 test -z "$ac_cv_build_alias" &&
1319 ac_cv_build_alias=`$ac_config_guess`
1320 test -z "$ac_cv_build_alias" &&
1321 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1322 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1323 { (exit 1); exit 1; }; }
1324 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1325 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1326 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1327 { (exit 1); exit 1; }; }
1330 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1331 echo "${ECHO_T}$ac_cv_build" >&6
1333 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1334 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1335 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338 echo "$as_me:$LINENO: checking host system type" >&5
1339 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1340 if test "${ac_cv_host+set}" = set; then
1341 echo $ECHO_N "(cached) $ECHO_C" >&6
1343 ac_cv_host_alias=$host_alias
1344 test -z "$ac_cv_host_alias" &&
1345 ac_cv_host_alias=$ac_cv_build_alias
1346 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1347 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1348 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1349 { (exit 1); exit 1; }; }
1352 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1353 echo "${ECHO_T}$ac_cv_host" >&6
1355 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1356 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1357 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1360 echo "$as_me:$LINENO: checking target system type" >&5
1361 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1362 if test "${ac_cv_target+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1365 ac_cv_target_alias=$target_alias
1366 test "x$ac_cv_target_alias" = "x" &&
1367 ac_cv_target_alias=$ac_cv_host_alias
1368 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1369 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1370 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1371 { (exit 1); exit 1; }; }
1374 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1375 echo "${ECHO_T}$ac_cv_target" >&6
1376 target=$ac_cv_target
1377 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382 # The aliases save the names the user supplied, while $host etc.
1383 # will get canonicalized.
1384 test -n "$target_alias" &&
1385 test "$program_prefix$program_suffix$program_transform_name" = \
1387 program_prefix=${target_alias}-
1394 # Check whether --with-gcc or --without-gcc was given.
1395 if test "${with_gcc+set}" = set; then
1401 if test "${srcdir}" != "." ; then
1402 V_INCLS="-I\$(srcdir)"
1404 if test "${CFLAGS+set}" = set; then
1405 LBL_CFLAGS="$CFLAGS"
1407 if test -z "$CC" ; then
1408 case "$target_os" in
1411 # Extract the first word of "shlicc2", so it can be a program name with args.
1412 set dummy shlicc2; ac_word=$2
1413 echo "$as_me:$LINENO: checking for $ac_word" >&5
1414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1415 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1418 if test -n "$SHLICC2"; then
1419 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425 test -z "$as_dir" && as_dir=.
1426 for ac_exec_ext in '' $ac_executable_extensions; do
1427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1428 ac_cv_prog_SHLICC2="yes"
1429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1438 SHLICC2=$ac_cv_prog_SHLICC2
1439 if test -n "$SHLICC2"; then
1440 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1441 echo "${ECHO_T}$SHLICC2" >&6
1443 echo "$as_me:$LINENO: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1447 if test $SHLICC2 = yes ; then
1454 if test -z "$CC" -a "$with_gcc" = no ; then
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463 if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1466 echo "$as_me:$LINENO: checking for $ac_word" >&5
1467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468 if test "${ac_cv_prog_CC+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC="$CC" # Let the user override the test.
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 test -z "$as_dir" && as_dir=.
1479 for ac_exec_ext in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 if test -n "$CC"; then
1492 echo "$as_me:$LINENO: result: $CC" >&5
1493 echo "${ECHO_T}$CC" >&6
1495 echo "$as_me:$LINENO: result: no" >&5
1496 echo "${ECHO_T}no" >&6
1500 if test -z "$ac_cv_prog_CC"; then
1502 # Extract the first word of "gcc", so it can be a program name with args.
1503 set dummy gcc; ac_word=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 if test -n "$ac_ct_CC"; then
1510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 test -z "$as_dir" && as_dir=.
1517 for ac_exec_ext in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_ac_ct_CC="gcc"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529 if test -n "$ac_ct_CC"; then
1530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531 echo "${ECHO_T}$ac_ct_CC" >&6
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1542 if test -z "$CC"; then
1543 if test -n "$ac_tool_prefix"; then
1544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1545 set dummy ${ac_tool_prefix}cc; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_CC="${ac_tool_prefix}cc"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 if test -n "$CC"; then
1572 echo "$as_me:$LINENO: result: $CC" >&5
1573 echo "${ECHO_T}$CC" >&6
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1580 if test -z "$ac_cv_prog_CC"; then
1582 # Extract the first word of "cc", so it can be a program name with args.
1583 set dummy cc; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="cc"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1623 if test -z "$CC"; then
1624 # Extract the first word of "cc", so it can be a program name with args.
1625 set dummy cc; ac_word=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 if test -n "$CC"; then
1632 ac_cv_prog_CC="$CC" # Let the user override the test.
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1643 ac_prog_rejected=yes
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 if test $ac_prog_rejected = yes; then
1654 # We found a bogon in the path, so make sure we never use it.
1655 set dummy $ac_cv_prog_CC
1657 if test $# != 0; then
1658 # We chose a different compiler from the bogus one.
1659 # However, it has the same basename, so the bogon will be chosen
1660 # first if we set CC to just the basename; use the full file name.
1662 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1668 if test -n "$CC"; then
1669 echo "$as_me:$LINENO: result: $CC" >&5
1670 echo "${ECHO_T}$CC" >&6
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1677 if test -z "$CC"; then
1678 if test -n "$ac_tool_prefix"; then
1681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 test -z "$as_dir" && as_dir=.
1696 for ac_exec_ext in '' $ac_executable_extensions; do
1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 if test -n "$CC"; then
1709 echo "$as_me:$LINENO: result: $CC" >&5
1710 echo "${ECHO_T}$CC" >&6
1712 echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1716 test -n "$CC" && break
1719 if test -z "$CC"; then
1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
1724 set dummy $ac_prog; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC="$ac_prog"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750 if test -n "$ac_ct_CC"; then
1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752 echo "${ECHO_T}$ac_ct_CC" >&6
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1758 test -n "$ac_ct_CC" && break
1767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1768 See \`config.log' for more details." >&5
1769 echo "$as_me: error: no acceptable C compiler found in \$PATH
1770 See \`config.log' for more details." >&2;}
1771 { (exit 1); exit 1; }; }
1773 # Provide some information about the compiler.
1774 echo "$as_me:$LINENO:" \
1775 "checking for C compiler version" >&5
1776 ac_compiler=`set X $ac_compile; echo $2`
1777 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1778 (eval $ac_compiler --version </dev/null >&5) 2>&5
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }
1782 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1783 (eval $ac_compiler -v </dev/null >&5) 2>&5
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1788 (eval $ac_compiler -V </dev/null >&5) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1793 cat >conftest.$ac_ext <<_ACEOF
1794 #line $LINENO "configure"
1797 cat confdefs.h >>conftest.$ac_ext
1798 cat >>conftest.$ac_ext <<_ACEOF
1799 /* end confdefs.h. */
1809 ac_clean_files_save=$ac_clean_files
1810 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1811 # Try to create an executable without -o first, disregard a.out.
1812 # It will help us diagnose broken compilers, and finding out an intuition
1814 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1815 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1816 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1817 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1818 (eval $ac_link_default) 2>&5
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }; then
1822 # Find the output, starting from the most likely. This scheme is
1823 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1826 # Be careful to initialize this variable, since it used to be cached.
1827 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1829 # b.out is created by i960 compilers.
1830 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1832 test -f "$ac_file" || continue
1834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1837 # This is the source file.
1840 # We found the default executable, but exeext='' is most
1844 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1845 # FIXME: I believe we export ac_cv_exeext for Libtool,
1846 # but it would be cool to find out if it's true. Does anybody
1847 # maintain Libtool? --akim.
1855 echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1858 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: C compiler cannot create executables
1861 See \`config.log' for more details." >&2;}
1862 { (exit 77); exit 77; }; }
1865 ac_exeext=$ac_cv_exeext
1866 echo "$as_me:$LINENO: result: $ac_file" >&5
1867 echo "${ECHO_T}$ac_file" >&6
1869 # Check the compiler produces executables we can run. If not, either
1870 # the compiler is broken, or we cross compile.
1871 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1872 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1873 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1874 # If not cross compiling, check that we can run a simple program.
1875 if test "$cross_compiling" != yes; then
1876 if { ac_try='./$ac_file'
1877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; }; then
1884 if test "$cross_compiling" = maybe; then
1887 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1888 If you meant to cross compile, use \`--host'.
1889 See \`config.log' for more details." >&5
1890 echo "$as_me: error: cannot run C compiled programs.
1891 If you meant to cross compile, use \`--host'.
1892 See \`config.log' for more details." >&2;}
1893 { (exit 1); exit 1; }; }
1897 echo "$as_me:$LINENO: result: yes" >&5
1898 echo "${ECHO_T}yes" >&6
1900 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1901 ac_clean_files=$ac_clean_files_save
1902 # Check the compiler produces executables we can run. If not, either
1903 # the compiler is broken, or we cross compile.
1904 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1905 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1906 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1907 echo "${ECHO_T}$cross_compiling" >&6
1909 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1910 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1912 (eval $ac_link) 2>&5
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); }; then
1916 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1917 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1918 # work properly (i.e., refer to `conftest.exe'), while it won't with
1920 for ac_file in conftest.exe conftest conftest.*; do
1921 test -f "$ac_file" || continue
1923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1924 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1931 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1932 See \`config.log' for more details." >&5
1933 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1934 See \`config.log' for more details." >&2;}
1935 { (exit 1); exit 1; }; }
1938 rm -f conftest$ac_cv_exeext
1939 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1940 echo "${ECHO_T}$ac_cv_exeext" >&6
1942 rm -f conftest.$ac_ext
1943 EXEEXT=$ac_cv_exeext
1945 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1946 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1947 if test "${ac_cv_objext+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 cat >conftest.$ac_ext <<_ACEOF
1951 #line $LINENO "configure"
1954 cat confdefs.h >>conftest.$ac_ext
1955 cat >>conftest.$ac_ext <<_ACEOF
1956 /* end confdefs.h. */
1966 rm -f conftest.o conftest.obj
1967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; then
1972 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1980 echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1983 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&5
1985 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1986 See \`config.log' for more details." >&2;}
1987 { (exit 1); exit 1; }; }
1990 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1992 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1993 echo "${ECHO_T}$ac_cv_objext" >&6
1994 OBJEXT=$ac_cv_objext
1996 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1997 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1998 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 cat >conftest.$ac_ext <<_ACEOF
2002 #line $LINENO "configure"
2005 cat confdefs.h >>conftest.$ac_ext
2006 cat >>conftest.$ac_ext <<_ACEOF
2007 /* end confdefs.h. */
2020 rm -f conftest.$ac_objext
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -s conftest.$ac_objext'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2034 echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2039 rm -f conftest.$ac_objext conftest.$ac_ext
2040 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2043 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2044 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2045 GCC=`test $ac_compiler_gnu = yes && echo yes`
2046 ac_test_CFLAGS=${CFLAGS+set}
2047 ac_save_CFLAGS=$CFLAGS
2049 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2050 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2051 if test "${ac_cv_prog_cc_g+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 cat >conftest.$ac_ext <<_ACEOF
2055 #line $LINENO "configure"
2058 cat confdefs.h >>conftest.$ac_ext
2059 cat >>conftest.$ac_ext <<_ACEOF
2060 /* end confdefs.h. */
2070 rm -f conftest.$ac_objext
2071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2072 (eval $ac_compile) 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); } &&
2076 { ac_try='test -s conftest.$ac_objext'
2077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }; }; then
2084 echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2089 rm -f conftest.$ac_objext conftest.$ac_ext
2091 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2092 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2093 if test "$ac_test_CFLAGS" = set; then
2094 CFLAGS=$ac_save_CFLAGS
2095 elif test $ac_cv_prog_cc_g = yes; then
2096 if test "$GCC" = yes; then
2102 if test "$GCC" = yes; then
2108 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2109 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2110 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 ac_cv_prog_cc_stdc=no
2115 cat >conftest.$ac_ext <<_ACEOF
2116 #line $LINENO "configure"
2119 cat confdefs.h >>conftest.$ac_ext
2120 cat >>conftest.$ac_ext <<_ACEOF
2121 /* end confdefs.h. */
2124 #include <sys/types.h>
2125 #include <sys/stat.h>
2126 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2127 struct buf { int x; };
2128 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2129 static char *e (p, i)
2135 static char *f (char * (*g) (char **, int), char **p, ...)
2140 s = g (p, va_arg (v,int));
2144 int test (int i, double x);
2145 struct s1 {int (*f) (int a);};
2146 struct s2 {int (*f) (double a);};
2147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2153 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2158 # Don't try gcc -ansi; that turns off useful extensions and
2159 # breaks some systems' header files.
2160 # AIX -qlanglvl=ansi
2161 # Ultrix and OSF/1 -std1
2162 # HP-UX 10.20 and later -Ae
2163 # HP-UX older versions -Aa -D_HPUX_SOURCE
2164 # SVR4 -Xc -D__EXTENSIONS__
2165 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2167 CC="$ac_save_CC $ac_arg"
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -s conftest.$ac_objext'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2180 ac_cv_prog_cc_stdc=$ac_arg
2183 echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2187 rm -f conftest.$ac_objext
2189 rm -f conftest.$ac_ext conftest.$ac_objext
2194 case "x$ac_cv_prog_cc_stdc" in
2196 echo "$as_me:$LINENO: result: none needed" >&5
2197 echo "${ECHO_T}none needed" >&6 ;;
2199 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2200 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2201 CC="$CC $ac_cv_prog_cc_stdc" ;;
2204 # Some people use a C++ compiler to compile C. Since we use `exit',
2205 # in C++ we need to declare it. In case someone uses the same compiler
2206 # for both compiling C and C++ we need to have the C++ compiler decide
2207 # the declaration of exit, since it's the most demanding environment.
2208 cat >conftest.$ac_ext <<_ACEOF
2213 rm -f conftest.$ac_objext
2214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215 (eval $ac_compile) 2>&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); } &&
2219 { ac_try='test -s conftest.$ac_objext'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2225 for ac_declaration in \
2227 '#include <stdlib.h>' \
2228 'extern "C" void std::exit (int) throw (); using std::exit;' \
2229 'extern "C" void std::exit (int); using std::exit;' \
2230 'extern "C" void exit (int) throw ();' \
2231 'extern "C" void exit (int);' \
2234 cat >conftest.$ac_ext <<_ACEOF
2235 #line $LINENO "configure"
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h. */
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2265 echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2270 rm -f conftest.$ac_objext conftest.$ac_ext
2271 cat >conftest.$ac_ext <<_ACEOF
2272 #line $LINENO "configure"
2275 cat confdefs.h >>conftest.$ac_ext
2276 cat >>conftest.$ac_ext <<_ACEOF
2277 /* end confdefs.h. */
2287 rm -f conftest.$ac_objext
2288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2289 (eval $ac_compile) 2>&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); } &&
2293 { ac_try='test -s conftest.$ac_objext'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; }; then
2301 echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2305 rm -f conftest.$ac_objext conftest.$ac_ext
2308 if test -n "$ac_declaration"; then
2309 echo '#ifdef __cplusplus' >>confdefs.h
2310 echo $ac_declaration >>confdefs.h
2311 echo '#endif' >>confdefs.h
2315 echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2319 rm -f conftest.$ac_objext conftest.$ac_ext
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2326 if test "$GCC" = yes ; then
2327 if test "$SHLICC2" = yes ; then
2328 ac_cv_lbl_gcc_vers=2
2331 echo "$as_me:$LINENO: checking gcc version" >&5
2332 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2333 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2337 sed -e '/^gcc version /!d' \
2338 -e 's/^gcc version //' \
2339 -e 's/ .*//' -e 's/^[^0-9]*//' \
2343 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2344 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2345 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2350 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2351 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2352 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 cat >conftest.$ac_ext <<_ACEOF
2357 #line $LINENO "configure"
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2363 #include <sys/types.h>
2367 int frob(int, char *)
2372 rm -f conftest.$ac_objext
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374 (eval $ac_compile) 2>&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -s conftest.$ac_objext'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; }; then
2384 ac_cv_lbl_cc_ansi_prototypes=yes
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2389 ac_cv_lbl_cc_ansi_prototypes=no
2391 rm -f conftest.$ac_objext conftest.$ac_ext
2394 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2395 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2396 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2397 case "$target_os" in
2400 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2401 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2402 savedcflags="$CFLAGS"
2403 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2404 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 cat >conftest.$ac_ext <<_ACEOF
2408 #line $LINENO "configure"
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2414 #include <sys/types.h>
2418 int frob(int, char *)
2423 rm -f conftest.$ac_objext
2424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425 (eval $ac_compile) 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 ac_cv_lbl_cc_hpux_cc_aa=yes
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2440 ac_cv_lbl_cc_hpux_cc_aa=no
2442 rm -f conftest.$ac_objext conftest.$ac_ext
2445 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2446 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2447 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2448 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2449 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2450 { (exit 1); exit 1; }; }
2452 CFLAGS="$savedcflags"
2453 V_CCOPT="-Aa $V_CCOPT"
2455 cat >>confdefs.h <<\_ACEOF
2456 #define _HPUX_SOURCE 1
2462 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2463 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2464 { (exit 1); exit 1; }; }
2468 V_INCLS="$V_INCLS -I/usr/local/include"
2469 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2471 case "$target_os" in
2474 V_CCOPT="$V_CCOPT -xansi -signed -g3"
2478 V_CCOPT="$V_CCOPT -std1 -g3"
2482 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2483 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2484 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 cat >conftest.$ac_ext <<_ACEOF
2488 #line $LINENO "configure"
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2494 #include <sys/types.h>
2498 struct a { int b; };
2499 void c(const struct a *)
2504 rm -f conftest.$ac_objext
2505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2506 (eval $ac_compile) 2>&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -s conftest.$ac_objext'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 ac_cv_lbl_cc_const_proto=yes
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2521 ac_cv_lbl_cc_const_proto=no
2523 rm -f conftest.$ac_objext conftest.$ac_ext
2526 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2527 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2528 if test $ac_cv_lbl_cc_const_proto = no ; then
2529 cat >>confdefs.h <<\_ACEOF
2538 echo "$as_me:$LINENO: checking for inline" >&5
2539 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2540 save_CFLAGS="$CFLAGS"
2542 if test "${ac_cv_lbl_inline+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 for ac_lbl_inline in inline __inline__ __inline
2550 cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2557 #define inline $ac_lbl_inline
2558 static inline struct iltest *foo(void);
2564 static inline struct iltest *
2567 static struct iltest xxx;
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_lbl_cc_inline=yes
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2597 rm -f conftest.$ac_objext conftest.$ac_ext
2598 if test "$ac_lbl_cc_inline" = yes ; then
2602 if test "$ac_lbl_cc_inline" = yes ; then
2603 ac_cv_lbl_inline=$ac_lbl_inline
2607 CFLAGS="$save_CFLAGS"
2608 if test ! -z "$ac_cv_lbl_inline" ; then
2609 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2610 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2612 echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6
2616 cat >>confdefs.h <<_ACEOF
2617 #define inline $ac_cv_lbl_inline
2621 echo "$as_me:$LINENO: checking for __attribute__" >&5
2622 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2623 if test "${ac_cv___attribute__+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 cat >conftest.$ac_ext <<_ACEOF
2628 #line $LINENO "configure"
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2637 static void foo(void) __attribute__ ((noreturn));
2646 main(int argc, char **argv)
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } &&
2658 { ac_try='test -s conftest.$ac_objext'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; }; then
2664 ac_cv___attribute__=yes
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2669 ac_cv___attribute__=no
2671 rm -f conftest.$ac_objext conftest.$ac_ext
2674 if test "$ac_cv___attribute__" = "yes"; then
2676 cat >>confdefs.h <<\_ACEOF
2677 #define HAVE___ATTRIBUTE__ 1
2680 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2682 V_DEFS="$V_DEFS -D_U_=\"\""
2684 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2685 echo "${ECHO_T}$ac_cv___attribute__" >&6
2688 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
2689 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
2690 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 cat >conftest.$ac_ext <<_ACEOF
2694 #line $LINENO "configure"
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h. */
2701 # include "confdefs.h"
2702 # include <sys/types.h>
2704 # include <stdlib.h>
2705 # include <stddef.h>
2715 rm -f conftest.$ac_objext
2716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717 (eval $ac_compile) 2>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -s conftest.$ac_objext'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2727 ac_cv_lbl_have_u_int8_t=yes
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2732 ac_cv_lbl_have_u_int8_t=no
2734 rm -f conftest.$ac_objext conftest.$ac_ext
2737 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
2738 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
2739 if test $ac_cv_lbl_have_u_int8_t = no ; then
2741 cat >>confdefs.h <<\_ACEOF
2742 #define u_int8_t u_char
2746 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
2747 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
2748 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 cat >conftest.$ac_ext <<_ACEOF
2752 #line $LINENO "configure"
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2759 # include "confdefs.h"
2760 # include <sys/types.h>
2762 # include <stdlib.h>
2763 # include <stddef.h>
2773 rm -f conftest.$ac_objext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_cv_lbl_have_u_int16_t=yes
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 ac_cv_lbl_have_u_int16_t=no
2792 rm -f conftest.$ac_objext conftest.$ac_ext
2795 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
2796 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
2797 if test $ac_cv_lbl_have_u_int16_t = no ; then
2799 cat >>confdefs.h <<\_ACEOF
2800 #define u_int16_t u_short
2804 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
2805 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
2806 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 cat >conftest.$ac_ext <<_ACEOF
2810 #line $LINENO "configure"
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2817 # include "confdefs.h"
2818 # include <sys/types.h>
2820 # include <stdlib.h>
2821 # include <stddef.h>
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 ac_cv_lbl_have_u_int32_t=yes
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2848 ac_cv_lbl_have_u_int32_t=no
2850 rm -f conftest.$ac_objext conftest.$ac_ext
2853 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
2854 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
2855 if test $ac_cv_lbl_have_u_int32_t = no ; then
2857 cat >>confdefs.h <<\_ACEOF
2858 #define u_int32_t u_int
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2869 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2870 # On Suns, sometimes $CPP names a directory.
2871 if test -n "$CPP" && test -d "$CPP"; then
2874 if test -z "$CPP"; then
2875 if test "${ac_cv_prog_CPP+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 # Double quotes because CPP needs to be expanded
2879 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2882 for ac_c_preproc_warn_flag in '' yes
2884 # Use a header file that comes with gcc, so configuring glibc
2885 # with a fresh cross-compiler works.
2886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2887 # <limits.h> exists even on freestanding compilers.
2888 # On the NeXT, cc -E runs the code through the compiler's parser,
2889 # not just through cpp. "Syntax error" is here to catch this case.
2890 cat >conftest.$ac_ext <<_ACEOF
2891 #line $LINENO "configure"
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2898 # include <limits.h>
2900 # include <assert.h>
2904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2907 grep -v '^ *+' conftest.er1 >conftest.err
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } >/dev/null; then
2912 if test -s conftest.err; then
2913 ac_cpp_err=$ac_c_preproc_warn_flag
2920 if test -z "$ac_cpp_err"; then
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 # Broken: fails on valid input.
2929 rm -f conftest.err conftest.$ac_ext
2931 # OK, works on sane cases. Now check whether non-existent headers
2932 # can be detected and how.
2933 cat >conftest.$ac_ext <<_ACEOF
2934 #line $LINENO "configure"
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2940 #include <ac_nonexistent.h>
2942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } >/dev/null; then
2950 if test -s conftest.err; then
2951 ac_cpp_err=$ac_c_preproc_warn_flag
2958 if test -z "$ac_cpp_err"; then
2959 # Broken: success on invalid input.
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2965 # Passes both tests.
2969 rm -f conftest.err conftest.$ac_ext
2972 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2973 rm -f conftest.err conftest.$ac_ext
2974 if $ac_preproc_ok; then
2986 echo "$as_me:$LINENO: result: $CPP" >&5
2987 echo "${ECHO_T}$CPP" >&6
2989 for ac_c_preproc_warn_flag in '' yes
2991 # Use a header file that comes with gcc, so configuring glibc
2992 # with a fresh cross-compiler works.
2993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2994 # <limits.h> exists even on freestanding compilers.
2995 # On the NeXT, cc -E runs the code through the compiler's parser,
2996 # not just through cpp. "Syntax error" is here to catch this case.
2997 cat >conftest.$ac_ext <<_ACEOF
2998 #line $LINENO "configure"
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3005 # include <limits.h>
3007 # include <assert.h>
3011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } >/dev/null; then
3019 if test -s conftest.err; then
3020 ac_cpp_err=$ac_c_preproc_warn_flag
3027 if test -z "$ac_cpp_err"; then
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 # Broken: fails on valid input.
3036 rm -f conftest.err conftest.$ac_ext
3038 # OK, works on sane cases. Now check whether non-existent headers
3039 # can be detected and how.
3040 cat >conftest.$ac_ext <<_ACEOF
3041 #line $LINENO "configure"
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3047 #include <ac_nonexistent.h>
3049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3052 grep -v '^ *+' conftest.er1 >conftest.err
3054 cat conftest.err >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } >/dev/null; then
3057 if test -s conftest.err; then
3058 ac_cpp_err=$ac_c_preproc_warn_flag
3065 if test -z "$ac_cpp_err"; then
3066 # Broken: success on invalid input.
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3072 # Passes both tests.
3076 rm -f conftest.err conftest.$ac_ext
3079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3080 rm -f conftest.err conftest.$ac_ext
3081 if $ac_preproc_ok; then
3084 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3087 See \`config.log' for more details." >&2;}
3088 { (exit 1); exit 1; }; }
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098 echo "$as_me:$LINENO: checking for egrep" >&5
3099 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3100 if test "${ac_cv_prog_egrep+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3104 then ac_cv_prog_egrep='grep -E'
3105 else ac_cv_prog_egrep='egrep'
3108 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3109 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3110 EGREP=$ac_cv_prog_egrep
3113 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3114 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3115 if test "${ac_cv_header_stdc+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 cat >conftest.$ac_ext <<_ACEOF
3119 #line $LINENO "configure"
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3138 rm -f conftest.$ac_objext
3139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140 (eval $ac_compile) 2>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_header_stdc=yes
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 ac_cv_header_stdc=no
3157 rm -f conftest.$ac_objext conftest.$ac_ext
3159 if test $ac_cv_header_stdc = yes; then
3160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3161 cat >conftest.$ac_ext <<_ACEOF
3162 #line $LINENO "configure"
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172 $EGREP "memchr" >/dev/null 2>&1; then
3175 ac_cv_header_stdc=no
3181 if test $ac_cv_header_stdc = yes; then
3182 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3183 cat >conftest.$ac_ext <<_ACEOF
3184 #line $LINENO "configure"
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3194 $EGREP "free" >/dev/null 2>&1; then
3197 ac_cv_header_stdc=no
3203 if test $ac_cv_header_stdc = yes; then
3204 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3205 if test "$cross_compiling" = yes; then
3208 cat >conftest.$ac_ext <<_ACEOF
3209 #line $LINENO "configure"
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3216 #if ((' ' & 0x0FF) == 0x020)
3217 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3218 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3220 # define ISLOWER(c) \
3221 (('a' <= (c) && (c) <= 'i') \
3222 || ('j' <= (c) && (c) <= 'r') \
3223 || ('s' <= (c) && (c) <= 'z'))
3224 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3227 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3232 for (i = 0; i < 256; i++)
3233 if (XOR (islower (i), ISLOWER (i))
3234 || toupper (i) != TOUPPER (i))
3239 rm -f conftest$ac_exeext
3240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3241 (eval $ac_link) 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3252 echo "$as_me: program exited with status $ac_status" >&5
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3257 ac_cv_header_stdc=no
3259 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3263 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3264 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3265 if test $ac_cv_header_stdc = yes; then
3267 cat >>confdefs.h <<\_ACEOF
3268 #define STDC_HEADERS 1
3273 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3283 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3284 inttypes.h stdint.h unistd.h
3286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3287 echo "$as_me:$LINENO: checking for $ac_header" >&5
3288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 cat >conftest.$ac_ext <<_ACEOF
3293 #line $LINENO "configure"
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3299 $ac_includes_default
3301 #include <$ac_header>
3303 rm -f conftest.$ac_objext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3305 (eval $ac_compile) 2>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try='test -s conftest.$ac_objext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 eval "$as_ac_Header=yes"
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 eval "$as_ac_Header=no"
3322 rm -f conftest.$ac_objext conftest.$ac_ext
3324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3327 cat >>confdefs.h <<_ACEOF
3328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3339 for ac_header in sys/ioccom.h sys/sockio.h limits.h
3341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3343 echo "$as_me:$LINENO: checking for $ac_header" >&5
3344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3351 # Is the header compilable?
3352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3354 cat >conftest.$ac_ext <<_ACEOF
3355 #line $LINENO "configure"
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3361 $ac_includes_default
3362 #include <$ac_header>
3364 rm -f conftest.$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366 (eval $ac_compile) 2>&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } &&
3370 { ac_try='test -s conftest.$ac_objext'
3371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; }; then
3376 ac_header_compiler=yes
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 ac_header_compiler=no
3383 rm -f conftest.$ac_objext conftest.$ac_ext
3384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3385 echo "${ECHO_T}$ac_header_compiler" >&6
3387 # Is the header present?
3388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3390 cat >conftest.$ac_ext <<_ACEOF
3391 #line $LINENO "configure"
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 #include <$ac_header>
3399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3402 grep -v '^ *+' conftest.er1 >conftest.err
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } >/dev/null; then
3407 if test -s conftest.err; then
3408 ac_cpp_err=$ac_c_preproc_warn_flag
3415 if test -z "$ac_cpp_err"; then
3416 ac_header_preproc=yes
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 ac_header_preproc=no
3423 rm -f conftest.err conftest.$ac_ext
3424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3425 echo "${ECHO_T}$ac_header_preproc" >&6
3427 # So? What about this header?
3428 case $ac_header_compiler:$ac_header_preproc in
3430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3436 ## ------------------------------------ ##
3437 ## Report this to bug-autoconf@gnu.org. ##
3438 ## ------------------------------------ ##
3441 sed "s/^/$as_me: WARNING: /" >&2
3444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3452 ## ------------------------------------ ##
3453 ## Report this to bug-autoconf@gnu.org. ##
3454 ## ------------------------------------ ##
3457 sed "s/^/$as_me: WARNING: /" >&2
3460 echo "$as_me:$LINENO: checking for $ac_header" >&5
3461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 eval "$as_ac_Header=$ac_header_preproc"
3467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3472 cat >>confdefs.h <<_ACEOF
3473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3481 for ac_header in netinet/if_ether.h
3483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3484 echo "$as_me:$LINENO: checking for $ac_header" >&5
3485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 cat >conftest.$ac_ext <<_ACEOF
3490 #line $LINENO "configure"
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <sys/types.h>
3497 #include <sys/socket.h>
3499 #include <$ac_header>
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 eval "$as_ac_Header=yes"
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 eval "$as_ac_Header=no"
3520 rm -f conftest.$ac_objext conftest.$ac_ext
3522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3525 cat >>confdefs.h <<_ACEOF
3526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3533 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3535 # The simple test didn't work.
3536 # Do we need to include <net/if.h> first?
3537 # Unset ac_cv_header_netinet_if_ether_h so we don't
3538 # treat the previous failure as a cached value and
3539 # suppress the next test.
3541 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3542 echo "$as_me: Rechecking with some additional includes" >&6;}
3543 unset ac_cv_header_netinet_if_ether_h
3545 for ac_header in netinet/if_ether.h
3547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3548 echo "$as_me:$LINENO: checking for $ac_header" >&5
3549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 cat >conftest.$ac_ext <<_ACEOF
3554 #line $LINENO "configure"
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 #include <sys/types.h>
3561 #include <sys/socket.h>
3562 #include <netinet/in.h>
3567 #include <$ac_header>
3569 rm -f conftest.$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -s conftest.$ac_objext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 eval "$as_ac_Header=yes"
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 eval "$as_ac_Header=no"
3588 rm -f conftest.$ac_objext conftest.$ac_ext
3590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3593 cat >>confdefs.h <<_ACEOF
3594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3603 if test "$GCC" = yes ; then
3604 echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
3605 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6
3606 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 cat >conftest.$ac_ext <<_ACEOF
3610 #line $LINENO "configure"
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3617 * This generates a "duplicate case value" when fixincludes
3620 # include <sys/types.h>
3621 # include <sys/time.h>
3622 # include <sys/ioctl.h>
3623 # ifdef HAVE_SYS_IOCCOM_H
3624 # include <sys/ioccom.h>
3637 rm -f conftest.$ac_objext
3638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } &&
3643 { ac_try='test -s conftest.$ac_objext'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_cv_lbl_gcc_fixincludes=yes
3651 echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3654 ac_cv_lbl_gcc_fixincludes=no
3656 rm -f conftest.$ac_objext conftest.$ac_ext
3659 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
3660 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6
3661 if test $ac_cv_lbl_gcc_fixincludes = no ; then
3662 # Don't cache failure
3663 unset ac_cv_lbl_gcc_fixincludes
3664 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
3665 echo "$as_me: error: see the INSTALL for more info" >&2;}
3666 { (exit 1); exit 1; }; }
3672 for ac_func in strerror strlcpy
3674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3675 echo "$as_me:$LINENO: checking for $ac_func" >&5
3676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3677 if eval "test \"\${$as_ac_var+set}\" = set"; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 cat >conftest.$ac_ext <<_ACEOF
3681 #line $LINENO "configure"
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3687 /* System header to define __stub macros and hopefully few prototypes,
3688 which can conflict with char $ac_func (); below.
3689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3690 <limits.h> exists even on freestanding compilers. */
3692 # include <limits.h>
3694 # include <assert.h>
3696 /* Override any gcc2 internal prototype to avoid an error. */
3701 /* We use char because int might match the return type of a gcc2
3702 builtin and then its argument prototype would still apply. */
3704 /* The GNU C library defines this for functions which it implements
3705 to always fail with ENOSYS. Some functions are actually named
3706 something starting with __ and the normal name is an alias. */
3707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3710 char (*f) () = $ac_func;
3719 return f != $ac_func;
3724 rm -f conftest.$ac_objext conftest$ac_exeext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3726 (eval $ac_link) 2>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } &&
3730 { ac_try='test -s conftest$ac_exeext'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3736 eval "$as_ac_var=yes"
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3741 eval "$as_ac_var=no"
3743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3747 if test `eval echo '${'$as_ac_var'}'` = yes; then
3748 cat >>confdefs.h <<_ACEOF
3749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3759 for ac_func in vsnprintf snprintf
3761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3762 echo "$as_me:$LINENO: checking for $ac_func" >&5
3763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3764 if eval "test \"\${$as_ac_var+set}\" = set"; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 cat >conftest.$ac_ext <<_ACEOF
3768 #line $LINENO "configure"
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 /* System header to define __stub macros and hopefully few prototypes,
3775 which can conflict with char $ac_func (); below.
3776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3777 <limits.h> exists even on freestanding compilers. */
3779 # include <limits.h>
3781 # include <assert.h>
3783 /* Override any gcc2 internal prototype to avoid an error. */
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3791 /* The GNU C library defines this for functions which it implements
3792 to always fail with ENOSYS. Some functions are actually named
3793 something starting with __ and the normal name is an alias. */
3794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3797 char (*f) () = $ac_func;
3806 return f != $ac_func;
3811 rm -f conftest.$ac_objext conftest$ac_exeext
3812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3813 (eval $ac_link) 2>&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } &&
3817 { ac_try='test -s conftest$ac_exeext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 eval "$as_ac_var=yes"
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3828 eval "$as_ac_var=no"
3830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3834 if test `eval echo '${'$as_ac_var'}'` = yes; then
3835 cat >>confdefs.h <<_ACEOF
3836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3844 if test $needsnprintf = yes; then
3845 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
3849 # Do this before checking for ether_hostton(), as it's a
3850 # "gethostbyname() -ish function".
3853 # Most operating systems have gethostbyname() in the default searched
3854 # libraries (i.e. libc):
3855 # Some OSes (eg. Solaris) place it in libnsl
3856 # Some strange OSes (SINIX) have it in libsocket:
3857 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
3858 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
3859 if test "${ac_cv_search_gethostbyname+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 ac_func_search_save_LIBS=$LIBS
3863 ac_cv_search_gethostbyname=no
3864 cat >conftest.$ac_ext <<_ACEOF
3865 #line $LINENO "configure"
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3872 /* Override any gcc2 internal prototype to avoid an error. */
3876 /* We use char because int might match the return type of a gcc2
3877 builtin and then its argument prototype would still apply. */
3878 char gethostbyname ();
3887 rm -f conftest.$ac_objext conftest$ac_exeext
3888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3889 (eval $ac_link) 2>&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } &&
3893 { ac_try='test -s conftest$ac_exeext'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 ac_cv_search_gethostbyname="none required"
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3906 if test "$ac_cv_search_gethostbyname" = no; then
3907 for ac_lib in nsl socket resolv; do
3908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3909 cat >conftest.$ac_ext <<_ACEOF
3910 #line $LINENO "configure"
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3917 /* Override any gcc2 internal prototype to avoid an error. */
3921 /* We use char because int might match the return type of a gcc2
3922 builtin and then its argument prototype would still apply. */
3923 char gethostbyname ();
3932 rm -f conftest.$ac_objext conftest$ac_exeext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934 (eval $ac_link) 2>&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } &&
3938 { ac_try='test -s conftest$ac_exeext'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3944 ac_cv_search_gethostbyname="-l$ac_lib"
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3954 LIBS=$ac_func_search_save_LIBS
3956 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
3957 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
3958 if test "$ac_cv_search_gethostbyname" != no; then
3959 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
3963 # Unfortunately libsocket sometimes depends on libnsl and
3964 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
3965 if test "$ac_cv_search_gethostbyname" = "no"
3967 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3968 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3969 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 ac_check_lib_save_LIBS=$LIBS
3973 LIBS="-lsocket -lnsl $LIBS"
3974 cat >conftest.$ac_ext <<_ACEOF
3975 #line $LINENO "configure"
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3982 /* Override any gcc2 internal prototype to avoid an error. */
3986 /* We use char because int might match the return type of a gcc2
3987 builtin and then its argument prototype would still apply. */
3988 char gethostbyname ();
3997 rm -f conftest.$ac_objext conftest$ac_exeext
3998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3999 (eval $ac_link) 2>&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } &&
4003 { ac_try='test -s conftest$ac_exeext'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; }; then
4009 ac_cv_lib_socket_gethostbyname=yes
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4014 ac_cv_lib_socket_gethostbyname=no
4016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4017 LIBS=$ac_check_lib_save_LIBS
4019 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4020 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
4021 if test $ac_cv_lib_socket_gethostbyname = yes; then
4022 LIBS="-lsocket -lnsl $LIBS"
4026 echo "$as_me:$LINENO: checking for library containing socket" >&5
4027 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
4028 if test "${ac_cv_search_socket+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 ac_func_search_save_LIBS=$LIBS
4032 ac_cv_search_socket=no
4033 cat >conftest.$ac_ext <<_ACEOF
4034 #line $LINENO "configure"
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4041 /* Override any gcc2 internal prototype to avoid an error. */
4045 /* We use char because int might match the return type of a gcc2
4046 builtin and then its argument prototype would still apply. */
4056 rm -f conftest.$ac_objext conftest$ac_exeext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4058 (eval $ac_link) 2>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } &&
4062 { ac_try='test -s conftest$ac_exeext'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 ac_cv_search_socket="none required"
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4075 if test "$ac_cv_search_socket" = no; then
4076 for ac_lib in socket; do
4077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4078 cat >conftest.$ac_ext <<_ACEOF
4079 #line $LINENO "configure"
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4086 /* Override any gcc2 internal prototype to avoid an error. */
4090 /* We use char because int might match the return type of a gcc2
4091 builtin and then its argument prototype would still apply. */
4101 rm -f conftest.$ac_objext conftest$ac_exeext
4102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4103 (eval $ac_link) 2>&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } &&
4107 { ac_try='test -s conftest$ac_exeext'
4108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; }; then
4113 ac_cv_search_socket="-l$ac_lib"
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4123 LIBS=$ac_func_search_save_LIBS
4125 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4126 echo "${ECHO_T}$ac_cv_search_socket" >&6
4127 if test "$ac_cv_search_socket" != no; then
4128 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
4131 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4132 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4133 if test "${ac_cv_lib_socket_socket+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 ac_check_lib_save_LIBS=$LIBS
4137 LIBS="-lsocket -lnsl $LIBS"
4138 cat >conftest.$ac_ext <<_ACEOF
4139 #line $LINENO "configure"
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4146 /* Override any gcc2 internal prototype to avoid an error. */
4150 /* We use char because int might match the return type of a gcc2
4151 builtin and then its argument prototype would still apply. */
4161 rm -f conftest.$ac_objext conftest$ac_exeext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4163 (eval $ac_link) 2>&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -s conftest$ac_exeext'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 ac_cv_lib_socket_socket=yes
4175 echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4178 ac_cv_lib_socket_socket=no
4180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4181 LIBS=$ac_check_lib_save_LIBS
4183 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4184 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4185 if test $ac_cv_lib_socket_socket = yes; then
4186 LIBS="-lsocket -lnsl $LIBS"
4191 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
4192 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
4193 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
4194 if test "${ac_cv_search_putmsg+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 ac_func_search_save_LIBS=$LIBS
4198 ac_cv_search_putmsg=no
4199 cat >conftest.$ac_ext <<_ACEOF
4200 #line $LINENO "configure"
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4207 /* Override any gcc2 internal prototype to avoid an error. */
4211 /* We use char because int might match the return type of a gcc2
4212 builtin and then its argument prototype would still apply. */
4222 rm -f conftest.$ac_objext conftest$ac_exeext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4224 (eval $ac_link) 2>&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -s conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 ac_cv_search_putmsg="none required"
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4241 if test "$ac_cv_search_putmsg" = no; then
4242 for ac_lib in str; do
4243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4244 cat >conftest.$ac_ext <<_ACEOF
4245 #line $LINENO "configure"
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4252 /* Override any gcc2 internal prototype to avoid an error. */
4256 /* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4267 rm -f conftest.$ac_objext conftest$ac_exeext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } &&
4273 { ac_try='test -s conftest$ac_exeext'
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 ac_cv_search_putmsg="-l$ac_lib"
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4289 LIBS=$ac_func_search_save_LIBS
4291 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
4292 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
4293 if test "$ac_cv_search_putmsg" != no; then
4294 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
4301 # You are in a twisty little maze of UN*Xes, all different.
4302 # Some might not have ether_hostton().
4303 # Some might have it, but not declare it in any header file.
4304 # Some might have it, but declare it in <netinet/if_ether.h>.
4305 # Some might have it, but declare it in <netinet/ether.h>
4306 # (And some might have it but document it as something declared in
4307 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
4309 # Before you is a C compiler.
4312 for ac_func in ether_hostton
4314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4315 echo "$as_me:$LINENO: checking for $ac_func" >&5
4316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4317 if eval "test \"\${$as_ac_var+set}\" = set"; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 cat >conftest.$ac_ext <<_ACEOF
4321 #line $LINENO "configure"
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 /* System header to define __stub macros and hopefully few prototypes,
4328 which can conflict with char $ac_func (); below.
4329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4330 <limits.h> exists even on freestanding compilers. */
4332 # include <limits.h>
4334 # include <assert.h>
4336 /* Override any gcc2 internal prototype to avoid an error. */
4341 /* We use char because int might match the return type of a gcc2
4342 builtin and then its argument prototype would still apply. */
4344 /* The GNU C library defines this for functions which it implements
4345 to always fail with ENOSYS. Some functions are actually named
4346 something starting with __ and the normal name is an alias. */
4347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4350 char (*f) () = $ac_func;
4359 return f != $ac_func;
4364 rm -f conftest.$ac_objext conftest$ac_exeext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4366 (eval $ac_link) 2>&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } &&
4370 { ac_try='test -s conftest$ac_exeext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 eval "$as_ac_var=yes"
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 eval "$as_ac_var=no"
4383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4387 if test `eval echo '${'$as_ac_var'}'` = yes; then
4388 cat >>confdefs.h <<_ACEOF
4389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4395 if test "$ac_cv_func_ether_hostton" = yes; then
4397 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
4399 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
4401 # Yes. Does it declare ether_hostton()?
4403 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
4404 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
4405 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 cat >conftest.$ac_ext <<_ACEOF
4409 #line $LINENO "configure"
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4416 #include <sys/types.h>
4417 #include <sys/socket.h>
4418 #include <netinet/in.h>
4419 #include <arpa/inet.h>
4423 #include <netinet/if_ether.h>
4429 #ifndef ether_hostton
4430 char *p = (char *) ether_hostton;
4437 rm -f conftest.$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } &&
4443 { ac_try='test -s conftest.$ac_objext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 ac_cv_have_decl_ether_hostton=yes
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 ac_cv_have_decl_ether_hostton=no
4456 rm -f conftest.$ac_objext conftest.$ac_ext
4458 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
4459 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
4460 if test $ac_cv_have_decl_ether_hostton = yes; then
4463 cat >>confdefs.h <<\_ACEOF
4464 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
4474 if test "$ac_cv_have_decl_ether_hostton" != yes; then
4476 # No, how about <netinet/ether.h>, as on Linux?
4479 for ac_header in netinet/ether.h
4481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4483 echo "$as_me:$LINENO: checking for $ac_header" >&5
4484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4491 # Is the header compilable?
4492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4494 cat >conftest.$ac_ext <<_ACEOF
4495 #line $LINENO "configure"
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4501 $ac_includes_default
4502 #include <$ac_header>
4504 rm -f conftest.$ac_objext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } &&
4510 { ac_try='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_header_compiler=yes
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 ac_header_compiler=no
4523 rm -f conftest.$ac_objext conftest.$ac_ext
4524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4525 echo "${ECHO_T}$ac_header_compiler" >&6
4527 # Is the header present?
4528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4530 cat >conftest.$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 #include <$ac_header>
4539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4542 grep -v '^ *+' conftest.er1 >conftest.err
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } >/dev/null; then
4547 if test -s conftest.err; then
4548 ac_cpp_err=$ac_c_preproc_warn_flag
4555 if test -z "$ac_cpp_err"; then
4556 ac_header_preproc=yes
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4561 ac_header_preproc=no
4563 rm -f conftest.err conftest.$ac_ext
4564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4565 echo "${ECHO_T}$ac_header_preproc" >&6
4567 # So? What about this header?
4568 case $ac_header_compiler:$ac_header_preproc in
4570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4576 ## ------------------------------------ ##
4577 ## Report this to bug-autoconf@gnu.org. ##
4578 ## ------------------------------------ ##
4581 sed "s/^/$as_me: WARNING: /" >&2
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4592 ## ------------------------------------ ##
4593 ## Report this to bug-autoconf@gnu.org. ##
4594 ## ------------------------------------ ##
4597 sed "s/^/$as_me: WARNING: /" >&2
4600 echo "$as_me:$LINENO: checking for $ac_header" >&5
4601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 eval "$as_ac_Header=$ac_header_preproc"
4607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4612 cat >>confdefs.h <<_ACEOF
4613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4620 if test "$ac_cv_header_netinet_ether_h" = yes; then
4622 # We have it - does it declare ether_hostton()?
4623 # Unset ac_cv_have_decl_ether_hostton so we don't
4624 # treat the previous failure as a cached value and
4625 # suppress the next test.
4627 unset ac_cv_have_decl_ether_hostton
4628 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
4629 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
4630 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 cat >conftest.$ac_ext <<_ACEOF
4634 #line $LINENO "configure"
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4641 #include <netinet/ether.h>
4647 #ifndef ether_hostton
4648 char *p = (char *) ether_hostton;
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657 (eval $ac_compile) 2>&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -s conftest.$ac_objext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 ac_cv_have_decl_ether_hostton=yes
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 ac_cv_have_decl_ether_hostton=no
4674 rm -f conftest.$ac_objext conftest.$ac_ext
4676 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
4677 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
4678 if test $ac_cv_have_decl_ether_hostton = yes; then
4681 cat >>confdefs.h <<\_ACEOF
4682 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
4691 # Is ether_hostton() declared?
4693 if test "$ac_cv_have_decl_ether_hostton" != yes; then
4695 # No, we'll have to declare it ourselves.
4696 # Do we have "struct ether_addr"?
4698 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
4699 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
4700 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 cat >conftest.$ac_ext <<_ACEOF
4704 #line $LINENO "configure"
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4711 #include <sys/types.h>
4712 #include <sys/socket.h>
4713 #include <netinet/in.h>
4714 #include <arpa/inet.h>
4718 #include <netinet/if_ether.h>
4724 if ((struct ether_addr *) 0)
4726 if (sizeof (struct ether_addr))
4732 rm -f conftest.$ac_objext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734 (eval $ac_compile) 2>&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -s conftest.$ac_objext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 ac_cv_type_struct_ether_addr=yes
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 ac_cv_type_struct_ether_addr=no
4751 rm -f conftest.$ac_objext conftest.$ac_ext
4753 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
4754 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
4755 if test $ac_cv_type_struct_ether_addr = yes; then
4757 cat >>confdefs.h <<_ACEOF
4758 #define HAVE_STRUCT_ETHER_ADDR 1
4765 cat >>confdefs.h <<\_ACEOF
4766 #define HAVE_DECL_ETHER_HOSTTON 0
4771 cat >>confdefs.h <<\_ACEOF
4772 #define HAVE_DECL_ETHER_HOSTTON 1
4778 echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
4779 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6
4780 # Check whether --enable-protochain or --disable-protochain was given.
4781 if test "${enable_protochain+set}" = set; then
4782 enableval="$enable_protochain"
4785 case "x$enable_protochain" in
4786 xyes) enable_protochain=enabled ;;
4787 xno) enable_protochain=disabled ;;
4788 x) enable_protochain=enabled ;;
4791 if test "$enable_protochain" = "disabled"; then
4793 cat >>confdefs.h <<\_ACEOF
4794 #define NO_PROTOCHAIN 1
4798 echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
4799 echo "${ECHO_T}${enable_protochain}" >&6
4801 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
4802 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
4803 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
4804 { (exit 1); exit 1; }; }
4807 # Check whether --with-pcap or --without-pcap was given.
4808 if test "${with_pcap+set}" = set; then
4809 withval="$with_pcap"
4812 echo "$as_me:$LINENO: checking packet capture type" >&5
4813 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6
4814 if test ! -z "$with_pcap" ; then
4816 elif test -r /dev/bpf0 ; then
4818 elif test -r /usr/include/net/pfilt.h ; then
4820 elif test -r /dev/enet ; then
4822 elif test -r /dev/nit ; then
4824 elif test -r /usr/include/sys/net/nit.h ; then
4826 elif test -r /usr/include/linux/socket.h ; then
4828 elif test -r /usr/include/net/raw.h ; then
4830 elif test -r /usr/include/odmi.h ; then
4832 # On AIX, the BPF devices might not yet be present - they're
4833 # created the first time libpcap runs after booting.
4834 # We check for odmi.h instead.
4837 elif test -r /usr/include/sys/dlpi.h ; then
4839 elif test -c /dev/bpf0 ; then # check again in case not readable
4841 elif test -c /dev/enet ; then # check again in case not readable
4843 elif test -c /dev/nit ; then # check again in case not readable
4848 echo "$as_me:$LINENO: result: $V_PCAP" >&5
4849 echo "${ECHO_T}$V_PCAP" >&6
4851 if test "$V_PCAP" = null
4854 # We can't capture, so we can't open any capture
4855 # devices, so we won't return any interfaces.
4859 echo "$as_me:$LINENO: checking for getifaddrs" >&5
4860 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
4861 if test "${ac_cv_func_getifaddrs+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 cat >conftest.$ac_ext <<_ACEOF
4865 #line $LINENO "configure"
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4871 /* System header to define __stub macros and hopefully few prototypes,
4872 which can conflict with char getifaddrs (); below.
4873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4874 <limits.h> exists even on freestanding compilers. */
4876 # include <limits.h>
4878 # include <assert.h>
4880 /* Override any gcc2 internal prototype to avoid an error. */
4885 /* We use char because int might match the return type of a gcc2
4886 builtin and then its argument prototype would still apply. */
4888 /* The GNU C library defines this for functions which it implements
4889 to always fail with ENOSYS. Some functions are actually named
4890 something starting with __ and the normal name is an alias. */
4891 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
4894 char (*f) () = getifaddrs;
4903 return f != getifaddrs;
4908 rm -f conftest.$ac_objext conftest$ac_exeext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4910 (eval $ac_link) 2>&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -s conftest$ac_exeext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_cv_func_getifaddrs=yes
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4925 ac_cv_func_getifaddrs=no
4927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4929 echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
4930 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
4931 if test $ac_cv_func_getifaddrs = yes; then
4934 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
4935 # as well, just in case some platform is really weird.
4937 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
4938 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
4939 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
4940 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
4944 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
4946 # Is the header compilable?
4947 echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
4948 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6
4949 cat >conftest.$ac_ext <<_ACEOF
4950 #line $LINENO "configure"
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 $ac_includes_default
4957 #include <ifaddrs.h>
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -s conftest.$ac_objext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_header_compiler=yes
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 ac_header_compiler=no
4978 rm -f conftest.$ac_objext conftest.$ac_ext
4979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4980 echo "${ECHO_T}$ac_header_compiler" >&6
4982 # Is the header present?
4983 echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
4984 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6
4985 cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 #include <ifaddrs.h>
4994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4997 grep -v '^ *+' conftest.er1 >conftest.err
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } >/dev/null; then
5002 if test -s conftest.err; then
5003 ac_cpp_err=$ac_c_preproc_warn_flag
5010 if test -z "$ac_cpp_err"; then
5011 ac_header_preproc=yes
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5016 ac_header_preproc=no
5018 rm -f conftest.err conftest.$ac_ext
5019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5020 echo "${ECHO_T}$ac_header_preproc" >&6
5022 # So? What about this header?
5023 case $ac_header_compiler:$ac_header_preproc in
5025 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5026 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5027 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5028 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5031 ## ------------------------------------ ##
5032 ## Report this to bug-autoconf@gnu.org. ##
5033 ## ------------------------------------ ##
5036 sed "s/^/$as_me: WARNING: /" >&2
5039 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
5040 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
5041 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
5042 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
5043 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5044 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5047 ## ------------------------------------ ##
5048 ## Report this to bug-autoconf@gnu.org. ##
5049 ## ------------------------------------ ##
5052 sed "s/^/$as_me: WARNING: /" >&2
5055 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5056 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
5057 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 ac_cv_header_ifaddrs_h=$ac_header_preproc
5062 echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5063 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
5066 if test $ac_cv_header_ifaddrs_h = yes; then
5069 # We have the header, so we use "getifaddrs()" to
5070 # get the list of interfaces.
5077 # We don't have the header - give up.
5078 # XXX - we could also fall back on some other
5079 # mechanism, but, for now, this'll catch this
5080 # problem so that we can at least try to figure
5081 # out something to do on systems with "getifaddrs()"
5082 # but without "ifaddrs.h", if there is something
5083 # we can do on those systems.
5085 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
5086 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
5087 { (exit 1); exit 1; }; }
5096 # Well, we don't have "getifaddrs()", so we have to use
5097 # some other mechanism; determine what that mechanism is.
5099 # The first thing we use is the type of capture mechanism,
5100 # which is somewhat of a proxy for the OS we're using.
5106 # This might be Solaris 8 or later, with
5107 # SIOCGLIFCONF, or it might be some other OS
5108 # or some older version of Solaris, with
5111 echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
5112 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6
5113 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 cat >conftest.$ac_ext <<_ACEOF
5117 #line $LINENO "configure"
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 #include <sys/param.h>
5124 #include <sys/file.h>
5125 #include <sys/ioctl.h>
5126 #include <sys/socket.h>
5127 #include <sys/sockio.h>
5131 ioctl(0, SIOCGLIFCONF, (char *)0);
5136 rm -f conftest.$ac_objext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5138 (eval $ac_compile) 2>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try='test -s conftest.$ac_objext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_lbl_have_siocglifconf=yes
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5153 ac_cv_lbl_have_siocglifconf=no
5155 rm -f conftest.$ac_objext conftest.$ac_ext
5158 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
5159 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6
5160 if test $ac_cv_lbl_have_siocglifconf = yes ; then
5169 # Assume we just have SIOCGIFCONF.
5170 # (XXX - on at least later Linux kernels, there's
5171 # another mechanism, and we should be using that
5181 echo "$as_me:$LINENO: checking if --enable-ipv6 option is specified" >&5
5182 echo $ECHO_N "checking if --enable-ipv6 option is specified... $ECHO_C" >&6
5183 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5184 if test "${enable_ipv6+set}" = set; then
5185 enableval="$enable_ipv6"
5188 if test "$enable_ipv6" = "yes"; then
5190 cat >>confdefs.h <<\_ACEOF
5195 echo "$as_me:$LINENO: result: ${enable_ipv6-no}" >&5
5196 echo "${ECHO_T}${enable_ipv6-no}" >&6
5198 echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
5199 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6
5200 # Check whether --enable-optimizer-dbg or --disable-optimizer-dbg was given.
5201 if test "${enable_optimizer_dbg+set}" = set; then
5202 enableval="$enable_optimizer_dbg"
5205 if test "$enable_optimizer_dbg" = "yes"; then
5207 cat >>confdefs.h <<\_ACEOF
5212 echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
5213 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6
5215 echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
5216 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6
5217 # Check whether --enable-yydebug or --disable-yydebug was given.
5218 if test "${enable_yydebug+set}" = set; then
5219 enableval="$enable_yydebug"
5222 if test "$enable_yydebug" = "yes"; then
5224 cat >>confdefs.h <<\_ACEOF
5229 echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
5230 echo "${ECHO_T}${enable_yydebug-no}" >&6
5237 for ac_header in sys/bufmod.h sys/dlpi_ext.h
5239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5241 echo "$as_me:$LINENO: checking for $ac_header" >&5
5242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5249 # Is the header compilable?
5250 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5251 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5252 cat >conftest.$ac_ext <<_ACEOF
5253 #line $LINENO "configure"
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 $ac_includes_default
5260 #include <$ac_header>
5262 rm -f conftest.$ac_objext
5263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5264 (eval $ac_compile) 2>&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } &&
5268 { ac_try='test -s conftest.$ac_objext'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; }; then
5274 ac_header_compiler=yes
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 ac_header_compiler=no
5281 rm -f conftest.$ac_objext conftest.$ac_ext
5282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5283 echo "${ECHO_T}$ac_header_compiler" >&6
5285 # Is the header present?
5286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5288 cat >conftest.$ac_ext <<_ACEOF
5289 #line $LINENO "configure"
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5295 #include <$ac_header>
5297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5300 grep -v '^ *+' conftest.er1 >conftest.err
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } >/dev/null; then
5305 if test -s conftest.err; then
5306 ac_cpp_err=$ac_c_preproc_warn_flag
5313 if test -z "$ac_cpp_err"; then
5314 ac_header_preproc=yes
5316 echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5319 ac_header_preproc=no
5321 rm -f conftest.err conftest.$ac_ext
5322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5323 echo "${ECHO_T}$ac_header_preproc" >&6
5325 # So? What about this header?
5326 case $ac_header_compiler:$ac_header_preproc in
5328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5334 ## ------------------------------------ ##
5335 ## Report this to bug-autoconf@gnu.org. ##
5336 ## ------------------------------------ ##
5339 sed "s/^/$as_me: WARNING: /" >&2
5342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5350 ## ------------------------------------ ##
5351 ## Report this to bug-autoconf@gnu.org. ##
5352 ## ------------------------------------ ##
5355 sed "s/^/$as_me: WARNING: /" >&2
5358 echo "$as_me:$LINENO: checking for $ac_header" >&5
5359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 eval "$as_ac_Header=$ac_header_preproc"
5365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5370 cat >>confdefs.h <<_ACEOF
5371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5378 echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
5379 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
5380 if test -c /dev/dlpi ; then
5381 echo "$as_me:$LINENO: result: yes" >&5
5382 echo "${ECHO_T}yes" >&6
5384 cat >>confdefs.h <<\_ACEOF
5385 #define HAVE_DEV_DLPI 1
5389 echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6
5392 echo "$as_me:$LINENO: checking for $dir directory" >&5
5393 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
5394 if test -d $dir ; then
5395 echo "$as_me:$LINENO: result: yes" >&5
5396 echo "${ECHO_T}yes" >&6
5398 cat >>confdefs.h <<_ACEOF
5399 #define PCAP_DEV_PREFIX "$dir"
5403 echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6
5410 echo "$as_me:$LINENO: checking Linux kernel version" >&5
5411 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
5412 if test "$cross_compiling" = yes; then
5413 if test "${ac_cv_linux_vers+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 ac_cv_linux_vers=unknown
5420 if test "${ac_cv_linux_vers+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 ac_cv_linux_vers=`uname -r 2>&1 | \
5424 sed -n -e '$s/.* //' -e '$s/\..*//p'`
5428 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
5429 echo "${ECHO_T}$ac_cv_linux_vers" >&6
5430 if test $ac_cv_linux_vers = unknown ; then
5431 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
5432 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
5433 { (exit 1); exit 1; }; }
5435 if test $ac_cv_linux_vers -lt 2 ; then
5436 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
5437 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
5438 { (exit 1); exit 1; }; }
5440 echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
5441 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6
5442 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 cat >conftest.$ac_ext <<_ACEOF
5446 #line $LINENO "configure"
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5453 # include <linux/if_packet.h>
5457 struct tpacket_stats stats
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } &&
5468 { ac_try='test -s conftest.$ac_objext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 ac_cv_lbl_tpacket_stats=yes
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 ac_cv_lbl_tpacket_stats=no
5481 rm -f conftest.$ac_objext conftest.$ac_ext
5484 echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
5485 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6
5486 if test $ac_cv_lbl_tpacket_stats = yes; then
5488 cat >>confdefs.h <<\_ACEOF
5489 #define HAVE_TPACKET_STATS 1
5496 V_DEFS="$V_DEFS -DDAG_ONLY"
5500 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
5504 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
5505 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5506 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
5507 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5512 echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
5513 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6
5514 if test -r /proc/net/dev ; then
5515 ac_cv_lbl_proc_net_dev=yes
5517 ac_cv_lbl_proc_net_dev=no
5519 if test $ac_cv_lbl_proc_net_dev = yes; then
5521 cat >>confdefs.h <<\_ACEOF
5522 #define HAVE_PROC_NET_DEV 1
5526 echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
5527 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6
5529 # Check for Endace DAG card support.
5531 # Check whether --with-dag or --without-dag was given.
5532 if test "${with_dag+set}" = set; then
5535 if test "$withval" = no
5537 # User doesn't want DAG support.
5539 elif test "$withval" = yes
5541 # User wants DAG support but hasn't specified a directory.
5544 # User wants DAG support and has specified a directory, so use the provided value.
5552 # Use DAG API if present, otherwise don't
5559 # Check whether --with-dag-includes or --without-dag-includes was given.
5560 if test "${with_dag_includes+set}" = set; then
5561 withval="$with_dag_includes"
5563 # User wants DAG support and has specified a header directory, so use the provided value.
5565 dag_include_dir=$withval
5570 # Check whether --with-dag-libraries or --without-dag-libraries was given.
5571 if test "${with_dag_libraries+set}" = set; then
5572 withval="$with_dag_libraries"
5574 # User wants DAG support and has specified a library directory, so use the provided value.
5576 dag_lib_dir=$withval
5583 # We support the DAG API if we're on Linux or BSD, or if we're
5584 # building a DAG-only libpcap.
5589 # If the user explicitly requested DAG, tell them it's not
5592 # If they expressed no preference, don't include it.
5594 if test $want_dag = yes; then
5595 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
5596 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
5597 { (exit 1); exit 1; }; }
5598 elif test $want_dag = yes; then
5604 ac_cv_lbl_dag_api=no
5605 if test "$want_dag" != no; then
5607 echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
5608 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6
5610 # If necessary, set default paths for DAG API headers and libraries.
5611 if test -z "$dag_root"; then
5615 if test -z "$dag_include_dir"; then
5616 dag_include_dir="$dag_root/include"
5619 if test -z "$dag_lib_dir"; then
5620 dag_lib_dir="$dag_root/lib"
5623 if test -z "$dag_tools_dir"; then
5624 dag_tools_dir="$dag_root/tools"
5627 if test -r $dag_include_dir/dagapi.h; then
5628 ac_cv_lbl_dag_api=yes
5630 echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
5631 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6
5634 if test $ac_cv_lbl_dag_api = yes; then
5636 echo "$as_me:$LINENO: checking dagapi.o" >&5
5637 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6
5639 if test -r $dag_tools_dir/dagapi.o; then
5641 dagapi_obj=$dag_tools_dir/dagapi.o
5642 elif test -r $dag_lib_dir/dagapi.o; then
5644 dagapi_obj=$dag_lib_dir/dagapi.o
5645 elif test -r $dag_lib_dir/libdag.a; then
5647 ar x $dag_lib_dir/libdag.a dagapi.o
5648 if test -r ./dagapi.o; then
5649 dagapi_obj=./dagapi.o
5653 if test $dagapi_obj = no; then
5654 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
5655 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
5656 ac_cv_lbl_dag_api=no
5658 echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
5659 echo "${ECHO_T}yes ($dagapi_obj)" >&6
5663 if test $ac_cv_lbl_dag_api = yes; then
5665 echo "$as_me:$LINENO: checking dagopts.o" >&5
5666 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6
5668 if test -r $dag_tools_dir/dagopts.o; then
5670 dagopts_obj=$dag_tools_dir/dagopts.o
5671 elif test -r $dag_lib_dir/dagopts.o; then
5673 dagopts_obj=$dag_lib_dir/dagopts.o
5674 elif test -r $dag_lib_dir/libdag.a; then
5676 ar x $dag_lib_dir/libdag.a dagopts.o
5677 if test -r ./dagopts.o; then
5678 dagopts_obj=./dagopts.o
5682 if test $dagopts_obj = no; then
5683 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
5684 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
5685 ac_cv_lbl_dag_api=no
5687 echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
5688 echo "${ECHO_T}yes ($dagopts_obj)" >&6
5692 if test $ac_cv_lbl_dag_api = yes; then
5693 # Under 2.5.x only we need to add dagreg.o.
5694 if test -r $dag_include_dir/dagreg.h; then
5695 echo "$as_me:$LINENO: checking dagreg.o" >&5
5696 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6
5698 if test -r $dag_lib_dir/dagreg.o; then
5699 # Object file is ready and waiting.
5700 dagreg_obj=$dag_lib_dir/dagreg.o
5701 elif test -r $dag_lib_dir/libdag.a; then
5702 # Extract from libdag.a.
5703 ar x $dag_lib_dir/libdag.a dagreg.o
5704 if test -r ./dagreg.o; then
5705 dagreg_obj=./dagreg.o
5709 if test $dagreg_obj = no; then
5710 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
5711 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6
5712 ac_cv_lbl_dag_api=no
5714 echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
5715 echo "${ECHO_T}yes ($dagreg_obj)" >&6
5720 if test $ac_cv_lbl_dag_api = yes; then
5721 V_INCLS="$V_INCLS -I$dag_include_dir"
5722 V_LIBS="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
5723 if test $V_PCAP != dag ; then
5727 # See if we can find a general version string.
5728 # Don't need to save and restore LIBS to prevent -ldag being
5729 # included if there's a found-action (arg 3).
5730 saved_ldflags=$LDFLAGS
5731 LDFLAGS="-L$dag_lib_dir"
5732 echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
5733 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6
5734 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 ac_check_lib_save_LIBS=$LIBS
5739 cat >conftest.$ac_ext <<_ACEOF
5740 #line $LINENO "configure"
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5747 /* Override any gcc2 internal prototype to avoid an error. */
5751 /* We use char because int might match the return type of a gcc2
5752 builtin and then its argument prototype would still apply. */
5753 char dag_attach_stream ();
5757 dag_attach_stream ();
5762 rm -f conftest.$ac_objext conftest$ac_exeext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5764 (eval $ac_link) 2>&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } &&
5768 { ac_try='test -s conftest$ac_exeext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 ac_cv_lib_dag_dag_attach_stream=yes
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 ac_cv_lib_dag_dag_attach_stream=no
5781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5782 LIBS=$ac_check_lib_save_LIBS
5784 echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
5785 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6
5786 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
5792 LDFLAGS=$saved_ldflags
5794 if test "$dag_version" = 2.5.x; then
5796 cat >>confdefs.h <<\_ACEOF
5797 #define HAVE_DAG_STREAMS_API 1
5802 # See if we can find a specific version string.
5803 echo "$as_me:$LINENO: checking the DAG API version" >&5
5804 echo $ECHO_N "checking the DAG API version... $ECHO_C" >&6
5805 if test -r "$dag_root/VERSION"; then
5806 dag_version="`cat $dag_root/VERSION`"
5808 echo "$as_me:$LINENO: result: $dag_version" >&5
5809 echo "${ECHO_T}$dag_version" >&6
5811 cat >>confdefs.h <<\_ACEOF
5812 #define HAVE_DAG_API 1
5817 if test $ac_cv_lbl_dag_api = no; then
5818 if test "$want_dag" = yes; then
5819 # User wanted DAG support but we couldn't find it.
5820 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
5821 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
5822 { (exit 1); exit 1; }; }
5825 if test "$V_PCAP" = dag; then
5826 # User requested "dag" capture type but the DAG API wasn't
5828 { { 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
5829 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;}
5830 { (exit 1); exit 1; }; }
5835 # Check whether --with-septel or --without-septel was given.
5836 if test "${with_septel+set}" = set; then
5837 withval="$with_septel"
5839 if test "$withval" = no
5842 elif test "$withval" = yes
5848 septel_root=$withval
5854 # Use Septel API if present, otherwise don't
5856 want_septel=ifpresent
5857 septel_root=./../septel
5860 ac_cv_lbl_septel_api=no
5864 # We support the Septel API if we're on Linux, or if we're building
5865 # a Septel-only libpcap.
5870 # If the user explicitly requested Septel, tell them it's not
5873 # If they expressed no preference, don't include it.
5875 if test $want_septel = yes; then
5876 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
5877 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
5878 { (exit 1); exit 1; }; }
5879 elif test $want_septel = yes; then
5885 if test "$with_septel" != no; then
5886 echo "$as_me:$LINENO: checking whether we have Septel API" >&5
5887 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6
5889 if test -z "$septel_root"; then
5890 septel_root=$srcdir/../septel
5894 septel_tools_dir="$septel_root"
5895 septel_include_dir="$septel_root/INC"
5896 DEF="-DHAVE_SEPTEL_API"
5898 ac_cv_lbl_septel_api=no
5899 if test -r "$septel_include_dir/msg.h"; then
5900 V_INCLS="$V_INCLS -I$septel_include_dir"
5901 V_DEFS="$V_DEFS $DEF"
5902 V_LIBS="$V_LIBS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o "
5904 if test "$V_PCAP" != septel ; then
5905 SSRC="pcap-septel.c"
5908 ac_cv_lbl_septel_api=yes
5911 echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
5912 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6
5913 if test $ac_cv_lbl_septel_api = no; then
5914 if test "$want_septel" = yes; then
5915 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
5916 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
5917 { (exit 1); exit 1; }; }
5921 cat >>confdefs.h <<\_ACEOF
5922 #define HAVE_SEPTEL_API 1
5928 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
5929 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
5930 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
5931 { (exit 1); exit 1; }; }
5936 # Check whether --with-flex or --without-flex was given.
5937 if test "${with_flex+set}" = set; then
5938 withval="$with_flex"
5942 # Check whether --with-bison or --without-bison was given.
5943 if test "${with_bison+set}" = set; then
5944 withval="$with_bison"
5947 if test "$with_flex" = no ; then
5952 # Extract the first word of "$ac_prog", so it can be a program name with args.
5953 set dummy $ac_prog; ac_word=$2
5954 echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956 if test "${ac_cv_prog_V_LEX+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 if test -n "$V_LEX"; then
5960 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_V_LEX="$ac_prog"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 V_LEX=$ac_cv_prog_V_LEX
5979 if test -n "$V_LEX"; then
5980 echo "$as_me:$LINENO: result: $V_LEX" >&5
5981 echo "${ECHO_T}$V_LEX" >&6
5983 echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5987 test -n "$V_LEX" && break
5989 test -n "$V_LEX" || V_LEX="lex"
5992 if test "$V_LEX" = flex ; then
5993 # The -V flag was added in 2.4
5994 echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
5995 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6
5996 if test "${ac_cv_lbl_flex_v24+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 if flex -V >/dev/null 2>&1; then
6000 ac_cv_lbl_flex_v24=yes
6002 ac_cv_lbl_flex_v24=no
6006 echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
6007 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6
6008 if test $ac_cv_lbl_flex_v24 = no ; then
6009 s="2.4 or higher required"
6010 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
6011 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
6015 if test "$with_bison" = no ; then
6018 for ac_prog in bison
6020 # Extract the first word of "$ac_prog", so it can be a program name with args.
6021 set dummy $ac_prog; ac_word=$2
6022 echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6024 if test "${ac_cv_prog_V_YACC+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 if test -n "$V_YACC"; then
6028 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_V_YACC="$ac_prog"
6038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 V_YACC=$ac_cv_prog_V_YACC
6047 if test -n "$V_YACC"; then
6048 echo "$as_me:$LINENO: result: $V_YACC" >&5
6049 echo "${ECHO_T}$V_YACC" >&6
6051 echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6
6055 test -n "$V_YACC" && break
6057 test -n "$V_YACC" || V_YACC="yacc"
6060 if test "$V_YACC" = bison ; then
6063 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
6064 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
6065 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
6069 if test "$V_LEX" = flex -a -n "pcap_" ; then
6070 V_LEX="$V_LEX -Ppcap_"
6071 V_YACC="$V_YACC -p pcap_"
6073 if test "$V_LEX" = lex ; then
6074 # Some versions of lex can't handle the definitions section of scanner.l .
6075 # Try lexing it and complain if it can't deal.
6076 echo "$as_me:$LINENO: checking for capable lex" >&5
6077 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6
6078 if test "${tcpdump_cv_capable_lex+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 if lex -t scanner.l > /dev/null 2>&1; then
6082 tcpdump_cv_capable_lex=yes
6084 tcpdump_cv_capable_lex=insufficient
6087 echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
6088 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6
6089 if test $tcpdump_cv_capable_lex = insufficient ; then
6090 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
6091 libpcap. flex is a lex replacement that has many advantages, including
6092 being able to compile libpcap. For more information, see
6093 http://www.gnu.org/software/flex/flex.html ." >&5
6094 echo "$as_me: error: Your operating system's lex is insufficient to compile
6095 libpcap. flex is a lex replacement that has many advantages, including
6096 being able to compile libpcap. For more information, see
6097 http://www.gnu.org/software/flex/flex.html ." >&2;}
6098 { (exit 1); exit 1; }; }
6107 cat >>confdefs.h <<\_ACEOF
6115 cat >>confdefs.h <<\_ACEOF
6116 #define HAVE_HPUX9 1
6129 cat >>confdefs.h <<\_ACEOF
6130 #define HAVE_HPUX10_20_OR_LATER 1
6136 echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
6137 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6
6138 if test "${ac_cv_cc_sinix_defined+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 cat >conftest.$ac_ext <<_ACEOF
6142 #line $LINENO "configure"
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6157 rm -f conftest.$ac_objext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -s conftest.$ac_objext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_cc_sinix_defined=yes
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6174 ac_cv_cc_sinix_defined=no
6176 rm -f conftest.$ac_objext conftest.$ac_ext
6179 echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
6180 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6
6181 if test $ac_cv_cc_sinix_defined = no ; then
6183 cat >>confdefs.h <<\_ACEOF
6192 cat >>confdefs.h <<\_ACEOF
6193 #define HAVE_SOLARIS 1
6200 V_CCOPT="$V_CCOPT -fno-common"
6204 if test -n "$ac_tool_prefix"; then
6205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6207 echo "$as_me:$LINENO: checking for $ac_word" >&5
6208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6209 if test "${ac_cv_prog_RANLIB+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 if test -n "$RANLIB"; then
6213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 RANLIB=$ac_cv_prog_RANLIB
6232 if test -n "$RANLIB"; then
6233 echo "$as_me:$LINENO: result: $RANLIB" >&5
6234 echo "${ECHO_T}$RANLIB" >&6
6236 echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6
6241 if test -z "$ac_cv_prog_RANLIB"; then
6242 ac_ct_RANLIB=$RANLIB
6243 # Extract the first word of "ranlib", so it can be a program name with args.
6244 set dummy ranlib; ac_word=$2
6245 echo "$as_me:$LINENO: checking for $ac_word" >&5
6246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6247 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 if test -n "$ac_ct_RANLIB"; then
6251 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260 ac_cv_prog_ac_ct_RANLIB="ranlib"
6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6270 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6271 if test -n "$ac_ct_RANLIB"; then
6272 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6273 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6275 echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6
6279 RANLIB=$ac_ct_RANLIB
6281 RANLIB="$ac_cv_prog_RANLIB"
6286 if test "${LBL_CFLAGS+set}" = set; then
6287 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
6289 if test -f .devel ; then
6290 if test "$GCC" = yes ; then
6291 if test "${LBL_CFLAGS+set}" != set; then
6292 if test "$ac_cv_prog_cc_g" = yes ; then
6293 V_CCOPT="-g $V_CCOPT"
6295 V_CCOPT="$V_CCOPT -Wall"
6296 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
6297 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
6301 case "$target_os" in
6304 V_CCOPT="$V_CCOPT -n32"
6311 os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
6313 if test -f $name ; then
6314 ln -s $name os-proto.h
6316 cat >>confdefs.h <<\_ACEOF
6317 #define HAVE_OS_PROTO_H 1
6321 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
6322 echo "$as_me: WARNING: can't find $name" >&2;}
6326 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
6327 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
6328 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 cat >conftest.$ac_ext <<_ACEOF
6332 #line $LINENO "configure"
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6339 # include <sys/types.h>
6340 # include <sys/socket.h>
6344 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
6349 rm -f conftest.$ac_objext
6350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6351 (eval $ac_compile) 2>&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -s conftest.$ac_objext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 ac_cv_lbl_sockaddr_has_sa_len=yes
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 ac_cv_lbl_sockaddr_has_sa_len=no
6368 rm -f conftest.$ac_objext conftest.$ac_ext
6371 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
6372 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
6373 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
6375 cat >>confdefs.h <<\_ACEOF
6376 #define HAVE_SOCKADDR_SA_LEN 1
6381 echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
6382 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6
6383 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 cat >conftest.$ac_ext <<_ACEOF
6387 #line $LINENO "configure"
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6394 # include <sys/types.h>
6395 # include <sys/socket.h>
6399 u_int i = sizeof (struct sockaddr_storage)
6404 rm -f conftest.$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -s conftest.$ac_objext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_cv_lbl_has_sockaddr_storage=yes
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6421 ac_cv_lbl_has_sockaddr_storage=no
6423 rm -f conftest.$ac_objext conftest.$ac_ext
6426 echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
6427 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6
6428 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
6430 cat >>confdefs.h <<\_ACEOF
6431 #define HAVE_SOCKADDR_STORAGE 1
6436 echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
6437 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6
6438 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 cat >conftest.$ac_ext <<_ACEOF
6442 #line $LINENO "configure"
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6449 # include <sys/types.h>
6450 # include <sys/dlpi.h>
6451 # include <sys/dlpi_ext.h>
6455 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
6460 rm -f conftest.$ac_objext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462 (eval $ac_compile) 2>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try='test -s conftest.$ac_objext'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6472 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
6474 echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6477 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
6479 rm -f conftest.$ac_objext conftest.$ac_ext
6482 echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
6483 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6
6484 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
6486 cat >>confdefs.h <<\_ACEOF
6487 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
6492 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
6493 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
6494 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 # These are CPU types where:
6502 # the CPU faults on an unaligned access, but at least some
6503 # OSes that support that CPU catch the fault and simulate
6504 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
6505 # the simulation is slow, so we don't want to use it;
6507 # the CPU, I infer (from the old
6509 # XXX: should also check that they don't do weird things (like on arm)
6511 # comment) doesn't fault on unaligned accesses, but doesn't
6512 # do a normal unaligned fetch, either (e.g., presumably, ARM);
6514 # for whatever reason, the test program doesn't work
6515 # (this has been claimed to be the case for several of those
6516 # CPUs - I don't know what the problem is; the problem
6517 # was reported as "the test program dumps core" for SuperH,
6518 # but that's what the test program is *supposed* to do -
6519 # it dumps core before it writes anything, so the test
6520 # for an empty output file should find an empty output
6521 # file and conclude that unaligned accesses don't work).
6523 # This run-time test won't work if you're cross-compiling, so
6524 # in order to support cross-compiling for a particular CPU,
6525 # we have to wire in the list of CPU types anyway, as far as
6526 # I know, so perhaps we should just have a set of CPUs on
6527 # which we know it doesn't work, a set of CPUs on which we
6528 # know it does work, and have the script just fail on other
6529 # cpu types and update it when such a failure occurs.
6531 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
6532 ac_cv_lbl_unaligned_fail=yes
6536 cat >conftest.c <<EOF
6537 # include <sys/types.h>
6538 # include <sys/wait.h>
6540 unsigned char a[5] = { 1, 2, 3, 4, 5 };
6545 /* avoid "core dumped" message */
6551 pid = waitpid(pid, &status, 0);
6554 exit(!WIFEXITED(status));
6557 i = *(unsigned int *)&a[1];
6562 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
6563 conftest.c $LIBS >/dev/null 2>&1
6564 if test ! -x conftest ; then
6565 ac_cv_lbl_unaligned_fail=yes
6567 ./conftest >conftest.out
6568 if test ! -s conftest.out ; then
6569 ac_cv_lbl_unaligned_fail=yes
6571 ac_cv_lbl_unaligned_fail=no
6574 rm -f conftest* core core.conftest
6579 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
6580 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
6581 if test $ac_cv_lbl_unaligned_fail = yes ; then
6583 cat >>confdefs.h <<\_ACEOF
6590 # Makefile.in includes rules to generate version.h, so we assume
6591 # that it will be generated if autoconf is used.
6594 cat >>confdefs.h <<\_ACEOF
6595 #define HAVE_VERSION_H 1
6600 ln -s ${srcdir}/bpf/net net
6614 # Find a good install program. We prefer a C program (faster),
6615 # so one script is as good as another. But avoid the broken or
6616 # incompatible versions:
6617 # SysV /etc/install, /usr/sbin/install
6618 # SunOS /usr/etc/install
6619 # IRIX /sbin/install
6621 # AmigaOS /C/install, which installs bootblocks on floppy discs
6622 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6623 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6624 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6625 # ./install, which can be erroneously created by make from ./install.sh.
6626 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6627 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6628 if test -z "$INSTALL"; then
6629 if test "${ac_cv_path_install+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 test -z "$as_dir" && as_dir=.
6637 # Account for people who put trailing slashes in PATH elements.
6639 ./ | .// | /cC/* | \
6640 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6643 # OSF1 and SCO ODT 3.0 have their own names for install.
6644 # Don't use installbsd from OSF since it installs stuff as root
6646 for ac_prog in ginstall scoinst install; do
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6649 if test $ac_prog = install &&
6650 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6651 # AIX install. It has an incompatible calling convention.
6653 elif test $ac_prog = install &&
6654 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6655 # program-specific install script used by HP pwplus--don't use.
6658 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6670 if test "${ac_cv_path_install+set}" = set; then
6671 INSTALL=$ac_cv_path_install
6673 # As a last resort, use the slow shell script. We don't cache a
6674 # path for INSTALL within a source directory, because that will
6675 # break other packages using the cache if that directory is
6676 # removed, or if the path is relative.
6677 INSTALL=$ac_install_sh
6680 echo "$as_me:$LINENO: result: $INSTALL" >&5
6681 echo "${ECHO_T}$INSTALL" >&6
6683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6684 # It thinks the first close brace ends the variable substitution.
6685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6687 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6692 ac_config_headers="$ac_config_headers config.h"
6695 ac_config_files="$ac_config_files Makefile"
6696 cat >confcache <<\_ACEOF
6697 # This file is a shell script that caches the results of configure
6698 # tests run on this system so they can be shared between configure
6699 # scripts and configure runs, see configure's option --config-cache.
6700 # It is not useful on other systems. If it contains results you don't
6701 # want to keep, you may remove or edit it.
6703 # config.status only pays attention to the cache file if you give it
6704 # the --recheck option to rerun configure.
6706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6712 # The following way of writing the cache mishandles newlines in values,
6713 # but we know of no workaround that is simple, portable, and efficient.
6714 # So, don't put newlines in cache variables' values.
6715 # Ultrix sh set writes to stderr and can't be redirected directly,
6716 # and sets the high bit in the cache file unless we assign to the vars.
6719 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6721 # `set' does not quote correctly, so add quotes (double-quote
6722 # substitution turns \\\\ into \\, and sed turns \\ into \).
6725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6728 # `set' quotes correctly as required by POSIX, so do not add quotes.
6730 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6739 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6741 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6742 if test -w $cache_file; then
6743 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6744 cat confcache >$cache_file
6746 echo "not updating unwritable cache $cache_file"
6751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6752 # Let make expand exec_prefix.
6753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6755 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6756 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6757 # trailing colons and then remove the whole line if VPATH becomes empty
6758 # (actually we leave an empty line to preserve line numbers).
6759 if test "x$srcdir" = x.; then
6760 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6761 s/:*\$(srcdir):*/:/;
6762 s/:*\${srcdir}:*/:/;
6764 s/^\([^=]*=[ ]*\):*/\1/;
6770 DEFS=-DHAVE_CONFIG_H
6774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6775 # 1. Remove the extension, and $U if already installed.
6776 ac_i=`echo "$ac_i" |
6777 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6779 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6780 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6784 LTLIBOBJS=$ac_ltlibobjs
6788 : ${CONFIG_STATUS=./config.status}
6789 ac_clean_files_save=$ac_clean_files
6790 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6791 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6792 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6793 cat >$CONFIG_STATUS <<_ACEOF
6795 # Generated by $as_me.
6796 # Run this file to recreate the current configuration.
6797 # Compiler output produced by configure, useful for debugging
6798 # configure, is in config.log if it exists.
6803 SHELL=\${CONFIG_SHELL-$SHELL}
6806 cat >>$CONFIG_STATUS <<\_ACEOF
6807 ## --------------------- ##
6808 ## M4sh Initialization. ##
6809 ## --------------------- ##
6811 # Be Bourne compatible
6812 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6815 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6816 # is contrary to our usage. Disable this feature.
6817 alias -g '${1+"$@"}'='"$@"'
6818 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6822 # Support unset when possible.
6823 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6830 # Work around bugs in pre-3.0 UWIN ksh.
6831 $as_unset ENV MAIL MAILPATH
6838 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6839 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6840 LC_TELEPHONE LC_TIME
6842 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6843 eval $as_var=C; export $as_var
6849 # Required to use basename.
6850 if expr a : '\(a\)' >/dev/null 2>&1; then
6856 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6857 as_basename=basename
6863 # Name of the executable.
6864 as_me=`$as_basename "$0" ||
6865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6866 X"$0" : 'X\(//\)$' \| \
6867 X"$0" : 'X\(/\)$' \| \
6868 . : '\(.\)' 2>/dev/null ||
6870 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6871 /^X\/\(\/\/\)$/{ s//\1/; q; }
6872 /^X\/\(\/\).*/{ s//\1/; q; }
6876 # PATH needs CR, and LINENO needs CR and PATH.
6877 # Avoid depending upon Character Ranges.
6878 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6879 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6880 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6881 as_cr_digits='0123456789'
6882 as_cr_alnum=$as_cr_Letters$as_cr_digits
6884 # The user is always right.
6885 if test "${PATH_SEPARATOR+set}" != set; then
6886 echo "#! /bin/sh" >conf$$.sh
6887 echo "exit 0" >>conf$$.sh
6889 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6900 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6901 test "x$as_lineno_1" != "x$as_lineno_2" &&
6902 test "x$as_lineno_3" = "x$as_lineno_2" || {
6903 # Find who we are. Look in the path if we contain no path at all
6906 *[\\/]* ) as_myself=$0 ;;
6907 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 test -z "$as_dir" && as_dir=.
6912 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6917 # We did not find ourselves, most probably we were run as `sh COMMAND'
6918 # in which case we are not to be found in the path.
6919 if test "x$as_myself" = x; then
6922 if test ! -f "$as_myself"; then
6923 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6924 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6925 { (exit 1); exit 1; }; }
6927 case $CONFIG_SHELL in
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6933 test -z "$as_dir" && as_dir=.
6934 for as_base in sh bash ksh sh5; do
6937 if ("$as_dir/$as_base" -c '
6940 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6941 test "x$as_lineno_1" != "x$as_lineno_2" &&
6942 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6943 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6944 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6945 CONFIG_SHELL=$as_dir/$as_base
6947 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6955 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6956 # uniformly replaced by the line number. The first 'sed' inserts a
6957 # line-number line before each line; the second 'sed' does the real
6958 # work. The second script uses 'N' to pair each line-number line
6959 # with the numbered line, and appends trailing '-' during
6960 # substitution so that $LINENO is not a special case at line end.
6961 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6962 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6963 sed '=' <$as_myself |
6968 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6971 s,^['$as_cr_digits']*\n,,
6973 chmod +x $as_me.lineno ||
6974 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6975 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6976 { (exit 1); exit 1; }; }
6978 # Don't try to exec as it changes $[0], causing all sort of problems
6979 # (the dirname of $[0] is not the place where we might find the
6980 # original and so on. Autoconf is especially sensible to this).
6982 # Exit status is that of the last command.
6987 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6988 *c*,-n*) ECHO_N= ECHO_C='
6990 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6991 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6994 if expr a : '\(a\)' >/dev/null 2>&1; then
7000 rm -f conf$$ conf$$.exe conf$$.file
7002 if ln -s conf$$.file conf$$ 2>/dev/null; then
7003 # We could just check for DJGPP; but this test a) works b) is more generic
7004 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7005 if test -f conf$$.exe; then
7006 # Don't use ln at all; we don't have any links
7011 elif ln conf$$.file conf$$ 2>/dev/null; then
7016 rm -f conf$$ conf$$.exe conf$$.file
7018 if mkdir -p . 2>/dev/null; then
7024 as_executable_p="test -f"
7026 # Sed expression to map a string onto a valid CPP name.
7027 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7029 # Sed expression to map a string onto a valid variable name.
7030 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7034 # We need space, tab and new line, in precisely that order.
7044 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7045 # report actual input values of CONFIG_FILES etc. instead of their
7046 # values after options handling. Logging --version etc. is OK.
7050 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7051 ## Running $as_me. ##
7056 This file was extended by $as_me, which was
7057 generated by GNU Autoconf 2.57. Invocation command line was
7059 CONFIG_FILES = $CONFIG_FILES
7060 CONFIG_HEADERS = $CONFIG_HEADERS
7061 CONFIG_LINKS = $CONFIG_LINKS
7062 CONFIG_COMMANDS = $CONFIG_COMMANDS
7066 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7070 # Files that config.status was made for.
7071 if test -n "$ac_config_files"; then
7072 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7075 if test -n "$ac_config_headers"; then
7076 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7079 if test -n "$ac_config_links"; then
7080 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7083 if test -n "$ac_config_commands"; then
7084 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7087 cat >>$CONFIG_STATUS <<\_ACEOF
7090 \`$as_me' instantiates files from templates according to the
7091 current configuration.
7093 Usage: $0 [OPTIONS] [FILE]...
7095 -h, --help print this help, then exit
7096 -V, --version print version number, then exit
7097 -q, --quiet do not print progress messages
7098 -d, --debug don't remove temporary files
7099 --recheck update $as_me by reconfiguring in the same conditions
7100 --file=FILE[:TEMPLATE]
7101 instantiate the configuration file FILE
7102 --header=FILE[:TEMPLATE]
7103 instantiate the configuration header FILE
7105 Configuration files:
7108 Configuration headers:
7111 Report bugs to <bug-autoconf@gnu.org>."
7114 cat >>$CONFIG_STATUS <<_ACEOF
7117 configured by $0, generated by GNU Autoconf 2.57,
7118 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7120 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7121 Free Software Foundation, Inc.
7122 This config.status script is free software; the Free Software Foundation
7123 gives unlimited permission to copy, distribute and modify it."
7128 cat >>$CONFIG_STATUS <<\_ACEOF
7129 # If no file are specified by the user, then we need to provide default
7130 # value. By we need to know if files were specified by the user.
7136 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7137 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7145 *) # This is not an option, so the user has probably given explicit
7148 ac_need_defaults=false;;
7152 # Handling of the options.
7154 cat >>$CONFIG_STATUS <<\_ACEOF
7155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7157 --version | --vers* | -V )
7158 echo "$ac_cs_version"; exit 0 ;;
7160 # Conflict between --help and --header
7161 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7162 Try \`$0 --help' for more information." >&5
7163 echo "$as_me: error: ambiguous option: $1
7164 Try \`$0 --help' for more information." >&2;}
7165 { (exit 1); exit 1; }; };;
7166 --help | --hel | -h )
7167 echo "$ac_cs_usage"; exit 0 ;;
7168 --debug | --d* | -d )
7170 --file | --fil | --fi | --f )
7172 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7173 ac_need_defaults=false;;
7174 --header | --heade | --head | --hea )
7176 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7177 ac_need_defaults=false;;
7178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7179 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7183 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7184 Try \`$0 --help' for more information." >&5
7185 echo "$as_me: error: unrecognized option: $1
7186 Try \`$0 --help' for more information." >&2;}
7187 { (exit 1); exit 1; }; } ;;
7189 *) ac_config_targets="$ac_config_targets $1" ;;
7195 ac_configure_extra_args=
7197 if $ac_cs_silent; then
7199 ac_configure_extra_args="$ac_configure_extra_args --silent"
7203 cat >>$CONFIG_STATUS <<_ACEOF
7204 if \$ac_cs_recheck; then
7205 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7206 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7215 cat >>$CONFIG_STATUS <<\_ACEOF
7216 for ac_config_target in $ac_config_targets
7218 case "$ac_config_target" in
7219 # Handling of arguments.
7220 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7221 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7222 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7223 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7224 { (exit 1); exit 1; }; };;
7228 # If the user did not use the arguments to specify the items to instantiate,
7229 # then the envvar interface is used. Set only those that are not.
7230 # We use the long form for the default assignment because of an extremely
7231 # bizarre bug on SunOS 4.1.3.
7232 if $ac_need_defaults; then
7233 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7234 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7237 # Have a temporary directory for convenience. Make it in the build tree
7238 # simply because there is no reason to put it here, and in addition,
7239 # creating and moving files from /tmp can sometimes cause problems.
7240 # Create a temporary directory, and hook for its removal unless debugging.
7243 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7244 trap '{ (exit 1); exit 1; }' 1 2 13 15
7247 # Create a (secure) tmp directory for tmp files.
7250 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7251 test -n "$tmp" && test -d "$tmp"
7254 tmp=./confstat$$-$RANDOM
7255 (umask 077 && mkdir $tmp)
7258 echo "$me: cannot create a temporary directory in ." >&2
7259 { (exit 1); exit 1; }
7264 cat >>$CONFIG_STATUS <<_ACEOF
7267 # CONFIG_FILES section.
7270 # No need to generate the scripts if there are no CONFIG_FILES.
7271 # This happens for instance when ./config.status config.h
7272 if test -n "\$CONFIG_FILES"; then
7273 # Protect against being on the right side of a sed subst in config.status.
7274 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7275 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7276 s,@SHELL@,$SHELL,;t t
7277 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7278 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7279 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7280 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7281 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7282 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7283 s,@exec_prefix@,$exec_prefix,;t t
7284 s,@prefix@,$prefix,;t t
7285 s,@program_transform_name@,$program_transform_name,;t t
7286 s,@bindir@,$bindir,;t t
7287 s,@sbindir@,$sbindir,;t t
7288 s,@libexecdir@,$libexecdir,;t t
7289 s,@datadir@,$datadir,;t t
7290 s,@sysconfdir@,$sysconfdir,;t t
7291 s,@sharedstatedir@,$sharedstatedir,;t t
7292 s,@localstatedir@,$localstatedir,;t t
7293 s,@libdir@,$libdir,;t t
7294 s,@includedir@,$includedir,;t t
7295 s,@oldincludedir@,$oldincludedir,;t t
7296 s,@infodir@,$infodir,;t t
7297 s,@mandir@,$mandir,;t t
7298 s,@build_alias@,$build_alias,;t t
7299 s,@host_alias@,$host_alias,;t t
7300 s,@target_alias@,$target_alias,;t t
7302 s,@ECHO_C@,$ECHO_C,;t t
7303 s,@ECHO_N@,$ECHO_N,;t t
7304 s,@ECHO_T@,$ECHO_T,;t t
7306 s,@build@,$build,;t t
7307 s,@build_cpu@,$build_cpu,;t t
7308 s,@build_vendor@,$build_vendor,;t t
7309 s,@build_os@,$build_os,;t t
7311 s,@host_cpu@,$host_cpu,;t t
7312 s,@host_vendor@,$host_vendor,;t t
7313 s,@host_os@,$host_os,;t t
7314 s,@target@,$target,;t t
7315 s,@target_cpu@,$target_cpu,;t t
7316 s,@target_vendor@,$target_vendor,;t t
7317 s,@target_os@,$target_os,;t t
7318 s,@SHLICC2@,$SHLICC2,;t t
7320 s,@CFLAGS@,$CFLAGS,;t t
7321 s,@LDFLAGS@,$LDFLAGS,;t t
7322 s,@CPPFLAGS@,$CPPFLAGS,;t t
7323 s,@ac_ct_CC@,$ac_ct_CC,;t t
7324 s,@EXEEXT@,$EXEEXT,;t t
7325 s,@OBJEXT@,$OBJEXT,;t t
7327 s,@EGREP@,$EGREP,;t t
7328 s,@LIBOBJS@,$LIBOBJS,;t t
7329 s,@V_LEX@,$V_LEX,;t t
7330 s,@V_YACC@,$V_YACC,;t t
7331 s,@RANLIB@,$RANLIB,;t t
7332 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7333 s,@V_CCOPT@,$V_CCOPT,;t t
7334 s,@V_DEFS@,$V_DEFS,;t t
7335 s,@V_INCLS@,$V_INCLS,;t t
7336 s,@V_LIBS@,$V_LIBS,;t t
7337 s,@V_PCAP@,$V_PCAP,;t t
7338 s,@V_FINDALLDEVS@,$V_FINDALLDEVS,;t t
7339 s,@V_RANLIB@,$V_RANLIB,;t t
7341 s,@DYEXT@,$DYEXT,;t t
7342 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7343 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7344 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7345 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7350 cat >>$CONFIG_STATUS <<\_ACEOF
7351 # Split the substitutions into bite-sized pieces for seds with
7352 # small command number limits, like on Digital OSF/1 and HP-UX.
7354 ac_sed_frag=1 # Number of current file.
7355 ac_beg=1 # First line for current file.
7356 ac_end=$ac_max_sed_lines # Line after last line for current file.
7359 while $ac_more_lines; do
7360 if test $ac_beg -gt 1; then
7361 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7363 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7365 if test ! -s $tmp/subs.frag; then
7368 # The purpose of the label and of the branching condition is to
7369 # speed up the sed processing (if there are no `@' at all, there
7370 # is no need to browse any of the substitutions).
7371 # These are the two extra sed commands mentioned above.
7373 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7374 if test -z "$ac_sed_cmds"; then
7375 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7377 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7379 ac_sed_frag=`expr $ac_sed_frag + 1`
7381 ac_end=`expr $ac_end + $ac_max_sed_lines`
7384 if test -z "$ac_sed_cmds"; then
7387 fi # test -n "$CONFIG_FILES"
7390 cat >>$CONFIG_STATUS <<\_ACEOF
7391 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7392 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7394 - | *:- | *:-:* ) # input from stdin
7396 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7397 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7398 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7399 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7400 * ) ac_file_in=$ac_file.in ;;
7403 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7404 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7405 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7406 X"$ac_file" : 'X\(//\)[^/]' \| \
7407 X"$ac_file" : 'X\(//\)$' \| \
7408 X"$ac_file" : 'X\(/\)' \| \
7409 . : '\(.\)' 2>/dev/null ||
7411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7412 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7413 /^X\(\/\/\)$/{ s//\1/; q; }
7414 /^X\(\/\).*/{ s//\1/; q; }
7416 { if $as_mkdir_p; then
7421 while test ! -d "$as_dir"; do
7422 as_dirs="$as_dir $as_dirs"
7423 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7425 X"$as_dir" : 'X\(//\)[^/]' \| \
7426 X"$as_dir" : 'X\(//\)$' \| \
7427 X"$as_dir" : 'X\(/\)' \| \
7428 . : '\(.\)' 2>/dev/null ||
7430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7432 /^X\(\/\/\)$/{ s//\1/; q; }
7433 /^X\(\/\).*/{ s//\1/; q; }
7436 test ! -n "$as_dirs" || mkdir $as_dirs
7437 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7438 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7439 { (exit 1); exit 1; }; }; }
7443 if test "$ac_dir" != .; then
7444 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7445 # A "../" for each directory in $ac_dir_suffix.
7446 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7448 ac_dir_suffix= ac_top_builddir=
7452 .) # No --srcdir option. We are building in place.
7454 if test -z "$ac_top_builddir"; then
7457 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7459 [\\/]* | ?:[\\/]* ) # Absolute path.
7460 ac_srcdir=$srcdir$ac_dir_suffix;
7461 ac_top_srcdir=$srcdir ;;
7463 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7464 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7466 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7468 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7469 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7470 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7471 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7475 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7476 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7479 if test x"$ac_file" != x-; then
7480 { echo "$as_me:$LINENO: creating $ac_file" >&5
7481 echo "$as_me: creating $ac_file" >&6;}
7484 # Let's still pretend it is `configure' which instantiates (i.e., don't
7485 # use $as_me), people would be surprised to read:
7486 # /* config.h. Generated by config.status. */
7487 if test x"$ac_file" = x-; then
7490 configure_input="$ac_file. "
7492 configure_input=$configure_input"Generated from `echo $ac_file_in |
7493 sed 's,.*/,,'` by configure."
7495 # First look for the input files in the build tree, otherwise in the
7497 ac_file_inputs=`IFS=:
7498 for f in $ac_file_in; do
7500 -) echo $tmp/stdin ;;
7502 # Absolute (can't be DOS-style, as IFS=:)
7503 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7504 echo "$as_me: error: cannot find input file: $f" >&2;}
7505 { (exit 1); exit 1; }; }
7508 if test -f "$f"; then
7511 elif test -f "$srcdir/$f"; then
7516 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7517 echo "$as_me: error: cannot find input file: $f" >&2;}
7518 { (exit 1); exit 1; }; }
7521 done` || { (exit 1); exit 1; }
7523 cat >>$CONFIG_STATUS <<_ACEOF
7527 cat >>$CONFIG_STATUS <<\_ACEOF
7529 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7530 s,@configure_input@,$configure_input,;t t
7531 s,@srcdir@,$ac_srcdir,;t t
7532 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7533 s,@top_srcdir@,$ac_top_srcdir,;t t
7534 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7535 s,@builddir@,$ac_builddir,;t t
7536 s,@abs_builddir@,$ac_abs_builddir,;t t
7537 s,@top_builddir@,$ac_top_builddir,;t t
7538 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7539 s,@INSTALL@,$ac_INSTALL,;t t
7540 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7542 if test x"$ac_file" != x-; then
7543 mv $tmp/out $ac_file
7551 cat >>$CONFIG_STATUS <<\_ACEOF
7554 # CONFIG_HEADER section.
7557 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7558 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7560 # ac_d sets the value in "#define NAME VALUE" lines.
7561 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7562 ac_dB='[ ].*$,\1#\2'
7565 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7566 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7567 ac_uB='$,\1#\2define\3'
7571 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7572 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7574 - | *:- | *:-:* ) # input from stdin
7576 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7577 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7578 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7579 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7580 * ) ac_file_in=$ac_file.in ;;
7583 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7584 echo "$as_me: creating $ac_file" >&6;}
7586 # First look for the input files in the build tree, otherwise in the
7588 ac_file_inputs=`IFS=:
7589 for f in $ac_file_in; do
7591 -) echo $tmp/stdin ;;
7593 # Absolute (can't be DOS-style, as IFS=:)
7594 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7595 echo "$as_me: error: cannot find input file: $f" >&2;}
7596 { (exit 1); exit 1; }; }
7599 if test -f "$f"; then
7602 elif test -f "$srcdir/$f"; then
7607 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7608 echo "$as_me: error: cannot find input file: $f" >&2;}
7609 { (exit 1); exit 1; }; }
7612 done` || { (exit 1); exit 1; }
7613 # Remove the trailing spaces.
7614 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7618 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7619 # `conftest.undefs', that substitutes the proper values into
7620 # config.h.in to produce config.h. The first handles `#define'
7621 # templates, and the second `#undef' templates.
7622 # And first: Protect against being on the right side of a sed subst in
7623 # config.status. Protect against being in an unquoted here document
7625 rm -f conftest.defines conftest.undefs
7626 # Using a here document instead of a string reduces the quoting nightmare.
7627 # Putting comments in sed scripts is not portable.
7629 # `end' is used to avoid that the second main sed command (meant for
7630 # 0-ary CPP macros) applies to n-ary macro definitions.
7631 # See the Autoconf documentation for `clear'.
7632 cat >confdef2sed.sed <<\_ACEOF
7637 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7639 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7642 # If some macros were called several times there might be several times
7643 # the same #defines, which is useless. Nevertheless, we may not want to
7644 # sort them, since we want the *last* AC-DEFINE to be honored.
7645 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7646 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7647 rm -f confdef2sed.sed
7649 # This sed command replaces #undef with comments. This is necessary, for
7650 # example, in the case of _POSIX_SOURCE, which is predefined and required
7651 # on some systems where configure will not decide to define it.
7652 cat >>conftest.undefs <<\_ACEOF
7653 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7656 # Break up conftest.defines because some shells have a limit on the size
7657 # of here documents, and old seds have small limits too (100 cmds).
7658 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7659 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7660 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7661 echo ' :' >>$CONFIG_STATUS
7663 while grep . conftest.defines >/dev/null
7665 # Write a limited-size here document to $tmp/defines.sed.
7666 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7667 # Speed up: don't consider the non `#define' lines.
7668 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7669 # Work around the forget-to-reset-the-flag bug.
7670 echo 't clr' >>$CONFIG_STATUS
7671 echo ': clr' >>$CONFIG_STATUS
7672 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7674 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7678 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7679 rm -f conftest.defines
7680 mv conftest.tail conftest.defines
7682 rm -f conftest.defines
7683 echo ' fi # grep' >>$CONFIG_STATUS
7684 echo >>$CONFIG_STATUS
7686 # Break up conftest.undefs because some shells have a limit on the size
7687 # of here documents, and old seds have small limits too (100 cmds).
7688 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7690 while grep . conftest.undefs >/dev/null
7692 # Write a limited-size here document to $tmp/undefs.sed.
7693 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7694 # Speed up: don't consider the non `#undef'
7695 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7696 # Work around the forget-to-reset-the-flag bug.
7697 echo 't clr' >>$CONFIG_STATUS
7698 echo ': clr' >>$CONFIG_STATUS
7699 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7701 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7705 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7706 rm -f conftest.undefs
7707 mv conftest.tail conftest.undefs
7709 rm -f conftest.undefs
7711 cat >>$CONFIG_STATUS <<\_ACEOF
7712 # Let's still pretend it is `configure' which instantiates (i.e., don't
7713 # use $as_me), people would be surprised to read:
7714 # /* config.h. Generated by config.status. */
7715 if test x"$ac_file" = x-; then
7716 echo "/* Generated by configure. */" >$tmp/config.h
7718 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7720 cat $tmp/in >>$tmp/config.h
7722 if test x"$ac_file" != x-; then
7723 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7724 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7725 echo "$as_me: $ac_file is unchanged" >&6;}
7727 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7729 X"$ac_file" : 'X\(//\)[^/]' \| \
7730 X"$ac_file" : 'X\(//\)$' \| \
7731 X"$ac_file" : 'X\(/\)' \| \
7732 . : '\(.\)' 2>/dev/null ||
7734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7736 /^X\(\/\/\)$/{ s//\1/; q; }
7737 /^X\(\/\).*/{ s//\1/; q; }
7739 { if $as_mkdir_p; then
7744 while test ! -d "$as_dir"; do
7745 as_dirs="$as_dir $as_dirs"
7746 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7747 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7748 X"$as_dir" : 'X\(//\)[^/]' \| \
7749 X"$as_dir" : 'X\(//\)$' \| \
7750 X"$as_dir" : 'X\(/\)' \| \
7751 . : '\(.\)' 2>/dev/null ||
7753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7755 /^X\(\/\/\)$/{ s//\1/; q; }
7756 /^X\(\/\).*/{ s//\1/; q; }
7759 test ! -n "$as_dirs" || mkdir $as_dirs
7760 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7761 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7762 { (exit 1); exit 1; }; }; }
7765 mv $tmp/config.h $ac_file
7774 cat >>$CONFIG_STATUS <<\_ACEOF
7776 { (exit 0); exit 0; }
7778 chmod +x $CONFIG_STATUS
7779 ac_clean_files=$ac_clean_files_save
7782 # configure is writing to config.log, and then calls config.status.
7783 # config.status does its own redirection, appending to config.log.
7784 # Unfortunately, on DOS this fails, as config.log is still kept open
7785 # by configure, so config.status won't be able to write to it; its
7786 # output is simply discarded. So we exec the FD to /dev/null,
7787 # effectively closing config.log, so it can be properly (re)opened and
7788 # appended to by config.status. When coming back to configure, we
7789 # need to make the FD available again.
7790 if test "$no_create" != yes; then
7792 ac_config_status_args=
7793 test "$silent" = yes &&
7794 ac_config_status_args="$ac_config_status_args --quiet"
7796 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7798 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7799 # would make configure fail if this is the last instruction.
7800 $ac_cs_success || { (exit 1); exit 1; }
7804 if test -f .devel ; then