2 # From configure.in Revision: 1.100.2.4 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="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 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 DAG support (located in directory DIR, if supplied). default=yes, on BSD and Linux, if present
859 --without-flex don't use flex
860 --without-bison don't use bison
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 ac_dir_suffix= ac_top_builddir=
893 .) # No --srcdir option. We are building in place.
895 if test -z "$ac_top_builddir"; then
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
915 # Check for guested configure; otherwise get Cygnus style configure.
916 if test -f $ac_srcdir/configure.gnu; then
918 $SHELL $ac_srcdir/configure.gnu --help=recursive
919 elif test -f $ac_srcdir/configure; then
921 $SHELL $ac_srcdir/configure --help=recursive
922 elif test -f $ac_srcdir/configure.ac ||
923 test -f $ac_srcdir/configure.in; then
927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
949 It was created by $as_me, which was
950 generated by GNU Autoconf 2.57. Invocation command line was
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
984 test -z "$as_dir" && as_dir=.
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Strip out --silent because we don't want to record it for future runs.
1003 # Also quote any args containing shell meta-characters.
1004 # Make two passes to allow for proper duplicate-argument suppression.
1009 ac_must_keep_next=false
1015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1019 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1023 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1025 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1026 if test $ac_must_keep_next = true; then
1027 ac_must_keep_next=false # Got value, back to normal.
1030 *=* | --config-cache | -C | -disable-* | --disable-* \
1031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1033 | -with-* | --with-* | -without-* | --without-* | --x)
1034 case "$ac_configure_args0 " in
1035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1038 -* ) ac_must_keep_next=true ;;
1041 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1048 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1049 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1051 # When interrupted or exit'd, cleanup temporary files, and complete
1052 # config.log. We remove comments because anyway the quotes in there
1053 # would cause problems or look ugly.
1054 # WARNING: Be sure not to use single quotes in there, as some shells,
1055 # such as our DU 5.0 friend, will then `close' the trap.
1056 trap 'exit_status=$?
1057 # Save into config.log some information that might help in debugging.
1062 ## ---------------- ##
1063 ## Cache variables. ##
1064 ## ---------------- ##
1067 # The following way of writing the cache mishandles newlines in values,
1070 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1073 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1085 ## ----------------- ##
1086 ## Output variables. ##
1087 ## ----------------- ##
1090 for ac_var in $ac_subst_vars
1092 eval ac_val=$`echo $ac_var`
1093 echo "$ac_var='"'"'$ac_val'"'"'"
1097 if test -n "$ac_subst_files"; then
1104 for ac_var in $ac_subst_files
1106 eval ac_val=$`echo $ac_var`
1107 echo "$ac_var='"'"'$ac_val'"'"'"
1112 if test -s confdefs.h; then
1119 sed "/^$/d" confdefs.h | sort
1122 test "$ac_signal" != 0 &&
1123 echo "$as_me: caught signal $ac_signal"
1124 echo "$as_me: exit $exit_status"
1126 rm -f core core.* *.core &&
1127 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1130 for ac_signal in 1 2 13 15; do
1131 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 rm -rf conftest* confdefs.h
1137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1140 # Predefined preprocessor variables.
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_NAME "$PACKAGE_NAME"
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_STRING "$PACKAGE_STRING"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1167 # Let the site file select an alternate cache file if it wants to.
1168 # Prefer explicitly selected file to automatically selected ones.
1169 if test -z "$CONFIG_SITE"; then
1170 if test "x$prefix" != xNONE; then
1171 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1173 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1176 for ac_site_file in $CONFIG_SITE; do
1177 if test -r "$ac_site_file"; then
1178 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1179 echo "$as_me: loading site script $ac_site_file" >&6;}
1180 sed 's/^/| /' "$ac_site_file" >&5
1185 if test -r "$cache_file"; then
1186 # Some versions of bash will fail to source /dev/null (special
1187 # files actually), so we avoid doing that.
1188 if test -f "$cache_file"; then
1189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1190 echo "$as_me: loading cache $cache_file" >&6;}
1192 [\\/]* | ?:[\\/]* ) . $cache_file;;
1193 *) . ./$cache_file;;
1197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1198 echo "$as_me: creating cache $cache_file" >&6;}
1202 # Check that the precious variables saved in the cache have kept the same
1204 ac_cache_corrupted=false
1205 for ac_var in `(set) 2>&1 |
1206 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208 eval ac_new_set=\$ac_env_${ac_var}_set
1209 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210 eval ac_new_val="\$ac_env_${ac_var}_value"
1211 case $ac_old_set,$ac_new_set in
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1222 if test "x$ac_old_val" != "x$ac_new_val"; then
1223 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1226 echo "$as_me: former value: $ac_old_val" >&2;}
1227 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1228 echo "$as_me: current value: $ac_new_val" >&2;}
1229 ac_cache_corrupted=:
1232 # Pass precious variables to config.status.
1233 if test "$ac_new_set" = set; then
1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237 *) ac_arg=$ac_var=$ac_new_val ;;
1239 case " $ac_configure_args " in
1240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1241 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1245 if $ac_cache_corrupted; then
1246 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1247 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250 { (exit 1); exit 1; }; }
1254 ac_cpp='$CPP $CPPFLAGS'
1255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1279 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1280 if test -f $ac_dir/install-sh; then
1282 ac_install_sh="$ac_aux_dir/install-sh -c"
1284 elif test -f $ac_dir/install.sh; then
1286 ac_install_sh="$ac_aux_dir/install.sh -c"
1288 elif test -f $ac_dir/shtool; then
1290 ac_install_sh="$ac_aux_dir/shtool install -c"
1294 if test -z "$ac_aux_dir"; then
1295 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1296 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1297 { (exit 1); exit 1; }; }
1299 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1300 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1301 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1303 # Make sure we can run config.sub.
1304 $ac_config_sub sun4 >/dev/null 2>&1 ||
1305 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1306 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1307 { (exit 1); exit 1; }; }
1309 echo "$as_me:$LINENO: checking build system type" >&5
1310 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1311 if test "${ac_cv_build+set}" = set; then
1312 echo $ECHO_N "(cached) $ECHO_C" >&6
1314 ac_cv_build_alias=$build_alias
1315 test -z "$ac_cv_build_alias" &&
1316 ac_cv_build_alias=`$ac_config_guess`
1317 test -z "$ac_cv_build_alias" &&
1318 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1319 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1320 { (exit 1); exit 1; }; }
1321 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1322 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1323 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1324 { (exit 1); exit 1; }; }
1327 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1328 echo "${ECHO_T}$ac_cv_build" >&6
1330 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1331 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1332 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1335 echo "$as_me:$LINENO: checking host system type" >&5
1336 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1337 if test "${ac_cv_host+set}" = set; then
1338 echo $ECHO_N "(cached) $ECHO_C" >&6
1340 ac_cv_host_alias=$host_alias
1341 test -z "$ac_cv_host_alias" &&
1342 ac_cv_host_alias=$ac_cv_build_alias
1343 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1344 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1345 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1346 { (exit 1); exit 1; }; }
1349 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1350 echo "${ECHO_T}$ac_cv_host" >&6
1352 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1353 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1354 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1357 echo "$as_me:$LINENO: checking target system type" >&5
1358 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1359 if test "${ac_cv_target+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 ac_cv_target_alias=$target_alias
1363 test "x$ac_cv_target_alias" = "x" &&
1364 ac_cv_target_alias=$ac_cv_host_alias
1365 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1371 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1372 echo "${ECHO_T}$ac_cv_target" >&6
1373 target=$ac_cv_target
1374 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379 # The aliases save the names the user supplied, while $host etc.
1380 # will get canonicalized.
1381 test -n "$target_alias" &&
1382 test "$program_prefix$program_suffix$program_transform_name" = \
1384 program_prefix=${target_alias}-
1391 # Check whether --with-gcc or --without-gcc was given.
1392 if test "${with_gcc+set}" = set; then
1398 if test "${srcdir}" != "." ; then
1399 V_INCLS="-I\$(srcdir)"
1401 if test "${CFLAGS+set}" = set; then
1402 LBL_CFLAGS="$CFLAGS"
1404 if test -z "$CC" ; then
1405 case "$target_os" in
1408 # Extract the first word of "shlicc2", so it can be a program name with args.
1409 set dummy shlicc2; ac_word=$2
1410 echo "$as_me:$LINENO: checking for $ac_word" >&5
1411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1412 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 if test -n "$SHLICC2"; then
1416 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422 test -z "$as_dir" && as_dir=.
1423 for ac_exec_ext in '' $ac_executable_extensions; do
1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425 ac_cv_prog_SHLICC2="yes"
1426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1435 SHLICC2=$ac_cv_prog_SHLICC2
1436 if test -n "$SHLICC2"; then
1437 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1438 echo "${ECHO_T}$SHLICC2" >&6
1440 echo "$as_me:$LINENO: result: no" >&5
1441 echo "${ECHO_T}no" >&6
1444 if test $SHLICC2 = yes ; then
1451 if test -z "$CC" -a "$with_gcc" = no ; then
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460 if test -n "$ac_tool_prefix"; then
1461 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1462 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1463 echo "$as_me:$LINENO: checking for $ac_word" >&5
1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465 if test "${ac_cv_prog_CC+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 if test -n "$CC"; then
1469 ac_cv_prog_CC="$CC" # Let the user override the test.
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 test -z "$as_dir" && as_dir=.
1476 for ac_exec_ext in '' $ac_executable_extensions; do
1477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1478 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 if test -n "$CC"; then
1489 echo "$as_me:$LINENO: result: $CC" >&5
1490 echo "${ECHO_T}$CC" >&6
1492 echo "$as_me:$LINENO: result: no" >&5
1493 echo "${ECHO_T}no" >&6
1497 if test -z "$ac_cv_prog_CC"; then
1499 # Extract the first word of "gcc", so it can be a program name with args.
1500 set dummy gcc; ac_word=$2
1501 echo "$as_me:$LINENO: checking for $ac_word" >&5
1502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 if test -n "$ac_ct_CC"; then
1507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513 test -z "$as_dir" && as_dir=.
1514 for ac_exec_ext in '' $ac_executable_extensions; do
1515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1516 ac_cv_prog_ac_ct_CC="gcc"
1517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1526 if test -n "$ac_ct_CC"; then
1527 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1528 echo "${ECHO_T}$ac_ct_CC" >&6
1530 echo "$as_me:$LINENO: result: no" >&5
1531 echo "${ECHO_T}no" >&6
1539 if test -z "$CC"; then
1540 if test -n "$ac_tool_prefix"; then
1541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1542 set dummy ${ac_tool_prefix}cc; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_CC+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 if test -n "$CC"; then
1549 ac_cv_prog_CC="$CC" # Let the user override the test.
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558 ac_cv_prog_CC="${ac_tool_prefix}cc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 if test -n "$CC"; then
1569 echo "$as_me:$LINENO: result: $CC" >&5
1570 echo "${ECHO_T}$CC" >&6
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1577 if test -z "$ac_cv_prog_CC"; then
1579 # Extract the first word of "cc", so it can be a program name with args.
1580 set dummy cc; ac_word=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 if test -n "$ac_ct_CC"; then
1587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 test -z "$as_dir" && as_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 ac_cv_prog_ac_ct_CC="cc"
1597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1606 if test -n "$ac_ct_CC"; then
1607 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1608 echo "${ECHO_T}$ac_ct_CC" >&6
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1620 if test -z "$CC"; then
1621 # Extract the first word of "cc", so it can be a program name with args.
1622 set dummy cc; ac_word=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_CC+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC="$CC" # Let the user override the test.
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1640 ac_prog_rejected=yes
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 if test $ac_prog_rejected = yes; then
1651 # We found a bogon in the path, so make sure we never use it.
1652 set dummy $ac_cv_prog_CC
1654 if test $# != 0; then
1655 # We chose a different compiler from the bogus one.
1656 # However, it has the same basename, so the bogon will be chosen
1657 # first if we set CC to just the basename; use the full file name.
1659 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1665 if test -n "$CC"; then
1666 echo "$as_me:$LINENO: result: $CC" >&5
1667 echo "${ECHO_T}$CC" >&6
1669 echo "$as_me:$LINENO: result: no" >&5
1670 echo "${ECHO_T}no" >&6
1674 if test -z "$CC"; then
1675 if test -n "$ac_tool_prefix"; then
1678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 if test -n "$CC"; then
1686 ac_cv_prog_CC="$CC" # Let the user override the test.
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 if test -n "$CC"; then
1706 echo "$as_me:$LINENO: result: $CC" >&5
1707 echo "${ECHO_T}$CC" >&6
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1713 test -n "$CC" && break
1716 if test -z "$CC"; then
1720 # Extract the first word of "$ac_prog", so it can be a program name with args.
1721 set dummy $ac_prog; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 if test -n "$ac_ct_CC"; then
1728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_ac_ct_CC="$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1747 if test -n "$ac_ct_CC"; then
1748 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1749 echo "${ECHO_T}$ac_ct_CC" >&6
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1755 test -n "$ac_ct_CC" && break
1764 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1765 See \`config.log' for more details." >&5
1766 echo "$as_me: error: no acceptable C compiler found in \$PATH
1767 See \`config.log' for more details." >&2;}
1768 { (exit 1); exit 1; }; }
1770 # Provide some information about the compiler.
1771 echo "$as_me:$LINENO:" \
1772 "checking for C compiler version" >&5
1773 ac_compiler=`set X $ac_compile; echo $2`
1774 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1775 (eval $ac_compiler --version </dev/null >&5) 2>&5
1777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778 (exit $ac_status); }
1779 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1780 (eval $ac_compiler -v </dev/null >&5) 2>&5
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); }
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1785 (eval $ac_compiler -V </dev/null >&5) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1790 cat >conftest.$ac_ext <<_ACEOF
1791 #line $LINENO "configure"
1794 cat confdefs.h >>conftest.$ac_ext
1795 cat >>conftest.$ac_ext <<_ACEOF
1796 /* end confdefs.h. */
1806 ac_clean_files_save=$ac_clean_files
1807 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1808 # Try to create an executable without -o first, disregard a.out.
1809 # It will help us diagnose broken compilers, and finding out an intuition
1811 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1812 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1813 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1814 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1815 (eval $ac_link_default) 2>&5
1817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818 (exit $ac_status); }; then
1819 # Find the output, starting from the most likely. This scheme is
1820 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1823 # Be careful to initialize this variable, since it used to be cached.
1824 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1826 # b.out is created by i960 compilers.
1827 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1829 test -f "$ac_file" || continue
1831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1834 # This is the source file.
1837 # We found the default executable, but exeext='' is most
1841 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1842 # FIXME: I believe we export ac_cv_exeext for Libtool,
1843 # but it would be cool to find out if it's true. Does anybody
1844 # maintain Libtool? --akim.
1852 echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1856 See \`config.log' for more details." >&5
1857 echo "$as_me: error: C compiler cannot create executables
1858 See \`config.log' for more details." >&2;}
1859 { (exit 77); exit 77; }; }
1862 ac_exeext=$ac_cv_exeext
1863 echo "$as_me:$LINENO: result: $ac_file" >&5
1864 echo "${ECHO_T}$ac_file" >&6
1866 # Check the compiler produces executables we can run. If not, either
1867 # the compiler is broken, or we cross compile.
1868 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1869 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1870 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1871 # If not cross compiling, check that we can run a simple program.
1872 if test "$cross_compiling" != yes; then
1873 if { ac_try='./$ac_file'
1874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878 (exit $ac_status); }; }; then
1881 if test "$cross_compiling" = maybe; then
1884 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1885 If you meant to cross compile, use \`--host'.
1886 See \`config.log' for more details." >&5
1887 echo "$as_me: error: cannot run C compiled programs.
1888 If you meant to cross compile, use \`--host'.
1889 See \`config.log' for more details." >&2;}
1890 { (exit 1); exit 1; }; }
1894 echo "$as_me:$LINENO: result: yes" >&5
1895 echo "${ECHO_T}yes" >&6
1897 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1898 ac_clean_files=$ac_clean_files_save
1899 # Check the compiler produces executables we can run. If not, either
1900 # the compiler is broken, or we cross compile.
1901 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1902 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1903 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1904 echo "${ECHO_T}$cross_compiling" >&6
1906 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1907 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1909 (eval $ac_link) 2>&5
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }; then
1913 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1914 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1915 # work properly (i.e., refer to `conftest.exe'), while it won't with
1917 for ac_file in conftest.exe conftest conftest.*; do
1918 test -f "$ac_file" || continue
1920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1921 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1928 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1929 See \`config.log' for more details." >&5
1930 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1931 See \`config.log' for more details." >&2;}
1932 { (exit 1); exit 1; }; }
1935 rm -f conftest$ac_cv_exeext
1936 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1937 echo "${ECHO_T}$ac_cv_exeext" >&6
1939 rm -f conftest.$ac_ext
1940 EXEEXT=$ac_cv_exeext
1942 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1943 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1944 if test "${ac_cv_objext+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 cat >conftest.$ac_ext <<_ACEOF
1948 #line $LINENO "configure"
1951 cat confdefs.h >>conftest.$ac_ext
1952 cat >>conftest.$ac_ext <<_ACEOF
1953 /* end confdefs.h. */
1963 rm -f conftest.o conftest.obj
1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>&5
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); }; then
1969 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1972 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1977 echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1980 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1981 See \`config.log' for more details." >&5
1982 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1983 See \`config.log' for more details." >&2;}
1984 { (exit 1); exit 1; }; }
1987 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1989 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1990 echo "${ECHO_T}$ac_cv_objext" >&6
1991 OBJEXT=$ac_cv_objext
1993 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1994 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1995 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 cat >conftest.$ac_ext <<_ACEOF
1999 #line $LINENO "configure"
2002 cat confdefs.h >>conftest.$ac_ext
2003 cat >>conftest.$ac_ext <<_ACEOF
2004 /* end confdefs.h. */
2017 rm -f conftest.$ac_objext
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); } &&
2023 { ac_try='test -s conftest.$ac_objext'
2024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; }; then
2031 echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2036 rm -f conftest.$ac_objext conftest.$ac_ext
2037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2040 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2041 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2042 GCC=`test $ac_compiler_gnu = yes && echo yes`
2043 ac_test_CFLAGS=${CFLAGS+set}
2044 ac_save_CFLAGS=$CFLAGS
2046 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2047 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2048 if test "${ac_cv_prog_cc_g+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 cat >conftest.$ac_ext <<_ACEOF
2052 #line $LINENO "configure"
2055 cat confdefs.h >>conftest.$ac_ext
2056 cat >>conftest.$ac_ext <<_ACEOF
2057 /* end confdefs.h. */
2067 rm -f conftest.$ac_objext
2068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2069 (eval $ac_compile) 2>&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); } &&
2073 { ac_try='test -s conftest.$ac_objext'
2074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }; }; then
2081 echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2086 rm -f conftest.$ac_objext conftest.$ac_ext
2088 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2089 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2090 if test "$ac_test_CFLAGS" = set; then
2091 CFLAGS=$ac_save_CFLAGS
2092 elif test $ac_cv_prog_cc_g = yes; then
2093 if test "$GCC" = yes; then
2099 if test "$GCC" = yes; then
2105 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2106 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2107 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 ac_cv_prog_cc_stdc=no
2112 cat >conftest.$ac_ext <<_ACEOF
2113 #line $LINENO "configure"
2116 cat confdefs.h >>conftest.$ac_ext
2117 cat >>conftest.$ac_ext <<_ACEOF
2118 /* end confdefs.h. */
2121 #include <sys/types.h>
2122 #include <sys/stat.h>
2123 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2124 struct buf { int x; };
2125 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2126 static char *e (p, i)
2132 static char *f (char * (*g) (char **, int), char **p, ...)
2137 s = g (p, va_arg (v,int));
2141 int test (int i, double x);
2142 struct s1 {int (*f) (int a);};
2143 struct s2 {int (*f) (double a);};
2144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2155 # Don't try gcc -ansi; that turns off useful extensions and
2156 # breaks some systems' header files.
2157 # AIX -qlanglvl=ansi
2158 # Ultrix and OSF/1 -std1
2159 # HP-UX 10.20 and later -Ae
2160 # HP-UX older versions -Aa -D_HPUX_SOURCE
2161 # SVR4 -Xc -D__EXTENSIONS__
2162 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -s conftest.$ac_objext'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; }; then
2177 ac_cv_prog_cc_stdc=$ac_arg
2180 echo "$as_me: failed program was:" >&5
2181 sed 's/^/| /' conftest.$ac_ext >&5
2184 rm -f conftest.$ac_objext
2186 rm -f conftest.$ac_ext conftest.$ac_objext
2191 case "x$ac_cv_prog_cc_stdc" in
2193 echo "$as_me:$LINENO: result: none needed" >&5
2194 echo "${ECHO_T}none needed" >&6 ;;
2196 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2197 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2198 CC="$CC $ac_cv_prog_cc_stdc" ;;
2201 # Some people use a C++ compiler to compile C. Since we use `exit',
2202 # in C++ we need to declare it. In case someone uses the same compiler
2203 # for both compiling C and C++ we need to have the C++ compiler decide
2204 # the declaration of exit, since it's the most demanding environment.
2205 cat >conftest.$ac_ext <<_ACEOF
2210 rm -f conftest.$ac_objext
2211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212 (eval $ac_compile) 2>&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); } &&
2216 { ac_try='test -s conftest.$ac_objext'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2222 for ac_declaration in \
2224 '#include <stdlib.h>' \
2225 'extern "C" void std::exit (int) throw (); using std::exit;' \
2226 'extern "C" void std::exit (int); using std::exit;' \
2227 'extern "C" void exit (int) throw ();' \
2228 'extern "C" void exit (int);' \
2231 cat >conftest.$ac_ext <<_ACEOF
2232 #line $LINENO "configure"
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h. */
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -s conftest.$ac_objext'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2262 echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2267 rm -f conftest.$ac_objext conftest.$ac_ext
2268 cat >conftest.$ac_ext <<_ACEOF
2269 #line $LINENO "configure"
2272 cat confdefs.h >>conftest.$ac_ext
2273 cat >>conftest.$ac_ext <<_ACEOF
2274 /* end confdefs.h. */
2284 rm -f conftest.$ac_objext
2285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2286 (eval $ac_compile) 2>&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); } &&
2290 { ac_try='test -s conftest.$ac_objext'
2291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; }; then
2298 echo "$as_me: failed program was:" >&5
2299 sed 's/^/| /' conftest.$ac_ext >&5
2302 rm -f conftest.$ac_objext conftest.$ac_ext
2305 if test -n "$ac_declaration"; then
2306 echo '#ifdef __cplusplus' >>confdefs.h
2307 echo $ac_declaration >>confdefs.h
2308 echo '#endif' >>confdefs.h
2312 echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2316 rm -f conftest.$ac_objext conftest.$ac_ext
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323 if test "$GCC" = yes ; then
2324 if test "$SHLICC2" = yes ; then
2325 ac_cv_lbl_gcc_vers=2
2328 echo "$as_me:$LINENO: checking gcc version" >&5
2329 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2330 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2334 sed -e '/^gcc version /!d' \
2335 -e 's/^gcc version //' \
2336 -e 's/ .*//' -e 's/^[^0-9]*//' \
2340 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2341 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2342 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2347 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2348 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2349 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat >conftest.$ac_ext <<_ACEOF
2354 #line $LINENO "configure"
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h. */
2360 #include <sys/types.h>
2364 int frob(int, char *)
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 { ac_try='test -s conftest.$ac_objext'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; }; then
2381 ac_cv_lbl_cc_ansi_prototypes=yes
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2386 ac_cv_lbl_cc_ansi_prototypes=no
2388 rm -f conftest.$ac_objext conftest.$ac_ext
2391 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2392 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2393 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2394 case "$target_os" in
2397 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2398 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2399 savedcflags="$CFLAGS"
2400 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2401 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 cat >conftest.$ac_ext <<_ACEOF
2405 #line $LINENO "configure"
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h. */
2411 #include <sys/types.h>
2415 int frob(int, char *)
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } &&
2426 { ac_try='test -s conftest.$ac_objext'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; }; then
2432 ac_cv_lbl_cc_hpux_cc_aa=yes
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2437 ac_cv_lbl_cc_hpux_cc_aa=no
2439 rm -f conftest.$ac_objext conftest.$ac_ext
2442 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2443 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2444 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2445 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2446 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2447 { (exit 1); exit 1; }; }
2449 CFLAGS="$savedcflags"
2450 V_CCOPT="-Aa $V_CCOPT"
2452 cat >>confdefs.h <<\_ACEOF
2453 #define _HPUX_SOURCE 1
2459 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2460 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2461 { (exit 1); exit 1; }; }
2465 V_INCLS="$V_INCLS -I/usr/local/include"
2466 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2468 case "$target_os" in
2471 V_CCOPT="$V_CCOPT -xansi -signed -g3"
2475 V_CCOPT="$V_CCOPT -std1 -g3"
2479 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2480 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2481 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 cat >conftest.$ac_ext <<_ACEOF
2485 #line $LINENO "configure"
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2491 #include <sys/types.h>
2495 struct a { int b; };
2496 void c(const struct a *)
2501 rm -f conftest.$ac_objext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503 (eval $ac_compile) 2>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 ac_cv_lbl_cc_const_proto=yes
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2518 ac_cv_lbl_cc_const_proto=no
2520 rm -f conftest.$ac_objext conftest.$ac_ext
2523 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2524 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2525 if test $ac_cv_lbl_cc_const_proto = no ; then
2526 cat >>confdefs.h <<\_ACEOF
2535 echo "$as_me:$LINENO: checking for inline" >&5
2536 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2537 if test "${ac_cv_lbl_inline+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 for ac_lbl_inline in inline __inline__ __inline
2545 cat >conftest.$ac_ext <<_ACEOF
2546 #line $LINENO "configure"
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2552 #define inline $ac_lbl_inline
2553 static inline struct iltest *foo(void);
2559 static inline struct iltest *
2562 static struct iltest xxx;
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 ac_lbl_cc_inline=yes
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2592 rm -f conftest.$ac_objext conftest.$ac_ext
2593 if test "$ac_lbl_cc_inline" = yes ; then
2597 if test "$ac_lbl_cc_inline" = yes ; then
2598 ac_cv_lbl_inline=$ac_lbl_inline
2602 if test ! -z "$ac_cv_lbl_inline" ; then
2603 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2604 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2606 echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6
2610 cat >>confdefs.h <<_ACEOF
2611 #define inline $ac_cv_lbl_inline
2615 echo "$as_me:$LINENO: checking for __attribute__" >&5
2616 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2617 if test "${ac_cv___attribute__+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2635 static void foo(void) __attribute__ ((noreturn));
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2659 ac_cv___attribute__=yes
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2664 ac_cv___attribute__=no
2666 rm -f conftest.$ac_objext conftest.$ac_ext
2669 if test "$ac_cv___attribute__" = "yes"; then
2671 cat >>confdefs.h <<\_ACEOF
2672 #define HAVE___ATTRIBUTE__ 1
2675 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2677 V_DEFS="$V_DEFS -D_U_=\"\""
2679 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2680 echo "${ECHO_T}$ac_cv___attribute__" >&6
2683 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
2684 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
2685 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 cat >conftest.$ac_ext <<_ACEOF
2689 #line $LINENO "configure"
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2696 # include "confdefs.h"
2697 # include <sys/types.h>
2699 # include <stdlib.h>
2700 # include <stddef.h>
2710 rm -f conftest.$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712 (eval $ac_compile) 2>&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 ac_cv_lbl_have_u_int8_t=yes
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2727 ac_cv_lbl_have_u_int8_t=no
2729 rm -f conftest.$ac_objext conftest.$ac_ext
2732 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
2733 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
2734 if test $ac_cv_lbl_have_u_int8_t = no ; then
2736 cat >>confdefs.h <<\_ACEOF
2737 #define u_int8_t u_char
2741 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
2742 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
2743 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 cat >conftest.$ac_ext <<_ACEOF
2747 #line $LINENO "configure"
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2754 # include "confdefs.h"
2755 # include <sys/types.h>
2757 # include <stdlib.h>
2758 # include <stddef.h>
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -s conftest.$ac_objext'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 ac_cv_lbl_have_u_int16_t=yes
2782 echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2785 ac_cv_lbl_have_u_int16_t=no
2787 rm -f conftest.$ac_objext conftest.$ac_ext
2790 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
2791 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
2792 if test $ac_cv_lbl_have_u_int16_t = no ; then
2794 cat >>confdefs.h <<\_ACEOF
2795 #define u_int16_t u_short
2799 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
2800 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
2801 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 cat >conftest.$ac_ext <<_ACEOF
2805 #line $LINENO "configure"
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h. */
2812 # include "confdefs.h"
2813 # include <sys/types.h>
2815 # include <stdlib.h>
2816 # include <stddef.h>
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 { ac_try='test -s conftest.$ac_objext'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; }; then
2838 ac_cv_lbl_have_u_int32_t=yes
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2843 ac_cv_lbl_have_u_int32_t=no
2845 rm -f conftest.$ac_objext conftest.$ac_ext
2848 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
2849 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
2850 if test $ac_cv_lbl_have_u_int32_t = no ; then
2852 cat >>confdefs.h <<\_ACEOF
2853 #define u_int32_t u_int
2859 ac_cpp='$CPP $CPPFLAGS'
2860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2864 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2865 # On Suns, sometimes $CPP names a directory.
2866 if test -n "$CPP" && test -d "$CPP"; then
2869 if test -z "$CPP"; then
2870 if test "${ac_cv_prog_CPP+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 # Double quotes because CPP needs to be expanded
2874 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2877 for ac_c_preproc_warn_flag in '' yes
2879 # Use a header file that comes with gcc, so configuring glibc
2880 # with a fresh cross-compiler works.
2881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2882 # <limits.h> exists even on freestanding compilers.
2883 # On the NeXT, cc -E runs the code through the compiler's parser,
2884 # not just through cpp. "Syntax error" is here to catch this case.
2885 cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2893 # include <limits.h>
2895 # include <assert.h>
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } >/dev/null; then
2907 if test -s conftest.err; then
2908 ac_cpp_err=$ac_c_preproc_warn_flag
2915 if test -z "$ac_cpp_err"; then
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2921 # Broken: fails on valid input.
2924 rm -f conftest.err conftest.$ac_ext
2926 # OK, works on sane cases. Now check whether non-existent headers
2927 # can be detected and how.
2928 cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2935 #include <ac_nonexistent.h>
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2940 grep -v '^ *+' conftest.er1 >conftest.err
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } >/dev/null; then
2945 if test -s conftest.err; then
2946 ac_cpp_err=$ac_c_preproc_warn_flag
2953 if test -z "$ac_cpp_err"; then
2954 # Broken: success on invalid input.
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 # Passes both tests.
2964 rm -f conftest.err conftest.$ac_ext
2967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2968 rm -f conftest.err conftest.$ac_ext
2969 if $ac_preproc_ok; then
2981 echo "$as_me:$LINENO: result: $CPP" >&5
2982 echo "${ECHO_T}$CPP" >&6
2984 for ac_c_preproc_warn_flag in '' yes
2986 # Use a header file that comes with gcc, so configuring glibc
2987 # with a fresh cross-compiler works.
2988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2989 # <limits.h> exists even on freestanding compilers.
2990 # On the NeXT, cc -E runs the code through the compiler's parser,
2991 # not just through cpp. "Syntax error" is here to catch this case.
2992 cat >conftest.$ac_ext <<_ACEOF
2993 #line $LINENO "configure"
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3000 # include <limits.h>
3002 # include <assert.h>
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } >/dev/null; then
3014 if test -s conftest.err; then
3015 ac_cpp_err=$ac_c_preproc_warn_flag
3022 if test -z "$ac_cpp_err"; then
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3028 # Broken: fails on valid input.
3031 rm -f conftest.err conftest.$ac_ext
3033 # OK, works on sane cases. Now check whether non-existent headers
3034 # can be detected and how.
3035 cat >conftest.$ac_ext <<_ACEOF
3036 #line $LINENO "configure"
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3042 #include <ac_nonexistent.h>
3044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3047 grep -v '^ *+' conftest.er1 >conftest.err
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } >/dev/null; then
3052 if test -s conftest.err; then
3053 ac_cpp_err=$ac_c_preproc_warn_flag
3060 if test -z "$ac_cpp_err"; then
3061 # Broken: success on invalid input.
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3067 # Passes both tests.
3071 rm -f conftest.err conftest.$ac_ext
3074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3075 rm -f conftest.err conftest.$ac_ext
3076 if $ac_preproc_ok; then
3079 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3080 See \`config.log' for more details." >&5
3081 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3082 See \`config.log' for more details." >&2;}
3083 { (exit 1); exit 1; }; }
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3093 echo "$as_me:$LINENO: checking for egrep" >&5
3094 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3095 if test "${ac_cv_prog_egrep+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3099 then ac_cv_prog_egrep='grep -E'
3100 else ac_cv_prog_egrep='egrep'
3103 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3104 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3105 EGREP=$ac_cv_prog_egrep
3108 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3109 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3110 if test "${ac_cv_header_stdc+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 cat >conftest.$ac_ext <<_ACEOF
3114 #line $LINENO "configure"
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3133 rm -f conftest.$ac_objext
3134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3135 (eval $ac_compile) 2>&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 ac_cv_header_stdc=yes
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 ac_cv_header_stdc=no
3152 rm -f conftest.$ac_objext conftest.$ac_ext
3154 if test $ac_cv_header_stdc = yes; then
3155 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3156 cat >conftest.$ac_ext <<_ACEOF
3157 #line $LINENO "configure"
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3167 $EGREP "memchr" >/dev/null 2>&1; then
3170 ac_cv_header_stdc=no
3176 if test $ac_cv_header_stdc = yes; then
3177 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3178 cat >conftest.$ac_ext <<_ACEOF
3179 #line $LINENO "configure"
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3189 $EGREP "free" >/dev/null 2>&1; then
3192 ac_cv_header_stdc=no
3198 if test $ac_cv_header_stdc = yes; then
3199 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3200 if test "$cross_compiling" = yes; then
3203 cat >conftest.$ac_ext <<_ACEOF
3204 #line $LINENO "configure"
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3211 #if ((' ' & 0x0FF) == 0x020)
3212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3215 # define ISLOWER(c) \
3216 (('a' <= (c) && (c) <= 'i') \
3217 || ('j' <= (c) && (c) <= 'r') \
3218 || ('s' <= (c) && (c) <= 'z'))
3219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3227 for (i = 0; i < 256; i++)
3228 if (XOR (islower (i), ISLOWER (i))
3229 || toupper (i) != TOUPPER (i))
3234 rm -f conftest$ac_exeext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3236 (eval $ac_link) 2>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3247 echo "$as_me: program exited with status $ac_status" >&5
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3252 ac_cv_header_stdc=no
3254 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3258 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3259 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3260 if test $ac_cv_header_stdc = yes; then
3262 cat >>confdefs.h <<\_ACEOF
3263 #define STDC_HEADERS 1
3268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3279 inttypes.h stdint.h unistd.h
3281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3282 echo "$as_me:$LINENO: checking for $ac_header" >&5
3283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 cat >conftest.$ac_ext <<_ACEOF
3288 #line $LINENO "configure"
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294 $ac_includes_default
3296 #include <$ac_header>
3298 rm -f conftest.$ac_objext
3299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3300 (eval $ac_compile) 2>&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } &&
3304 { ac_try='test -s conftest.$ac_objext'
3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; }; then
3310 eval "$as_ac_Header=yes"
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 eval "$as_ac_Header=no"
3317 rm -f conftest.$ac_objext conftest.$ac_ext
3319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3322 cat >>confdefs.h <<_ACEOF
3323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3335 for ac_header in sys/ioccom.h sys/sockio.h ifaddrs.h limits.h
3337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3339 echo "$as_me:$LINENO: checking for $ac_header" >&5
3340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3347 # Is the header compilable?
3348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3350 cat >conftest.$ac_ext <<_ACEOF
3351 #line $LINENO "configure"
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3357 $ac_includes_default
3358 #include <$ac_header>
3360 rm -f conftest.$ac_objext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362 (eval $ac_compile) 2>&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -s conftest.$ac_objext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 ac_header_compiler=yes
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 ac_header_compiler=no
3379 rm -f conftest.$ac_objext conftest.$ac_ext
3380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3381 echo "${ECHO_T}$ac_header_compiler" >&6
3383 # Is the header present?
3384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3386 cat >conftest.$ac_ext <<_ACEOF
3387 #line $LINENO "configure"
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3393 #include <$ac_header>
3395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_c_preproc_warn_flag
3411 if test -z "$ac_cpp_err"; then
3412 ac_header_preproc=yes
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 ac_header_preproc=no
3419 rm -f conftest.err conftest.$ac_ext
3420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3421 echo "${ECHO_T}$ac_header_preproc" >&6
3423 # So? What about this header?
3424 case $ac_header_compiler:$ac_header_preproc in
3426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3432 ## ------------------------------------ ##
3433 ## Report this to bug-autoconf@gnu.org. ##
3434 ## ------------------------------------ ##
3437 sed "s/^/$as_me: WARNING: /" >&2
3440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3448 ## ------------------------------------ ##
3449 ## Report this to bug-autoconf@gnu.org. ##
3450 ## ------------------------------------ ##
3453 sed "s/^/$as_me: WARNING: /" >&2
3456 echo "$as_me:$LINENO: checking for $ac_header" >&5
3457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 eval "$as_ac_Header=$ac_header_preproc"
3463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3468 cat >>confdefs.h <<_ACEOF
3469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3477 for ac_header in netinet/if_ether.h
3479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3480 echo "$as_me:$LINENO: checking for $ac_header" >&5
3481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 cat >conftest.$ac_ext <<_ACEOF
3486 #line $LINENO "configure"
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3492 #include <sys/types.h>
3493 #include <sys/socket.h>
3495 #include <$ac_header>
3497 rm -f conftest.$ac_objext
3498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499 (eval $ac_compile) 2>&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
3503 { ac_try='test -s conftest.$ac_objext'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3509 eval "$as_ac_Header=yes"
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3514 eval "$as_ac_Header=no"
3516 rm -f conftest.$ac_objext conftest.$ac_ext
3518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3521 cat >>confdefs.h <<_ACEOF
3522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3530 if test "$GCC" = yes ; then
3531 echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
3532 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6
3533 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 cat >conftest.$ac_ext <<_ACEOF
3537 #line $LINENO "configure"
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3544 * This generates a "duplicate case value" when fixincludes
3547 # include <sys/types.h>
3548 # include <sys/time.h>
3549 # include <sys/ioctl.h>
3550 # ifdef HAVE_SYS_IOCCOM_H
3551 # include <sys/ioccom.h>
3564 rm -f conftest.$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 ac_cv_lbl_gcc_fixincludes=yes
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 ac_cv_lbl_gcc_fixincludes=no
3583 rm -f conftest.$ac_objext conftest.$ac_ext
3586 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
3587 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6
3588 if test $ac_cv_lbl_gcc_fixincludes = no ; then
3589 # Don't cache failure
3590 unset ac_cv_lbl_gcc_fixincludes
3591 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
3592 echo "$as_me: error: see the INSTALL for more info" >&2;}
3593 { (exit 1); exit 1; }; }
3600 for ac_func in ether_hostton strerror strlcpy
3602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3603 echo "$as_me:$LINENO: checking for $ac_func" >&5
3604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3605 if eval "test \"\${$as_ac_var+set}\" = set"; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 cat >conftest.$ac_ext <<_ACEOF
3609 #line $LINENO "configure"
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615 /* System header to define __stub macros and hopefully few prototypes,
3616 which can conflict with char $ac_func (); below.
3617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3618 <limits.h> exists even on freestanding compilers. */
3620 # include <limits.h>
3622 # include <assert.h>
3624 /* Override any gcc2 internal prototype to avoid an error. */
3629 /* We use char because int might match the return type of a gcc2
3630 builtin and then its argument prototype would still apply. */
3632 /* The GNU C library defines this for functions which it implements
3633 to always fail with ENOSYS. Some functions are actually named
3634 something starting with __ and the normal name is an alias. */
3635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3638 char (*f) () = $ac_func;
3647 return f != $ac_func;
3652 rm -f conftest.$ac_objext conftest$ac_exeext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3654 (eval $ac_link) 2>&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } &&
3658 { ac_try='test -s conftest$ac_exeext'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3664 eval "$as_ac_var=yes"
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3669 eval "$as_ac_var=no"
3671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3675 if test `eval echo '${'$as_ac_var'}'` = yes; then
3676 cat >>confdefs.h <<_ACEOF
3677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3687 for ac_func in vsnprintf snprintf
3689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3690 echo "$as_me:$LINENO: checking for $ac_func" >&5
3691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3692 if eval "test \"\${$as_ac_var+set}\" = set"; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 cat >conftest.$ac_ext <<_ACEOF
3696 #line $LINENO "configure"
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702 /* System header to define __stub macros and hopefully few prototypes,
3703 which can conflict with char $ac_func (); below.
3704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3705 <limits.h> exists even on freestanding compilers. */
3707 # include <limits.h>
3709 # include <assert.h>
3711 /* Override any gcc2 internal prototype to avoid an error. */
3716 /* We use char because int might match the return type of a gcc2
3717 builtin and then its argument prototype would still apply. */
3719 /* The GNU C library defines this for functions which it implements
3720 to always fail with ENOSYS. Some functions are actually named
3721 something starting with __ and the normal name is an alias. */
3722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3725 char (*f) () = $ac_func;
3734 return f != $ac_func;
3739 rm -f conftest.$ac_objext conftest$ac_exeext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3741 (eval $ac_link) 2>&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -s conftest$ac_exeext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 eval "$as_ac_var=yes"
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3756 eval "$as_ac_var=no"
3758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3762 if test `eval echo '${'$as_ac_var'}'` = yes; then
3763 cat >>confdefs.h <<_ACEOF
3764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3772 if test $needsnprintf = yes; then
3773 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
3776 echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
3777 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6
3778 # Check whether --enable-protochain or --disable-protochain was given.
3779 if test "${enable_protochain+set}" = set; then
3780 enableval="$enable_protochain"
3783 case "x$enable_protochain" in
3784 xyes) enable_protochain=enabled ;;
3785 xno) enable_protochain=disabled ;;
3786 x) enable_protochain=enabled ;;
3789 if test "$enable_protochain" = "disabled"; then
3791 cat >>confdefs.h <<\_ACEOF
3792 #define NO_PROTOCHAIN 1
3796 echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
3797 echo "${ECHO_T}${enable_protochain}" >&6
3799 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
3800 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
3801 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
3802 { (exit 1); exit 1; }; }
3805 # Check whether --with-pcap or --without-pcap was given.
3806 if test "${with_pcap+set}" = set; then
3807 withval="$with_pcap"
3810 echo "$as_me:$LINENO: checking packet capture type" >&5
3811 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6
3812 if test ! -z "$with_pcap" ; then
3814 elif test -r /dev/bpf0 ; then
3816 elif test -r /usr/include/net/pfilt.h ; then
3818 elif test -r /dev/enet ; then
3820 elif test -r /dev/nit ; then
3822 elif test -r /usr/include/sys/net/nit.h ; then
3824 elif test -r /usr/include/linux/socket.h ; then
3826 elif test -r /usr/include/net/raw.h ; then
3828 elif test -r /usr/include/odmi.h ; then
3830 # On AIX, the BPF devices might not yet be present - they're
3831 # created the first time libpcap runs after booting.
3832 # We check for odmi.h instead.
3835 elif test -r /usr/include/sys/dlpi.h ; then
3837 elif test -c /dev/bpf0 ; then # check again in case not readable
3839 elif test -c /dev/enet ; then # check again in case not readable
3841 elif test -c /dev/nit ; then # check again in case not readable
3846 echo "$as_me:$LINENO: result: $V_PCAP" >&5
3847 echo "${ECHO_T}$V_PCAP" >&6
3849 echo "$as_me:$LINENO: checking for getifaddrs" >&5
3850 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
3851 if test "${ac_cv_func_getifaddrs+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 cat >conftest.$ac_ext <<_ACEOF
3855 #line $LINENO "configure"
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3861 /* System header to define __stub macros and hopefully few prototypes,
3862 which can conflict with char getifaddrs (); below.
3863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3864 <limits.h> exists even on freestanding compilers. */
3866 # include <limits.h>
3868 # include <assert.h>
3870 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3878 /* The GNU C library defines this for functions which it implements
3879 to always fail with ENOSYS. Some functions are actually named
3880 something starting with __ and the normal name is an alias. */
3881 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
3884 char (*f) () = getifaddrs;
3893 return f != getifaddrs;
3898 rm -f conftest.$ac_objext conftest$ac_exeext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3900 (eval $ac_link) 2>&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } &&
3904 { ac_try='test -s conftest$ac_exeext'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_cv_func_getifaddrs=yes
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_cv_func_getifaddrs=no
3917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3919 echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
3920 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
3921 if test $ac_cv_func_getifaddrs = yes; then
3924 # We have "getifaddrs()", so we use that to get the list
3931 # Well, we don't have "getifaddrs()", so we have to use some
3932 # other mechanism; determine what that mechanism is.
3934 # The first thing we use is the type of capture mechanism,
3935 # which is somewhat of a proxy for the OS we're using.
3941 # This might be Solaris 8 or later, with SIOCGLIFCONF,
3942 # or it might be some other OS, with just SIOCGIFCONF.
3944 echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
3945 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6
3946 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 cat >conftest.$ac_ext <<_ACEOF
3950 #line $LINENO "configure"
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3956 #include <sys/param.h>
3957 #include <sys/file.h>
3958 #include <sys/ioctl.h>
3959 #include <sys/socket.h>
3960 #include <sys/sockio.h>
3964 ioctl(0, SIOCGLIFCONF, (char *)0);
3969 rm -f conftest.$ac_objext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3971 (eval $ac_compile) 2>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
3975 { ac_try='test -s conftest.$ac_objext'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; }; then
3981 ac_cv_lbl_have_siocglifconf=yes
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 ac_cv_lbl_have_siocglifconf=no
3988 rm -f conftest.$ac_objext conftest.$ac_ext
3991 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
3992 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6
3993 if test $ac_cv_lbl_have_siocglifconf = yes ; then
4002 # We can't capture, so we can't open any capture
4003 # devices, so we won't return any interfaces.
4010 # Assume we just have SIOCGIFCONF.
4011 # (XXX - on at least later Linux kernels, there's
4012 # another mechanism, and we should be using that
4021 echo "$as_me:$LINENO: checking if --enable-ipv6 option is specified" >&5
4022 echo $ECHO_N "checking if --enable-ipv6 option is specified... $ECHO_C" >&6
4023 # Check whether --enable-ipv6 or --disable-ipv6 was given.
4024 if test "${enable_ipv6+set}" = set; then
4025 enableval="$enable_ipv6"
4028 if test "$enable_ipv6" = "yes"; then
4030 cat >>confdefs.h <<\_ACEOF
4035 echo "$as_me:$LINENO: result: ${enable_ipv6-no}" >&5
4036 echo "${ECHO_T}${enable_ipv6-no}" >&6
4038 echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
4039 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6
4040 # Check whether --enable-optimizer-dbg or --disable-optimizer-dbg was given.
4041 if test "${enable_optimizer_dbg+set}" = set; then
4042 enableval="$enable_optimizer_dbg"
4045 if test "$enable_optimizer_dbg" = "yes"; then
4047 cat >>confdefs.h <<\_ACEOF
4052 echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
4053 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6
4055 echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
4056 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6
4057 # Check whether --enable-yydebug or --disable-yydebug was given.
4058 if test "${enable_yydebug+set}" = set; then
4059 enableval="$enable_yydebug"
4062 if test "$enable_yydebug" = "yes"; then
4064 cat >>confdefs.h <<\_ACEOF
4069 echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
4070 echo "${ECHO_T}${enable_yydebug-no}" >&6
4077 for ac_header in sys/bufmod.h sys/dlpi_ext.h
4079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4081 echo "$as_me:$LINENO: checking for $ac_header" >&5
4082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4089 # Is the header compilable?
4090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4092 cat >conftest.$ac_ext <<_ACEOF
4093 #line $LINENO "configure"
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 $ac_includes_default
4100 #include <$ac_header>
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -s conftest.$ac_objext'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 ac_header_compiler=yes
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4119 ac_header_compiler=no
4121 rm -f conftest.$ac_objext conftest.$ac_ext
4122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4123 echo "${ECHO_T}$ac_header_compiler" >&6
4125 # Is the header present?
4126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4128 cat >conftest.$ac_ext <<_ACEOF
4129 #line $LINENO "configure"
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 #include <$ac_header>
4137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4140 grep -v '^ *+' conftest.er1 >conftest.err
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } >/dev/null; then
4145 if test -s conftest.err; then
4146 ac_cpp_err=$ac_c_preproc_warn_flag
4153 if test -z "$ac_cpp_err"; then
4154 ac_header_preproc=yes
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 ac_header_preproc=no
4161 rm -f conftest.err conftest.$ac_ext
4162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4163 echo "${ECHO_T}$ac_header_preproc" >&6
4165 # So? What about this header?
4166 case $ac_header_compiler:$ac_header_preproc in
4168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4174 ## ------------------------------------ ##
4175 ## Report this to bug-autoconf@gnu.org. ##
4176 ## ------------------------------------ ##
4179 sed "s/^/$as_me: WARNING: /" >&2
4182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4190 ## ------------------------------------ ##
4191 ## Report this to bug-autoconf@gnu.org. ##
4192 ## ------------------------------------ ##
4195 sed "s/^/$as_me: WARNING: /" >&2
4198 echo "$as_me:$LINENO: checking for $ac_header" >&5
4199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 eval "$as_ac_Header=$ac_header_preproc"
4205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4210 cat >>confdefs.h <<_ACEOF
4211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4218 echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
4219 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
4220 if test -c /dev/dlpi ; then
4221 echo "$as_me:$LINENO: result: yes" >&5
4222 echo "${ECHO_T}yes" >&6
4224 cat >>confdefs.h <<\_ACEOF
4225 #define HAVE_DEV_DLPI 1
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4232 echo "$as_me:$LINENO: checking for $dir directory" >&5
4233 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
4234 if test -d $dir ; then
4235 echo "$as_me:$LINENO: result: yes" >&5
4236 echo "${ECHO_T}yes" >&6
4238 cat >>confdefs.h <<_ACEOF
4239 #define PCAP_DEV_PREFIX "$dir"
4243 echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6
4250 echo "$as_me:$LINENO: checking Linux kernel version" >&5
4251 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
4252 if test "$cross_compiling" = yes; then
4253 if test "${ac_cv_linux_vers+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 ac_cv_linux_vers=unknown
4260 if test "${ac_cv_linux_vers+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 ac_cv_linux_vers=`uname -r 2>&1 | \
4264 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4268 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4269 echo "${ECHO_T}$ac_cv_linux_vers" >&6
4270 if test $ac_cv_linux_vers = unknown ; then
4271 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4272 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4273 { (exit 1); exit 1; }; }
4275 if test $ac_cv_linux_vers -lt 2 ; then
4276 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4277 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4278 { (exit 1); exit 1; }; }
4280 echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
4281 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6
4282 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 cat >conftest.$ac_ext <<_ACEOF
4286 #line $LINENO "configure"
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4293 # include <linux/if_packet.h>
4297 struct tpacket_stats stats
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304 (eval $ac_compile) 2>&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } &&
4308 { ac_try='test -s conftest.$ac_objext'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
4314 ac_cv_lbl_tpacket_stats=yes
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 ac_cv_lbl_tpacket_stats=no
4321 rm -f conftest.$ac_objext conftest.$ac_ext
4324 echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
4325 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6
4326 if test $ac_cv_lbl_tpacket_stats = yes; then
4328 cat >>confdefs.h <<\_ACEOF
4329 #define HAVE_TPACKET_STATS 1
4336 V_DEFS="$V_DEFS -DDAG_ONLY"
4340 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
4341 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
4342 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
4343 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
4348 echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
4349 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6
4350 if test -r /proc/net/dev ; then
4351 ac_cv_lbl_proc_net_dev=yes
4353 ac_cv_lbl_proc_net_dev=no
4355 if test $ac_cv_lbl_proc_net_dev = yes; then
4357 cat >>confdefs.h <<\_ACEOF
4358 #define HAVE_PROC_NET_DEV 1
4362 echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
4363 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6
4366 # Check whether --with-dag or --without-dag was given.
4367 if test "${with_dag+set}" = set; then
4370 if test "$withval" = no
4373 elif test "$withval" = yes
4385 # Use DAG API if present, otherwise don't
4391 ac_cv_lbl_dag_api=no
4395 # We support the DAG API on Linux or BSD, or if we're building a
4401 # If the user explicitly requested DAG, tell them it's not
4404 # If they expressed no preference, don't include it.
4406 if test $want_dag = yes; then
4407 { { echo "$as_me:$LINENO: error: DAG support only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
4408 echo "$as_me: error: DAG support only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
4409 { (exit 1); exit 1; }; }
4410 elif test $want_dag = yes; then
4416 if test "$with_dag" != no; then
4417 echo "$as_me:$LINENO: checking whether we have DAG API" >&5
4418 echo $ECHO_N "checking whether we have DAG API... $ECHO_C" >&6
4420 if test -z "$dag_root"; then
4421 dag_root=$srcdir/../dag
4424 if test -r "$dag_root/tools" -a -r "$dag_root/include"; then
4425 dag_tools_dir="$dag_root/tools"
4426 dag_include_dir="$dag_root/include"
4428 dag_tools_dir="$dag_root"
4429 dag_include_dir="$dag_root"
4432 ac_cv_lbl_dag_api=no
4433 if test -r "$dag_include_dir/dagapi.h" -a -r "$dag_tools_dir/dagapi.o" -a -r "$dag_tools_dir/dagopts.o"; then
4434 V_INCLS="$V_INCLS -I $dag_include_dir"
4435 V_LIBS="$V_LIBS $dag_tools_dir/dagapi.o $dag_tools_dir/dagopts.o"
4436 if test "$V_PCAP" != dag ; then
4439 ac_cv_lbl_dag_api=yes
4441 if test -r "$dag_root/lib/dagreg.c"; then # DAG 2.5.x
4442 if test -r "$dag_tools_dir/dagreg.o"; then
4443 V_LIBS="$V_LIBS $dag_tools_dir/dagreg.o"
4445 ac_cv_lbl_dag_api=no
4449 if test $ac_cv_lbl_dag_api = yes -a -r "$dag_root/VERSION"; then
4450 dag_version=" (`cat $dag_root/VERSION`)"
4452 echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api$dag_version" >&5
4453 echo "${ECHO_T}$ac_cv_lbl_dag_api$dag_version" >&6
4454 if test $ac_cv_lbl_dag_api = no; then
4455 if test "$want_dag" = yes; then
4456 { { echo "$as_me:$LINENO: error: DAG API not found under directory $dag_root; use --without-dag" >&5
4457 echo "$as_me: error: DAG API not found under directory $dag_root; use --without-dag" >&2;}
4458 { (exit 1); exit 1; }; }
4462 cat >>confdefs.h <<\_ACEOF
4463 #define HAVE_DAG_API 1
4469 if test "$V_PCAP" = dag -a "$ac_cv_lbl_dag_api" = no; then
4470 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'dag' requires the DAG API to be present; use --with-dag=DIR" >&5
4471 echo "$as_me: error: Specifying the capture type as 'dag' requires the DAG API to be present; use --with-dag=DIR" >&2;}
4472 { (exit 1); exit 1; }; }
4477 # Check whether --with-flex or --without-flex was given.
4478 if test "${with_flex+set}" = set; then
4479 withval="$with_flex"
4483 # Check whether --with-bison or --without-bison was given.
4484 if test "${with_bison+set}" = set; then
4485 withval="$with_bison"
4488 if test "$with_flex" = no ; then
4493 # Extract the first word of "$ac_prog", so it can be a program name with args.
4494 set dummy $ac_prog; ac_word=$2
4495 echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_prog_V_LEX+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 if test -n "$V_LEX"; then
4501 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510 ac_cv_prog_V_LEX="$ac_prog"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 V_LEX=$ac_cv_prog_V_LEX
4520 if test -n "$V_LEX"; then
4521 echo "$as_me:$LINENO: result: $V_LEX" >&5
4522 echo "${ECHO_T}$V_LEX" >&6
4524 echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6
4528 test -n "$V_LEX" && break
4530 test -n "$V_LEX" || V_LEX="lex"
4533 if test "$V_LEX" = flex ; then
4534 # The -V flag was added in 2.4
4535 echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
4536 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6
4537 if test "${ac_cv_lbl_flex_v24+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 if flex -V >/dev/null 2>&1; then
4541 ac_cv_lbl_flex_v24=yes
4543 ac_cv_lbl_flex_v24=no
4547 echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
4548 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6
4549 if test $ac_cv_lbl_flex_v24 = no ; then
4550 s="2.4 or higher required"
4551 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
4552 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
4556 if test "$with_bison" = no ; then
4559 for ac_prog in bison
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_V_YACC+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 if test -n "$V_YACC"; then
4569 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_V_YACC="$ac_prog"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 V_YACC=$ac_cv_prog_V_YACC
4588 if test -n "$V_YACC"; then
4589 echo "$as_me:$LINENO: result: $V_YACC" >&5
4590 echo "${ECHO_T}$V_YACC" >&6
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4596 test -n "$V_YACC" && break
4598 test -n "$V_YACC" || V_YACC="yacc"
4601 if test "$V_YACC" = bison ; then
4604 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
4605 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
4606 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
4610 if test "$V_LEX" = flex -a -n "pcap_" ; then
4611 V_LEX="$V_LEX -Ppcap_"
4612 V_YACC="$V_YACC -p pcap_"
4614 if test "$V_LEX" = lex ; then
4615 # Some versions of lex can't handle the definitions section of scanner.l .
4616 # Try lexing it and complain if it can't deal.
4617 echo "$as_me:$LINENO: checking for capable lex" >&5
4618 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6
4619 if test "${tcpdump_cv_capable_lex+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 if lex -t scanner.l > /dev/null 2>&1; then
4623 tcpdump_cv_capable_lex=yes
4625 tcpdump_cv_capable_lex=insufficient
4628 echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
4629 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6
4630 if test $tcpdump_cv_capable_lex = insufficient ; then
4631 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
4632 libpcap. flex is a lex replacement that has many advantages, including
4633 being able to compile libpcap. For more information, see
4634 http://www.gnu.org/software/flex/flex.html ." >&5
4635 echo "$as_me: error: Your operating system's lex is insufficient to compile
4636 libpcap. flex is a lex replacement that has many advantages, including
4637 being able to compile libpcap. For more information, see
4638 http://www.gnu.org/software/flex/flex.html ." >&2;}
4639 { (exit 1); exit 1; }; }
4647 cat >>confdefs.h <<\_ACEOF
4655 cat >>confdefs.h <<\_ACEOF
4656 #define HAVE_HPUX9 1
4669 cat >>confdefs.h <<\_ACEOF
4670 #define HAVE_HPUX10_20 1
4676 echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
4677 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6
4678 if test "${ac_cv_cc_sinix_defined+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 cat >conftest.$ac_ext <<_ACEOF
4682 #line $LINENO "configure"
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699 (eval $ac_compile) 2>&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } &&
4703 { ac_try='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_cv_cc_sinix_defined=yes
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4714 ac_cv_cc_sinix_defined=no
4716 rm -f conftest.$ac_objext conftest.$ac_ext
4719 echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
4720 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6
4721 if test $ac_cv_cc_sinix_defined = no ; then
4723 cat >>confdefs.h <<\_ACEOF
4732 cat >>confdefs.h <<\_ACEOF
4733 #define HAVE_SOLARIS 1
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_prog_RANLIB+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 if test -n "$RANLIB"; then
4748 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 RANLIB=$ac_cv_prog_RANLIB
4767 if test -n "$RANLIB"; then
4768 echo "$as_me:$LINENO: result: $RANLIB" >&5
4769 echo "${ECHO_T}$RANLIB" >&6
4771 echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4776 if test -z "$ac_cv_prog_RANLIB"; then
4777 ac_ct_RANLIB=$RANLIB
4778 # Extract the first word of "ranlib", so it can be a program name with args.
4779 set dummy ranlib; ac_word=$2
4780 echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4782 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 if test -n "$ac_ct_RANLIB"; then
4786 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795 ac_cv_prog_ac_ct_RANLIB="ranlib"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4805 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4806 if test -n "$ac_ct_RANLIB"; then
4807 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4808 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4810 echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4814 RANLIB=$ac_ct_RANLIB
4816 RANLIB="$ac_cv_prog_RANLIB"
4821 if test "${LBL_CFLAGS+set}" = set; then
4822 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
4824 if test -f .devel ; then
4825 if test "$GCC" = yes ; then
4826 if test "${LBL_CFLAGS+set}" != set; then
4827 if test "$ac_cv_prog_cc_g" = yes ; then
4828 V_CCOPT="-g $V_CCOPT"
4830 V_CCOPT="$V_CCOPT -Wall"
4831 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
4832 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
4836 case "$target_os" in
4839 V_CCOPT="$V_CCOPT -n32"
4846 os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
4848 if test -f $name ; then
4849 ln -s $name os-proto.h
4851 cat >>confdefs.h <<\_ACEOF
4852 #define HAVE_OS_PROTO_H 1
4856 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
4857 echo "$as_me: WARNING: can't find $name" >&2;}
4861 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
4862 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
4863 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 cat >conftest.$ac_ext <<_ACEOF
4867 #line $LINENO "configure"
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4874 # include <sys/types.h>
4875 # include <sys/socket.h>
4879 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_cv_lbl_sockaddr_has_sa_len=yes
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4901 ac_cv_lbl_sockaddr_has_sa_len=no
4903 rm -f conftest.$ac_objext conftest.$ac_ext
4906 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
4907 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
4908 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
4910 cat >>confdefs.h <<\_ACEOF
4911 #define HAVE_SOCKADDR_SA_LEN 1
4916 echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
4917 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6
4918 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 cat >conftest.$ac_ext <<_ACEOF
4922 #line $LINENO "configure"
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4929 # include <sys/types.h>
4930 # include <sys/socket.h>
4934 u_int i = sizeof (struct sockaddr_storage)
4939 rm -f conftest.$ac_objext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941 (eval $ac_compile) 2>&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
4945 { ac_try='test -s conftest.$ac_objext'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; }; then
4951 ac_cv_lbl_has_sockaddr_storage=yes
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4956 ac_cv_lbl_has_sockaddr_storage=no
4958 rm -f conftest.$ac_objext conftest.$ac_ext
4961 echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
4962 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6
4963 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
4965 cat >>confdefs.h <<\_ACEOF
4966 #define HAVE_SOCKADDR_STORAGE 1
4971 echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
4972 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6
4973 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 cat >conftest.$ac_ext <<_ACEOF
4977 #line $LINENO "configure"
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4984 # include <sys/types.h>
4985 # include <sys/dlpi.h>
4986 # include <sys/dlpi_ext.h>
4990 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
4995 rm -f conftest.$ac_objext
4996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4997 (eval $ac_compile) 2>&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -s conftest.$ac_objext'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5007 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
5014 rm -f conftest.$ac_objext conftest.$ac_ext
5017 echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
5018 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6
5019 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
5021 cat >>confdefs.h <<\_ACEOF
5022 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
5027 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
5028 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
5029 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 # These are CPU types where:
5037 # the CPU faults on an unaligned access, but at least some
5038 # OSes that support that CPU catch the fault and simulate
5039 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
5040 # the simulation is slow, so we don't want to use it;
5042 # the CPU, I infer (from the old
5044 # XXX: should also check that they don't do weird things (like on arm)
5046 # comment) doesn't fault on unaligned accesses, but doesn't
5047 # do a normal unaligned fetch, either (e.g., presumably, ARM);
5049 # for whatever reason, the test program doesn't work
5050 # (this has been claimed to be the case for several of those
5051 # CPUs - I don't know what the problem is; the problem
5052 # was reported as "the test program dumps core" for SuperH,
5053 # but that's what the test program is *supposed* to do -
5054 # it dumps core before it writes anything, so the test
5055 # for an empty output file should find an empty output
5056 # file and conclude that unaligned accesses don't work).
5058 # This run-time test won't work if you're cross-compiling, so
5059 # in order to support cross-compiling for a particular CPU,
5060 # we have to wire in the list of CPU types anyway, as far as
5061 # I know, so perhaps we should just have a set of CPUs on
5062 # which we know it doesn't work, a set of CPUs on which we
5063 # know it does work, and have the script just fail on other
5064 # cpu types and update it when such a failure occurs.
5066 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
5067 ac_cv_lbl_unaligned_fail=yes
5071 cat >conftest.c <<EOF
5072 # include <sys/types.h>
5073 # include <sys/wait.h>
5075 unsigned char a[5] = { 1, 2, 3, 4, 5 };
5080 /* avoid "core dumped" message */
5086 pid = waitpid(pid, &status, 0);
5089 exit(!WIFEXITED(status));
5092 i = *(unsigned int *)&a[1];
5097 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
5098 conftest.c $LIBS >/dev/null 2>&1
5099 if test ! -x conftest ; then
5100 ac_cv_lbl_unaligned_fail=yes
5102 ./conftest >conftest.out
5103 if test ! -s conftest.out ; then
5104 ac_cv_lbl_unaligned_fail=yes
5106 ac_cv_lbl_unaligned_fail=no
5109 rm -f conftest* core core.conftest
5114 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
5115 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
5116 if test $ac_cv_lbl_unaligned_fail = yes ; then
5118 cat >>confdefs.h <<\_ACEOF
5125 ln -s ${srcdir}/bpf/net net
5138 # Find a good install program. We prefer a C program (faster),
5139 # so one script is as good as another. But avoid the broken or
5140 # incompatible versions:
5141 # SysV /etc/install, /usr/sbin/install
5142 # SunOS /usr/etc/install
5143 # IRIX /sbin/install
5145 # AmigaOS /C/install, which installs bootblocks on floppy discs
5146 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5147 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5148 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5149 # ./install, which can be erroneously created by make from ./install.sh.
5150 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5151 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5152 if test -z "$INSTALL"; then
5153 if test "${ac_cv_path_install+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 test -z "$as_dir" && as_dir=.
5161 # Account for people who put trailing slashes in PATH elements.
5163 ./ | .// | /cC/* | \
5164 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5167 # OSF1 and SCO ODT 3.0 have their own names for install.
5168 # Don't use installbsd from OSF since it installs stuff as root
5170 for ac_prog in ginstall scoinst install; do
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5173 if test $ac_prog = install &&
5174 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5175 # AIX install. It has an incompatible calling convention.
5177 elif test $ac_prog = install &&
5178 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5179 # program-specific install script used by HP pwplus--don't use.
5182 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5194 if test "${ac_cv_path_install+set}" = set; then
5195 INSTALL=$ac_cv_path_install
5197 # As a last resort, use the slow shell script. We don't cache a
5198 # path for INSTALL within a source directory, because that will
5199 # break other packages using the cache if that directory is
5200 # removed, or if the path is relative.
5201 INSTALL=$ac_install_sh
5204 echo "$as_me:$LINENO: result: $INSTALL" >&5
5205 echo "${ECHO_T}$INSTALL" >&6
5207 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5208 # It thinks the first close brace ends the variable substitution.
5209 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5211 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5213 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5216 ac_config_headers="$ac_config_headers config.h"
5219 ac_config_files="$ac_config_files Makefile"
5220 cat >confcache <<\_ACEOF
5221 # This file is a shell script that caches the results of configure
5222 # tests run on this system so they can be shared between configure
5223 # scripts and configure runs, see configure's option --config-cache.
5224 # It is not useful on other systems. If it contains results you don't
5225 # want to keep, you may remove or edit it.
5227 # config.status only pays attention to the cache file if you give it
5228 # the --recheck option to rerun configure.
5230 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5231 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5236 # The following way of writing the cache mishandles newlines in values,
5237 # but we know of no workaround that is simple, portable, and efficient.
5238 # So, don't put newlines in cache variables' values.
5239 # Ultrix sh set writes to stderr and can't be redirected directly,
5240 # and sets the high bit in the cache file unless we assign to the vars.
5243 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5245 # `set' does not quote correctly, so add quotes (double-quote
5246 # substitution turns \\\\ into \\, and sed turns \\ into \).
5249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5252 # `set' quotes correctly as required by POSIX, so do not add quotes.
5254 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5261 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5263 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5265 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5266 if test -w $cache_file; then
5267 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5268 cat confcache >$cache_file
5270 echo "not updating unwritable cache $cache_file"
5275 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5276 # Let make expand exec_prefix.
5277 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5279 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5280 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5281 # trailing colons and then remove the whole line if VPATH becomes empty
5282 # (actually we leave an empty line to preserve line numbers).
5283 if test "x$srcdir" = x.; then
5284 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5285 s/:*\$(srcdir):*/:/;
5286 s/:*\${srcdir}:*/:/;
5288 s/^\([^=]*=[ ]*\):*/\1/;
5294 DEFS=-DHAVE_CONFIG_H
5298 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5299 # 1. Remove the extension, and $U if already installed.
5300 ac_i=`echo "$ac_i" |
5301 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5303 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5304 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5308 LTLIBOBJS=$ac_ltlibobjs
5312 : ${CONFIG_STATUS=./config.status}
5313 ac_clean_files_save=$ac_clean_files
5314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5315 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5316 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5317 cat >$CONFIG_STATUS <<_ACEOF
5319 # Generated by $as_me.
5320 # Run this file to recreate the current configuration.
5321 # Compiler output produced by configure, useful for debugging
5322 # configure, is in config.log if it exists.
5327 SHELL=\${CONFIG_SHELL-$SHELL}
5330 cat >>$CONFIG_STATUS <<\_ACEOF
5331 ## --------------------- ##
5332 ## M4sh Initialization. ##
5333 ## --------------------- ##
5335 # Be Bourne compatible
5336 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5339 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5340 # is contrary to our usage. Disable this feature.
5341 alias -g '${1+"$@"}'='"$@"'
5342 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5346 # Support unset when possible.
5347 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5354 # Work around bugs in pre-3.0 UWIN ksh.
5355 $as_unset ENV MAIL MAILPATH
5362 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5363 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5364 LC_TELEPHONE LC_TIME
5366 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5367 eval $as_var=C; export $as_var
5373 # Required to use basename.
5374 if expr a : '\(a\)' >/dev/null 2>&1; then
5380 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5381 as_basename=basename
5387 # Name of the executable.
5388 as_me=`$as_basename "$0" ||
5389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5390 X"$0" : 'X\(//\)$' \| \
5391 X"$0" : 'X\(/\)$' \| \
5392 . : '\(.\)' 2>/dev/null ||
5394 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5395 /^X\/\(\/\/\)$/{ s//\1/; q; }
5396 /^X\/\(\/\).*/{ s//\1/; q; }
5400 # PATH needs CR, and LINENO needs CR and PATH.
5401 # Avoid depending upon Character Ranges.
5402 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5403 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5404 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5405 as_cr_digits='0123456789'
5406 as_cr_alnum=$as_cr_Letters$as_cr_digits
5408 # The user is always right.
5409 if test "${PATH_SEPARATOR+set}" != set; then
5410 echo "#! /bin/sh" >conf$$.sh
5411 echo "exit 0" >>conf$$.sh
5413 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5424 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5425 test "x$as_lineno_1" != "x$as_lineno_2" &&
5426 test "x$as_lineno_3" = "x$as_lineno_2" || {
5427 # Find who we are. Look in the path if we contain no path at all
5430 *[\\/]* ) as_myself=$0 ;;
5431 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 test -z "$as_dir" && as_dir=.
5436 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5441 # We did not find ourselves, most probably we were run as `sh COMMAND'
5442 # in which case we are not to be found in the path.
5443 if test "x$as_myself" = x; then
5446 if test ! -f "$as_myself"; then
5447 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5448 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5449 { (exit 1); exit 1; }; }
5451 case $CONFIG_SHELL in
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5457 test -z "$as_dir" && as_dir=.
5458 for as_base in sh bash ksh sh5; do
5461 if ("$as_dir/$as_base" -c '
5464 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5465 test "x$as_lineno_1" != "x$as_lineno_2" &&
5466 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5467 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5468 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5469 CONFIG_SHELL=$as_dir/$as_base
5471 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5479 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5480 # uniformly replaced by the line number. The first 'sed' inserts a
5481 # line-number line before each line; the second 'sed' does the real
5482 # work. The second script uses 'N' to pair each line-number line
5483 # with the numbered line, and appends trailing '-' during
5484 # substitution so that $LINENO is not a special case at line end.
5485 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5486 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5487 sed '=' <$as_myself |
5492 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5495 s,^['$as_cr_digits']*\n,,
5497 chmod +x $as_me.lineno ||
5498 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5499 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5500 { (exit 1); exit 1; }; }
5502 # Don't try to exec as it changes $[0], causing all sort of problems
5503 # (the dirname of $[0] is not the place where we might find the
5504 # original and so on. Autoconf is especially sensible to this).
5506 # Exit status is that of the last command.
5511 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5512 *c*,-n*) ECHO_N= ECHO_C='
5514 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5515 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5518 if expr a : '\(a\)' >/dev/null 2>&1; then
5524 rm -f conf$$ conf$$.exe conf$$.file
5526 if ln -s conf$$.file conf$$ 2>/dev/null; then
5527 # We could just check for DJGPP; but this test a) works b) is more generic
5528 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5529 if test -f conf$$.exe; then
5530 # Don't use ln at all; we don't have any links
5535 elif ln conf$$.file conf$$ 2>/dev/null; then
5540 rm -f conf$$ conf$$.exe conf$$.file
5542 if mkdir -p . 2>/dev/null; then
5548 as_executable_p="test -f"
5550 # Sed expression to map a string onto a valid CPP name.
5551 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5553 # Sed expression to map a string onto a valid variable name.
5554 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5558 # We need space, tab and new line, in precisely that order.
5568 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5569 # report actual input values of CONFIG_FILES etc. instead of their
5570 # values after options handling. Logging --version etc. is OK.
5574 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5575 ## Running $as_me. ##
5580 This file was extended by $as_me, which was
5581 generated by GNU Autoconf 2.57. Invocation command line was
5583 CONFIG_FILES = $CONFIG_FILES
5584 CONFIG_HEADERS = $CONFIG_HEADERS
5585 CONFIG_LINKS = $CONFIG_LINKS
5586 CONFIG_COMMANDS = $CONFIG_COMMANDS
5590 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5594 # Files that config.status was made for.
5595 if test -n "$ac_config_files"; then
5596 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5599 if test -n "$ac_config_headers"; then
5600 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5603 if test -n "$ac_config_links"; then
5604 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5607 if test -n "$ac_config_commands"; then
5608 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5611 cat >>$CONFIG_STATUS <<\_ACEOF
5614 \`$as_me' instantiates files from templates according to the
5615 current configuration.
5617 Usage: $0 [OPTIONS] [FILE]...
5619 -h, --help print this help, then exit
5620 -V, --version print version number, then exit
5621 -q, --quiet do not print progress messages
5622 -d, --debug don't remove temporary files
5623 --recheck update $as_me by reconfiguring in the same conditions
5624 --file=FILE[:TEMPLATE]
5625 instantiate the configuration file FILE
5626 --header=FILE[:TEMPLATE]
5627 instantiate the configuration header FILE
5629 Configuration files:
5632 Configuration headers:
5635 Report bugs to <bug-autoconf@gnu.org>."
5638 cat >>$CONFIG_STATUS <<_ACEOF
5641 configured by $0, generated by GNU Autoconf 2.57,
5642 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5644 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5645 Free Software Foundation, Inc.
5646 This config.status script is free software; the Free Software Foundation
5647 gives unlimited permission to copy, distribute and modify it."
5652 cat >>$CONFIG_STATUS <<\_ACEOF
5653 # If no file are specified by the user, then we need to provide default
5654 # value. By we need to know if files were specified by the user.
5660 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5661 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5669 *) # This is not an option, so the user has probably given explicit
5672 ac_need_defaults=false;;
5676 # Handling of the options.
5678 cat >>$CONFIG_STATUS <<\_ACEOF
5679 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5681 --version | --vers* | -V )
5682 echo "$ac_cs_version"; exit 0 ;;
5684 # Conflict between --help and --header
5685 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5686 Try \`$0 --help' for more information." >&5
5687 echo "$as_me: error: ambiguous option: $1
5688 Try \`$0 --help' for more information." >&2;}
5689 { (exit 1); exit 1; }; };;
5690 --help | --hel | -h )
5691 echo "$ac_cs_usage"; exit 0 ;;
5692 --debug | --d* | -d )
5694 --file | --fil | --fi | --f )
5696 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5697 ac_need_defaults=false;;
5698 --header | --heade | --head | --hea )
5700 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5701 ac_need_defaults=false;;
5702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5703 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5707 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5708 Try \`$0 --help' for more information." >&5
5709 echo "$as_me: error: unrecognized option: $1
5710 Try \`$0 --help' for more information." >&2;}
5711 { (exit 1); exit 1; }; } ;;
5713 *) ac_config_targets="$ac_config_targets $1" ;;
5719 ac_configure_extra_args=
5721 if $ac_cs_silent; then
5723 ac_configure_extra_args="$ac_configure_extra_args --silent"
5727 cat >>$CONFIG_STATUS <<_ACEOF
5728 if \$ac_cs_recheck; then
5729 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5730 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5739 cat >>$CONFIG_STATUS <<\_ACEOF
5740 for ac_config_target in $ac_config_targets
5742 case "$ac_config_target" in
5743 # Handling of arguments.
5744 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5745 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5746 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5747 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5748 { (exit 1); exit 1; }; };;
5752 # If the user did not use the arguments to specify the items to instantiate,
5753 # then the envvar interface is used. Set only those that are not.
5754 # We use the long form for the default assignment because of an extremely
5755 # bizarre bug on SunOS 4.1.3.
5756 if $ac_need_defaults; then
5757 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5758 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5761 # Have a temporary directory for convenience. Make it in the build tree
5762 # simply because there is no reason to put it here, and in addition,
5763 # creating and moving files from /tmp can sometimes cause problems.
5764 # Create a temporary directory, and hook for its removal unless debugging.
5767 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5768 trap '{ (exit 1); exit 1; }' 1 2 13 15
5771 # Create a (secure) tmp directory for tmp files.
5774 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5775 test -n "$tmp" && test -d "$tmp"
5778 tmp=./confstat$$-$RANDOM
5779 (umask 077 && mkdir $tmp)
5782 echo "$me: cannot create a temporary directory in ." >&2
5783 { (exit 1); exit 1; }
5788 cat >>$CONFIG_STATUS <<_ACEOF
5791 # CONFIG_FILES section.
5794 # No need to generate the scripts if there are no CONFIG_FILES.
5795 # This happens for instance when ./config.status config.h
5796 if test -n "\$CONFIG_FILES"; then
5797 # Protect against being on the right side of a sed subst in config.status.
5798 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5799 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5800 s,@SHELL@,$SHELL,;t t
5801 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5802 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5803 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5804 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5805 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5806 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5807 s,@exec_prefix@,$exec_prefix,;t t
5808 s,@prefix@,$prefix,;t t
5809 s,@program_transform_name@,$program_transform_name,;t t
5810 s,@bindir@,$bindir,;t t
5811 s,@sbindir@,$sbindir,;t t
5812 s,@libexecdir@,$libexecdir,;t t
5813 s,@datadir@,$datadir,;t t
5814 s,@sysconfdir@,$sysconfdir,;t t
5815 s,@sharedstatedir@,$sharedstatedir,;t t
5816 s,@localstatedir@,$localstatedir,;t t
5817 s,@libdir@,$libdir,;t t
5818 s,@includedir@,$includedir,;t t
5819 s,@oldincludedir@,$oldincludedir,;t t
5820 s,@infodir@,$infodir,;t t
5821 s,@mandir@,$mandir,;t t
5822 s,@build_alias@,$build_alias,;t t
5823 s,@host_alias@,$host_alias,;t t
5824 s,@target_alias@,$target_alias,;t t
5826 s,@ECHO_C@,$ECHO_C,;t t
5827 s,@ECHO_N@,$ECHO_N,;t t
5828 s,@ECHO_T@,$ECHO_T,;t t
5830 s,@build@,$build,;t t
5831 s,@build_cpu@,$build_cpu,;t t
5832 s,@build_vendor@,$build_vendor,;t t
5833 s,@build_os@,$build_os,;t t
5835 s,@host_cpu@,$host_cpu,;t t
5836 s,@host_vendor@,$host_vendor,;t t
5837 s,@host_os@,$host_os,;t t
5838 s,@target@,$target,;t t
5839 s,@target_cpu@,$target_cpu,;t t
5840 s,@target_vendor@,$target_vendor,;t t
5841 s,@target_os@,$target_os,;t t
5842 s,@SHLICC2@,$SHLICC2,;t t
5844 s,@CFLAGS@,$CFLAGS,;t t
5845 s,@LDFLAGS@,$LDFLAGS,;t t
5846 s,@CPPFLAGS@,$CPPFLAGS,;t t
5847 s,@ac_ct_CC@,$ac_ct_CC,;t t
5848 s,@EXEEXT@,$EXEEXT,;t t
5849 s,@OBJEXT@,$OBJEXT,;t t
5851 s,@EGREP@,$EGREP,;t t
5852 s,@LIBOBJS@,$LIBOBJS,;t t
5853 s,@V_LEX@,$V_LEX,;t t
5854 s,@V_YACC@,$V_YACC,;t t
5855 s,@RANLIB@,$RANLIB,;t t
5856 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5857 s,@V_CCOPT@,$V_CCOPT,;t t
5858 s,@V_DEFS@,$V_DEFS,;t t
5859 s,@V_INCLS@,$V_INCLS,;t t
5860 s,@V_LIBS@,$V_LIBS,;t t
5861 s,@V_PCAP@,$V_PCAP,;t t
5862 s,@V_FINDALLDEVS@,$V_FINDALLDEVS,;t t
5863 s,@V_RANLIB@,$V_RANLIB,;t t
5865 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5866 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5867 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5868 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5873 cat >>$CONFIG_STATUS <<\_ACEOF
5874 # Split the substitutions into bite-sized pieces for seds with
5875 # small command number limits, like on Digital OSF/1 and HP-UX.
5877 ac_sed_frag=1 # Number of current file.
5878 ac_beg=1 # First line for current file.
5879 ac_end=$ac_max_sed_lines # Line after last line for current file.
5882 while $ac_more_lines; do
5883 if test $ac_beg -gt 1; then
5884 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5886 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5888 if test ! -s $tmp/subs.frag; then
5891 # The purpose of the label and of the branching condition is to
5892 # speed up the sed processing (if there are no `@' at all, there
5893 # is no need to browse any of the substitutions).
5894 # These are the two extra sed commands mentioned above.
5896 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5897 if test -z "$ac_sed_cmds"; then
5898 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5900 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5902 ac_sed_frag=`expr $ac_sed_frag + 1`
5904 ac_end=`expr $ac_end + $ac_max_sed_lines`
5907 if test -z "$ac_sed_cmds"; then
5910 fi # test -n "$CONFIG_FILES"
5913 cat >>$CONFIG_STATUS <<\_ACEOF
5914 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5915 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5917 - | *:- | *:-:* ) # input from stdin
5919 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5920 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5921 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5923 * ) ac_file_in=$ac_file.in ;;
5926 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5927 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5928 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5929 X"$ac_file" : 'X\(//\)[^/]' \| \
5930 X"$ac_file" : 'X\(//\)$' \| \
5931 X"$ac_file" : 'X\(/\)' \| \
5932 . : '\(.\)' 2>/dev/null ||
5934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5935 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5936 /^X\(\/\/\)$/{ s//\1/; q; }
5937 /^X\(\/\).*/{ s//\1/; q; }
5939 { if $as_mkdir_p; then
5944 while test ! -d "$as_dir"; do
5945 as_dirs="$as_dir $as_dirs"
5946 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5948 X"$as_dir" : 'X\(//\)[^/]' \| \
5949 X"$as_dir" : 'X\(//\)$' \| \
5950 X"$as_dir" : 'X\(/\)' \| \
5951 . : '\(.\)' 2>/dev/null ||
5953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5955 /^X\(\/\/\)$/{ s//\1/; q; }
5956 /^X\(\/\).*/{ s//\1/; q; }
5959 test ! -n "$as_dirs" || mkdir $as_dirs
5960 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5961 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5962 { (exit 1); exit 1; }; }; }
5966 if test "$ac_dir" != .; then
5967 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5968 # A "../" for each directory in $ac_dir_suffix.
5969 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5971 ac_dir_suffix= ac_top_builddir=
5975 .) # No --srcdir option. We are building in place.
5977 if test -z "$ac_top_builddir"; then
5980 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5982 [\\/]* | ?:[\\/]* ) # Absolute path.
5983 ac_srcdir=$srcdir$ac_dir_suffix;
5984 ac_top_srcdir=$srcdir ;;
5986 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5987 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5989 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5991 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5992 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5993 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5994 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5998 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5999 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6002 if test x"$ac_file" != x-; then
6003 { echo "$as_me:$LINENO: creating $ac_file" >&5
6004 echo "$as_me: creating $ac_file" >&6;}
6007 # Let's still pretend it is `configure' which instantiates (i.e., don't
6008 # use $as_me), people would be surprised to read:
6009 # /* config.h. Generated by config.status. */
6010 if test x"$ac_file" = x-; then
6013 configure_input="$ac_file. "
6015 configure_input=$configure_input"Generated from `echo $ac_file_in |
6016 sed 's,.*/,,'` by configure."
6018 # First look for the input files in the build tree, otherwise in the
6020 ac_file_inputs=`IFS=:
6021 for f in $ac_file_in; do
6023 -) echo $tmp/stdin ;;
6025 # Absolute (can't be DOS-style, as IFS=:)
6026 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6027 echo "$as_me: error: cannot find input file: $f" >&2;}
6028 { (exit 1); exit 1; }; }
6031 if test -f "$f"; then
6034 elif test -f "$srcdir/$f"; then
6039 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6040 echo "$as_me: error: cannot find input file: $f" >&2;}
6041 { (exit 1); exit 1; }; }
6044 done` || { (exit 1); exit 1; }
6046 cat >>$CONFIG_STATUS <<_ACEOF
6050 cat >>$CONFIG_STATUS <<\_ACEOF
6052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6053 s,@configure_input@,$configure_input,;t t
6054 s,@srcdir@,$ac_srcdir,;t t
6055 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6056 s,@top_srcdir@,$ac_top_srcdir,;t t
6057 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6058 s,@builddir@,$ac_builddir,;t t
6059 s,@abs_builddir@,$ac_abs_builddir,;t t
6060 s,@top_builddir@,$ac_top_builddir,;t t
6061 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6062 s,@INSTALL@,$ac_INSTALL,;t t
6063 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6065 if test x"$ac_file" != x-; then
6066 mv $tmp/out $ac_file
6074 cat >>$CONFIG_STATUS <<\_ACEOF
6077 # CONFIG_HEADER section.
6080 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6081 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6083 # ac_d sets the value in "#define NAME VALUE" lines.
6084 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6085 ac_dB='[ ].*$,\1#\2'
6088 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6089 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6090 ac_uB='$,\1#\2define\3'
6094 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6095 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6097 - | *:- | *:-:* ) # input from stdin
6099 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6100 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6101 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6102 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6103 * ) ac_file_in=$ac_file.in ;;
6106 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6107 echo "$as_me: creating $ac_file" >&6;}
6109 # First look for the input files in the build tree, otherwise in the
6111 ac_file_inputs=`IFS=:
6112 for f in $ac_file_in; do
6114 -) echo $tmp/stdin ;;
6116 # Absolute (can't be DOS-style, as IFS=:)
6117 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6118 echo "$as_me: error: cannot find input file: $f" >&2;}
6119 { (exit 1); exit 1; }; }
6122 if test -f "$f"; then
6125 elif test -f "$srcdir/$f"; then
6130 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6131 echo "$as_me: error: cannot find input file: $f" >&2;}
6132 { (exit 1); exit 1; }; }
6135 done` || { (exit 1); exit 1; }
6136 # Remove the trailing spaces.
6137 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6141 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6142 # `conftest.undefs', that substitutes the proper values into
6143 # config.h.in to produce config.h. The first handles `#define'
6144 # templates, and the second `#undef' templates.
6145 # And first: Protect against being on the right side of a sed subst in
6146 # config.status. Protect against being in an unquoted here document
6148 rm -f conftest.defines conftest.undefs
6149 # Using a here document instead of a string reduces the quoting nightmare.
6150 # Putting comments in sed scripts is not portable.
6152 # `end' is used to avoid that the second main sed command (meant for
6153 # 0-ary CPP macros) applies to n-ary macro definitions.
6154 # See the Autoconf documentation for `clear'.
6155 cat >confdef2sed.sed <<\_ACEOF
6160 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6162 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6165 # If some macros were called several times there might be several times
6166 # the same #defines, which is useless. Nevertheless, we may not want to
6167 # sort them, since we want the *last* AC-DEFINE to be honored.
6168 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6169 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6170 rm -f confdef2sed.sed
6172 # This sed command replaces #undef with comments. This is necessary, for
6173 # example, in the case of _POSIX_SOURCE, which is predefined and required
6174 # on some systems where configure will not decide to define it.
6175 cat >>conftest.undefs <<\_ACEOF
6176 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6179 # Break up conftest.defines because some shells have a limit on the size
6180 # of here documents, and old seds have small limits too (100 cmds).
6181 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6182 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6183 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6184 echo ' :' >>$CONFIG_STATUS
6186 while grep . conftest.defines >/dev/null
6188 # Write a limited-size here document to $tmp/defines.sed.
6189 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6190 # Speed up: don't consider the non `#define' lines.
6191 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6192 # Work around the forget-to-reset-the-flag bug.
6193 echo 't clr' >>$CONFIG_STATUS
6194 echo ': clr' >>$CONFIG_STATUS
6195 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6197 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6201 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6202 rm -f conftest.defines
6203 mv conftest.tail conftest.defines
6205 rm -f conftest.defines
6206 echo ' fi # grep' >>$CONFIG_STATUS
6207 echo >>$CONFIG_STATUS
6209 # Break up conftest.undefs because some shells have a limit on the size
6210 # of here documents, and old seds have small limits too (100 cmds).
6211 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6213 while grep . conftest.undefs >/dev/null
6215 # Write a limited-size here document to $tmp/undefs.sed.
6216 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6217 # Speed up: don't consider the non `#undef'
6218 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6219 # Work around the forget-to-reset-the-flag bug.
6220 echo 't clr' >>$CONFIG_STATUS
6221 echo ': clr' >>$CONFIG_STATUS
6222 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6224 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6228 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6229 rm -f conftest.undefs
6230 mv conftest.tail conftest.undefs
6232 rm -f conftest.undefs
6234 cat >>$CONFIG_STATUS <<\_ACEOF
6235 # Let's still pretend it is `configure' which instantiates (i.e., don't
6236 # use $as_me), people would be surprised to read:
6237 # /* config.h. Generated by config.status. */
6238 if test x"$ac_file" = x-; then
6239 echo "/* Generated by configure. */" >$tmp/config.h
6241 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6243 cat $tmp/in >>$tmp/config.h
6245 if test x"$ac_file" != x-; then
6246 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6247 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6248 echo "$as_me: $ac_file is unchanged" >&6;}
6250 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6251 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6252 X"$ac_file" : 'X\(//\)[^/]' \| \
6253 X"$ac_file" : 'X\(//\)$' \| \
6254 X"$ac_file" : 'X\(/\)' \| \
6255 . : '\(.\)' 2>/dev/null ||
6257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6259 /^X\(\/\/\)$/{ s//\1/; q; }
6260 /^X\(\/\).*/{ s//\1/; q; }
6262 { if $as_mkdir_p; then
6267 while test ! -d "$as_dir"; do
6268 as_dirs="$as_dir $as_dirs"
6269 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6270 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6271 X"$as_dir" : 'X\(//\)[^/]' \| \
6272 X"$as_dir" : 'X\(//\)$' \| \
6273 X"$as_dir" : 'X\(/\)' \| \
6274 . : '\(.\)' 2>/dev/null ||
6276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6278 /^X\(\/\/\)$/{ s//\1/; q; }
6279 /^X\(\/\).*/{ s//\1/; q; }
6282 test ! -n "$as_dirs" || mkdir $as_dirs
6283 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6284 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6285 { (exit 1); exit 1; }; }; }
6288 mv $tmp/config.h $ac_file
6297 cat >>$CONFIG_STATUS <<\_ACEOF
6299 { (exit 0); exit 0; }
6301 chmod +x $CONFIG_STATUS
6302 ac_clean_files=$ac_clean_files_save
6305 # configure is writing to config.log, and then calls config.status.
6306 # config.status does its own redirection, appending to config.log.
6307 # Unfortunately, on DOS this fails, as config.log is still kept open
6308 # by configure, so config.status won't be able to write to it; its
6309 # output is simply discarded. So we exec the FD to /dev/null,
6310 # effectively closing config.log, so it can be properly (re)opened and
6311 # appended to by config.status. When coming back to configure, we
6312 # need to make the FD available again.
6313 if test "$no_create" != yes; then
6315 ac_config_status_args=
6316 test "$silent" = yes &&
6317 ac_config_status_args="$ac_config_status_args --quiet"
6319 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6321 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6322 # would make configure fail if this is the last instruction.
6323 $ac_cs_success || { (exit 1); exit 1; }
6327 if test -f .devel ; then