]> The Tcpdump Group git mirrors - tcpdump/blob - configure
IANA (www.iana.org/assignments/service-names-port-numbers/
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.204 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 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 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
50 fi
51 rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 as_unset=unset
57 else
58 as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" "" $as_nl"
70
71 # Find who we are. Look in the path if we contain no directory separator.
72 case $0 in
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77 IFS=$as_save_IFS
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83 ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88 as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 LC_TELEPHONE LC_TIME
108 do
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
111 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 as_expr=expr
120 else
121 as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125 as_basename=basename
126 else
127 as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
138 s//\1/
139 q
140 }
141 /^X\/\(\/\/\)$/{
142 s//\1/
143 q
144 }
145 /^X\/\(\/\).*/{
146 s//\1/
147 q
148 }
149 s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
157 as_have_required=yes
158 else
159 as_have_required=no
160 fi
161
162 if test $as_have_required = yes && (eval ":
163 (as_func_return () {
164 (exit \$1)
165 }
166 as_func_success () {
167 as_func_return 0
168 }
169 as_func_failure () {
170 as_func_return 1
171 }
172 as_func_ret_success () {
173 return 0
174 }
175 as_func_ret_failure () {
176 return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181 :
182 else
183 exitcode=1
184 echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188 exitcode=1
189 echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193 :
194 else
195 exitcode=1
196 echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200 exitcode=1
201 echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 :
206 else
207 exitcode=1
208 echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214 as_lineno_1=\$LINENO
215 as_lineno_2=\$LINENO
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219 :
220 else
221 as_candidate_shells=
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 case $as_dir in
228 /*)
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 done;;
232 esac
233 done
234 IFS=$as_save_IFS
235
236
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259 CONFIG_SHELL=$as_shell
260 as_have_required=yes
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279 (exit $1)
280 }
281 as_func_success () {
282 as_func_return 0
283 }
284 as_func_failure () {
285 as_func_return 1
286 }
287 as_func_ret_success () {
288 return 0
289 }
290 as_func_ret_failure () {
291 return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296 :
297 else
298 exitcode=1
299 echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303 exitcode=1
304 echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308 :
309 else
310 exitcode=1
311 echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315 exitcode=1
316 echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 :
321 else
322 exitcode=1
323 echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329 as_lineno_1=$LINENO
330 as_lineno_2=$LINENO
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336 break
337 fi
338
339 fi
340
341 done
342
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346 done
347 export CONFIG_SHELL
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368 (exit \$1)
369 }
370 as_func_success () {
371 as_func_return 0
372 }
373 as_func_failure () {
374 as_func_return 1
375 }
376 as_func_ret_success () {
377 return 0
378 }
379 as_func_ret_failure () {
380 return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385 :
386 else
387 exitcode=1
388 echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392 exitcode=1
393 echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397 :
398 else
399 exitcode=1
400 echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404 exitcode=1
405 echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 :
410 else
411 exitcode=1
412 echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
419 echo message
420 }
421
422
423
424 as_lineno_1=$LINENO
425 as_lineno_2=$LINENO
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
435 # case at line end.
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
439 sed -n '
440 p
441 /[$]LINENO/=
442 ' <$as_myself |
443 sed '
444 s/[$]LINENO.*/&-/
445 t lineno
446 b
447 :lineno
448 N
449 :loop
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 t loop
452 s/-\n.*//
453 ' >$as_me.lineno &&
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
457
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
461 . "./$as_me.lineno"
462 # Exit status is that of the last command.
463 exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_dirname=dirname
469 else
470 as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476 case `echo 'x\c'` in
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) ECHO_C='\c';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 as_expr=expr
487 else
488 as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
494 else
495 rm -f conf$$.dir
496 mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s='ln -s'
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508 as_ln_s=ln
509 else
510 as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516 as_mkdir_p=:
517 else
518 test -d ./-p && rmdir ./-p
519 as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523 as_test_x='test -x'
524 else
525 if ls -dL / >/dev/null 2>&1; then
526 as_ls_L_option=L
527 else
528 as_ls_L_option=
529 fi
530 as_test_x='
531 eval sh -c '\''
532 if test -d "$1"; then
533 test -d "$1/.";
534 else
535 case $1 in
536 -*)set "./$1";;
537 esac;
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
540 '\'' sh
541 '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 7<&0 </dev/null 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="tcpdump.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 SHLICC2
663 CC
664 CFLAGS
665 LDFLAGS
666 CPPFLAGS
667 ac_ct_CC
668 EXEEXT
669 OBJEXT
670 CPP
671 GREP
672 EGREP
673 LIBOBJS
674 PCAP_CONFIG
675 RANLIB
676 DEPENDENCY_CFLAG MKDEP
677 V_CCOPT
678 V_DEFS
679 V_GROUP
680 V_INCLS
681 V_PCAPDEP
682 LOCALSRC
683 MAN_FILE_FORMATS
684 MAN_MISC_INFO
685 INSTALL_PROGRAM
686 INSTALL_SCRIPT
687 INSTALL_DATA
688 LTLIBOBJS'
689 ac_subst_files=''
690 ac_precious_vars='build_alias
691 host_alias
692 target_alias
693 CC
694 CFLAGS
695 LDFLAGS
696 LIBS
697 CPPFLAGS
698 CPP'
699
700
701 # Initialize some variables set by options.
702 ac_init_help=
703 ac_init_version=false
704 # The variables have the same names as the options, with
705 # dashes changed to underlines.
706 cache_file=/dev/null
707 exec_prefix=NONE
708 no_create=
709 no_recursion=
710 prefix=NONE
711 program_prefix=NONE
712 program_suffix=NONE
713 program_transform_name=s,x,x,
714 silent=
715 site=
716 srcdir=
717 verbose=
718 x_includes=NONE
719 x_libraries=NONE
720
721 # Installation directory options.
722 # These are left unexpanded so users can "make install exec_prefix=/foo"
723 # and all the variables that are supposed to be based on exec_prefix
724 # by default will actually change.
725 # Use braces instead of parens because sh, perl, etc. also accept them.
726 # (The list follows the same order as the GNU Coding Standards.)
727 bindir='${exec_prefix}/bin'
728 sbindir='${exec_prefix}/sbin'
729 libexecdir='${exec_prefix}/libexec'
730 datarootdir='${prefix}/share'
731 datadir='${datarootdir}'
732 sysconfdir='${prefix}/etc'
733 sharedstatedir='${prefix}/com'
734 localstatedir='${prefix}/var'
735 includedir='${prefix}/include'
736 oldincludedir='/usr/include'
737 docdir='${datarootdir}/doc/${PACKAGE}'
738 infodir='${datarootdir}/info'
739 htmldir='${docdir}'
740 dvidir='${docdir}'
741 pdfdir='${docdir}'
742 psdir='${docdir}'
743 libdir='${exec_prefix}/lib'
744 localedir='${datarootdir}/locale'
745 mandir='${datarootdir}/man'
746
747 ac_prev=
748 ac_dashdash=
749 for ac_option
750 do
751 # If the previous option needs an argument, assign it.
752 if test -n "$ac_prev"; then
753 eval $ac_prev=\$ac_option
754 ac_prev=
755 continue
756 fi
757
758 case $ac_option in
759 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
760 *) ac_optarg=yes ;;
761 esac
762
763 # Accept the important Cygnus configure options, so we can diagnose typos.
764
765 case $ac_dashdash$ac_option in
766 --)
767 ac_dashdash=yes ;;
768
769 -bindir | --bindir | --bindi | --bind | --bin | --bi)
770 ac_prev=bindir ;;
771 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
772 bindir=$ac_optarg ;;
773
774 -build | --build | --buil | --bui | --bu)
775 ac_prev=build_alias ;;
776 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
777 build_alias=$ac_optarg ;;
778
779 -cache-file | --cache-file | --cache-fil | --cache-fi \
780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
781 ac_prev=cache_file ;;
782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
784 cache_file=$ac_optarg ;;
785
786 --config-cache | -C)
787 cache_file=config.cache ;;
788
789 -datadir | --datadir | --datadi | --datad)
790 ac_prev=datadir ;;
791 -datadir=* | --datadir=* | --datadi=* | --datad=*)
792 datadir=$ac_optarg ;;
793
794 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
795 | --dataroo | --dataro | --datar)
796 ac_prev=datarootdir ;;
797 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
798 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
799 datarootdir=$ac_optarg ;;
800
801 -disable-* | --disable-*)
802 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
806 { (exit 1); exit 1; }; }
807 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
808 eval enable_$ac_feature=no ;;
809
810 -docdir | --docdir | --docdi | --doc | --do)
811 ac_prev=docdir ;;
812 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
813 docdir=$ac_optarg ;;
814
815 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
816 ac_prev=dvidir ;;
817 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
818 dvidir=$ac_optarg ;;
819
820 -enable-* | --enable-*)
821 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_$ac_feature=\$ac_optarg ;;
828
829 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
830 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
831 | --exec | --exe | --ex)
832 ac_prev=exec_prefix ;;
833 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
834 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
835 | --exec=* | --exe=* | --ex=*)
836 exec_prefix=$ac_optarg ;;
837
838 -gas | --gas | --ga | --g)
839 # Obsolete; use --with-gas.
840 with_gas=yes ;;
841
842 -help | --help | --hel | --he | -h)
843 ac_init_help=long ;;
844 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
845 ac_init_help=recursive ;;
846 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
847 ac_init_help=short ;;
848
849 -host | --host | --hos | --ho)
850 ac_prev=host_alias ;;
851 -host=* | --host=* | --hos=* | --ho=*)
852 host_alias=$ac_optarg ;;
853
854 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
855 ac_prev=htmldir ;;
856 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
857 | --ht=*)
858 htmldir=$ac_optarg ;;
859
860 -includedir | --includedir | --includedi | --included | --include \
861 | --includ | --inclu | --incl | --inc)
862 ac_prev=includedir ;;
863 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
864 | --includ=* | --inclu=* | --incl=* | --inc=*)
865 includedir=$ac_optarg ;;
866
867 -infodir | --infodir | --infodi | --infod | --info | --inf)
868 ac_prev=infodir ;;
869 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
870 infodir=$ac_optarg ;;
871
872 -libdir | --libdir | --libdi | --libd)
873 ac_prev=libdir ;;
874 -libdir=* | --libdir=* | --libdi=* | --libd=*)
875 libdir=$ac_optarg ;;
876
877 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
878 | --libexe | --libex | --libe)
879 ac_prev=libexecdir ;;
880 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
881 | --libexe=* | --libex=* | --libe=*)
882 libexecdir=$ac_optarg ;;
883
884 -localedir | --localedir | --localedi | --localed | --locale)
885 ac_prev=localedir ;;
886 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
887 localedir=$ac_optarg ;;
888
889 -localstatedir | --localstatedir | --localstatedi | --localstated \
890 | --localstate | --localstat | --localsta | --localst | --locals)
891 ac_prev=localstatedir ;;
892 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
893 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
894 localstatedir=$ac_optarg ;;
895
896 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
897 ac_prev=mandir ;;
898 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
899 mandir=$ac_optarg ;;
900
901 -nfp | --nfp | --nf)
902 # Obsolete; use --without-fp.
903 with_fp=no ;;
904
905 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
906 | --no-cr | --no-c | -n)
907 no_create=yes ;;
908
909 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
910 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
911 no_recursion=yes ;;
912
913 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
914 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
915 | --oldin | --oldi | --old | --ol | --o)
916 ac_prev=oldincludedir ;;
917 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
918 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
919 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
920 oldincludedir=$ac_optarg ;;
921
922 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
923 ac_prev=prefix ;;
924 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
925 prefix=$ac_optarg ;;
926
927 -program-prefix | --program-prefix | --program-prefi | --program-pref \
928 | --program-pre | --program-pr | --program-p)
929 ac_prev=program_prefix ;;
930 -program-prefix=* | --program-prefix=* | --program-prefi=* \
931 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
932 program_prefix=$ac_optarg ;;
933
934 -program-suffix | --program-suffix | --program-suffi | --program-suff \
935 | --program-suf | --program-su | --program-s)
936 ac_prev=program_suffix ;;
937 -program-suffix=* | --program-suffix=* | --program-suffi=* \
938 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
939 program_suffix=$ac_optarg ;;
940
941 -program-transform-name | --program-transform-name \
942 | --program-transform-nam | --program-transform-na \
943 | --program-transform-n | --program-transform- \
944 | --program-transform | --program-transfor \
945 | --program-transfo | --program-transf \
946 | --program-trans | --program-tran \
947 | --progr-tra | --program-tr | --program-t)
948 ac_prev=program_transform_name ;;
949 -program-transform-name=* | --program-transform-name=* \
950 | --program-transform-nam=* | --program-transform-na=* \
951 | --program-transform-n=* | --program-transform-=* \
952 | --program-transform=* | --program-transfor=* \
953 | --program-transfo=* | --program-transf=* \
954 | --program-trans=* | --program-tran=* \
955 | --progr-tra=* | --program-tr=* | --program-t=*)
956 program_transform_name=$ac_optarg ;;
957
958 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
959 ac_prev=pdfdir ;;
960 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
961 pdfdir=$ac_optarg ;;
962
963 -psdir | --psdir | --psdi | --psd | --ps)
964 ac_prev=psdir ;;
965 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
966 psdir=$ac_optarg ;;
967
968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
969 | -silent | --silent | --silen | --sile | --sil)
970 silent=yes ;;
971
972 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
973 ac_prev=sbindir ;;
974 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
975 | --sbi=* | --sb=*)
976 sbindir=$ac_optarg ;;
977
978 -sharedstatedir | --sharedstatedir | --sharedstatedi \
979 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
980 | --sharedst | --shareds | --shared | --share | --shar \
981 | --sha | --sh)
982 ac_prev=sharedstatedir ;;
983 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
984 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
985 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
986 | --sha=* | --sh=*)
987 sharedstatedir=$ac_optarg ;;
988
989 -site | --site | --sit)
990 ac_prev=site ;;
991 -site=* | --site=* | --sit=*)
992 site=$ac_optarg ;;
993
994 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
995 ac_prev=srcdir ;;
996 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
997 srcdir=$ac_optarg ;;
998
999 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1000 | --syscon | --sysco | --sysc | --sys | --sy)
1001 ac_prev=sysconfdir ;;
1002 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1003 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1004 sysconfdir=$ac_optarg ;;
1005
1006 -target | --target | --targe | --targ | --tar | --ta | --t)
1007 ac_prev=target_alias ;;
1008 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1009 target_alias=$ac_optarg ;;
1010
1011 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1012 verbose=yes ;;
1013
1014 -version | --version | --versio | --versi | --vers | -V)
1015 ac_init_version=: ;;
1016
1017 -with-* | --with-*)
1018 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid package name: $ac_package" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1024 eval with_$ac_package=\$ac_optarg ;;
1025
1026 -without-* | --without-*)
1027 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030 { echo "$as_me: error: invalid package name: $ac_package" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1033 eval with_$ac_package=no ;;
1034
1035 --x)
1036 # Obsolete; use --with-x.
1037 with_x=yes ;;
1038
1039 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1040 | --x-incl | --x-inc | --x-in | --x-i)
1041 ac_prev=x_includes ;;
1042 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1043 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1044 x_includes=$ac_optarg ;;
1045
1046 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1047 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1048 ac_prev=x_libraries ;;
1049 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1050 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1051 x_libraries=$ac_optarg ;;
1052
1053 -*) { echo "$as_me: error: unrecognized option: $ac_option
1054 Try \`$0 --help' for more information." >&2
1055 { (exit 1); exit 1; }; }
1056 ;;
1057
1058 *=*)
1059 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1063 { (exit 1); exit 1; }; }
1064 eval $ac_envvar=\$ac_optarg
1065 export $ac_envvar ;;
1066
1067 *)
1068 # FIXME: should be removed in autoconf 3.0.
1069 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1070 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1072 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1073 ;;
1074
1075 esac
1076 done
1077
1078 if test -n "$ac_prev"; then
1079 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1080 { echo "$as_me: error: missing argument to $ac_option" >&2
1081 { (exit 1); exit 1; }; }
1082 fi
1083
1084 # Be sure to have absolute directory names.
1085 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1086 datadir sysconfdir sharedstatedir localstatedir includedir \
1087 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1088 libdir localedir mandir
1089 do
1090 eval ac_val=\$$ac_var
1091 case $ac_val in
1092 [\\/$]* | ?:[\\/]* ) continue;;
1093 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1094 esac
1095 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1096 { (exit 1); exit 1; }; }
1097 done
1098
1099 # There might be people who depend on the old broken behavior: `$host'
1100 # used to hold the argument of --host etc.
1101 # FIXME: To remove some day.
1102 build=$build_alias
1103 host=$host_alias
1104 target=$target_alias
1105
1106 # FIXME: To remove some day.
1107 if test "x$host_alias" != x; then
1108 if test "x$build_alias" = x; then
1109 cross_compiling=maybe
1110 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1111 If a cross compiler is detected then cross compile mode will be used." >&2
1112 elif test "x$build_alias" != "x$host_alias"; then
1113 cross_compiling=yes
1114 fi
1115 fi
1116
1117 ac_tool_prefix=
1118 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1119
1120 test "$silent" = yes && exec 6>/dev/null
1121
1122
1123 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1124 ac_ls_di=`ls -di .` &&
1125 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1126 { echo "$as_me: error: Working directory cannot be determined" >&2
1127 { (exit 1); exit 1; }; }
1128 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1129 { echo "$as_me: error: pwd does not report name of working directory" >&2
1130 { (exit 1); exit 1; }; }
1131
1132
1133 # Find the source files, if location was not specified.
1134 if test -z "$srcdir"; then
1135 ac_srcdir_defaulted=yes
1136 # Try the directory containing this script, then the parent directory.
1137 ac_confdir=`$as_dirname -- "$0" ||
1138 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1139 X"$0" : 'X\(//\)[^/]' \| \
1140 X"$0" : 'X\(//\)$' \| \
1141 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1142 echo X"$0" |
1143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1144 s//\1/
1145 q
1146 }
1147 /^X\(\/\/\)[^/].*/{
1148 s//\1/
1149 q
1150 }
1151 /^X\(\/\/\)$/{
1152 s//\1/
1153 q
1154 }
1155 /^X\(\/\).*/{
1156 s//\1/
1157 q
1158 }
1159 s/.*/./; q'`
1160 srcdir=$ac_confdir
1161 if test ! -r "$srcdir/$ac_unique_file"; then
1162 srcdir=..
1163 fi
1164 else
1165 ac_srcdir_defaulted=no
1166 fi
1167 if test ! -r "$srcdir/$ac_unique_file"; then
1168 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1169 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1170 { (exit 1); exit 1; }; }
1171 fi
1172 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1173 ac_abs_confdir=`(
1174 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1175 { (exit 1); exit 1; }; }
1176 pwd)`
1177 # When building in place, set srcdir=.
1178 if test "$ac_abs_confdir" = "$ac_pwd"; then
1179 srcdir=.
1180 fi
1181 # Remove unnecessary trailing slashes from srcdir.
1182 # Double slashes in file names in object file debugging info
1183 # mess up M-x gdb in Emacs.
1184 case $srcdir in
1185 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1186 esac
1187 for ac_var in $ac_precious_vars; do
1188 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1189 eval ac_env_${ac_var}_value=\$${ac_var}
1190 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1191 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1192 done
1193
1194 #
1195 # Report the --help message.
1196 #
1197 if test "$ac_init_help" = "long"; then
1198 # Omit some internal or obsolete options to make the list less imposing.
1199 # This message is too long to be a string in the A/UX 3.1 sh.
1200 cat <<_ACEOF
1201 \`configure' configures this package to adapt to many kinds of systems.
1202
1203 Usage: $0 [OPTION]... [VAR=VALUE]...
1204
1205 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1206 VAR=VALUE. See below for descriptions of some of the useful variables.
1207
1208 Defaults for the options are specified in brackets.
1209
1210 Configuration:
1211 -h, --help display this help and exit
1212 --help=short display options specific to this package
1213 --help=recursive display the short help of all the included packages
1214 -V, --version display version information and exit
1215 -q, --quiet, --silent do not print \`checking...' messages
1216 --cache-file=FILE cache test results in FILE [disabled]
1217 -C, --config-cache alias for \`--cache-file=config.cache'
1218 -n, --no-create do not create output files
1219 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1220
1221 Installation directories:
1222 --prefix=PREFIX install architecture-independent files in PREFIX
1223 [$ac_default_prefix]
1224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1225 [PREFIX]
1226
1227 By default, \`make install' will install all the files in
1228 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1229 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1230 for instance \`--prefix=\$HOME'.
1231
1232 For better control, use the options below.
1233
1234 Fine tuning of the installation directories:
1235 --bindir=DIR user executables [EPREFIX/bin]
1236 --sbindir=DIR system admin executables [EPREFIX/sbin]
1237 --libexecdir=DIR program executables [EPREFIX/libexec]
1238 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1239 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1240 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1241 --libdir=DIR object code libraries [EPREFIX/lib]
1242 --includedir=DIR C header files [PREFIX/include]
1243 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1244 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1245 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1246 --infodir=DIR info documentation [DATAROOTDIR/info]
1247 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1248 --mandir=DIR man documentation [DATAROOTDIR/man]
1249 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1250 --htmldir=DIR html documentation [DOCDIR]
1251 --dvidir=DIR dvi documentation [DOCDIR]
1252 --pdfdir=DIR pdf documentation [DOCDIR]
1253 --psdir=DIR ps documentation [DOCDIR]
1254 _ACEOF
1255
1256 cat <<\_ACEOF
1257
1258 System types:
1259 --build=BUILD configure for building on BUILD [guessed]
1260 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1261 _ACEOF
1262 fi
1263
1264 if test -n "$ac_init_help"; then
1265
1266 cat <<\_ACEOF
1267
1268 Optional Features:
1269 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1270 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1271 --disable-universal don't build universal on OS X
1272 --enable-smb enable possibly-buggy SMB printer default=yes
1273 --disable-smb disable possibly-buggy SMB printer
1274 --enable-ipv6 enable ipv6 (with ipv4) support
1275 --disable-ipv6 disable ipv6 support
1276
1277 Optional Packages:
1278 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1279 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1280 --without-gcc don't use gcc
1281 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1282 --without-smi don't link with libsmi
1283 --with-user=USERNAME drop privileges by default to USERNAME
1284 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1285 --with-crypto use OpenSSL libcrypto [default=yes, if available]
1286
1287 Some influential environment variables:
1288 CC C compiler command
1289 CFLAGS C compiler flags
1290 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1291 nonstandard directory <lib dir>
1292 LIBS libraries to pass to the linker, e.g. -l<library>
1293 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1294 you have headers in a nonstandard directory <include dir>
1295 CPP C preprocessor
1296
1297 Use these variables to override the choices made by `configure' or to help
1298 it to find libraries and programs with nonstandard names/locations.
1299
1300 _ACEOF
1301 ac_status=$?
1302 fi
1303
1304 if test "$ac_init_help" = "recursive"; then
1305 # If there are subdirs, report their specific --help.
1306 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1307 test -d "$ac_dir" || continue
1308 ac_builddir=.
1309
1310 case "$ac_dir" in
1311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312 *)
1313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314 # A ".." for each directory in $ac_dir_suffix.
1315 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316 case $ac_top_builddir_sub in
1317 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1319 esac ;;
1320 esac
1321 ac_abs_top_builddir=$ac_pwd
1322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1323 # for backward compatibility:
1324 ac_top_builddir=$ac_top_build_prefix
1325
1326 case $srcdir in
1327 .) # We are building in place.
1328 ac_srcdir=.
1329 ac_top_srcdir=$ac_top_builddir_sub
1330 ac_abs_top_srcdir=$ac_pwd ;;
1331 [\\/]* | ?:[\\/]* ) # Absolute name.
1332 ac_srcdir=$srcdir$ac_dir_suffix;
1333 ac_top_srcdir=$srcdir
1334 ac_abs_top_srcdir=$srcdir ;;
1335 *) # Relative name.
1336 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337 ac_top_srcdir=$ac_top_build_prefix$srcdir
1338 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339 esac
1340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1341
1342 cd "$ac_dir" || { ac_status=$?; continue; }
1343 # Check for guested configure.
1344 if test -f "$ac_srcdir/configure.gnu"; then
1345 echo &&
1346 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347 elif test -f "$ac_srcdir/configure"; then
1348 echo &&
1349 $SHELL "$ac_srcdir/configure" --help=recursive
1350 else
1351 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352 fi || ac_status=$?
1353 cd "$ac_pwd" || { ac_status=$?; break; }
1354 done
1355 fi
1356
1357 test -n "$ac_init_help" && exit $ac_status
1358 if $ac_init_version; then
1359 cat <<\_ACEOF
1360 configure
1361 generated by GNU Autoconf 2.61
1362
1363 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1364 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1365 This configure script is free software; the Free Software Foundation
1366 gives unlimited permission to copy, distribute and modify it.
1367 _ACEOF
1368 exit
1369 fi
1370 cat >config.log <<_ACEOF
1371 This file contains any messages produced by compilers while
1372 running configure, to aid debugging if configure makes a mistake.
1373
1374 It was created by $as_me, which was
1375 generated by GNU Autoconf 2.61. Invocation command line was
1376
1377 $ $0 $@
1378
1379 _ACEOF
1380 exec 5>>config.log
1381 {
1382 cat <<_ASUNAME
1383 ## --------- ##
1384 ## Platform. ##
1385 ## --------- ##
1386
1387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1392
1393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1395
1396 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1397 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1400 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1401 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1402 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1403
1404 _ASUNAME
1405
1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407 for as_dir in $PATH
1408 do
1409 IFS=$as_save_IFS
1410 test -z "$as_dir" && as_dir=.
1411 echo "PATH: $as_dir"
1412 done
1413 IFS=$as_save_IFS
1414
1415 } >&5
1416
1417 cat >&5 <<_ACEOF
1418
1419
1420 ## ----------- ##
1421 ## Core tests. ##
1422 ## ----------- ##
1423
1424 _ACEOF
1425
1426
1427 # Keep a trace of the command line.
1428 # Strip out --no-create and --no-recursion so they do not pile up.
1429 # Strip out --silent because we don't want to record it for future runs.
1430 # Also quote any args containing shell meta-characters.
1431 # Make two passes to allow for proper duplicate-argument suppression.
1432 ac_configure_args=
1433 ac_configure_args0=
1434 ac_configure_args1=
1435 ac_must_keep_next=false
1436 for ac_pass in 1 2
1437 do
1438 for ac_arg
1439 do
1440 case $ac_arg in
1441 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1443 | -silent | --silent | --silen | --sile | --sil)
1444 continue ;;
1445 *\'*)
1446 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 esac
1448 case $ac_pass in
1449 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1450 2)
1451 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1452 if test $ac_must_keep_next = true; then
1453 ac_must_keep_next=false # Got value, back to normal.
1454 else
1455 case $ac_arg in
1456 *=* | --config-cache | -C | -disable-* | --disable-* \
1457 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1458 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1459 | -with-* | --with-* | -without-* | --without-* | --x)
1460 case "$ac_configure_args0 " in
1461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1462 esac
1463 ;;
1464 -* ) ac_must_keep_next=true ;;
1465 esac
1466 fi
1467 ac_configure_args="$ac_configure_args '$ac_arg'"
1468 ;;
1469 esac
1470 done
1471 done
1472 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1473 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1474
1475 # When interrupted or exit'd, cleanup temporary files, and complete
1476 # config.log. We remove comments because anyway the quotes in there
1477 # would cause problems or look ugly.
1478 # WARNING: Use '\'' to represent an apostrophe within the trap.
1479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480 trap 'exit_status=$?
1481 # Save into config.log some information that might help in debugging.
1482 {
1483 echo
1484
1485 cat <<\_ASBOX
1486 ## ---------------- ##
1487 ## Cache variables. ##
1488 ## ---------------- ##
1489 _ASBOX
1490 echo
1491 # The following way of writing the cache mishandles newlines in values,
1492 (
1493 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494 eval ac_val=\$$ac_var
1495 case $ac_val in #(
1496 *${as_nl}*)
1497 case $ac_var in #(
1498 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1500 esac
1501 case $ac_var in #(
1502 _ | IFS | as_nl) ;; #(
1503 *) $as_unset $ac_var ;;
1504 esac ;;
1505 esac
1506 done
1507 (set) 2>&1 |
1508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509 *${as_nl}ac_space=\ *)
1510 sed -n \
1511 "s/'\''/'\''\\\\'\'''\''/g;
1512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1513 ;; #(
1514 *)
1515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1516 ;;
1517 esac |
1518 sort
1519 )
1520 echo
1521
1522 cat <<\_ASBOX
1523 ## ----------------- ##
1524 ## Output variables. ##
1525 ## ----------------- ##
1526 _ASBOX
1527 echo
1528 for ac_var in $ac_subst_vars
1529 do
1530 eval ac_val=\$$ac_var
1531 case $ac_val in
1532 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533 esac
1534 echo "$ac_var='\''$ac_val'\''"
1535 done | sort
1536 echo
1537
1538 if test -n "$ac_subst_files"; then
1539 cat <<\_ASBOX
1540 ## ------------------- ##
1541 ## File substitutions. ##
1542 ## ------------------- ##
1543 _ASBOX
1544 echo
1545 for ac_var in $ac_subst_files
1546 do
1547 eval ac_val=\$$ac_var
1548 case $ac_val in
1549 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550 esac
1551 echo "$ac_var='\''$ac_val'\''"
1552 done | sort
1553 echo
1554 fi
1555
1556 if test -s confdefs.h; then
1557 cat <<\_ASBOX
1558 ## ----------- ##
1559 ## confdefs.h. ##
1560 ## ----------- ##
1561 _ASBOX
1562 echo
1563 cat confdefs.h
1564 echo
1565 fi
1566 test "$ac_signal" != 0 &&
1567 echo "$as_me: caught signal $ac_signal"
1568 echo "$as_me: exit $exit_status"
1569 } >&5
1570 rm -f core *.core core.conftest.* &&
1571 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1572 exit $exit_status
1573 ' 0
1574 for ac_signal in 1 2 13 15; do
1575 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1576 done
1577 ac_signal=0
1578
1579 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1580 rm -f -r conftest* confdefs.h
1581
1582 # Predefined preprocessor variables.
1583
1584 cat >>confdefs.h <<_ACEOF
1585 #define PACKAGE_NAME "$PACKAGE_NAME"
1586 _ACEOF
1587
1588
1589 cat >>confdefs.h <<_ACEOF
1590 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1591 _ACEOF
1592
1593
1594 cat >>confdefs.h <<_ACEOF
1595 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1596 _ACEOF
1597
1598
1599 cat >>confdefs.h <<_ACEOF
1600 #define PACKAGE_STRING "$PACKAGE_STRING"
1601 _ACEOF
1602
1603
1604 cat >>confdefs.h <<_ACEOF
1605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1606 _ACEOF
1607
1608
1609 # Let the site file select an alternate cache file if it wants to.
1610 # Prefer explicitly selected file to automatically selected ones.
1611 if test -n "$CONFIG_SITE"; then
1612 set x "$CONFIG_SITE"
1613 elif test "x$prefix" != xNONE; then
1614 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1615 else
1616 set x "$ac_default_prefix/share/config.site" \
1617 "$ac_default_prefix/etc/config.site"
1618 fi
1619 shift
1620 for ac_site_file
1621 do
1622 if test -r "$ac_site_file"; then
1623 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624 echo "$as_me: loading site script $ac_site_file" >&6;}
1625 sed 's/^/| /' "$ac_site_file" >&5
1626 . "$ac_site_file"
1627 fi
1628 done
1629
1630 if test -r "$cache_file"; then
1631 # Some versions of bash will fail to source /dev/null (special
1632 # files actually), so we avoid doing that.
1633 if test -f "$cache_file"; then
1634 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635 echo "$as_me: loading cache $cache_file" >&6;}
1636 case $cache_file in
1637 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1638 *) . "./$cache_file";;
1639 esac
1640 fi
1641 else
1642 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643 echo "$as_me: creating cache $cache_file" >&6;}
1644 >$cache_file
1645 fi
1646
1647 # Check that the precious variables saved in the cache have kept the same
1648 # value.
1649 ac_cache_corrupted=false
1650 for ac_var in $ac_precious_vars; do
1651 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1652 eval ac_new_set=\$ac_env_${ac_var}_set
1653 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1654 eval ac_new_val=\$ac_env_${ac_var}_value
1655 case $ac_old_set,$ac_new_set in
1656 set,)
1657 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1659 ac_cache_corrupted=: ;;
1660 ,set)
1661 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1662 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1663 ac_cache_corrupted=: ;;
1664 ,);;
1665 *)
1666 if test "x$ac_old_val" != "x$ac_new_val"; then
1667 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1668 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1669 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1670 echo "$as_me: former value: $ac_old_val" >&2;}
1671 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1672 echo "$as_me: current value: $ac_new_val" >&2;}
1673 ac_cache_corrupted=:
1674 fi;;
1675 esac
1676 # Pass precious variables to config.status.
1677 if test "$ac_new_set" = set; then
1678 case $ac_new_val in
1679 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 *) ac_arg=$ac_var=$ac_new_val ;;
1681 esac
1682 case " $ac_configure_args " in
1683 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1684 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1685 esac
1686 fi
1687 done
1688 if $ac_cache_corrupted; then
1689 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1690 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1691 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1692 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1693 { (exit 1); exit 1; }; }
1694 fi
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712 ac_ext=c
1713 ac_cpp='$CPP $CPPFLAGS'
1714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1717
1718
1719
1720 ac_aux_dir=
1721 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1722 if test -f "$ac_dir/install-sh"; then
1723 ac_aux_dir=$ac_dir
1724 ac_install_sh="$ac_aux_dir/install-sh -c"
1725 break
1726 elif test -f "$ac_dir/install.sh"; then
1727 ac_aux_dir=$ac_dir
1728 ac_install_sh="$ac_aux_dir/install.sh -c"
1729 break
1730 elif test -f "$ac_dir/shtool"; then
1731 ac_aux_dir=$ac_dir
1732 ac_install_sh="$ac_aux_dir/shtool install -c"
1733 break
1734 fi
1735 done
1736 if test -z "$ac_aux_dir"; then
1737 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1738 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1739 { (exit 1); exit 1; }; }
1740 fi
1741
1742 # These three variables are undocumented and unsupported,
1743 # and are intended to be withdrawn in a future Autoconf release.
1744 # They can cause serious problems if a builder's source tree is in a directory
1745 # whose full name contains unusual characters.
1746 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1747 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1748 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1749
1750
1751 # Make sure we can run config.sub.
1752 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1753 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1754 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1755 { (exit 1); exit 1; }; }
1756
1757 { echo "$as_me:$LINENO: checking build system type" >&5
1758 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1759 if test "${ac_cv_build+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762 ac_build_alias=$build_alias
1763 test "x$ac_build_alias" = x &&
1764 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1765 test "x$ac_build_alias" = x &&
1766 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1767 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1768 { (exit 1); exit 1; }; }
1769 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1770 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1771 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1772 { (exit 1); exit 1; }; }
1773
1774 fi
1775 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1776 echo "${ECHO_T}$ac_cv_build" >&6; }
1777 case $ac_cv_build in
1778 *-*-*) ;;
1779 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1780 echo "$as_me: error: invalid value of canonical build" >&2;}
1781 { (exit 1); exit 1; }; };;
1782 esac
1783 build=$ac_cv_build
1784 ac_save_IFS=$IFS; IFS='-'
1785 set x $ac_cv_build
1786 shift
1787 build_cpu=$1
1788 build_vendor=$2
1789 shift; shift
1790 # Remember, the first character of IFS is used to create $*,
1791 # except with old shells:
1792 build_os=$*
1793 IFS=$ac_save_IFS
1794 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1795
1796
1797 { echo "$as_me:$LINENO: checking host system type" >&5
1798 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1799 if test "${ac_cv_host+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 if test "x$host_alias" = x; then
1803 ac_cv_host=$ac_cv_build
1804 else
1805 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1806 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1807 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1808 { (exit 1); exit 1; }; }
1809 fi
1810
1811 fi
1812 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1813 echo "${ECHO_T}$ac_cv_host" >&6; }
1814 case $ac_cv_host in
1815 *-*-*) ;;
1816 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1817 echo "$as_me: error: invalid value of canonical host" >&2;}
1818 { (exit 1); exit 1; }; };;
1819 esac
1820 host=$ac_cv_host
1821 ac_save_IFS=$IFS; IFS='-'
1822 set x $ac_cv_host
1823 shift
1824 host_cpu=$1
1825 host_vendor=$2
1826 shift; shift
1827 # Remember, the first character of IFS is used to create $*,
1828 # except with old shells:
1829 host_os=$*
1830 IFS=$ac_save_IFS
1831 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841 # Check whether --with-gcc was given.
1842 if test "${with_gcc+set}" = set; then
1843 withval=$with_gcc;
1844 fi
1845
1846 V_CCOPT="-O"
1847 V_INCLS=""
1848 if test "${srcdir}" != "." ; then
1849 V_INCLS="-I$srcdir"
1850 fi
1851 if test "${CFLAGS+set}" = set; then
1852 LBL_CFLAGS="$CFLAGS"
1853 fi
1854 if test -z "$CC" ; then
1855 case "$host_os" in
1856
1857 bsdi*)
1858 # Extract the first word of "shlicc2", so it can be a program name with args.
1859 set dummy shlicc2; ac_word=$2
1860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1862 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865 if test -n "$SHLICC2"; then
1866 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1875 ac_cv_prog_SHLICC2="yes"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 break 2
1878 fi
1879 done
1880 done
1881 IFS=$as_save_IFS
1882
1883 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1884 fi
1885 fi
1886 SHLICC2=$ac_cv_prog_SHLICC2
1887 if test -n "$SHLICC2"; then
1888 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1889 echo "${ECHO_T}$SHLICC2" >&6; }
1890 else
1891 { echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6; }
1893 fi
1894
1895
1896 if test $SHLICC2 = yes ; then
1897 CC=shlicc2
1898 export CC
1899 fi
1900 ;;
1901 esac
1902 fi
1903 if test -z "$CC" -a "$with_gcc" = no ; then
1904 CC=cc
1905 export CC
1906 fi
1907
1908 ac_ext=c
1909 ac_cpp='$CPP $CPPFLAGS'
1910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913 if test -n "$ac_tool_prefix"; then
1914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1915 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927 IFS=$as_save_IFS
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1931 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
1934 fi
1935 done
1936 done
1937 IFS=$as_save_IFS
1938
1939 fi
1940 fi
1941 CC=$ac_cv_prog_CC
1942 if test -n "$CC"; then
1943 { echo "$as_me:$LINENO: result: $CC" >&5
1944 echo "${ECHO_T}$CC" >&6; }
1945 else
1946 { echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6; }
1948 fi
1949
1950
1951 fi
1952 if test -z "$ac_cv_prog_CC"; then
1953 ac_ct_CC=$CC
1954 # Extract the first word of "gcc", so it can be a program name with args.
1955 set dummy gcc; ac_word=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971 ac_cv_prog_ac_ct_CC="gcc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975 done
1976 done
1977 IFS=$as_save_IFS
1978
1979 fi
1980 fi
1981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1982 if test -n "$ac_ct_CC"; then
1983 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1984 echo "${ECHO_T}$ac_ct_CC" >&6; }
1985 else
1986 { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1988 fi
1989
1990 if test "x$ac_ct_CC" = x; then
1991 CC=""
1992 else
1993 case $cross_compiling:$ac_tool_warned in
1994 yes:)
1995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1996 whose name does not start with the host triplet. If you think this
1997 configuration is useful to you, please write to autoconf@gnu.org." >&5
1998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1999 whose name does not start with the host triplet. If you think this
2000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2001 ac_tool_warned=yes ;;
2002 esac
2003 CC=$ac_ct_CC
2004 fi
2005 else
2006 CC="$ac_cv_prog_CC"
2007 fi
2008
2009 if test -z "$CC"; then
2010 if test -n "$ac_tool_prefix"; then
2011 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2012 set dummy ${ac_tool_prefix}cc; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_CC="${ac_tool_prefix}cc"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 break 2
2031 fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040 { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2042 else
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047
2048 fi
2049 fi
2050 if test -z "$CC"; then
2051 # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061 ac_prog_rejected=no
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070 ac_prog_rejected=yes
2071 continue
2072 fi
2073 ac_cv_prog_CC="cc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 break 2
2076 fi
2077 done
2078 done
2079 IFS=$as_save_IFS
2080
2081 if test $ac_prog_rejected = yes; then
2082 # We found a bogon in the path, so make sure we never use it.
2083 set dummy $ac_cv_prog_CC
2084 shift
2085 if test $# != 0; then
2086 # We chose a different compiler from the bogus one.
2087 # However, it has the same basename, so the bogon will be chosen
2088 # first if we set CC to just the basename; use the full file name.
2089 shift
2090 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2091 fi
2092 fi
2093 fi
2094 fi
2095 CC=$ac_cv_prog_CC
2096 if test -n "$CC"; then
2097 { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2099 else
2100 { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2102 fi
2103
2104
2105 fi
2106 if test -z "$CC"; then
2107 if test -n "$ac_tool_prefix"; then
2108 for ac_prog in cl.exe
2109 do
2110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2122 do
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2130 fi
2131 done
2132 done
2133 IFS=$as_save_IFS
2134
2135 fi
2136 fi
2137 CC=$ac_cv_prog_CC
2138 if test -n "$CC"; then
2139 { echo "$as_me:$LINENO: result: $CC" >&5
2140 echo "${ECHO_T}$CC" >&6; }
2141 else
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2144 fi
2145
2146
2147 test -n "$CC" && break
2148 done
2149 fi
2150 if test -z "$CC"; then
2151 ac_ct_CC=$CC
2152 for ac_prog in cl.exe
2153 do
2154 # Extract the first word of "$ac_prog", so it can be a program name with args.
2155 set dummy $ac_prog; ac_word=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161 if test -n "$ac_ct_CC"; then
2162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 ac_cv_prog_ac_ct_CC="$ac_prog"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 break 2
2174 fi
2175 done
2176 done
2177 IFS=$as_save_IFS
2178
2179 fi
2180 fi
2181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2182 if test -n "$ac_ct_CC"; then
2183 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2184 echo "${ECHO_T}$ac_ct_CC" >&6; }
2185 else
2186 { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2188 fi
2189
2190
2191 test -n "$ac_ct_CC" && break
2192 done
2193
2194 if test "x$ac_ct_CC" = x; then
2195 CC=""
2196 else
2197 case $cross_compiling:$ac_tool_warned in
2198 yes:)
2199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2200 whose name does not start with the host triplet. If you think this
2201 configuration is useful to you, please write to autoconf@gnu.org." >&5
2202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2203 whose name does not start with the host triplet. If you think this
2204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2205 ac_tool_warned=yes ;;
2206 esac
2207 CC=$ac_ct_CC
2208 fi
2209 fi
2210
2211 fi
2212
2213
2214 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: no acceptable C compiler found in \$PATH
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2219
2220 # Provide some information about the compiler.
2221 echo "$as_me:$LINENO: checking for C compiler version" >&5
2222 ac_compiler=`set X $ac_compile; echo $2`
2223 { (ac_try="$ac_compiler --version >&5"
2224 case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227 esac
2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229 (eval "$ac_compiler --version >&5") 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }
2233 { (ac_try="$ac_compiler -v >&5"
2234 case "(($ac_try" in
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2237 esac
2238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2239 (eval "$ac_compiler -v >&5") 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }
2243 { (ac_try="$ac_compiler -V >&5"
2244 case "(($ac_try" in
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2247 esac
2248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249 (eval "$ac_compiler -V >&5") 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }
2253
2254 cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h. */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2260
2261 int
2262 main ()
2263 {
2264
2265 ;
2266 return 0;
2267 }
2268 _ACEOF
2269 ac_clean_files_save=$ac_clean_files
2270 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2271 # Try to create an executable without -o first, disregard a.out.
2272 # It will help us diagnose broken compilers, and finding out an intuition
2273 # of exeext.
2274 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2275 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2276 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2277 #
2278 # List of possible output files, starting from the most likely.
2279 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2280 # only as a last resort. b.out is created by i960 compilers.
2281 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2282 #
2283 # The IRIX 6 linker writes into existing files which may not be
2284 # executable, retaining their permissions. Remove them first so a
2285 # subsequent execution test works.
2286 ac_rmfiles=
2287 for ac_file in $ac_files
2288 do
2289 case $ac_file in
2290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2291 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2292 esac
2293 done
2294 rm -f $ac_rmfiles
2295
2296 if { (ac_try="$ac_link_default"
2297 case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2300 esac
2301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2302 (eval "$ac_link_default") 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2307 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2308 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2309 # so that the user can short-circuit this test for compilers unknown to
2310 # Autoconf.
2311 for ac_file in $ac_files ''
2312 do
2313 test -f "$ac_file" || continue
2314 case $ac_file in
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2316 ;;
2317 [ab].out )
2318 # We found the default executable, but exeext='' is most
2319 # certainly right.
2320 break;;
2321 *.* )
2322 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2323 then :; else
2324 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325 fi
2326 # We set ac_cv_exeext here because the later test for it is not
2327 # safe: cross compilers may not add the suffix if given an `-o'
2328 # argument, so we may need to know it at that point already.
2329 # Even if this section looks crufty: it has the advantage of
2330 # actually working.
2331 break;;
2332 * )
2333 break;;
2334 esac
2335 done
2336 test "$ac_cv_exeext" = no && ac_cv_exeext=
2337
2338 else
2339 ac_file=''
2340 fi
2341
2342 { echo "$as_me:$LINENO: result: $ac_file" >&5
2343 echo "${ECHO_T}$ac_file" >&6; }
2344 if test -z "$ac_file"; then
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: C compiler cannot create executables
2351 See \`config.log' for more details." >&2;}
2352 { (exit 77); exit 77; }; }
2353 fi
2354
2355 ac_exeext=$ac_cv_exeext
2356
2357 # Check that the compiler produces executables we can run. If not, either
2358 # the compiler is broken, or we cross compile.
2359 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2361 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362 # If not cross compiling, check that we can run a simple program.
2363 if test "$cross_compiling" != yes; then
2364 if { ac_try='./$ac_file'
2365 { (case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368 esac
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_try") 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2374 cross_compiling=no
2375 else
2376 if test "$cross_compiling" = maybe; then
2377 cross_compiling=yes
2378 else
2379 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2380 If you meant to cross compile, use \`--host'.
2381 See \`config.log' for more details." >&5
2382 echo "$as_me: error: cannot run C compiled programs.
2383 If you meant to cross compile, use \`--host'.
2384 See \`config.log' for more details." >&2;}
2385 { (exit 1); exit 1; }; }
2386 fi
2387 fi
2388 fi
2389 { echo "$as_me:$LINENO: result: yes" >&5
2390 echo "${ECHO_T}yes" >&6; }
2391
2392 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2393 ac_clean_files=$ac_clean_files_save
2394 # Check that the compiler produces executables we can run. If not, either
2395 # the compiler is broken, or we cross compile.
2396 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2397 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2398 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2399 echo "${ECHO_T}$cross_compiling" >&6; }
2400
2401 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2402 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2403 if { (ac_try="$ac_link"
2404 case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_link") 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; then
2413 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2414 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2415 # work properly (i.e., refer to `conftest.exe'), while it won't with
2416 # `rm'.
2417 for ac_file in conftest.exe conftest conftest.*; do
2418 test -f "$ac_file" || continue
2419 case $ac_file in
2420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422 break;;
2423 * ) break;;
2424 esac
2425 done
2426 else
2427 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2430 See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2432 fi
2433
2434 rm -f conftest$ac_cv_exeext
2435 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2436 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2437
2438 rm -f conftest.$ac_ext
2439 EXEEXT=$ac_cv_exeext
2440 ac_exeext=$EXEEXT
2441 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2442 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2443 if test "${ac_cv_objext+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446 cat >conftest.$ac_ext <<_ACEOF
2447 /* confdefs.h. */
2448 _ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2452
2453 int
2454 main ()
2455 {
2456
2457 ;
2458 return 0;
2459 }
2460 _ACEOF
2461 rm -f conftest.o conftest.obj
2462 if { (ac_try="$ac_compile"
2463 case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 for ac_file in conftest.o conftest.obj conftest.*; do
2473 test -f "$ac_file" || continue;
2474 case $ac_file in
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2477 break;;
2478 esac
2479 done
2480 else
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&2;}
2488 { (exit 1); exit 1; }; }
2489 fi
2490
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 fi
2493 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6; }
2495 OBJEXT=$ac_cv_objext
2496 ac_objext=$OBJEXT
2497 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h. */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2508
2509 int
2510 main ()
2511 {
2512 #ifndef __GNUC__
2513 choke me
2514 #endif
2515
2516 ;
2517 return 0;
2518 }
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (ac_try="$ac_compile"
2522 case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_compile") 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } && {
2534 test -z "$ac_c_werror_flag" ||
2535 test ! -s conftest.err
2536 } && test -s conftest.$ac_objext; then
2537 ac_compiler_gnu=yes
2538 else
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 ac_compiler_gnu=no
2543 fi
2544
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2547
2548 fi
2549 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2550 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2551 GCC=`test $ac_compiler_gnu = yes && echo yes`
2552 ac_test_CFLAGS=${CFLAGS+set}
2553 ac_save_CFLAGS=$CFLAGS
2554 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2555 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559 ac_save_c_werror_flag=$ac_c_werror_flag
2560 ac_c_werror_flag=yes
2561 ac_cv_prog_cc_g=no
2562 CFLAGS="-g"
2563 cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h. */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2569
2570 int
2571 main ()
2572 {
2573
2574 ;
2575 return 0;
2576 }
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (ac_try="$ac_compile"
2580 case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2583 esac
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_compile") 2>conftest.er1
2586 ac_status=$?
2587 grep -v '^ *+' conftest.er1 >conftest.err
2588 rm -f conftest.er1
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } && {
2592 test -z "$ac_c_werror_flag" ||
2593 test ! -s conftest.err
2594 } && test -s conftest.$ac_objext; then
2595 ac_cv_prog_cc_g=yes
2596 else
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 CFLAGS=""
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2607
2608 int
2609 main ()
2610 {
2611
2612 ;
2613 return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (ac_try="$ac_compile"
2618 case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_compile") 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } && {
2630 test -z "$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2632 } && test -s conftest.$ac_objext; then
2633 :
2634 else
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 ac_c_werror_flag=$ac_save_c_werror_flag
2639 CFLAGS="-g"
2640 cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h. */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2646
2647 int
2648 main ()
2649 {
2650
2651 ;
2652 return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2657 case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compile") 2>conftest.er1
2663 ac_status=$?
2664 grep -v '^ *+' conftest.er1 >conftest.err
2665 rm -f conftest.er1
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } && {
2669 test -z "$ac_c_werror_flag" ||
2670 test ! -s conftest.err
2671 } && test -s conftest.$ac_objext; then
2672 ac_cv_prog_cc_g=yes
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677
2678 fi
2679
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 fi
2682
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 fi
2685
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 ac_c_werror_flag=$ac_save_c_werror_flag
2688 fi
2689 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2690 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2691 if test "$ac_test_CFLAGS" = set; then
2692 CFLAGS=$ac_save_CFLAGS
2693 elif test $ac_cv_prog_cc_g = yes; then
2694 if test "$GCC" = yes; then
2695 CFLAGS="-g -O2"
2696 else
2697 CFLAGS="-g"
2698 fi
2699 else
2700 if test "$GCC" = yes; then
2701 CFLAGS="-O2"
2702 else
2703 CFLAGS=
2704 fi
2705 fi
2706 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2707 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2708 if test "${ac_cv_prog_cc_c89+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 ac_cv_prog_cc_c89=no
2712 ac_save_CC=$CC
2713 cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h. */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2719 #include <stdarg.h>
2720 #include <stdio.h>
2721 #include <sys/types.h>
2722 #include <sys/stat.h>
2723 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2724 struct buf { int x; };
2725 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2726 static char *e (p, i)
2727 char **p;
2728 int i;
2729 {
2730 return p[i];
2731 }
2732 static char *f (char * (*g) (char **, int), char **p, ...)
2733 {
2734 char *s;
2735 va_list v;
2736 va_start (v,p);
2737 s = g (p, va_arg (v,int));
2738 va_end (v);
2739 return s;
2740 }
2741
2742 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2743 function prototypes and stuff, but not '\xHH' hex character constants.
2744 These don't provoke an error unfortunately, instead are silently treated
2745 as 'x'. The following induces an error, until -std is added to get
2746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2747 array size at least. It's necessary to write '\x00'==0 to get something
2748 that's true only with -std. */
2749 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2750
2751 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2752 inside strings and character constants. */
2753 #define FOO(x) 'x'
2754 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2755
2756 int test (int i, double x);
2757 struct s1 {int (*f) (int a);};
2758 struct s2 {int (*f) (double a);};
2759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2760 int argc;
2761 char **argv;
2762 int
2763 main ()
2764 {
2765 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2766 ;
2767 return 0;
2768 }
2769 _ACEOF
2770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2772 do
2773 CC="$ac_save_CC $ac_arg"
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2776 case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compile") 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest.$ac_objext; then
2791 ac_cv_prog_cc_c89=$ac_arg
2792 else
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796
2797 fi
2798
2799 rm -f core conftest.err conftest.$ac_objext
2800 test "x$ac_cv_prog_cc_c89" != "xno" && break
2801 done
2802 rm -f conftest.$ac_ext
2803 CC=$ac_save_CC
2804
2805 fi
2806 # AC_CACHE_VAL
2807 case "x$ac_cv_prog_cc_c89" in
2808 x)
2809 { echo "$as_me:$LINENO: result: none needed" >&5
2810 echo "${ECHO_T}none needed" >&6; } ;;
2811 xno)
2812 { echo "$as_me:$LINENO: result: unsupported" >&5
2813 echo "${ECHO_T}unsupported" >&6; } ;;
2814 *)
2815 CC="$CC $ac_cv_prog_cc_c89"
2816 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2817 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2818 esac
2819
2820
2821 ac_ext=c
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826
2827
2828
2829
2830
2831 if test "$GCC" = yes ; then
2832 if test "$SHLICC2" = yes ; then
2833 ac_cv_lbl_gcc_vers=2
2834 V_CCOPT="-O2"
2835 else
2836 { echo "$as_me:$LINENO: checking gcc version" >&5
2837 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2838 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2842 sed -e '/^gcc version /!d' \
2843 -e 's/^gcc version //' \
2844 -e 's/ .*//' -e 's/^[^0-9]*//' \
2845 -e 's/\..*//'`
2846 fi
2847
2848 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2849 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2850 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2851 V_CCOPT="-O2"
2852 fi
2853 fi
2854 else
2855 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2856 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2857 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860
2861 cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h. */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2867 #include <sys/types.h>
2868 int
2869 main ()
2870 {
2871 int frob(int, char *)
2872 ;
2873 return 0;
2874 }
2875 _ACEOF
2876 rm -f conftest.$ac_objext
2877 if { (ac_try="$ac_compile"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compile") 2>conftest.er1
2884 ac_status=$?
2885 grep -v '^ *+' conftest.er1 >conftest.err
2886 rm -f conftest.er1
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } && {
2890 test -z "$ac_c_werror_flag" ||
2891 test ! -s conftest.err
2892 } && test -s conftest.$ac_objext; then
2893 ac_cv_lbl_cc_ansi_prototypes=yes
2894 else
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 ac_cv_lbl_cc_ansi_prototypes=no
2899 fi
2900
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 fi
2903
2904 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2905 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2906 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2907 case "$host_os" in
2908
2909 hpux*)
2910 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2911 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2912 savedcflags="$CFLAGS"
2913 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2914 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h. */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 #include <sys/types.h>
2924 int
2925 main ()
2926 {
2927 int frob(int, char *)
2928 ;
2929 return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.$ac_objext
2933 if { (ac_try="$ac_compile"
2934 case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937 esac
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_compile") 2>conftest.er1
2940 ac_status=$?
2941 grep -v '^ *+' conftest.er1 >conftest.err
2942 rm -f conftest.er1
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } && {
2946 test -z "$ac_c_werror_flag" ||
2947 test ! -s conftest.err
2948 } && test -s conftest.$ac_objext; then
2949 ac_cv_lbl_cc_hpux_cc_aa=yes
2950 else
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 ac_cv_lbl_cc_hpux_cc_aa=no
2955 fi
2956
2957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 fi
2959
2960 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2961 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2962 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2963 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2964 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2965 { (exit 1); exit 1; }; }
2966 fi
2967 CFLAGS="$savedcflags"
2968 V_CCOPT="-Aa $V_CCOPT"
2969
2970 cat >>confdefs.h <<\_ACEOF
2971 #define _HPUX_SOURCE 1
2972 _ACEOF
2973
2974 ;;
2975
2976 osf*)
2977 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2978 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2979 savedcflags="$CFLAGS"
2980 CFLAGS="-std1"
2981 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984 cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h. */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2990 #include <sys/types.h>
2991 int
2992 main ()
2993 {
2994 int frob(int, char *)
2995 ;
2996 return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3007 ac_status=$?
3008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } && {
3013 test -z "$ac_c_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest.$ac_objext; then
3016 ac_cv_lbl_cc_osf1_cc_std1=yes
3017 else
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3020
3021 ac_cv_lbl_cc_osf1_cc_std1=no
3022 fi
3023
3024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 fi
3026
3027 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3028 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3029 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3030 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3031 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3032 { (exit 1); exit 1; }; }
3033 fi
3034 CFLAGS="$savedcflags"
3035 V_CCOPT="-std1 $V_CCOPT"
3036 ;;
3037
3038 *)
3039 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3040 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3041 { (exit 1); exit 1; }; }
3042 ;;
3043 esac
3044 fi
3045 V_INCLS="$V_INCLS -I/usr/local/include"
3046 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3047
3048 case "$host_os" in
3049
3050 hpux*)
3051 #
3052 # Note that this is HP C, because we have to
3053 # treat it specially below.
3054 #
3055 ac_lbl_cc_is_hp_c=yes
3056 ;;
3057
3058 irix*)
3059 V_CCOPT="$V_CCOPT -xansi -signed -O"
3060 ;;
3061
3062 osf*)
3063 #
3064 # Presumed to be DEC OSF/1, Digital UNIX, or
3065 # Tru64 UNIX.
3066 #
3067 V_CCOPT="$V_CCOPT -O"
3068 ;;
3069
3070 ultrix*)
3071 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3072 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3073 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076 cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h. */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3082 #include <sys/types.h>
3083 int
3084 main ()
3085 {
3086 struct a { int b; };
3087 void c(const struct a *)
3088 ;
3089 return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3094 case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } && {
3106 test -z "$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3108 } && test -s conftest.$ac_objext; then
3109 ac_cv_lbl_cc_const_proto=yes
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 ac_cv_lbl_cc_const_proto=no
3115 fi
3116
3117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118 fi
3119
3120 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3121 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3122 if test $ac_cv_lbl_cc_const_proto = no ; then
3123
3124 cat >>confdefs.h <<\_ACEOF
3125 #define const
3126 _ACEOF
3127
3128 fi
3129 ;;
3130 esac
3131 fi
3132
3133 { echo "$as_me:$LINENO: checking for inline" >&5
3134 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3135 save_CFLAGS="$CFLAGS"
3136 CFLAGS="$V_CCOPT"
3137 if test "${ac_cv_lbl_inline+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140
3141 ac_cv_lbl_inline=""
3142 ac_lbl_cc_inline=no
3143 for ac_lbl_inline in inline __inline__ __inline
3144 do
3145 cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h. */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3151 #define inline $ac_lbl_inline
3152 static inline struct iltest *foo(void);
3153 struct iltest {
3154 int iltest1;
3155 int iltest2;
3156 };
3157
3158 static inline struct iltest *
3159 foo()
3160 {
3161 static struct iltest xxx;
3162
3163 return &xxx;
3164 }
3165 int
3166 main ()
3167 {
3168
3169 ;
3170 return 0;
3171 }
3172 _ACEOF
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3175 case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3181 ac_status=$?
3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } && {
3187 test -z "$ac_c_werror_flag" ||
3188 test ! -s conftest.err
3189 } && test -s conftest.$ac_objext; then
3190 ac_lbl_cc_inline=yes
3191 else
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3194
3195
3196 fi
3197
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 if test "$ac_lbl_cc_inline" = yes ; then
3200 break;
3201 fi
3202 done
3203 if test "$ac_lbl_cc_inline" = yes ; then
3204 ac_cv_lbl_inline=$ac_lbl_inline
3205 fi
3206 fi
3207
3208 CFLAGS="$save_CFLAGS"
3209 if test ! -z "$ac_cv_lbl_inline" ; then
3210 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3211 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3212 else
3213 { echo "$as_me:$LINENO: result: no" >&5
3214 echo "${ECHO_T}no" >&6; }
3215 fi
3216
3217 cat >>confdefs.h <<_ACEOF
3218 #define inline $ac_cv_lbl_inline
3219 _ACEOF
3220
3221
3222 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3223 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3224 if test "${ac_cv___attribute__+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227
3228 cat >conftest.$ac_ext <<_ACEOF
3229
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235
3236 #include <stdlib.h>
3237
3238 static void foo(void) __attribute__ ((noreturn));
3239
3240 static void
3241 foo(void)
3242 {
3243 exit(1);
3244 }
3245
3246 int
3247 main(int argc, char **argv)
3248 {
3249 foo();
3250 }
3251
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3255 case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_compile") 2>conftest.er1
3261 ac_status=$?
3262 grep -v '^ *+' conftest.er1 >conftest.err
3263 rm -f conftest.er1
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } && {
3267 test -z "$ac_c_werror_flag" ||
3268 test ! -s conftest.err
3269 } && test -s conftest.$ac_objext; then
3270 ac_cv___attribute__=yes
3271 else
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 ac_cv___attribute__=no
3276 fi
3277
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 fi
3280
3281 if test "$ac_cv___attribute__" = "yes"; then
3282
3283 cat >>confdefs.h <<\_ACEOF
3284 #define HAVE___ATTRIBUTE__ 1
3285 _ACEOF
3286
3287 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3288 else
3289 V_DEFS="$V_DEFS -D_U_=\"\""
3290 fi
3291 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3292 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3293
3294 if test "$ac_cv___attribute__" = "yes"; then
3295
3296 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3297 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3298 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301
3302 cat >conftest.$ac_ext <<_ACEOF
3303
3304 /* confdefs.h. */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3309
3310 #include <stdlib.h>
3311
3312 extern int (*foo)(const char *fmt, ...)
3313 __attribute__ ((format (printf, 1, 2)));
3314
3315 int
3316 main(int argc, char **argv)
3317 {
3318 (*foo)("%s", "test");
3319 }
3320
3321 _ACEOF
3322 rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } && {
3336 test -z "$ac_c_werror_flag" ||
3337 test ! -s conftest.err
3338 } && test -s conftest.$ac_objext; then
3339 ac_cv___attribute___format_function_pointer=yes
3340 else
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344 ac_cv___attribute___format_function_pointer=no
3345 fi
3346
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 fi
3349
3350 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3351
3352 cat >>confdefs.h <<\_ACEOF
3353 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3354 _ACEOF
3355
3356 fi
3357 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3358 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3359
3360 fi
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3368 # On Suns, sometimes $CPP names a directory.
3369 if test -n "$CPP" && test -d "$CPP"; then
3370 CPP=
3371 fi
3372 if test -z "$CPP"; then
3373 if test "${ac_cv_prog_CPP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 # Double quotes because CPP needs to be expanded
3377 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3378 do
3379 ac_preproc_ok=false
3380 for ac_c_preproc_warn_flag in '' yes
3381 do
3382 # Use a header file that comes with gcc, so configuring glibc
3383 # with a fresh cross-compiler works.
3384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3385 # <limits.h> exists even on freestanding compilers.
3386 # On the NeXT, cc -E runs the code through the compiler's parser,
3387 # not just through cpp. "Syntax error" is here to catch this case.
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 #ifdef __STDC__
3395 # include <limits.h>
3396 #else
3397 # include <assert.h>
3398 #endif
3399 Syntax error
3400 _ACEOF
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408 ac_status=$?
3409 grep -v '^ *+' conftest.er1 >conftest.err
3410 rm -f conftest.er1
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } >/dev/null && {
3414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3415 test ! -s conftest.err
3416 }; then
3417 :
3418 else
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422 # Broken: fails on valid input.
3423 continue
3424 fi
3425
3426 rm -f conftest.err conftest.$ac_ext
3427
3428 # OK, works on sane cases. Now check whether nonexistent headers
3429 # can be detected and how.
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h. */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436 #include <ac_nonexistent.h>
3437 _ACEOF
3438 if { (ac_try="$ac_cpp conftest.$ac_ext"
3439 case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3445 ac_status=$?
3446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } >/dev/null && {
3451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3452 test ! -s conftest.err
3453 }; then
3454 # Broken: success on invalid input.
3455 continue
3456 else
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 # Passes both tests.
3461 ac_preproc_ok=:
3462 break
3463 fi
3464
3465 rm -f conftest.err conftest.$ac_ext
3466
3467 done
3468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3469 rm -f conftest.err conftest.$ac_ext
3470 if $ac_preproc_ok; then
3471 break
3472 fi
3473
3474 done
3475 ac_cv_prog_CPP=$CPP
3476
3477 fi
3478 CPP=$ac_cv_prog_CPP
3479 else
3480 ac_cv_prog_CPP=$CPP
3481 fi
3482 { echo "$as_me:$LINENO: result: $CPP" >&5
3483 echo "${ECHO_T}$CPP" >&6; }
3484 ac_preproc_ok=false
3485 for ac_c_preproc_warn_flag in '' yes
3486 do
3487 # Use a header file that comes with gcc, so configuring glibc
3488 # with a fresh cross-compiler works.
3489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3490 # <limits.h> exists even on freestanding compilers.
3491 # On the NeXT, cc -E runs the code through the compiler's parser,
3492 # not just through cpp. "Syntax error" is here to catch this case.
3493 cat >conftest.$ac_ext <<_ACEOF
3494 /* confdefs.h. */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3499 #ifdef __STDC__
3500 # include <limits.h>
3501 #else
3502 # include <assert.h>
3503 #endif
3504 Syntax error
3505 _ACEOF
3506 if { (ac_try="$ac_cpp conftest.$ac_ext"
3507 case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3513 ac_status=$?
3514 grep -v '^ *+' conftest.er1 >conftest.err
3515 rm -f conftest.er1
3516 cat conftest.err >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } >/dev/null && {
3519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3520 test ! -s conftest.err
3521 }; then
3522 :
3523 else
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527 # Broken: fails on valid input.
3528 continue
3529 fi
3530
3531 rm -f conftest.err conftest.$ac_ext
3532
3533 # OK, works on sane cases. Now check whether nonexistent headers
3534 # can be detected and how.
3535 cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h. */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3541 #include <ac_nonexistent.h>
3542 _ACEOF
3543 if { (ac_try="$ac_cpp conftest.$ac_ext"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3550 ac_status=$?
3551 grep -v '^ *+' conftest.er1 >conftest.err
3552 rm -f conftest.er1
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } >/dev/null && {
3556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3557 test ! -s conftest.err
3558 }; then
3559 # Broken: success on invalid input.
3560 continue
3561 else
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 # Passes both tests.
3566 ac_preproc_ok=:
3567 break
3568 fi
3569
3570 rm -f conftest.err conftest.$ac_ext
3571
3572 done
3573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3574 rm -f conftest.err conftest.$ac_ext
3575 if $ac_preproc_ok; then
3576 :
3577 else
3578 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3579 See \`config.log' for more details." >&5
3580 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3581 See \`config.log' for more details." >&2;}
3582 { (exit 1); exit 1; }; }
3583 fi
3584
3585 ac_ext=c
3586 ac_cpp='$CPP $CPPFLAGS'
3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590
3591
3592 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3593 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3594 if test "${ac_cv_path_GREP+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 # Extract the first word of "grep ggrep" to use in msg output
3598 if test -z "$GREP"; then
3599 set dummy grep ggrep; ac_prog_name=$2
3600 if test "${ac_cv_path_GREP+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603 ac_path_GREP_found=false
3604 # Loop through the user's path and test for each of PROGNAME-LIST
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3607 do
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 for ac_prog in grep ggrep; do
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3613 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3614 # Check for GNU ac_path_GREP and select it if it is found.
3615 # Check for GNU $ac_path_GREP
3616 case `"$ac_path_GREP" --version 2>&1` in
3617 *GNU*)
3618 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3619 *)
3620 ac_count=0
3621 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3622 while :
3623 do
3624 cat "conftest.in" "conftest.in" >"conftest.tmp"
3625 mv "conftest.tmp" "conftest.in"
3626 cp "conftest.in" "conftest.nl"
3627 echo 'GREP' >> "conftest.nl"
3628 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3630 ac_count=`expr $ac_count + 1`
3631 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3632 # Best one so far, save it but keep looking for a better one
3633 ac_cv_path_GREP="$ac_path_GREP"
3634 ac_path_GREP_max=$ac_count
3635 fi
3636 # 10*(2^10) chars as input seems more than enough
3637 test $ac_count -gt 10 && break
3638 done
3639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3640 esac
3641
3642
3643 $ac_path_GREP_found && break 3
3644 done
3645 done
3646
3647 done
3648 IFS=$as_save_IFS
3649
3650
3651 fi
3652
3653 GREP="$ac_cv_path_GREP"
3654 if test -z "$GREP"; then
3655 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3656 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3657 { (exit 1); exit 1; }; }
3658 fi
3659
3660 else
3661 ac_cv_path_GREP=$GREP
3662 fi
3663
3664
3665 fi
3666 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3667 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3668 GREP="$ac_cv_path_GREP"
3669
3670
3671 { echo "$as_me:$LINENO: checking for egrep" >&5
3672 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3673 if test "${ac_cv_path_EGREP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3677 then ac_cv_path_EGREP="$GREP -E"
3678 else
3679 # Extract the first word of "egrep" to use in msg output
3680 if test -z "$EGREP"; then
3681 set dummy egrep; ac_prog_name=$2
3682 if test "${ac_cv_path_EGREP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 ac_path_EGREP_found=false
3686 # Loop through the user's path and test for each of PROGNAME-LIST
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3689 do
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_prog in egrep; do
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3695 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3696 # Check for GNU ac_path_EGREP and select it if it is found.
3697 # Check for GNU $ac_path_EGREP
3698 case `"$ac_path_EGREP" --version 2>&1` in
3699 *GNU*)
3700 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3701 *)
3702 ac_count=0
3703 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3704 while :
3705 do
3706 cat "conftest.in" "conftest.in" >"conftest.tmp"
3707 mv "conftest.tmp" "conftest.in"
3708 cp "conftest.in" "conftest.nl"
3709 echo 'EGREP' >> "conftest.nl"
3710 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3712 ac_count=`expr $ac_count + 1`
3713 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3714 # Best one so far, save it but keep looking for a better one
3715 ac_cv_path_EGREP="$ac_path_EGREP"
3716 ac_path_EGREP_max=$ac_count
3717 fi
3718 # 10*(2^10) chars as input seems more than enough
3719 test $ac_count -gt 10 && break
3720 done
3721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3722 esac
3723
3724
3725 $ac_path_EGREP_found && break 3
3726 done
3727 done
3728
3729 done
3730 IFS=$as_save_IFS
3731
3732
3733 fi
3734
3735 EGREP="$ac_cv_path_EGREP"
3736 if test -z "$EGREP"; then
3737 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3738 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3739 { (exit 1); exit 1; }; }
3740 fi
3741
3742 else
3743 ac_cv_path_EGREP=$EGREP
3744 fi
3745
3746
3747 fi
3748 fi
3749 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3750 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3751 EGREP="$ac_cv_path_EGREP"
3752
3753
3754 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3755 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3756 if test "${ac_cv_header_stdc+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 #include <stdlib.h>
3766 #include <stdarg.h>
3767 #include <string.h>
3768 #include <float.h>
3769
3770 int
3771 main ()
3772 {
3773
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 rm -f conftest.$ac_objext
3779 if { (ac_try="$ac_compile"
3780 case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783 esac
3784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3785 (eval "$ac_compile") 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } && {
3792 test -z "$ac_c_werror_flag" ||
3793 test ! -s conftest.err
3794 } && test -s conftest.$ac_objext; then
3795 ac_cv_header_stdc=yes
3796 else
3797 echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3799
3800 ac_cv_header_stdc=no
3801 fi
3802
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804
3805 if test $ac_cv_header_stdc = yes; then
3806 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3807 cat >conftest.$ac_ext <<_ACEOF
3808 /* confdefs.h. */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3813 #include <string.h>
3814
3815 _ACEOF
3816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3817 $EGREP "memchr" >/dev/null 2>&1; then
3818 :
3819 else
3820 ac_cv_header_stdc=no
3821 fi
3822 rm -f conftest*
3823
3824 fi
3825
3826 if test $ac_cv_header_stdc = yes; then
3827 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3828 cat >conftest.$ac_ext <<_ACEOF
3829 /* confdefs.h. */
3830 _ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834 #include <stdlib.h>
3835
3836 _ACEOF
3837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3838 $EGREP "free" >/dev/null 2>&1; then
3839 :
3840 else
3841 ac_cv_header_stdc=no
3842 fi
3843 rm -f conftest*
3844
3845 fi
3846
3847 if test $ac_cv_header_stdc = yes; then
3848 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3849 if test "$cross_compiling" = yes; then
3850 :
3851 else
3852 cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h. */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3858 #include <ctype.h>
3859 #include <stdlib.h>
3860 #if ((' ' & 0x0FF) == 0x020)
3861 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3862 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3863 #else
3864 # define ISLOWER(c) \
3865 (('a' <= (c) && (c) <= 'i') \
3866 || ('j' <= (c) && (c) <= 'r') \
3867 || ('s' <= (c) && (c) <= 'z'))
3868 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3869 #endif
3870
3871 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3872 int
3873 main ()
3874 {
3875 int i;
3876 for (i = 0; i < 256; i++)
3877 if (XOR (islower (i), ISLOWER (i))
3878 || toupper (i) != TOUPPER (i))
3879 return 2;
3880 return 0;
3881 }
3882 _ACEOF
3883 rm -f conftest$ac_exeext
3884 if { (ac_try="$ac_link"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890 (eval "$ac_link") 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3894 { (case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897 esac
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899 (eval "$ac_try") 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3903 :
3904 else
3905 echo "$as_me: program exited with status $ac_status" >&5
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3908
3909 ( exit $ac_status )
3910 ac_cv_header_stdc=no
3911 fi
3912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3913 fi
3914
3915
3916 fi
3917 fi
3918 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3919 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3920 if test $ac_cv_header_stdc = yes; then
3921
3922 cat >>confdefs.h <<\_ACEOF
3923 #define STDC_HEADERS 1
3924 _ACEOF
3925
3926 fi
3927
3928 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3939 inttypes.h stdint.h unistd.h
3940 do
3941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 $ac_includes_default
3954
3955 #include <$ac_header>
3956 _ACEOF
3957 rm -f conftest.$ac_objext
3958 if { (ac_try="$ac_compile"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_compile") 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && {
3971 test -z "$ac_c_werror_flag" ||
3972 test ! -s conftest.err
3973 } && test -s conftest.$ac_objext; then
3974 eval "$as_ac_Header=yes"
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 eval "$as_ac_Header=no"
3980 fi
3981
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 fi
3984 ac_res=`eval echo '${'$as_ac_Header'}'`
3985 { echo "$as_me:$LINENO: result: $ac_res" >&5
3986 echo "${ECHO_T}$ac_res" >&6; }
3987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3988 cat >>confdefs.h <<_ACEOF
3989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3990 _ACEOF
3991
3992 fi
3993
3994 done
3995
3996
3997
3998
3999
4000
4001 for ac_header in fcntl.h rpc/rpc.h rpc/rpcent.h netdnet/dnetdb.h
4002 do
4003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 fi
4010 ac_res=`eval echo '${'$as_ac_Header'}'`
4011 { echo "$as_me:$LINENO: result: $ac_res" >&5
4012 echo "${ECHO_T}$ac_res" >&6; }
4013 else
4014 # Is the header compilable?
4015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4017 cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h. */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 $ac_includes_default
4024 #include <$ac_header>
4025 _ACEOF
4026 rm -f conftest.$ac_objext
4027 if { (ac_try="$ac_compile"
4028 case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031 esac
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_compile") 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } && {
4040 test -z "$ac_c_werror_flag" ||
4041 test ! -s conftest.err
4042 } && test -s conftest.$ac_objext; then
4043 ac_header_compiler=yes
4044 else
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4047
4048 ac_header_compiler=no
4049 fi
4050
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4053 echo "${ECHO_T}$ac_header_compiler" >&6; }
4054
4055 # Is the header present?
4056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4058 cat >conftest.$ac_ext <<_ACEOF
4059 /* confdefs.h. */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 #include <$ac_header>
4065 _ACEOF
4066 if { (ac_try="$ac_cpp conftest.$ac_ext"
4067 case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4073 ac_status=$?
4074 grep -v '^ *+' conftest.er1 >conftest.err
4075 rm -f conftest.er1
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } >/dev/null && {
4079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4080 test ! -s conftest.err
4081 }; then
4082 ac_header_preproc=yes
4083 else
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4086
4087 ac_header_preproc=no
4088 fi
4089
4090 rm -f conftest.err conftest.$ac_ext
4091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4092 echo "${ECHO_T}$ac_header_preproc" >&6; }
4093
4094 # So? What about this header?
4095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4096 yes:no: )
4097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4101 ac_header_preproc=yes
4102 ;;
4103 no:yes:* )
4104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4116
4117 ;;
4118 esac
4119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124 eval "$as_ac_Header=\$ac_header_preproc"
4125 fi
4126 ac_res=`eval echo '${'$as_ac_Header'}'`
4127 { echo "$as_me:$LINENO: result: $ac_res" >&5
4128 echo "${ECHO_T}$ac_res" >&6; }
4129
4130 fi
4131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4132 cat >>confdefs.h <<_ACEOF
4133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4134 _ACEOF
4135
4136 fi
4137
4138 done
4139
4140
4141 for ac_header in net/pfvar.h
4142 do
4143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h. */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4155 #include <sys/types.h>
4156 #include <sys/socket.h>
4157 #include <net/if.h>
4158
4159 #include <$ac_header>
4160 _ACEOF
4161 rm -f conftest.$ac_objext
4162 if { (ac_try="$ac_compile"
4163 case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166 esac
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4169 ac_status=$?
4170 grep -v '^ *+' conftest.er1 >conftest.err
4171 rm -f conftest.er1
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } && {
4175 test -z "$ac_c_werror_flag" ||
4176 test ! -s conftest.err
4177 } && test -s conftest.$ac_objext; then
4178 eval "$as_ac_Header=yes"
4179 else
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183 eval "$as_ac_Header=no"
4184 fi
4185
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 fi
4188 ac_res=`eval echo '${'$as_ac_Header'}'`
4189 { echo "$as_me:$LINENO: result: $ac_res" >&5
4190 echo "${ECHO_T}$ac_res" >&6; }
4191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4192 cat >>confdefs.h <<_ACEOF
4193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4194 _ACEOF
4195
4196 fi
4197
4198 done
4199
4200 if test "$ac_cv_header_net_pfvar_h" = yes; then
4201 LOCALSRC="print-pflog.c $LOCALSRC"
4202 fi
4203
4204 for ac_header in netinet/if_ether.h
4205 do
4206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212 cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h. */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4218 #include <sys/types.h>
4219 #include <sys/socket.h>
4220
4221 #include <$ac_header>
4222 _ACEOF
4223 rm -f conftest.$ac_objext
4224 if { (ac_try="$ac_compile"
4225 case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228 esac
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_compile") 2>conftest.er1
4231 ac_status=$?
4232 grep -v '^ *+' conftest.er1 >conftest.err
4233 rm -f conftest.er1
4234 cat conftest.err >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } && {
4237 test -z "$ac_c_werror_flag" ||
4238 test ! -s conftest.err
4239 } && test -s conftest.$ac_objext; then
4240 eval "$as_ac_Header=yes"
4241 else
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4244
4245 eval "$as_ac_Header=no"
4246 fi
4247
4248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249 fi
4250 ac_res=`eval echo '${'$as_ac_Header'}'`
4251 { echo "$as_me:$LINENO: result: $ac_res" >&5
4252 echo "${ECHO_T}$ac_res" >&6; }
4253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4254 cat >>confdefs.h <<_ACEOF
4255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4256 _ACEOF
4257
4258 fi
4259
4260 done
4261
4262 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4263 #
4264 # The simple test didn't work.
4265 # Do we need to include <net/if.h> first?
4266 # Unset ac_cv_header_netinet_if_ether_h so we don't
4267 # treat the previous failure as a cached value and
4268 # suppress the next test.
4269 #
4270 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4271 echo "$as_me: Rechecking with some additional includes" >&6;}
4272 unset ac_cv_header_netinet_if_ether_h
4273
4274 for ac_header in netinet/if_ether.h
4275 do
4276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282 cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h. */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 #include <sys/types.h>
4289 #include <sys/socket.h>
4290 #include <netinet/in.h>
4291 struct mbuf;
4292 struct rtentry;
4293 #include <net/if.h>
4294
4295 #include <$ac_header>
4296 _ACEOF
4297 rm -f conftest.$ac_objext
4298 if { (ac_try="$ac_compile"
4299 case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302 esac
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_compile") 2>conftest.er1
4305 ac_status=$?
4306 grep -v '^ *+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } && {
4311 test -z "$ac_c_werror_flag" ||
4312 test ! -s conftest.err
4313 } && test -s conftest.$ac_objext; then
4314 eval "$as_ac_Header=yes"
4315 else
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4318
4319 eval "$as_ac_Header=no"
4320 fi
4321
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323 fi
4324 ac_res=`eval echo '${'$as_ac_Header'}'`
4325 { echo "$as_me:$LINENO: result: $ac_res" >&5
4326 echo "${ECHO_T}$ac_res" >&6; }
4327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4328 cat >>confdefs.h <<_ACEOF
4329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4330 _ACEOF
4331
4332 fi
4333
4334 done
4335
4336 fi
4337
4338 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4339 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4340 if test "${ac_cv_header_time+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343 cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h. */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 #include <sys/types.h>
4350 #include <sys/time.h>
4351 #include <time.h>
4352
4353 int
4354 main ()
4355 {
4356 if ((struct tm *) 0)
4357 return 0;
4358 ;
4359 return 0;
4360 }
4361 _ACEOF
4362 rm -f conftest.$ac_objext
4363 if { (ac_try="$ac_compile"
4364 case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367 esac
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_compile") 2>conftest.er1
4370 ac_status=$?
4371 grep -v '^ *+' conftest.er1 >conftest.err
4372 rm -f conftest.er1
4373 cat conftest.err >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } && {
4376 test -z "$ac_c_werror_flag" ||
4377 test ! -s conftest.err
4378 } && test -s conftest.$ac_objext; then
4379 ac_cv_header_time=yes
4380 else
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384 ac_cv_header_time=no
4385 fi
4386
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 fi
4389 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4390 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4391 if test $ac_cv_header_time = yes; then
4392
4393 cat >>confdefs.h <<\_ACEOF
4394 #define TIME_WITH_SYS_TIME 1
4395 _ACEOF
4396
4397 fi
4398
4399
4400 case "$host_os" in
4401
4402 darwin*)
4403 # Check whether --enable-universal was given.
4404 if test "${enable_universal+set}" = set; then
4405 enableval=$enable_universal;
4406 fi
4407
4408 if test "$enable_universal" != "no"; then
4409 case "$host_os" in
4410
4411 darwin9.*)
4412 #
4413 # Leopard. Build for x86 and 32-bit PowerPC, with
4414 # x86 first. (That's what Apple does.)
4415 #
4416 V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
4417 LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
4418 ;;
4419
4420 darwin10.*)
4421 #
4422 # Snow Leopard. Build for x86-64 and x86, with
4423 # x86-64 first. (That's what Apple does.)
4424 #
4425 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
4426 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
4427 ;;
4428 esac
4429 fi
4430 ;;
4431
4432 linux*)
4433 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4434 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4435 if test "$cross_compiling" = yes; then
4436 if test "${ac_cv_linux_vers+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 ac_cv_linux_vers=unknown
4440 fi
4441
4442 else
4443 if test "${ac_cv_linux_vers+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446 ac_cv_linux_vers=`uname -r 2>&1 | \
4447 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4448 fi
4449
4450 fi
4451 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4452 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4453 if test $ac_cv_linux_vers = unknown ; then
4454 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4455 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4456 { (exit 1); exit 1; }; }
4457 fi
4458 if test $ac_cv_linux_vers -lt 2 ; then
4459 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4460 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4461 { (exit 1); exit 1; }; }
4462 fi
4463 ;;
4464
4465 *)
4466 ;;
4467 esac
4468
4469
4470
4471 # Check whether --with-smi was given.
4472 if test "${with_smi+set}" = set; then
4473 withval=$with_smi;
4474 else
4475 with_smi=yes
4476 fi
4477
4478
4479 if test "x$with_smi" != "xno" ; then
4480
4481 for ac_header in smi.h
4482 do
4483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 fi
4490 ac_res=`eval echo '${'$as_ac_Header'}'`
4491 { echo "$as_me:$LINENO: result: $ac_res" >&5
4492 echo "${ECHO_T}$ac_res" >&6; }
4493 else
4494 # Is the header compilable?
4495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4497 cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h. */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 $ac_includes_default
4504 #include <$ac_header>
4505 _ACEOF
4506 rm -f conftest.$ac_objext
4507 if { (ac_try="$ac_compile"
4508 case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511 esac
4512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4513 (eval "$ac_compile") 2>conftest.er1
4514 ac_status=$?
4515 grep -v '^ *+' conftest.er1 >conftest.err
4516 rm -f conftest.er1
4517 cat conftest.err >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } && {
4520 test -z "$ac_c_werror_flag" ||
4521 test ! -s conftest.err
4522 } && test -s conftest.$ac_objext; then
4523 ac_header_compiler=yes
4524 else
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4527
4528 ac_header_compiler=no
4529 fi
4530
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4533 echo "${ECHO_T}$ac_header_compiler" >&6; }
4534
4535 # Is the header present?
4536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4538 cat >conftest.$ac_ext <<_ACEOF
4539 /* confdefs.h. */
4540 _ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h. */
4544 #include <$ac_header>
4545 _ACEOF
4546 if { (ac_try="$ac_cpp conftest.$ac_ext"
4547 case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550 esac
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } >/dev/null && {
4559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4560 test ! -s conftest.err
4561 }; then
4562 ac_header_preproc=yes
4563 else
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4566
4567 ac_header_preproc=no
4568 fi
4569
4570 rm -f conftest.err conftest.$ac_ext
4571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4572 echo "${ECHO_T}$ac_header_preproc" >&6; }
4573
4574 # So? What about this header?
4575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4576 yes:no: )
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4581 ac_header_preproc=yes
4582 ;;
4583 no:yes:* )
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4596
4597 ;;
4598 esac
4599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 eval "$as_ac_Header=\$ac_header_preproc"
4605 fi
4606 ac_res=`eval echo '${'$as_ac_Header'}'`
4607 { echo "$as_me:$LINENO: result: $ac_res" >&5
4608 echo "${ECHO_T}$ac_res" >&6; }
4609
4610 fi
4611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4612 cat >>confdefs.h <<_ACEOF
4613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4614 _ACEOF
4615
4616 fi
4617
4618 done
4619
4620
4621 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4622 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4623 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 ac_check_lib_save_LIBS=$LIBS
4627 LIBS="-lsmi $LIBS"
4628 cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h. */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634
4635 /* Override any GCC internal prototype to avoid an error.
4636 Use char because int might match the return type of a GCC
4637 builtin and then its argument prototype would still apply. */
4638 #ifdef __cplusplus
4639 extern "C"
4640 #endif
4641 char smiInit ();
4642 int
4643 main ()
4644 {
4645 return smiInit ();
4646 ;
4647 return 0;
4648 }
4649 _ACEOF
4650 rm -f conftest.$ac_objext conftest$ac_exeext
4651 if { (ac_try="$ac_link"
4652 case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655 esac
4656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4657 (eval "$ac_link") 2>conftest.er1
4658 ac_status=$?
4659 grep -v '^ *+' conftest.er1 >conftest.err
4660 rm -f conftest.er1
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } && {
4664 test -z "$ac_c_werror_flag" ||
4665 test ! -s conftest.err
4666 } && test -s conftest$ac_exeext &&
4667 $as_test_x conftest$ac_exeext; then
4668 ac_cv_lib_smi_smiInit=yes
4669 else
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673 ac_cv_lib_smi_smiInit=no
4674 fi
4675
4676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4677 conftest$ac_exeext conftest.$ac_ext
4678 LIBS=$ac_check_lib_save_LIBS
4679 fi
4680 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4681 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4682 if test $ac_cv_lib_smi_smiInit = yes; then
4683 cat >>confdefs.h <<_ACEOF
4684 #define HAVE_LIBSMI 1
4685 _ACEOF
4686
4687 LIBS="-lsmi $LIBS"
4688
4689 fi
4690
4691 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4692 then
4693 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4694 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4695 if test "$cross_compiling" = yes; then
4696 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4697 echo "${ECHO_T}not when cross-compiling" >&6; }
4698 libsmi=no
4699
4700 else
4701 cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h. */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4707 /* libsmi available check */
4708 #include <smi.h>
4709 main()
4710 {
4711 int current, revision, age, n;
4712 const int required = 2;
4713 if (smiInit(""))
4714 exit(1);
4715 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4716 exit(2);
4717 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4718 if (n != 3)
4719 exit(3);
4720 if (required < current - age || required > current)
4721 exit(4);
4722 exit(0);
4723 }
4724
4725 _ACEOF
4726 rm -f conftest$ac_exeext
4727 if { (ac_try="$ac_link"
4728 case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731 esac
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733 (eval "$ac_link") 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4737 { (case "(($ac_try" in
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4740 esac
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_try") 2>&5
4743 ac_status=$?
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 { echo "$as_me:$LINENO: result: yes" >&5
4747 echo "${ECHO_T}yes" >&6; }
4748 cat >>confdefs.h <<\_ACEOF
4749 #define LIBSMI 1
4750 _ACEOF
4751
4752 libsmi=yes
4753 else
4754 echo "$as_me: program exited with status $ac_status" >&5
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758 ( exit $ac_status )
4759 case $? in
4760 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4761 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4762 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4763 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4764 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4765 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4766 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4767 echo "${ECHO_T}no - too old" >&6; } ;;
4768 *) { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; } ;;
4770 esac
4771 libsmi=no
4772 fi
4773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4774 fi
4775
4776
4777 fi
4778 fi
4779
4780 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4781 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4782 # Check whether --enable-smb was given.
4783 if test "${enable_smb+set}" = set; then
4784 enableval=$enable_smb;
4785 else
4786 enableval=yes
4787 fi
4788
4789 case "$enableval" in
4790 yes) { echo "$as_me:$LINENO: result: yes" >&5
4791 echo "${ECHO_T}yes" >&6; }
4792 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4793 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4794 cat >>confdefs.h <<\_ACEOF
4795 #define TCPDUMP_DO_SMB 1
4796 _ACEOF
4797
4798 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4799 ;;
4800 *) { echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6; }
4802 ;;
4803 esac
4804
4805
4806 # Check whether --with-user was given.
4807 if test "${with_user+set}" = set; then
4808 withval=$with_user;
4809 fi
4810
4811 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4812 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4813 if test ! -z "$with_user" ; then
4814 cat >>confdefs.h <<_ACEOF
4815 #define WITH_USER "$withval"
4816 _ACEOF
4817
4818 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4819 echo "${ECHO_T}to \"$withval\"" >&6; }
4820 else
4821 { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4823 fi
4824
4825
4826 # Check whether --with-chroot was given.
4827 if test "${with_chroot+set}" = set; then
4828 withval=$with_chroot;
4829 fi
4830
4831 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4832 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4833 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4834 cat >>confdefs.h <<_ACEOF
4835 #define WITH_CHROOT "$withval"
4836 _ACEOF
4837
4838 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4839 echo "${ECHO_T}to \"$withval\"" >&6; }
4840 else
4841 { echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6; }
4843 fi
4844
4845 #
4846 # We must check this before checking whether to enable IPv6, because,
4847 # on some platforms (such as SunOS 5.x), the test program requires
4848 # the extra networking libraries.
4849 #
4850
4851 # Most operating systems have gethostbyname() in the default searched
4852 # libraries (i.e. libc):
4853 # Some OSes (eg. Solaris) place it in libnsl
4854 # Some strange OSes (SINIX) have it in libsocket:
4855 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4856 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4857 if test "${ac_cv_search_gethostbyname+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860 ac_func_search_save_LIBS=$LIBS
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867
4868 /* Override any GCC internal prototype to avoid an error.
4869 Use char because int might match the return type of a GCC
4870 builtin and then its argument prototype would still apply. */
4871 #ifdef __cplusplus
4872 extern "C"
4873 #endif
4874 char gethostbyname ();
4875 int
4876 main ()
4877 {
4878 return gethostbyname ();
4879 ;
4880 return 0;
4881 }
4882 _ACEOF
4883 for ac_lib in '' nsl socket resolv; do
4884 if test -z "$ac_lib"; then
4885 ac_res="none required"
4886 else
4887 ac_res=-l$ac_lib
4888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4889 fi
4890 rm -f conftest.$ac_objext conftest$ac_exeext
4891 if { (ac_try="$ac_link"
4892 case "(($ac_try" in
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4895 esac
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897 (eval "$ac_link") 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } && {
4904 test -z "$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 } && test -s conftest$ac_exeext &&
4907 $as_test_x conftest$ac_exeext; then
4908 ac_cv_search_gethostbyname=$ac_res
4909 else
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4912
4913
4914 fi
4915
4916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4917 conftest$ac_exeext
4918 if test "${ac_cv_search_gethostbyname+set}" = set; then
4919 break
4920 fi
4921 done
4922 if test "${ac_cv_search_gethostbyname+set}" = set; then
4923 :
4924 else
4925 ac_cv_search_gethostbyname=no
4926 fi
4927 rm conftest.$ac_ext
4928 LIBS=$ac_func_search_save_LIBS
4929 fi
4930 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4931 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4932 ac_res=$ac_cv_search_gethostbyname
4933 if test "$ac_res" != no; then
4934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4935
4936 fi
4937
4938 # Unfortunately libsocket sometimes depends on libnsl and
4939 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4940 if test "$ac_cv_search_gethostbyname" = "no"
4941 then
4942 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
4943 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
4944 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947 ac_check_lib_save_LIBS=$LIBS
4948 LIBS="-lsocket -lnsl $LIBS"
4949 cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h. */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4955
4956 /* Override any GCC internal prototype to avoid an error.
4957 Use char because int might match the return type of a GCC
4958 builtin and then its argument prototype would still apply. */
4959 #ifdef __cplusplus
4960 extern "C"
4961 #endif
4962 char gethostbyname ();
4963 int
4964 main ()
4965 {
4966 return gethostbyname ();
4967 ;
4968 return 0;
4969 }
4970 _ACEOF
4971 rm -f conftest.$ac_objext conftest$ac_exeext
4972 if { (ac_try="$ac_link"
4973 case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976 esac
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_link") 2>conftest.er1
4979 ac_status=$?
4980 grep -v '^ *+' conftest.er1 >conftest.err
4981 rm -f conftest.er1
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } && {
4985 test -z "$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4987 } && test -s conftest$ac_exeext &&
4988 $as_test_x conftest$ac_exeext; then
4989 ac_cv_lib_socket_gethostbyname=yes
4990 else
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994 ac_cv_lib_socket_gethostbyname=no
4995 fi
4996
4997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4998 conftest$ac_exeext conftest.$ac_ext
4999 LIBS=$ac_check_lib_save_LIBS
5000 fi
5001 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
5002 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
5003 if test $ac_cv_lib_socket_gethostbyname = yes; then
5004 LIBS="-lsocket -lnsl $LIBS"
5005 fi
5006
5007 fi
5008 { echo "$as_me:$LINENO: checking for library containing socket" >&5
5009 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
5010 if test "${ac_cv_search_socket+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013 ac_func_search_save_LIBS=$LIBS
5014 cat >conftest.$ac_ext <<_ACEOF
5015 /* confdefs.h. */
5016 _ACEOF
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h. */
5020
5021 /* Override any GCC internal prototype to avoid an error.
5022 Use char because int might match the return type of a GCC
5023 builtin and then its argument prototype would still apply. */
5024 #ifdef __cplusplus
5025 extern "C"
5026 #endif
5027 char socket ();
5028 int
5029 main ()
5030 {
5031 return socket ();
5032 ;
5033 return 0;
5034 }
5035 _ACEOF
5036 for ac_lib in '' socket; do
5037 if test -z "$ac_lib"; then
5038 ac_res="none required"
5039 else
5040 ac_res=-l$ac_lib
5041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5042 fi
5043 rm -f conftest.$ac_objext conftest$ac_exeext
5044 if { (ac_try="$ac_link"
5045 case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048 esac
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_link") 2>conftest.er1
5051 ac_status=$?
5052 grep -v '^ *+' conftest.er1 >conftest.err
5053 rm -f conftest.er1
5054 cat conftest.err >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && {
5057 test -z "$ac_c_werror_flag" ||
5058 test ! -s conftest.err
5059 } && test -s conftest$ac_exeext &&
5060 $as_test_x conftest$ac_exeext; then
5061 ac_cv_search_socket=$ac_res
5062 else
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5065
5066
5067 fi
5068
5069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5070 conftest$ac_exeext
5071 if test "${ac_cv_search_socket+set}" = set; then
5072 break
5073 fi
5074 done
5075 if test "${ac_cv_search_socket+set}" = set; then
5076 :
5077 else
5078 ac_cv_search_socket=no
5079 fi
5080 rm conftest.$ac_ext
5081 LIBS=$ac_func_search_save_LIBS
5082 fi
5083 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5084 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
5085 ac_res=$ac_cv_search_socket
5086 if test "$ac_res" != no; then
5087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5088
5089 else
5090 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5091 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5092 if test "${ac_cv_lib_socket_socket+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095 ac_check_lib_save_LIBS=$LIBS
5096 LIBS="-lsocket -lnsl $LIBS"
5097 cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h. */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103
5104 /* Override any GCC internal prototype to avoid an error.
5105 Use char because int might match the return type of a GCC
5106 builtin and then its argument prototype would still apply. */
5107 #ifdef __cplusplus
5108 extern "C"
5109 #endif
5110 char socket ();
5111 int
5112 main ()
5113 {
5114 return socket ();
5115 ;
5116 return 0;
5117 }
5118 _ACEOF
5119 rm -f conftest.$ac_objext conftest$ac_exeext
5120 if { (ac_try="$ac_link"
5121 case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_link") 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && {
5133 test -z "$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5135 } && test -s conftest$ac_exeext &&
5136 $as_test_x conftest$ac_exeext; then
5137 ac_cv_lib_socket_socket=yes
5138 else
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5141
5142 ac_cv_lib_socket_socket=no
5143 fi
5144
5145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5146 conftest$ac_exeext conftest.$ac_ext
5147 LIBS=$ac_check_lib_save_LIBS
5148 fi
5149 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5150 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5151 if test $ac_cv_lib_socket_socket = yes; then
5152 LIBS="-lsocket -lnsl $LIBS"
5153 fi
5154
5155 fi
5156
5157 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5158 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5159 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
5160 if test "${ac_cv_search_putmsg+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163 ac_func_search_save_LIBS=$LIBS
5164 cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h. */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5170
5171 /* Override any GCC internal prototype to avoid an error.
5172 Use char because int might match the return type of a GCC
5173 builtin and then its argument prototype would still apply. */
5174 #ifdef __cplusplus
5175 extern "C"
5176 #endif
5177 char putmsg ();
5178 int
5179 main ()
5180 {
5181 return putmsg ();
5182 ;
5183 return 0;
5184 }
5185 _ACEOF
5186 for ac_lib in '' str; do
5187 if test -z "$ac_lib"; then
5188 ac_res="none required"
5189 else
5190 ac_res=-l$ac_lib
5191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5192 fi
5193 rm -f conftest.$ac_objext conftest$ac_exeext
5194 if { (ac_try="$ac_link"
5195 case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198 esac
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_link") 2>conftest.er1
5201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest$ac_exeext &&
5210 $as_test_x conftest$ac_exeext; then
5211 ac_cv_search_putmsg=$ac_res
5212 else
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5215
5216
5217 fi
5218
5219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5220 conftest$ac_exeext
5221 if test "${ac_cv_search_putmsg+set}" = set; then
5222 break
5223 fi
5224 done
5225 if test "${ac_cv_search_putmsg+set}" = set; then
5226 :
5227 else
5228 ac_cv_search_putmsg=no
5229 fi
5230 rm conftest.$ac_ext
5231 LIBS=$ac_func_search_save_LIBS
5232 fi
5233 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5234 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5235 ac_res=$ac_cv_search_putmsg
5236 if test "$ac_res" != no; then
5237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5238
5239 fi
5240
5241
5242
5243 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
5244 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
5245 # Check whether --enable-ipv6 was given.
5246 if test "${enable_ipv6+set}" = set; then
5247 enableval=$enable_ipv6; case "$enableval" in
5248 yes) { echo "$as_me:$LINENO: result: yes" >&5
5249 echo "${ECHO_T}yes" >&6; }
5250 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC"
5251 cat >>confdefs.h <<\_ACEOF
5252 #define INET6 1
5253 _ACEOF
5254
5255 ipv6=yes
5256 ;;
5257 *)
5258 { echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6; }
5260 ipv6=no
5261 ;;
5262 esac
5263 else
5264 if test "$cross_compiling" = yes; then
5265 { echo "$as_me:$LINENO: result: no" >&5
5266 echo "${ECHO_T}no" >&6; }
5267 ipv6=no
5268
5269 else
5270 cat >conftest.$ac_ext <<_ACEOF
5271 /* confdefs.h. */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5276 /* AF_INET6 available check */
5277 #include <sys/types.h>
5278 #include <sys/socket.h>
5279 main()
5280 {
5281 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
5282 exit(1);
5283 else
5284 exit(0);
5285 }
5286
5287 _ACEOF
5288 rm -f conftest$ac_exeext
5289 if { (ac_try="$ac_link"
5290 case "(($ac_try" in
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293 esac
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_link") 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5299 { (case "(($ac_try" in
5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5302 esac
5303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_try") 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
5308 { echo "$as_me:$LINENO: result: yes" >&5
5309 echo "${ECHO_T}yes" >&6; }
5310 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC"
5311 cat >>confdefs.h <<\_ACEOF
5312 #define INET6 1
5313 _ACEOF
5314
5315 ipv6=yes
5316 else
5317 echo "$as_me: program exited with status $ac_status" >&5
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5320
5321 ( exit $ac_status )
5322 { echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6; }
5324 ipv6=no
5325 fi
5326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5327 fi
5328
5329
5330 fi
5331
5332
5333 ipv6type=unknown
5334 ipv6lib=none
5335 ipv6trylibc=no
5336
5337 if test "$ipv6" = "yes"; then
5338 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
5339 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
5340 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
5341 case $i in
5342 inria)
5343 cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h. */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 #include <netinet/in.h>
5350 #ifdef IPV6_INRIA_VERSION
5351 yes
5352 #endif
5353 _ACEOF
5354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5355 $EGREP "yes" >/dev/null 2>&1; then
5356 ipv6type=$i;
5357 CFLAGS="-DINET6 $CFLAGS"
5358 fi
5359 rm -f conftest*
5360
5361 ;;
5362 kame)
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 #include <netinet/in.h>
5370 #ifdef __KAME__
5371 yes
5372 #endif
5373 _ACEOF
5374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5375 $EGREP "yes" >/dev/null 2>&1; then
5376 ipv6type=$i;
5377 ipv6lib=inet6;
5378 ipv6libdir=/usr/local/v6/lib;
5379 ipv6trylibc=yes;
5380 CFLAGS="-DINET6 $CFLAGS"
5381 fi
5382 rm -f conftest*
5383
5384 ;;
5385 linux-glibc)
5386 cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h. */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <features.h>
5393 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5394 yes
5395 #endif
5396 _ACEOF
5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398 $EGREP "yes" >/dev/null 2>&1; then
5399 ipv6type=$i;
5400 CFLAGS="-DINET6 $CFLAGS"
5401 fi
5402 rm -f conftest*
5403
5404 ;;
5405 linux-libinet6)
5406 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
5407 ipv6type=$i
5408 ipv6lib=inet6
5409 ipv6libdir=/usr/inet6/lib
5410 ipv6trylibc=yes;
5411 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
5412 fi
5413 ;;
5414 toshiba)
5415 cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h. */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 #include <sys/param.h>
5422 #ifdef _TOSHIBA_INET6
5423 yes
5424 #endif
5425 _ACEOF
5426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5427 $EGREP "yes" >/dev/null 2>&1; then
5428 ipv6type=$i;
5429 ipv6lib=inet6;
5430 ipv6libdir=/usr/local/v6/lib;
5431 CFLAGS="-DINET6 $CFLAGS"
5432 fi
5433 rm -f conftest*
5434
5435 ;;
5436 v6d)
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #include </usr/local/v6/include/sys/v6config.h>
5444 #ifdef __V6D__
5445 yes
5446 #endif
5447 _ACEOF
5448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5449 $EGREP "yes" >/dev/null 2>&1; then
5450 ipv6type=$i;
5451 ipv6lib=v6;
5452 ipv6libdir=/usr/local/v6/lib;
5453 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5454 fi
5455 rm -f conftest*
5456
5457 ;;
5458 zeta)
5459 cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h. */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 #include <sys/param.h>
5466 #ifdef _ZETA_MINAMI_INET6
5467 yes
5468 #endif
5469 _ACEOF
5470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5471 $EGREP "yes" >/dev/null 2>&1; then
5472 ipv6type=$i;
5473 ipv6lib=inet6;
5474 ipv6libdir=/usr/local/v6/lib;
5475 CFLAGS="-DINET6 $CFLAGS"
5476 fi
5477 rm -f conftest*
5478
5479 ;;
5480 esac
5481 if test "$ipv6type" != "unknown"; then
5482 break
5483 fi
5484 done
5485 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5486 echo "${ECHO_T}$ipv6type" >&6; }
5487 fi
5488
5489 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5490 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5491 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5492 echo "You have $ipv6lib library, using it"
5493 else
5494 if test "$ipv6trylibc" = "yes"; then
5495 echo "You do not have $ipv6lib library, using libc"
5496 else
5497 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5498 echo "You need to fetch lib$ipv6lib.a from appropriate"
5499 echo 'ipv6 kit and compile beforehand.'
5500 exit 1
5501 fi
5502 fi
5503 fi
5504
5505
5506 if test "$ipv6" = "yes"; then
5507 #
5508 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5509 # function in libc; there are "ngetaddrinfo()" and
5510 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5511 # "getaddrinfo" to be either "ngetaddrinfo" or
5512 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5513 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5514 #
5515 # So this test doesn't work on Tru64 5.1, and possibly
5516 # on other 5.x releases. This causes the configure
5517 # script to become confused, and results in libpcap
5518 # being unbuildable.
5519 #
5520 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5521 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5522 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525 ac_func_search_save_LIBS=$LIBS
5526 cat >conftest.$ac_ext <<_ACEOF
5527 /* confdefs.h. */
5528 _ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5532
5533 /* Override any GCC internal prototype to avoid an error.
5534 Use char because int might match the return type of a GCC
5535 builtin and then its argument prototype would still apply. */
5536 #ifdef __cplusplus
5537 extern "C"
5538 #endif
5539 char getaddrinfo ();
5540 int
5541 main ()
5542 {
5543 return getaddrinfo ();
5544 ;
5545 return 0;
5546 }
5547 _ACEOF
5548 for ac_lib in '' socket; do
5549 if test -z "$ac_lib"; then
5550 ac_res="none required"
5551 else
5552 ac_res=-l$ac_lib
5553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5554 fi
5555 rm -f conftest.$ac_objext conftest$ac_exeext
5556 if { (ac_try="$ac_link"
5557 case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560 esac
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_link") 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && {
5569 test -z "$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 } && test -s conftest$ac_exeext &&
5572 $as_test_x conftest$ac_exeext; then
5573 ac_cv_search_getaddrinfo=$ac_res
5574 else
5575 echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5577
5578
5579 fi
5580
5581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5582 conftest$ac_exeext
5583 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5584 break
5585 fi
5586 done
5587 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5588 :
5589 else
5590 ac_cv_search_getaddrinfo=no
5591 fi
5592 rm conftest.$ac_ext
5593 LIBS=$ac_func_search_save_LIBS
5594 fi
5595 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5596 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5597 ac_res=$ac_cv_search_getaddrinfo
5598 if test "$ac_res" != no; then
5599 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5600 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5601 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5602 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605 if test "$cross_compiling" = yes; then
5606 td_cv_buggygetaddrinfo=yes
5607 else
5608 cat >conftest.$ac_ext <<_ACEOF
5609 /* confdefs.h. */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5614
5615 #include <sys/types.h>
5616 #include <netdb.h>
5617 #include <string.h>
5618 #include <sys/socket.h>
5619 #include <netinet/in.h>
5620
5621 main()
5622 {
5623 int passive, gaierr, inet4 = 0, inet6 = 0;
5624 struct addrinfo hints, *ai, *aitop;
5625 char straddr[INET6_ADDRSTRLEN], strport[16];
5626
5627 for (passive = 0; passive <= 1; passive++) {
5628 memset(&hints, 0, sizeof(hints));
5629 hints.ai_family = AF_UNSPEC;
5630 hints.ai_flags = passive ? AI_PASSIVE : 0;
5631 hints.ai_socktype = SOCK_STREAM;
5632 hints.ai_protocol = IPPROTO_TCP;
5633 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5634 (void)gai_strerror(gaierr);
5635 goto bad;
5636 }
5637 for (ai = aitop; ai; ai = ai->ai_next) {
5638 if (ai->ai_addr == NULL ||
5639 ai->ai_addrlen == 0 ||
5640 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5641 straddr, sizeof(straddr), strport, sizeof(strport),
5642 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5643 goto bad;
5644 }
5645 switch (ai->ai_family) {
5646 case AF_INET:
5647 if (strcmp(strport, "54321") != 0) {
5648 goto bad;
5649 }
5650 if (passive) {
5651 if (strcmp(straddr, "0.0.0.0") != 0) {
5652 goto bad;
5653 }
5654 } else {
5655 if (strcmp(straddr, "127.0.0.1") != 0) {
5656 goto bad;
5657 }
5658 }
5659 inet4++;
5660 break;
5661 case AF_INET6:
5662 if (strcmp(strport, "54321") != 0) {
5663 goto bad;
5664 }
5665 if (passive) {
5666 if (strcmp(straddr, "::") != 0) {
5667 goto bad;
5668 }
5669 } else {
5670 if (strcmp(straddr, "::1") != 0) {
5671 goto bad;
5672 }
5673 }
5674 inet6++;
5675 break;
5676 case AF_UNSPEC:
5677 goto bad;
5678 break;
5679 #ifdef AF_UNIX
5680 case AF_UNIX:
5681 #else
5682 #ifdef AF_LOCAL
5683 case AF_LOCAL:
5684 #endif
5685 #endif
5686 default:
5687 /* another family support? */
5688 break;
5689 }
5690 }
5691 }
5692
5693 /* supported family should be 2, unsupported family should be 0 */
5694 if (!(inet4 == 0 || inet4 == 2))
5695 goto bad;
5696 if (!(inet6 == 0 || inet6 == 2))
5697 goto bad;
5698
5699 if (aitop)
5700 freeaddrinfo(aitop);
5701 exit(0);
5702
5703 bad:
5704 if (aitop)
5705 freeaddrinfo(aitop);
5706 exit(1);
5707 }
5708
5709 _ACEOF
5710 rm -f conftest$ac_exeext
5711 if { (ac_try="$ac_link"
5712 case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715 esac
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_link") 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5721 { (case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_try") 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 td_cv_buggygetaddrinfo=no
5731 else
5732 echo "$as_me: program exited with status $ac_status" >&5
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5735
5736 ( exit $ac_status )
5737 td_cv_buggygetaddrinfo=yes
5738 fi
5739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5740 fi
5741
5742
5743 fi
5744
5745 if test "$td_cv_buggygetaddrinfo" = no; then
5746 { echo "$as_me:$LINENO: result: good" >&5
5747 echo "${ECHO_T}good" >&6; }
5748 else
5749 { echo "$as_me:$LINENO: result: buggy" >&5
5750 echo "${ECHO_T}buggy" >&6; }
5751 fi
5752
5753 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5754 #
5755 # XXX - it doesn't appear that "ipv6type" can ever be
5756 # set to "linux". Should this be testing for
5757 # "linux-glibc", or for that *or* "linux-libinet6"?
5758 # If the latter, note that "linux-libinet6" is also
5759 # the type given to some non-Linux OSes.
5760 #
5761 if test "$ipv6type" != "linux"; then
5762 echo 'Fatal: You must get working getaddrinfo() function.'
5763 echo ' or you can specify "--disable-ipv6"'.
5764 exit 1
5765 else
5766 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5767 echo ' Better upgrade your system library to newest version'
5768 echo ' of GNU C library (aka glibc).'
5769 fi
5770 fi
5771
5772 fi
5773
5774
5775 for ac_func in getnameinfo
5776 do
5777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5791 #define $ac_func innocuous_$ac_func
5792
5793 /* System header to define __stub macros and hopefully few prototypes,
5794 which can conflict with char $ac_func (); below.
5795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5796 <limits.h> exists even on freestanding compilers. */
5797
5798 #ifdef __STDC__
5799 # include <limits.h>
5800 #else
5801 # include <assert.h>
5802 #endif
5803
5804 #undef $ac_func
5805
5806 /* Override any GCC internal prototype to avoid an error.
5807 Use char because int might match the return type of a GCC
5808 builtin and then its argument prototype would still apply. */
5809 #ifdef __cplusplus
5810 extern "C"
5811 #endif
5812 char $ac_func ();
5813 /* The GNU C library defines this for functions which it implements
5814 to always fail with ENOSYS. Some functions are actually named
5815 something starting with __ and the normal name is an alias. */
5816 #if defined __stub_$ac_func || defined __stub___$ac_func
5817 choke me
5818 #endif
5819
5820 int
5821 main ()
5822 {
5823 return $ac_func ();
5824 ;
5825 return 0;
5826 }
5827 _ACEOF
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (ac_try="$ac_link"
5830 case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833 esac
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_link") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest$ac_exeext &&
5845 $as_test_x conftest$ac_exeext; then
5846 eval "$as_ac_var=yes"
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851 eval "$as_ac_var=no"
5852 fi
5853
5854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5855 conftest$ac_exeext conftest.$ac_ext
5856 fi
5857 ac_res=`eval echo '${'$as_ac_var'}'`
5858 { echo "$as_me:$LINENO: result: $ac_res" >&5
5859 echo "${ECHO_T}$ac_res" >&6; }
5860 if test `eval echo '${'$as_ac_var'}'` = yes; then
5861 cat >>confdefs.h <<_ACEOF
5862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5863 _ACEOF
5864
5865 else
5866 case " $LIBOBJS " in
5867 *" $ac_func.$ac_objext "* ) ;;
5868 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5869 ;;
5870 esac
5871
5872 fi
5873 done
5874
5875
5876 fi
5877
5878 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5879 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5880 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883 cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h. */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5889 #include <netdnet/dnetdb.h>
5890
5891 _ACEOF
5892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5893 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5894 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5895 else
5896 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5897 fi
5898 rm -f conftest*
5899
5900 fi
5901 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5902 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5903 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5904 cat >>confdefs.h <<\_ACEOF
5905 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5906 _ACEOF
5907
5908 fi
5909
5910
5911 { echo "$as_me:$LINENO: checking for addrinfo" >&5
5912 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5913 if test "${ac_cv_addrinfo+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916 cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h. */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922
5923 # include <netdb.h>
5924 int
5925 main ()
5926 {
5927 struct addrinfo a
5928 ;
5929 return 0;
5930 }
5931 _ACEOF
5932 rm -f conftest.$ac_objext
5933 if { (ac_try="$ac_compile"
5934 case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compile") 2>conftest.er1
5940 ac_status=$?
5941 grep -v '^ *+' conftest.er1 >conftest.err
5942 rm -f conftest.er1
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } && {
5946 test -z "$ac_c_werror_flag" ||
5947 test ! -s conftest.err
5948 } && test -s conftest.$ac_objext; then
5949 ac_cv_addrinfo=yes
5950 else
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954 ac_cv_addrinfo=no
5955 fi
5956
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 fi
5959
5960 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5961 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
5962 if test $ac_cv_addrinfo = yes; then
5963 cat >>confdefs.h <<\_ACEOF
5964 #define HAVE_ADDRINFO 1
5965 _ACEOF
5966
5967 else
5968 cat >>confdefs.h <<\_ACEOF
5969 #define NEED_ADDRINFO_H 1
5970 _ACEOF
5971
5972 fi
5973
5974 if test "$ac_cv_addrinfo" = no; then
5975 missing_includes=yes
5976 fi
5977
5978
5979 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5980 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
5981 if test "${ac_cv_maxserv+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h. */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 #include <netdb.h>
5991 #ifdef NI_MAXSERV
5992 yes
5993 #endif
5994 _ACEOF
5995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5996 $EGREP "yes" >/dev/null 2>&1; then
5997 ac_cv_maxserv=yes
5998 else
5999 ac_cv_maxserv=no
6000 fi
6001 rm -f conftest*
6002
6003 fi
6004
6005 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6006 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
6007 if test $ac_cv_maxserv != yes; then
6008 cat >>confdefs.h <<\_ACEOF
6009 #define NEED_ADDRINFO_H 1
6010 _ACEOF
6011
6012 fi
6013
6014 if test "$ac_cv_maxserv" = no; then
6015 missing_includes=yes
6016 fi
6017
6018
6019 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6020 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
6021 if test "${ac_cv_namereqd+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024 cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h. */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 #include <netdb.h>
6031 #ifdef NI_NOFQDN
6032 yes
6033 #endif
6034 _ACEOF
6035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6036 $EGREP "yes" >/dev/null 2>&1; then
6037 ac_cv_namereqd=yes
6038 else
6039 ac_cv_namereqd=no
6040 fi
6041 rm -f conftest*
6042
6043 fi
6044
6045 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6046 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
6047 if test $ac_cv_namereqd != yes; then
6048 cat >>confdefs.h <<\_ACEOF
6049 #define NEED_ADDRINFO_H 1
6050 _ACEOF
6051
6052 fi
6053
6054 if test "$ac_cv_namereqd" = no; then
6055 missing_includes=yes
6056 fi
6057
6058
6059 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6060 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
6061 if test "${ac_cv_sa_storage+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070
6071 # include <sys/types.h>
6072 # include <sys/socket.h>
6073 int
6074 main ()
6075 {
6076 struct sockaddr_storage s
6077 ;
6078 return 0;
6079 }
6080 _ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (ac_try="$ac_compile"
6083 case "(($ac_try" in
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6086 esac
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest.$ac_objext; then
6098 ac_cv_sa_storage=yes
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 ac_cv_sa_storage=no
6104 fi
6105
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 fi
6108
6109 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6110 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
6111 if test $ac_cv_sa_storage = yes; then
6112 cat >>confdefs.h <<\_ACEOF
6113 #define HAVE_SOCKADDR_STORAGE 1
6114 _ACEOF
6115
6116 fi
6117
6118 if test "$ac_cv_sa_storage" = no; then
6119 missing_includes=yes
6120 fi
6121
6122
6123
6124
6125
6126
6127
6128 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6129 do
6130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6144 #define $ac_func innocuous_$ac_func
6145
6146 /* System header to define __stub macros and hopefully few prototypes,
6147 which can conflict with char $ac_func (); below.
6148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6149 <limits.h> exists even on freestanding compilers. */
6150
6151 #ifdef __STDC__
6152 # include <limits.h>
6153 #else
6154 # include <assert.h>
6155 #endif
6156
6157 #undef $ac_func
6158
6159 /* Override any GCC internal prototype to avoid an error.
6160 Use char because int might match the return type of a GCC
6161 builtin and then its argument prototype would still apply. */
6162 #ifdef __cplusplus
6163 extern "C"
6164 #endif
6165 char $ac_func ();
6166 /* The GNU C library defines this for functions which it implements
6167 to always fail with ENOSYS. Some functions are actually named
6168 something starting with __ and the normal name is an alias. */
6169 #if defined __stub_$ac_func || defined __stub___$ac_func
6170 choke me
6171 #endif
6172
6173 int
6174 main ()
6175 {
6176 return $ac_func ();
6177 ;
6178 return 0;
6179 }
6180 _ACEOF
6181 rm -f conftest.$ac_objext conftest$ac_exeext
6182 if { (ac_try="$ac_link"
6183 case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6186 esac
6187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188 (eval "$ac_link") 2>conftest.er1
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } && {
6195 test -z "$ac_c_werror_flag" ||
6196 test ! -s conftest.err
6197 } && test -s conftest$ac_exeext &&
6198 $as_test_x conftest$ac_exeext; then
6199 eval "$as_ac_var=yes"
6200 else
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 eval "$as_ac_var=no"
6205 fi
6206
6207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6208 conftest$ac_exeext conftest.$ac_ext
6209 fi
6210 ac_res=`eval echo '${'$as_ac_var'}'`
6211 { echo "$as_me:$LINENO: result: $ac_res" >&5
6212 echo "${ECHO_T}$ac_res" >&6; }
6213 if test `eval echo '${'$as_ac_var'}'` = yes; then
6214 cat >>confdefs.h <<_ACEOF
6215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6216 _ACEOF
6217
6218 else
6219 case " $LIBOBJS " in
6220 *" $ac_func.$ac_objext "* ) ;;
6221 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6222 ;;
6223 esac
6224
6225 fi
6226 done
6227
6228
6229
6230
6231
6232 for ac_func in fork vfork strftime
6233 do
6234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240 cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h. */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6248 #define $ac_func innocuous_$ac_func
6249
6250 /* System header to define __stub macros and hopefully few prototypes,
6251 which can conflict with char $ac_func (); below.
6252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6253 <limits.h> exists even on freestanding compilers. */
6254
6255 #ifdef __STDC__
6256 # include <limits.h>
6257 #else
6258 # include <assert.h>
6259 #endif
6260
6261 #undef $ac_func
6262
6263 /* Override any GCC internal prototype to avoid an error.
6264 Use char because int might match the return type of a GCC
6265 builtin and then its argument prototype would still apply. */
6266 #ifdef __cplusplus
6267 extern "C"
6268 #endif
6269 char $ac_func ();
6270 /* The GNU C library defines this for functions which it implements
6271 to always fail with ENOSYS. Some functions are actually named
6272 something starting with __ and the normal name is an alias. */
6273 #if defined __stub_$ac_func || defined __stub___$ac_func
6274 choke me
6275 #endif
6276
6277 int
6278 main ()
6279 {
6280 return $ac_func ();
6281 ;
6282 return 0;
6283 }
6284 _ACEOF
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (ac_try="$ac_link"
6287 case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290 esac
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_link") 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } && {
6299 test -z "$ac_c_werror_flag" ||
6300 test ! -s conftest.err
6301 } && test -s conftest$ac_exeext &&
6302 $as_test_x conftest$ac_exeext; then
6303 eval "$as_ac_var=yes"
6304 else
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6307
6308 eval "$as_ac_var=no"
6309 fi
6310
6311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6312 conftest$ac_exeext conftest.$ac_ext
6313 fi
6314 ac_res=`eval echo '${'$as_ac_var'}'`
6315 { echo "$as_me:$LINENO: result: $ac_res" >&5
6316 echo "${ECHO_T}$ac_res" >&6; }
6317 if test `eval echo '${'$as_ac_var'}'` = yes; then
6318 cat >>confdefs.h <<_ACEOF
6319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6320 _ACEOF
6321
6322 fi
6323 done
6324
6325
6326
6327 for ac_func in setlinebuf alarm
6328 do
6329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6343 #define $ac_func innocuous_$ac_func
6344
6345 /* System header to define __stub macros and hopefully few prototypes,
6346 which can conflict with char $ac_func (); below.
6347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6348 <limits.h> exists even on freestanding compilers. */
6349
6350 #ifdef __STDC__
6351 # include <limits.h>
6352 #else
6353 # include <assert.h>
6354 #endif
6355
6356 #undef $ac_func
6357
6358 /* Override any GCC internal prototype to avoid an error.
6359 Use char because int might match the return type of a GCC
6360 builtin and then its argument prototype would still apply. */
6361 #ifdef __cplusplus
6362 extern "C"
6363 #endif
6364 char $ac_func ();
6365 /* The GNU C library defines this for functions which it implements
6366 to always fail with ENOSYS. Some functions are actually named
6367 something starting with __ and the normal name is an alias. */
6368 #if defined __stub_$ac_func || defined __stub___$ac_func
6369 choke me
6370 #endif
6371
6372 int
6373 main ()
6374 {
6375 return $ac_func ();
6376 ;
6377 return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (ac_try="$ac_link"
6382 case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385 esac
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_link") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } && {
6394 test -z "$ac_c_werror_flag" ||
6395 test ! -s conftest.err
6396 } && test -s conftest$ac_exeext &&
6397 $as_test_x conftest$ac_exeext; then
6398 eval "$as_ac_var=yes"
6399 else
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 eval "$as_ac_var=no"
6404 fi
6405
6406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6407 conftest$ac_exeext conftest.$ac_ext
6408 fi
6409 ac_res=`eval echo '${'$as_ac_var'}'`
6410 { echo "$as_me:$LINENO: result: $ac_res" >&5
6411 echo "${ECHO_T}$ac_res" >&6; }
6412 if test `eval echo '${'$as_ac_var'}'` = yes; then
6413 cat >>confdefs.h <<_ACEOF
6414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6415 _ACEOF
6416
6417 fi
6418 done
6419
6420
6421 needsnprintf=no
6422
6423
6424 for ac_func in vsnprintf snprintf
6425 do
6426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432 cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h. */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6440 #define $ac_func innocuous_$ac_func
6441
6442 /* System header to define __stub macros and hopefully few prototypes,
6443 which can conflict with char $ac_func (); below.
6444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6445 <limits.h> exists even on freestanding compilers. */
6446
6447 #ifdef __STDC__
6448 # include <limits.h>
6449 #else
6450 # include <assert.h>
6451 #endif
6452
6453 #undef $ac_func
6454
6455 /* Override any GCC internal prototype to avoid an error.
6456 Use char because int might match the return type of a GCC
6457 builtin and then its argument prototype would still apply. */
6458 #ifdef __cplusplus
6459 extern "C"
6460 #endif
6461 char $ac_func ();
6462 /* The GNU C library defines this for functions which it implements
6463 to always fail with ENOSYS. Some functions are actually named
6464 something starting with __ and the normal name is an alias. */
6465 #if defined __stub_$ac_func || defined __stub___$ac_func
6466 choke me
6467 #endif
6468
6469 int
6470 main ()
6471 {
6472 return $ac_func ();
6473 ;
6474 return 0;
6475 }
6476 _ACEOF
6477 rm -f conftest.$ac_objext conftest$ac_exeext
6478 if { (ac_try="$ac_link"
6479 case "(($ac_try" in
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6482 esac
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484 (eval "$ac_link") 2>conftest.er1
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && {
6491 test -z "$ac_c_werror_flag" ||
6492 test ! -s conftest.err
6493 } && test -s conftest$ac_exeext &&
6494 $as_test_x conftest$ac_exeext; then
6495 eval "$as_ac_var=yes"
6496 else
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500 eval "$as_ac_var=no"
6501 fi
6502
6503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6504 conftest$ac_exeext conftest.$ac_ext
6505 fi
6506 ac_res=`eval echo '${'$as_ac_var'}'`
6507 { echo "$as_me:$LINENO: result: $ac_res" >&5
6508 echo "${ECHO_T}$ac_res" >&6; }
6509 if test `eval echo '${'$as_ac_var'}'` = yes; then
6510 cat >>confdefs.h <<_ACEOF
6511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6512 _ACEOF
6513
6514 else
6515 needsnprintf=yes
6516 fi
6517 done
6518
6519 if test $needsnprintf = yes; then
6520 case " $LIBOBJS " in
6521 *" snprintf.$ac_objext "* ) ;;
6522 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6523 ;;
6524 esac
6525
6526 fi
6527
6528
6529 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6530 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6531 if test "${ac_cv_type_signal+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534 cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h. */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6540 #include <sys/types.h>
6541 #include <signal.h>
6542
6543 int
6544 main ()
6545 {
6546 return *(signal (0, 0)) (0) == 1;
6547 ;
6548 return 0;
6549 }
6550 _ACEOF
6551 rm -f conftest.$ac_objext
6552 if { (ac_try="$ac_compile"
6553 case "(($ac_try" in
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6556 esac
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 } && test -s conftest.$ac_objext; then
6568 ac_cv_type_signal=int
6569 else
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6572
6573 ac_cv_type_signal=void
6574 fi
6575
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 fi
6578 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6579 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6580
6581 cat >>confdefs.h <<_ACEOF
6582 #define RETSIGTYPE $ac_cv_type_signal
6583 _ACEOF
6584
6585
6586 if test "$ac_cv_type_signal" = void ; then
6587
6588 cat >>confdefs.h <<\_ACEOF
6589 #define RETSIGVAL
6590 _ACEOF
6591
6592 else
6593
6594 cat >>confdefs.h <<\_ACEOF
6595 #define RETSIGVAL (0)
6596 _ACEOF
6597
6598 fi
6599 case "$host_os" in
6600
6601 irix*)
6602
6603 cat >>confdefs.h <<\_ACEOF
6604 #define _BSD_SIGNALS 1
6605 _ACEOF
6606
6607 ;;
6608
6609 *)
6610
6611 for ac_func in sigaction
6612 do
6613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6627 #define $ac_func innocuous_$ac_func
6628
6629 /* System header to define __stub macros and hopefully few prototypes,
6630 which can conflict with char $ac_func (); below.
6631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6632 <limits.h> exists even on freestanding compilers. */
6633
6634 #ifdef __STDC__
6635 # include <limits.h>
6636 #else
6637 # include <assert.h>
6638 #endif
6639
6640 #undef $ac_func
6641
6642 /* Override any GCC internal prototype to avoid an error.
6643 Use char because int might match the return type of a GCC
6644 builtin and then its argument prototype would still apply. */
6645 #ifdef __cplusplus
6646 extern "C"
6647 #endif
6648 char $ac_func ();
6649 /* The GNU C library defines this for functions which it implements
6650 to always fail with ENOSYS. Some functions are actually named
6651 something starting with __ and the normal name is an alias. */
6652 #if defined __stub_$ac_func || defined __stub___$ac_func
6653 choke me
6654 #endif
6655
6656 int
6657 main ()
6658 {
6659 return $ac_func ();
6660 ;
6661 return 0;
6662 }
6663 _ACEOF
6664 rm -f conftest.$ac_objext conftest$ac_exeext
6665 if { (ac_try="$ac_link"
6666 case "(($ac_try" in
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6669 esac
6670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671 (eval "$ac_link") 2>conftest.er1
6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } && {
6678 test -z "$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6680 } && test -s conftest$ac_exeext &&
6681 $as_test_x conftest$ac_exeext; then
6682 eval "$as_ac_var=yes"
6683 else
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6686
6687 eval "$as_ac_var=no"
6688 fi
6689
6690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6691 conftest$ac_exeext conftest.$ac_ext
6692 fi
6693 ac_res=`eval echo '${'$as_ac_var'}'`
6694 { echo "$as_me:$LINENO: result: $ac_res" >&5
6695 echo "${ECHO_T}$ac_res" >&6; }
6696 if test `eval echo '${'$as_ac_var'}'` = yes; then
6697 cat >>confdefs.h <<_ACEOF
6698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6699 _ACEOF
6700
6701 fi
6702 done
6703
6704 if test $ac_cv_func_sigaction = no ; then
6705
6706 for ac_func in sigset
6707 do
6708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714 cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h. */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6722 #define $ac_func innocuous_$ac_func
6723
6724 /* System header to define __stub macros and hopefully few prototypes,
6725 which can conflict with char $ac_func (); below.
6726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6727 <limits.h> exists even on freestanding compilers. */
6728
6729 #ifdef __STDC__
6730 # include <limits.h>
6731 #else
6732 # include <assert.h>
6733 #endif
6734
6735 #undef $ac_func
6736
6737 /* Override any GCC internal prototype to avoid an error.
6738 Use char because int might match the return type of a GCC
6739 builtin and then its argument prototype would still apply. */
6740 #ifdef __cplusplus
6741 extern "C"
6742 #endif
6743 char $ac_func ();
6744 /* The GNU C library defines this for functions which it implements
6745 to always fail with ENOSYS. Some functions are actually named
6746 something starting with __ and the normal name is an alias. */
6747 #if defined __stub_$ac_func || defined __stub___$ac_func
6748 choke me
6749 #endif
6750
6751 int
6752 main ()
6753 {
6754 return $ac_func ();
6755 ;
6756 return 0;
6757 }
6758 _ACEOF
6759 rm -f conftest.$ac_objext conftest$ac_exeext
6760 if { (ac_try="$ac_link"
6761 case "(($ac_try" in
6762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763 *) ac_try_echo=$ac_try;;
6764 esac
6765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6766 (eval "$ac_link") 2>conftest.er1
6767 ac_status=$?
6768 grep -v '^ *+' conftest.er1 >conftest.err
6769 rm -f conftest.er1
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } && {
6773 test -z "$ac_c_werror_flag" ||
6774 test ! -s conftest.err
6775 } && test -s conftest$ac_exeext &&
6776 $as_test_x conftest$ac_exeext; then
6777 eval "$as_ac_var=yes"
6778 else
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782 eval "$as_ac_var=no"
6783 fi
6784
6785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6786 conftest$ac_exeext conftest.$ac_ext
6787 fi
6788 ac_res=`eval echo '${'$as_ac_var'}'`
6789 { echo "$as_me:$LINENO: result: $ac_res" >&5
6790 echo "${ECHO_T}$ac_res" >&6; }
6791 if test `eval echo '${'$as_ac_var'}'` = yes; then
6792 cat >>confdefs.h <<_ACEOF
6793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6794 _ACEOF
6795
6796 fi
6797 done
6798
6799 fi
6800 ;;
6801 esac
6802
6803 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6804 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6805 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808 ac_func_search_save_LIBS=$LIBS
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815
6816 /* Override any GCC internal prototype to avoid an error.
6817 Use char because int might match the return type of a GCC
6818 builtin and then its argument prototype would still apply. */
6819 #ifdef __cplusplus
6820 extern "C"
6821 #endif
6822 char dnet_htoa ();
6823 int
6824 main ()
6825 {
6826 return dnet_htoa ();
6827 ;
6828 return 0;
6829 }
6830 _ACEOF
6831 for ac_lib in '' dnet; do
6832 if test -z "$ac_lib"; then
6833 ac_res="none required"
6834 else
6835 ac_res=-l$ac_lib
6836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6837 fi
6838 rm -f conftest.$ac_objext conftest$ac_exeext
6839 if { (ac_try="$ac_link"
6840 case "(($ac_try" in
6841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6842 *) ac_try_echo=$ac_try;;
6843 esac
6844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6845 (eval "$ac_link") 2>conftest.er1
6846 ac_status=$?
6847 grep -v '^ *+' conftest.er1 >conftest.err
6848 rm -f conftest.er1
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } && {
6852 test -z "$ac_c_werror_flag" ||
6853 test ! -s conftest.err
6854 } && test -s conftest$ac_exeext &&
6855 $as_test_x conftest$ac_exeext; then
6856 ac_cv_search_dnet_htoa=$ac_res
6857 else
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6860
6861
6862 fi
6863
6864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6865 conftest$ac_exeext
6866 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6867 break
6868 fi
6869 done
6870 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6871 :
6872 else
6873 ac_cv_search_dnet_htoa=no
6874 fi
6875 rm conftest.$ac_ext
6876 LIBS=$ac_func_search_save_LIBS
6877 fi
6878 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6879 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6880 ac_res=$ac_cv_search_dnet_htoa
6881 if test "$ac_res" != no; then
6882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6883 cat >>confdefs.h <<\_ACEOF
6884 #define HAVE_DNET_HTOA 1
6885 _ACEOF
6886
6887 fi
6888
6889
6890
6891 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6892 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6893 if test "${ac_cv_lib_rpc_main+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896 ac_check_lib_save_LIBS=$LIBS
6897 LIBS="-lrpc $LIBS"
6898 cat >conftest.$ac_ext <<_ACEOF
6899 /* confdefs.h. */
6900 _ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h. */
6904
6905
6906 int
6907 main ()
6908 {
6909 return main ();
6910 ;
6911 return 0;
6912 }
6913 _ACEOF
6914 rm -f conftest.$ac_objext conftest$ac_exeext
6915 if { (ac_try="$ac_link"
6916 case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6919 esac
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_link") 2>conftest.er1
6922 ac_status=$?
6923 grep -v '^ *+' conftest.er1 >conftest.err
6924 rm -f conftest.er1
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } && {
6928 test -z "$ac_c_werror_flag" ||
6929 test ! -s conftest.err
6930 } && test -s conftest$ac_exeext &&
6931 $as_test_x conftest$ac_exeext; then
6932 ac_cv_lib_rpc_main=yes
6933 else
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937 ac_cv_lib_rpc_main=no
6938 fi
6939
6940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6941 conftest$ac_exeext conftest.$ac_ext
6942 LIBS=$ac_check_lib_save_LIBS
6943 fi
6944 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
6945 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
6946 if test $ac_cv_lib_rpc_main = yes; then
6947 cat >>confdefs.h <<_ACEOF
6948 #define HAVE_LIBRPC 1
6949 _ACEOF
6950
6951 LIBS="-lrpc $LIBS"
6952
6953 fi
6954
6955 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
6956 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
6957 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960 ac_func_search_save_LIBS=$LIBS
6961 cat >conftest.$ac_ext <<_ACEOF
6962 /* confdefs.h. */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6967
6968 /* Override any GCC internal prototype to avoid an error.
6969 Use char because int might match the return type of a GCC
6970 builtin and then its argument prototype would still apply. */
6971 #ifdef __cplusplus
6972 extern "C"
6973 #endif
6974 char getrpcbynumber ();
6975 int
6976 main ()
6977 {
6978 return getrpcbynumber ();
6979 ;
6980 return 0;
6981 }
6982 _ACEOF
6983 for ac_lib in '' nsl; do
6984 if test -z "$ac_lib"; then
6985 ac_res="none required"
6986 else
6987 ac_res=-l$ac_lib
6988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6989 fi
6990 rm -f conftest.$ac_objext conftest$ac_exeext
6991 if { (ac_try="$ac_link"
6992 case "(($ac_try" in
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6995 esac
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997 (eval "$ac_link") 2>conftest.er1
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } && {
7004 test -z "$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7006 } && test -s conftest$ac_exeext &&
7007 $as_test_x conftest$ac_exeext; then
7008 ac_cv_search_getrpcbynumber=$ac_res
7009 else
7010 echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013
7014 fi
7015
7016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7017 conftest$ac_exeext
7018 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7019 break
7020 fi
7021 done
7022 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7023 :
7024 else
7025 ac_cv_search_getrpcbynumber=no
7026 fi
7027 rm conftest.$ac_ext
7028 LIBS=$ac_func_search_save_LIBS
7029 fi
7030 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7031 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
7032 ac_res=$ac_cv_search_getrpcbynumber
7033 if test "$ac_res" != no; then
7034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7035 cat >>confdefs.h <<\_ACEOF
7036 #define HAVE_GETRPCBYNUMBER 1
7037 _ACEOF
7038
7039 fi
7040
7041
7042
7043
7044 LBL_LIBS="$LIBS"
7045 pfopen=/usr/examples/packetfilter/pfopen.c
7046 if test -f $pfopen ; then
7047
7048 for ac_func in pfopen
7049 do
7050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056 cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h. */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7064 #define $ac_func innocuous_$ac_func
7065
7066 /* System header to define __stub macros and hopefully few prototypes,
7067 which can conflict with char $ac_func (); below.
7068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7069 <limits.h> exists even on freestanding compilers. */
7070
7071 #ifdef __STDC__
7072 # include <limits.h>
7073 #else
7074 # include <assert.h>
7075 #endif
7076
7077 #undef $ac_func
7078
7079 /* Override any GCC internal prototype to avoid an error.
7080 Use char because int might match the return type of a GCC
7081 builtin and then its argument prototype would still apply. */
7082 #ifdef __cplusplus
7083 extern "C"
7084 #endif
7085 char $ac_func ();
7086 /* The GNU C library defines this for functions which it implements
7087 to always fail with ENOSYS. Some functions are actually named
7088 something starting with __ and the normal name is an alias. */
7089 #if defined __stub_$ac_func || defined __stub___$ac_func
7090 choke me
7091 #endif
7092
7093 int
7094 main ()
7095 {
7096 return $ac_func ();
7097 ;
7098 return 0;
7099 }
7100 _ACEOF
7101 rm -f conftest.$ac_objext conftest$ac_exeext
7102 if { (ac_try="$ac_link"
7103 case "(($ac_try" in
7104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7106 esac
7107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7108 (eval "$ac_link") 2>conftest.er1
7109 ac_status=$?
7110 grep -v '^ *+' conftest.er1 >conftest.err
7111 rm -f conftest.er1
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } && {
7115 test -z "$ac_c_werror_flag" ||
7116 test ! -s conftest.err
7117 } && test -s conftest$ac_exeext &&
7118 $as_test_x conftest$ac_exeext; then
7119 eval "$as_ac_var=yes"
7120 else
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7123
7124 eval "$as_ac_var=no"
7125 fi
7126
7127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7128 conftest$ac_exeext conftest.$ac_ext
7129 fi
7130 ac_res=`eval echo '${'$as_ac_var'}'`
7131 { echo "$as_me:$LINENO: result: $ac_res" >&5
7132 echo "${ECHO_T}$ac_res" >&6; }
7133 if test `eval echo '${'$as_ac_var'}'` = yes; then
7134 cat >>confdefs.h <<_ACEOF
7135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7136 _ACEOF
7137
7138 fi
7139 done
7140
7141 if test $ac_cv_func_pfopen = "no" ; then
7142 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
7143 echo "${ECHO_T}Using $pfopen" >&6; }
7144 LIBS="$LIBS $pfopen"
7145 fi
7146 fi
7147 { echo "$as_me:$LINENO: checking for local pcap library" >&5
7148 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
7149 libpcap=FAIL
7150 lastdir=FAIL
7151 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7152 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
7153 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7154 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
7155 sed -e 's/-PRE-GIT$//' `
7156 if test $lastdir = $basedir ; then
7157 continue;
7158 fi
7159 lastdir=$dir
7160 if test -r $dir/libpcap.a ; then
7161 libpcap=$dir/libpcap.a
7162 d=$dir
7163 fi
7164 done
7165 if test $libpcap = FAIL ; then
7166 { echo "$as_me:$LINENO: result: not found" >&5
7167 echo "${ECHO_T}not found" >&6; }
7168
7169 #
7170 # Look for pcap-config.
7171 #
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
7175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180 case $PCAP_CONFIG in
7181 [\\/]* | ?:[\\/]*)
7182 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7183 ;;
7184 *)
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7192 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 break 2
7195 fi
7196 done
7197 done
7198 IFS=$as_save_IFS
7199
7200 ;;
7201 esac
7202 fi
7203 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7204 if test -n "$PCAP_CONFIG"; then
7205 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7206 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7207 else
7208 { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7210 fi
7211
7212
7213 fi
7214 if test -z "$ac_cv_path_PCAP_CONFIG"; then
7215 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
7216 # Extract the first word of "pcap-config", so it can be a program name with args.
7217 set dummy pcap-config; ac_word=$2
7218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223 case $ac_pt_PCAP_CONFIG in
7224 [\\/]* | ?:[\\/]*)
7225 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7226 ;;
7227 *)
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243 ;;
7244 esac
7245 fi
7246 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
7247 if test -n "$ac_pt_PCAP_CONFIG"; then
7248 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7249 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7250 else
7251 { echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6; }
7253 fi
7254
7255 if test "x$ac_pt_PCAP_CONFIG" = x; then
7256 PCAP_CONFIG=""
7257 else
7258 case $cross_compiling:$ac_tool_warned in
7259 yes:)
7260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7261 whose name does not start with the host triplet. If you think this
7262 configuration is useful to you, please write to autoconf@gnu.org." >&5
7263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7264 whose name does not start with the host triplet. If you think this
7265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7266 ac_tool_warned=yes ;;
7267 esac
7268 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
7269 fi
7270 else
7271 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
7272 fi
7273
7274 if test -n "$PCAP_CONFIG" ; then
7275 #
7276 # Found - use it to get the include flags for
7277 # libpcap and the flags to link with libpcap.
7278 #
7279 # Please read section 11.6 "Shell Substitutions"
7280 # in the autoconf manual before doing anything
7281 # to this that involves quoting. Especially note
7282 # the statement "There is just no portable way to use
7283 # double-quoted strings inside double-quoted back-quoted
7284 # expressions (pfew!)."
7285 #
7286 cflags=`"$PCAP_CONFIG" --cflags`
7287 V_INCLS="$cflags $V_INCLS"
7288 libpcap=`"$PCAP_CONFIG" --libs`
7289 else
7290 #
7291 # Not found; look for pcap.
7292 #
7293 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7294 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7295 if test "${ac_cv_lib_pcap_main+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298 ac_check_lib_save_LIBS=$LIBS
7299 LIBS="-lpcap $LIBS"
7300 cat >conftest.$ac_ext <<_ACEOF
7301 /* confdefs.h. */
7302 _ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306
7307
7308 int
7309 main ()
7310 {
7311 return main ();
7312 ;
7313 return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (ac_try="$ac_link"
7318 case "(($ac_try" in
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7321 esac
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_link") 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest$ac_exeext &&
7333 $as_test_x conftest$ac_exeext; then
7334 ac_cv_lib_pcap_main=yes
7335 else
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7338
7339 ac_cv_lib_pcap_main=no
7340 fi
7341
7342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7343 conftest$ac_exeext conftest.$ac_ext
7344 LIBS=$ac_check_lib_save_LIBS
7345 fi
7346 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7347 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7348 if test $ac_cv_lib_pcap_main = yes; then
7349 libpcap="-lpcap"
7350 fi
7351
7352 if test $libpcap = FAIL ; then
7353 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7354 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7355 { (exit 1); exit 1; }; }
7356 fi
7357 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7358 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7359 if test \( ! -r /usr/local/include/pcap.h \) -a \
7360 \( ! -r /usr/include/pcap.h \); then
7361 if test -r /usr/local/include/pcap/pcap.h; then
7362 d="/usr/local/include/pcap"
7363 elif test -r /usr/include/pcap/pcap.h; then
7364 d="/usr/include/pcap"
7365 fi
7366 fi
7367 if test -z "$d" ; then
7368 { echo "$as_me:$LINENO: result: not found" >&5
7369 echo "${ECHO_T}not found" >&6; }
7370 else
7371 V_INCLS="-I$d $V_INCLS"
7372 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7373 echo "${ECHO_T}found -- -I$d added" >&6; }
7374 fi
7375 fi
7376 else
7377 V_PCAPDEP=$libpcap
7378 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7379 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7380 if test -r $d/pcap.h; then
7381 V_INCLS="-I$d $V_INCLS"
7382 elif test -r $places/pcap.h; then
7383 V_INCLS="-I$places $V_INCLS"
7384 else
7385 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7386 echo "$as_me: error: cannot find pcap.h" >&2;}
7387 { (exit see INSTALL); exit see INSTALL; }; }
7388 fi
7389 { echo "$as_me:$LINENO: result: $libpcap" >&5
7390 echo "${ECHO_T}$libpcap" >&6; }
7391 # Extract the first word of "pcap-config", so it can be a program name with args.
7392 set dummy pcap-config; ac_word=$2
7393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398 case $PCAP_CONFIG in
7399 [\\/]* | ?:[\\/]*)
7400 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7401 ;;
7402 *)
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $d
7405 do
7406 IFS=$as_save_IFS
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7410 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 break 2
7413 fi
7414 done
7415 done
7416 IFS=$as_save_IFS
7417
7418 ;;
7419 esac
7420 fi
7421 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7422 if test -n "$PCAP_CONFIG"; then
7423 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7424 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7425 else
7426 { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7428 fi
7429
7430
7431 if test -n "$PCAP_CONFIG"; then
7432 #
7433 # The libpcap directory has a pcap-config script.
7434 # Use it to get any additioal libraries needed
7435 # to link with the libpcap archive library in
7436 # that directory.
7437 #
7438 # Please read section 11.6 "Shell Substitutions"
7439 # in the autoconf manual before doing anything
7440 # to this that involves quoting. Especially note
7441 # the statement "There is just no portable way to use
7442 # double-quoted strings inside double-quoted back-quoted
7443 # expressions (pfew!)."
7444 #
7445 additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
7446 libpcap="$libpcap $additional_libs"
7447 fi
7448 fi
7449 LIBS="$libpcap $LIBS"
7450 if ! test -n "$PCAP_CONFIG" ; then
7451 #
7452 # We don't have pcap-config; find out any additional link flags
7453 # we need. (If we have pcap-config, we assume it tells us what
7454 # we need.)
7455 #
7456 case "$host_os" in
7457
7458 aix*)
7459 #
7460 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7461 # present, as we use the STREAMS routines.
7462 #
7463 # (XXX - true only if we're linking with a static libpcap?)
7464 #
7465 pseexe="/lib/pse.exp"
7466 { echo "$as_me:$LINENO: checking for $pseexe" >&5
7467 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
7468 if test -f $pseexe ; then
7469 { echo "$as_me:$LINENO: result: yes" >&5
7470 echo "${ECHO_T}yes" >&6; }
7471 LIBS="$LIBS -I:$pseexe"
7472 fi
7473
7474 #
7475 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7476 # we use them to load the BPF module.
7477 #
7478 # (XXX - true only if we're linking with a static libpcap?)
7479 #
7480 LIBS="$LIBS -lodm -lcfg"
7481 ;;
7482 esac
7483 fi
7484
7485 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7486 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7487 if test "${ac_cv_func_pcap_loop+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490 cat >conftest.$ac_ext <<_ACEOF
7491 /* confdefs.h. */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7496 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7498 #define pcap_loop innocuous_pcap_loop
7499
7500 /* System header to define __stub macros and hopefully few prototypes,
7501 which can conflict with char pcap_loop (); below.
7502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7503 <limits.h> exists even on freestanding compilers. */
7504
7505 #ifdef __STDC__
7506 # include <limits.h>
7507 #else
7508 # include <assert.h>
7509 #endif
7510
7511 #undef pcap_loop
7512
7513 /* Override any GCC internal prototype to avoid an error.
7514 Use char because int might match the return type of a GCC
7515 builtin and then its argument prototype would still apply. */
7516 #ifdef __cplusplus
7517 extern "C"
7518 #endif
7519 char pcap_loop ();
7520 /* The GNU C library defines this for functions which it implements
7521 to always fail with ENOSYS. Some functions are actually named
7522 something starting with __ and the normal name is an alias. */
7523 #if defined __stub_pcap_loop || defined __stub___pcap_loop
7524 choke me
7525 #endif
7526
7527 int
7528 main ()
7529 {
7530 return pcap_loop ();
7531 ;
7532 return 0;
7533 }
7534 _ACEOF
7535 rm -f conftest.$ac_objext conftest$ac_exeext
7536 if { (ac_try="$ac_link"
7537 case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540 esac
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_link") 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } && {
7549 test -z "$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 } && test -s conftest$ac_exeext &&
7552 $as_test_x conftest$ac_exeext; then
7553 ac_cv_func_pcap_loop=yes
7554 else
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7557
7558 ac_cv_func_pcap_loop=no
7559 fi
7560
7561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7562 conftest$ac_exeext conftest.$ac_ext
7563 fi
7564 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7565 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7566 if test $ac_cv_func_pcap_loop = yes; then
7567 :
7568 else
7569
7570 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7571 config.log file in your report. If you have downloaded libpcap from
7572 tcpdump.org, and built it yourself, please also include the config.log
7573 file from the libpcap source directory, the Makefile from the libpcap
7574 source directory, and the output of the make process for libpcap, as
7575 this could be a problem with the libpcap that was built, and we will
7576 not be able to determine why this is happening, and thus will not be
7577 able to fix it, without that information, as we have not been able to
7578 reproduce this problem ourselves." >&5
7579 echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7580 config.log file in your report. If you have downloaded libpcap from
7581 tcpdump.org, and built it yourself, please also include the config.log
7582 file from the libpcap source directory, the Makefile from the libpcap
7583 source directory, and the output of the make process for libpcap, as
7584 this could be a problem with the libpcap that was built, and we will
7585 not be able to determine why this is happening, and thus will not be
7586 able to fix it, without that information, as we have not been able to
7587 reproduce this problem ourselves." >&2;}
7588 { (exit 1); exit 1; }; }
7589
7590 fi
7591
7592
7593 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7594 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7595 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598 cat >conftest.$ac_ext <<_ACEOF
7599 /* confdefs.h. */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7606 #define pcap_list_datalinks innocuous_pcap_list_datalinks
7607
7608 /* System header to define __stub macros and hopefully few prototypes,
7609 which can conflict with char pcap_list_datalinks (); below.
7610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7611 <limits.h> exists even on freestanding compilers. */
7612
7613 #ifdef __STDC__
7614 # include <limits.h>
7615 #else
7616 # include <assert.h>
7617 #endif
7618
7619 #undef pcap_list_datalinks
7620
7621 /* Override any GCC internal prototype to avoid an error.
7622 Use char because int might match the return type of a GCC
7623 builtin and then its argument prototype would still apply. */
7624 #ifdef __cplusplus
7625 extern "C"
7626 #endif
7627 char pcap_list_datalinks ();
7628 /* The GNU C library defines this for functions which it implements
7629 to always fail with ENOSYS. Some functions are actually named
7630 something starting with __ and the normal name is an alias. */
7631 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7632 choke me
7633 #endif
7634
7635 int
7636 main ()
7637 {
7638 return pcap_list_datalinks ();
7639 ;
7640 return 0;
7641 }
7642 _ACEOF
7643 rm -f conftest.$ac_objext conftest$ac_exeext
7644 if { (ac_try="$ac_link"
7645 case "(($ac_try" in
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7648 esac
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_link") 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest$ac_exeext &&
7660 $as_test_x conftest$ac_exeext; then
7661 ac_cv_func_pcap_list_datalinks=yes
7662 else
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7665
7666 ac_cv_func_pcap_list_datalinks=no
7667 fi
7668
7669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7670 conftest$ac_exeext conftest.$ac_ext
7671 fi
7672 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7673 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7674 if test $ac_cv_func_pcap_list_datalinks = yes; then
7675 cat >>confdefs.h <<\_ACEOF
7676 #define HAVE_PCAP_LIST_DATALINKS 1
7677 _ACEOF
7678
7679 else
7680
7681 case " $LIBOBJS " in
7682 *" datalinks.$ac_objext "* ) ;;
7683 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
7684 ;;
7685 esac
7686
7687
7688 fi
7689
7690 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7691 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7692 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695 cat >conftest.$ac_ext <<_ACEOF
7696 /* confdefs.h. */
7697 _ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7701 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7703 #define pcap_set_datalink innocuous_pcap_set_datalink
7704
7705 /* System header to define __stub macros and hopefully few prototypes,
7706 which can conflict with char pcap_set_datalink (); below.
7707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7708 <limits.h> exists even on freestanding compilers. */
7709
7710 #ifdef __STDC__
7711 # include <limits.h>
7712 #else
7713 # include <assert.h>
7714 #endif
7715
7716 #undef pcap_set_datalink
7717
7718 /* Override any GCC internal prototype to avoid an error.
7719 Use char because int might match the return type of a GCC
7720 builtin and then its argument prototype would still apply. */
7721 #ifdef __cplusplus
7722 extern "C"
7723 #endif
7724 char pcap_set_datalink ();
7725 /* The GNU C library defines this for functions which it implements
7726 to always fail with ENOSYS. Some functions are actually named
7727 something starting with __ and the normal name is an alias. */
7728 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
7729 choke me
7730 #endif
7731
7732 int
7733 main ()
7734 {
7735 return pcap_set_datalink ();
7736 ;
7737 return 0;
7738 }
7739 _ACEOF
7740 rm -f conftest.$ac_objext conftest$ac_exeext
7741 if { (ac_try="$ac_link"
7742 case "(($ac_try" in
7743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744 *) ac_try_echo=$ac_try;;
7745 esac
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747 (eval "$ac_link") 2>conftest.er1
7748 ac_status=$?
7749 grep -v '^ *+' conftest.er1 >conftest.err
7750 rm -f conftest.er1
7751 cat conftest.err >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } && {
7754 test -z "$ac_c_werror_flag" ||
7755 test ! -s conftest.err
7756 } && test -s conftest$ac_exeext &&
7757 $as_test_x conftest$ac_exeext; then
7758 ac_cv_func_pcap_set_datalink=yes
7759 else
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7762
7763 ac_cv_func_pcap_set_datalink=no
7764 fi
7765
7766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7767 conftest$ac_exeext conftest.$ac_ext
7768 fi
7769 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
7770 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
7771 if test $ac_cv_func_pcap_set_datalink = yes; then
7772 cat >>confdefs.h <<\_ACEOF
7773 #define HAVE_PCAP_SET_DATALINK 1
7774 _ACEOF
7775
7776 fi
7777
7778 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
7779 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
7780 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783 cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h. */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
7790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7791 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
7792
7793 /* System header to define __stub macros and hopefully few prototypes,
7794 which can conflict with char pcap_datalink_name_to_val (); below.
7795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7796 <limits.h> exists even on freestanding compilers. */
7797
7798 #ifdef __STDC__
7799 # include <limits.h>
7800 #else
7801 # include <assert.h>
7802 #endif
7803
7804 #undef pcap_datalink_name_to_val
7805
7806 /* Override any GCC internal prototype to avoid an error.
7807 Use char because int might match the return type of a GCC
7808 builtin and then its argument prototype would still apply. */
7809 #ifdef __cplusplus
7810 extern "C"
7811 #endif
7812 char pcap_datalink_name_to_val ();
7813 /* The GNU C library defines this for functions which it implements
7814 to always fail with ENOSYS. Some functions are actually named
7815 something starting with __ and the normal name is an alias. */
7816 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
7817 choke me
7818 #endif
7819
7820 int
7821 main ()
7822 {
7823 return pcap_datalink_name_to_val ();
7824 ;
7825 return 0;
7826 }
7827 _ACEOF
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (ac_try="$ac_link"
7830 case "(($ac_try" in
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7833 esac
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_link") 2>conftest.er1
7836 ac_status=$?
7837 grep -v '^ *+' conftest.er1 >conftest.err
7838 rm -f conftest.er1
7839 cat conftest.err >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } && {
7842 test -z "$ac_c_werror_flag" ||
7843 test ! -s conftest.err
7844 } && test -s conftest$ac_exeext &&
7845 $as_test_x conftest$ac_exeext; then
7846 ac_cv_func_pcap_datalink_name_to_val=yes
7847 else
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7850
7851 ac_cv_func_pcap_datalink_name_to_val=no
7852 fi
7853
7854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7855 conftest$ac_exeext conftest.$ac_ext
7856 fi
7857 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
7858 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
7859 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
7860
7861 cat >>confdefs.h <<\_ACEOF
7862 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
7863 _ACEOF
7864
7865 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
7866 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
7867 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870 cat >conftest.$ac_ext <<_ACEOF
7871 /* confdefs.h. */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7876 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
7877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7878 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
7879
7880 /* System header to define __stub macros and hopefully few prototypes,
7881 which can conflict with char pcap_datalink_val_to_description (); below.
7882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7883 <limits.h> exists even on freestanding compilers. */
7884
7885 #ifdef __STDC__
7886 # include <limits.h>
7887 #else
7888 # include <assert.h>
7889 #endif
7890
7891 #undef pcap_datalink_val_to_description
7892
7893 /* Override any GCC internal prototype to avoid an error.
7894 Use char because int might match the return type of a GCC
7895 builtin and then its argument prototype would still apply. */
7896 #ifdef __cplusplus
7897 extern "C"
7898 #endif
7899 char pcap_datalink_val_to_description ();
7900 /* The GNU C library defines this for functions which it implements
7901 to always fail with ENOSYS. Some functions are actually named
7902 something starting with __ and the normal name is an alias. */
7903 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
7904 choke me
7905 #endif
7906
7907 int
7908 main ()
7909 {
7910 return pcap_datalink_val_to_description ();
7911 ;
7912 return 0;
7913 }
7914 _ACEOF
7915 rm -f conftest.$ac_objext conftest$ac_exeext
7916 if { (ac_try="$ac_link"
7917 case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7920 esac
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_link") 2>conftest.er1
7923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest$ac_exeext &&
7932 $as_test_x conftest$ac_exeext; then
7933 ac_cv_func_pcap_datalink_val_to_description=yes
7934 else
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7937
7938 ac_cv_func_pcap_datalink_val_to_description=no
7939 fi
7940
7941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7942 conftest$ac_exeext conftest.$ac_ext
7943 fi
7944 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
7945 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
7946 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
7947 cat >>confdefs.h <<\_ACEOF
7948 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
7949 _ACEOF
7950
7951 else
7952
7953 case " $LIBOBJS " in
7954 *" dlnames.$ac_objext "* ) ;;
7955 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7956 ;;
7957 esac
7958
7959
7960 fi
7961
7962
7963 else
7964
7965 case " $LIBOBJS " in
7966 *" dlnames.$ac_objext "* ) ;;
7967 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7968 ;;
7969 esac
7970
7971
7972 fi
7973
7974
7975
7976 for ac_func in pcap_breakloop
7977 do
7978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984 cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h. */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7992 #define $ac_func innocuous_$ac_func
7993
7994 /* System header to define __stub macros and hopefully few prototypes,
7995 which can conflict with char $ac_func (); below.
7996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7997 <limits.h> exists even on freestanding compilers. */
7998
7999 #ifdef __STDC__
8000 # include <limits.h>
8001 #else
8002 # include <assert.h>
8003 #endif
8004
8005 #undef $ac_func
8006
8007 /* Override any GCC internal prototype to avoid an error.
8008 Use char because int might match the return type of a GCC
8009 builtin and then its argument prototype would still apply. */
8010 #ifdef __cplusplus
8011 extern "C"
8012 #endif
8013 char $ac_func ();
8014 /* The GNU C library defines this for functions which it implements
8015 to always fail with ENOSYS. Some functions are actually named
8016 something starting with __ and the normal name is an alias. */
8017 #if defined __stub_$ac_func || defined __stub___$ac_func
8018 choke me
8019 #endif
8020
8021 int
8022 main ()
8023 {
8024 return $ac_func ();
8025 ;
8026 return 0;
8027 }
8028 _ACEOF
8029 rm -f conftest.$ac_objext conftest$ac_exeext
8030 if { (ac_try="$ac_link"
8031 case "(($ac_try" in
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8034 esac
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_link") 2>conftest.er1
8037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest$ac_exeext &&
8046 $as_test_x conftest$ac_exeext; then
8047 eval "$as_ac_var=yes"
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8051
8052 eval "$as_ac_var=no"
8053 fi
8054
8055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8056 conftest$ac_exeext conftest.$ac_ext
8057 fi
8058 ac_res=`eval echo '${'$as_ac_var'}'`
8059 { echo "$as_me:$LINENO: result: $ac_res" >&5
8060 echo "${ECHO_T}$ac_res" >&6; }
8061 if test `eval echo '${'$as_ac_var'}'` = yes; then
8062 cat >>confdefs.h <<_ACEOF
8063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8064 _ACEOF
8065
8066 fi
8067 done
8068
8069
8070 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8071 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
8072 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 else
8075 cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h. */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8081 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
8082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8083 #define pcap_dump_ftell innocuous_pcap_dump_ftell
8084
8085 /* System header to define __stub macros and hopefully few prototypes,
8086 which can conflict with char pcap_dump_ftell (); below.
8087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8088 <limits.h> exists even on freestanding compilers. */
8089
8090 #ifdef __STDC__
8091 # include <limits.h>
8092 #else
8093 # include <assert.h>
8094 #endif
8095
8096 #undef pcap_dump_ftell
8097
8098 /* Override any GCC internal prototype to avoid an error.
8099 Use char because int might match the return type of a GCC
8100 builtin and then its argument prototype would still apply. */
8101 #ifdef __cplusplus
8102 extern "C"
8103 #endif
8104 char pcap_dump_ftell ();
8105 /* The GNU C library defines this for functions which it implements
8106 to always fail with ENOSYS. Some functions are actually named
8107 something starting with __ and the normal name is an alias. */
8108 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
8109 choke me
8110 #endif
8111
8112 int
8113 main ()
8114 {
8115 return pcap_dump_ftell ();
8116 ;
8117 return 0;
8118 }
8119 _ACEOF
8120 rm -f conftest.$ac_objext conftest$ac_exeext
8121 if { (ac_try="$ac_link"
8122 case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_link") 2>conftest.er1
8128 ac_status=$?
8129 grep -v '^ *+' conftest.er1 >conftest.err
8130 rm -f conftest.er1
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } && {
8134 test -z "$ac_c_werror_flag" ||
8135 test ! -s conftest.err
8136 } && test -s conftest$ac_exeext &&
8137 $as_test_x conftest$ac_exeext; then
8138 ac_cv_func_pcap_dump_ftell=yes
8139 else
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8142
8143 ac_cv_func_pcap_dump_ftell=no
8144 fi
8145
8146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8147 conftest$ac_exeext conftest.$ac_ext
8148 fi
8149 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8150 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
8151 if test $ac_cv_func_pcap_dump_ftell = yes; then
8152 cat >>confdefs.h <<\_ACEOF
8153 #define HAVE_PCAP_DUMP_FTELL 1
8154 _ACEOF
8155
8156 else
8157
8158 case " $LIBOBJS " in
8159 *" pcap_dump_ftell.$ac_objext "* ) ;;
8160 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8161 ;;
8162 esac
8163
8164
8165 fi
8166
8167
8168
8169 #
8170 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8171 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8172 #
8173 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8174 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8175 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8176 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8177 # it does not ship with a libc symbol "inet_ntop()", it ships with
8178 # "_inet_ntop()", and has a #define macro in one of the system headers
8179 # to rename it.
8180 #
8181 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
8182 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8183 cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h. */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8189 #include <sys/types.h>
8190 #include <sys/socket.h>
8191 #include <netinet/in.h>
8192 #include <arpa/inet.h>
8193 int
8194 main ()
8195 {
8196 char src[4], dst[128];
8197 inet_ntop(AF_INET, src, dst, sizeof(dst));
8198 ;
8199 return 0;
8200 }
8201 _ACEOF
8202 rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (ac_try="$ac_link"
8204 case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_link") 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 } && test -s conftest$ac_exeext &&
8219 $as_test_x conftest$ac_exeext; then
8220 { echo "$as_me:$LINENO: result: yes" >&5
8221 echo "${ECHO_T}yes" >&6; }
8222 else
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226 { echo "$as_me:$LINENO: result: no" >&5
8227 echo "${ECHO_T}no" >&6; }
8228 case " $LIBOBJS " in
8229 *" inet_ntop.$ac_objext "* ) ;;
8230 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8231 ;;
8232 esac
8233
8234 fi
8235
8236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8237 conftest$ac_exeext conftest.$ac_ext
8238 { echo "$as_me:$LINENO: checking for inet_pton" >&5
8239 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8240 cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h. */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 #include <sys/types.h>
8247 #include <sys/socket.h>
8248 #include <netinet/in.h>
8249 #include <arpa/inet.h>
8250 int
8251 main ()
8252 {
8253 char src[128], dst[4];
8254 inet_pton(AF_INET, src, dst);
8255 ;
8256 return 0;
8257 }
8258 _ACEOF
8259 rm -f conftest.$ac_objext conftest$ac_exeext
8260 if { (ac_try="$ac_link"
8261 case "(($ac_try" in
8262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8263 *) ac_try_echo=$ac_try;;
8264 esac
8265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8266 (eval "$ac_link") 2>conftest.er1
8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } && {
8273 test -z "$ac_c_werror_flag" ||
8274 test ! -s conftest.err
8275 } && test -s conftest$ac_exeext &&
8276 $as_test_x conftest$ac_exeext; then
8277 { echo "$as_me:$LINENO: result: yes" >&5
8278 echo "${ECHO_T}yes" >&6; }
8279 else
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8282
8283 { echo "$as_me:$LINENO: result: no" >&5
8284 echo "${ECHO_T}no" >&6; }
8285 case " $LIBOBJS " in
8286 *" inet_pton.$ac_objext "* ) ;;
8287 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8288 ;;
8289 esac
8290
8291 fi
8292
8293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8294 conftest$ac_exeext conftest.$ac_ext
8295 { echo "$as_me:$LINENO: checking for inet_aton" >&5
8296 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8297 cat >conftest.$ac_ext <<_ACEOF
8298 /* confdefs.h. */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 #include <sys/types.h>
8304 #include <netinet/in.h>
8305 #include <arpa/inet.h>
8306 int
8307 main ()
8308 {
8309 char src[128];
8310 struct in_addr dst;
8311 inet_aton(src, &dst);
8312 ;
8313 return 0;
8314 }
8315 _ACEOF
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (ac_try="$ac_link"
8318 case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_link") 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest$ac_exeext &&
8333 $as_test_x conftest$ac_exeext; then
8334 { echo "$as_me:$LINENO: result: yes" >&5
8335 echo "${ECHO_T}yes" >&6; }
8336 else
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8339
8340 { echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6; }
8342 case " $LIBOBJS " in
8343 *" inet_aton.$ac_objext "* ) ;;
8344 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8345 ;;
8346 esac
8347
8348 fi
8349
8350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8351 conftest$ac_exeext conftest.$ac_ext
8352
8353 #
8354 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8355 #
8356 # You are in a twisty little maze of UN*Xes, all different.
8357 # Some might not have ether_ntohost().
8358 # Some might have it, but not declare it in any header file.
8359 # Some might have it, but declare it in <netinet/if_ether.h>.
8360 # Some might have it, but declare it in <netinet/ether.h>
8361 # (And some might have it but document it as something declared in
8362 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8363 #
8364 # Before you is a C compiler.
8365 #
8366
8367 for ac_func in ether_ntohost
8368 do
8369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h. */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8383 #define $ac_func innocuous_$ac_func
8384
8385 /* System header to define __stub macros and hopefully few prototypes,
8386 which can conflict with char $ac_func (); below.
8387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8388 <limits.h> exists even on freestanding compilers. */
8389
8390 #ifdef __STDC__
8391 # include <limits.h>
8392 #else
8393 # include <assert.h>
8394 #endif
8395
8396 #undef $ac_func
8397
8398 /* Override any GCC internal prototype to avoid an error.
8399 Use char because int might match the return type of a GCC
8400 builtin and then its argument prototype would still apply. */
8401 #ifdef __cplusplus
8402 extern "C"
8403 #endif
8404 char $ac_func ();
8405 /* The GNU C library defines this for functions which it implements
8406 to always fail with ENOSYS. Some functions are actually named
8407 something starting with __ and the normal name is an alias. */
8408 #if defined __stub_$ac_func || defined __stub___$ac_func
8409 choke me
8410 #endif
8411
8412 int
8413 main ()
8414 {
8415 return $ac_func ();
8416 ;
8417 return 0;
8418 }
8419 _ACEOF
8420 rm -f conftest.$ac_objext conftest$ac_exeext
8421 if { (ac_try="$ac_link"
8422 case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_link") 2>conftest.er1
8428 ac_status=$?
8429 grep -v '^ *+' conftest.er1 >conftest.err
8430 rm -f conftest.er1
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } && {
8434 test -z "$ac_c_werror_flag" ||
8435 test ! -s conftest.err
8436 } && test -s conftest$ac_exeext &&
8437 $as_test_x conftest$ac_exeext; then
8438 eval "$as_ac_var=yes"
8439 else
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8442
8443 eval "$as_ac_var=no"
8444 fi
8445
8446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8447 conftest$ac_exeext conftest.$ac_ext
8448 fi
8449 ac_res=`eval echo '${'$as_ac_var'}'`
8450 { echo "$as_me:$LINENO: result: $ac_res" >&5
8451 echo "${ECHO_T}$ac_res" >&6; }
8452 if test `eval echo '${'$as_ac_var'}'` = yes; then
8453 cat >>confdefs.h <<_ACEOF
8454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8455 _ACEOF
8456
8457 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8458 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8459 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462
8463 if test "$cross_compiling" = yes; then
8464 ac_cv_buggy_ether_ntohost="not while cross-compiling"
8465 else
8466 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h. */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472
8473 #include <netdb.h>
8474 #include <sys/types.h>
8475 #include <sys/param.h>
8476 #include <sys/socket.h>
8477
8478 int
8479 main(int argc, char **argv)
8480 {
8481 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8482 char name[MAXHOSTNAMELEN];
8483
8484 ether_ntohost(name, (struct ether_addr *)ea);
8485 exit(0);
8486 }
8487
8488 _ACEOF
8489 rm -f conftest$ac_exeext
8490 if { (ac_try="$ac_link"
8491 case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8494 esac
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_link") 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8500 { (case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8503 esac
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_try") 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_buggy_ether_ntohost=no
8510 else
8511 echo "$as_me: program exited with status $ac_status" >&5
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515 ( exit $ac_status )
8516 ac_cv_buggy_ether_ntohost=yes
8517 fi
8518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8519 fi
8520
8521
8522 fi
8523 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8524 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8525 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8526 cat >>confdefs.h <<\_ACEOF
8527 #define USE_ETHER_NTOHOST 1
8528 _ACEOF
8529
8530 fi
8531
8532 fi
8533 done
8534
8535 if test "$ac_cv_func_ether_ntohost" = yes -a \
8536 "$ac_cv_buggy_ether_ntohost" = "no"; then
8537 #
8538 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
8539 #
8540 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8541 #
8542 # Yes. Does it declare ether_ntohost()?
8543 #
8544 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8545 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8546 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h. */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555
8556 #include <sys/types.h>
8557 #include <sys/socket.h>
8558 #include <netinet/in.h>
8559 #include <arpa/inet.h>
8560 struct mbuf;
8561 struct rtentry;
8562 #include <net/if.h>
8563 #include <netinet/if_ether.h>
8564
8565
8566 int
8567 main ()
8568 {
8569 #ifndef ether_ntohost
8570 (void) ether_ntohost;
8571 #endif
8572
8573 ;
8574 return 0;
8575 }
8576 _ACEOF
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8579 case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest.$ac_objext; then
8594 ac_cv_have_decl_ether_ntohost=yes
8595 else
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_cv_have_decl_ether_ntohost=no
8600 fi
8601
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 fi
8604 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8605 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8606 if test $ac_cv_have_decl_ether_ntohost = yes; then
8607
8608
8609 cat >>confdefs.h <<\_ACEOF
8610 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8611 _ACEOF
8612
8613
8614 fi
8615
8616 fi
8617 #
8618 # Did that succeed?
8619 #
8620 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8621 #
8622 # No, how about <netinet/ether.h>, as on Linux?
8623 #
8624
8625 for ac_header in netinet/ether.h
8626 do
8627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 fi
8634 ac_res=`eval echo '${'$as_ac_Header'}'`
8635 { echo "$as_me:$LINENO: result: $ac_res" >&5
8636 echo "${ECHO_T}$ac_res" >&6; }
8637 else
8638 # Is the header compilable?
8639 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h. */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8647 $ac_includes_default
8648 #include <$ac_header>
8649 _ACEOF
8650 rm -f conftest.$ac_objext
8651 if { (ac_try="$ac_compile"
8652 case "(($ac_try" in
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8655 esac
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_compile") 2>conftest.er1
8658 ac_status=$?
8659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
8667 ac_header_compiler=yes
8668 else
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 ac_header_compiler=no
8673 fi
8674
8675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8677 echo "${ECHO_T}$ac_header_compiler" >&6; }
8678
8679 # Is the header present?
8680 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8682 cat >conftest.$ac_ext <<_ACEOF
8683 /* confdefs.h. */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8688 #include <$ac_header>
8689 _ACEOF
8690 if { (ac_try="$ac_cpp conftest.$ac_ext"
8691 case "(($ac_try" in
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8694 esac
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } >/dev/null && {
8703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8704 test ! -s conftest.err
8705 }; then
8706 ac_header_preproc=yes
8707 else
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 ac_header_preproc=no
8712 fi
8713
8714 rm -f conftest.err conftest.$ac_ext
8715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8716 echo "${ECHO_T}$ac_header_preproc" >&6; }
8717
8718 # So? What about this header?
8719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8720 yes:no: )
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8725 ac_header_preproc=yes
8726 ;;
8727 no:yes:* )
8728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8740
8741 ;;
8742 esac
8743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748 eval "$as_ac_Header=\$ac_header_preproc"
8749 fi
8750 ac_res=`eval echo '${'$as_ac_Header'}'`
8751 { echo "$as_me:$LINENO: result: $ac_res" >&5
8752 echo "${ECHO_T}$ac_res" >&6; }
8753
8754 fi
8755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8756 cat >>confdefs.h <<_ACEOF
8757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8758 _ACEOF
8759
8760 fi
8761
8762 done
8763
8764 if test "$ac_cv_header_netinet_ether_h" = yes; then
8765 #
8766 # We have it - does it declare ether_ntohost()?
8767 # Unset ac_cv_have_decl_ether_ntohost so we don't
8768 # treat the previous failure as a cached value and
8769 # suppress the next test.
8770 #
8771 unset ac_cv_have_decl_ether_ntohost
8772 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8773 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8774 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783
8784 #include <netinet/ether.h>
8785
8786
8787 int
8788 main ()
8789 {
8790 #ifndef ether_ntohost
8791 (void) ether_ntohost;
8792 #endif
8793
8794 ;
8795 return 0;
8796 }
8797 _ACEOF
8798 rm -f conftest.$ac_objext
8799 if { (ac_try="$ac_compile"
8800 case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803 esac
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_compile") 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && {
8812 test -z "$ac_c_werror_flag" ||
8813 test ! -s conftest.err
8814 } && test -s conftest.$ac_objext; then
8815 ac_cv_have_decl_ether_ntohost=yes
8816 else
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 ac_cv_have_decl_ether_ntohost=no
8821 fi
8822
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8824 fi
8825 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8826 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8827 if test $ac_cv_have_decl_ether_ntohost = yes; then
8828
8829
8830 cat >>confdefs.h <<\_ACEOF
8831 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
8832 _ACEOF
8833
8834
8835 fi
8836
8837 fi
8838 fi
8839 #
8840 # Is ether_ntohost() declared?
8841 #
8842 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8843 #
8844 # No, we'll have to declare it ourselves.
8845 # Do we have "struct ether_addr"?
8846 #
8847 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
8848 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
8849 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852 cat >conftest.$ac_ext <<_ACEOF
8853 /* confdefs.h. */
8854 _ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858
8859 #include <sys/types.h>
8860 #include <sys/socket.h>
8861 #include <netinet/in.h>
8862 #include <arpa/inet.h>
8863 struct mbuf;
8864 struct rtentry;
8865 #include <net/if.h>
8866 #include <netinet/if_ether.h>
8867
8868
8869 typedef struct ether_addr ac__type_new_;
8870 int
8871 main ()
8872 {
8873 if ((ac__type_new_ *) 0)
8874 return 0;
8875 if (sizeof (ac__type_new_))
8876 return 0;
8877 ;
8878 return 0;
8879 }
8880 _ACEOF
8881 rm -f conftest.$ac_objext
8882 if { (ac_try="$ac_compile"
8883 case "(($ac_try" in
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 *) ac_try_echo=$ac_try;;
8886 esac
8887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888 (eval "$ac_compile") 2>conftest.er1
8889 ac_status=$?
8890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } && {
8895 test -z "$ac_c_werror_flag" ||
8896 test ! -s conftest.err
8897 } && test -s conftest.$ac_objext; then
8898 ac_cv_type_struct_ether_addr=yes
8899 else
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8902
8903 ac_cv_type_struct_ether_addr=no
8904 fi
8905
8906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8907 fi
8908 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
8909 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
8910 if test $ac_cv_type_struct_ether_addr = yes; then
8911
8912 cat >>confdefs.h <<_ACEOF
8913 #define HAVE_STRUCT_ETHER_ADDR 1
8914 _ACEOF
8915
8916
8917 fi
8918
8919
8920 cat >>confdefs.h <<\_ACEOF
8921 #define HAVE_DECL_ETHER_NTOHOST 0
8922 _ACEOF
8923
8924 else
8925
8926 cat >>confdefs.h <<\_ACEOF
8927 #define HAVE_DECL_ETHER_NTOHOST 1
8928 _ACEOF
8929
8930 fi
8931 fi
8932
8933 # libdlpi is needed for Solaris 11 and later.
8934 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
8935 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
8936 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939 ac_check_lib_save_LIBS=$LIBS
8940 LIBS="-ldlpi -L/lib $LIBS"
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947
8948 /* Override any GCC internal prototype to avoid an error.
8949 Use char because int might match the return type of a GCC
8950 builtin and then its argument prototype would still apply. */
8951 #ifdef __cplusplus
8952 extern "C"
8953 #endif
8954 char dlpi_walk ();
8955 int
8956 main ()
8957 {
8958 return dlpi_walk ();
8959 ;
8960 return 0;
8961 }
8962 _ACEOF
8963 rm -f conftest.$ac_objext conftest$ac_exeext
8964 if { (ac_try="$ac_link"
8965 case "(($ac_try" in
8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967 *) ac_try_echo=$ac_try;;
8968 esac
8969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8970 (eval "$ac_link") 2>conftest.er1
8971 ac_status=$?
8972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } && {
8977 test -z "$ac_c_werror_flag" ||
8978 test ! -s conftest.err
8979 } && test -s conftest$ac_exeext &&
8980 $as_test_x conftest$ac_exeext; then
8981 ac_cv_lib_dlpi_dlpi_walk=yes
8982 else
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8985
8986 ac_cv_lib_dlpi_dlpi_walk=no
8987 fi
8988
8989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8990 conftest$ac_exeext conftest.$ac_ext
8991 LIBS=$ac_check_lib_save_LIBS
8992 fi
8993 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
8994 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
8995 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
8996 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
8997 fi
8998
8999
9000
9001 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9002 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
9003 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006 cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h. */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9012
9013 # include <sys/types.h>
9014 # include <sys/socket.h>
9015 int
9016 main ()
9017 {
9018 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9019 ;
9020 return 0;
9021 }
9022 _ACEOF
9023 rm -f conftest.$ac_objext
9024 if { (ac_try="$ac_compile"
9025 case "(($ac_try" in
9026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027 *) ac_try_echo=$ac_try;;
9028 esac
9029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030 (eval "$ac_compile") 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } && {
9037 test -z "$ac_c_werror_flag" ||
9038 test ! -s conftest.err
9039 } && test -s conftest.$ac_objext; then
9040 ac_cv_sockaddr_has_sa_len=yes
9041 else
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045 ac_cv_sockaddr_has_sa_len=no
9046 fi
9047
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049 fi
9050
9051 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9052 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
9053 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9054 cat >>confdefs.h <<\_ACEOF
9055 #define HAVE_SOCKADDR_SA_LEN 1
9056 _ACEOF
9057
9058 fi
9059
9060 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9061 missing_includes=yes
9062 fi
9063
9064 #
9065 # Do we have the new open API? Check for pcap_create, and assume that,
9066 # if we do, we also have pcap_activate() and the other new routines
9067 # introduced in libpcap 1.0.0.
9068 #
9069
9070 for ac_func in pcap_create
9071 do
9072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 else
9078 cat >conftest.$ac_ext <<_ACEOF
9079 /* confdefs.h. */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9086 #define $ac_func innocuous_$ac_func
9087
9088 /* System header to define __stub macros and hopefully few prototypes,
9089 which can conflict with char $ac_func (); below.
9090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9091 <limits.h> exists even on freestanding compilers. */
9092
9093 #ifdef __STDC__
9094 # include <limits.h>
9095 #else
9096 # include <assert.h>
9097 #endif
9098
9099 #undef $ac_func
9100
9101 /* Override any GCC internal prototype to avoid an error.
9102 Use char because int might match the return type of a GCC
9103 builtin and then its argument prototype would still apply. */
9104 #ifdef __cplusplus
9105 extern "C"
9106 #endif
9107 char $ac_func ();
9108 /* The GNU C library defines this for functions which it implements
9109 to always fail with ENOSYS. Some functions are actually named
9110 something starting with __ and the normal name is an alias. */
9111 #if defined __stub_$ac_func || defined __stub___$ac_func
9112 choke me
9113 #endif
9114
9115 int
9116 main ()
9117 {
9118 return $ac_func ();
9119 ;
9120 return 0;
9121 }
9122 _ACEOF
9123 rm -f conftest.$ac_objext conftest$ac_exeext
9124 if { (ac_try="$ac_link"
9125 case "(($ac_try" in
9126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9128 esac
9129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9130 (eval "$ac_link") 2>conftest.er1
9131 ac_status=$?
9132 grep -v '^ *+' conftest.er1 >conftest.err
9133 rm -f conftest.er1
9134 cat conftest.err >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } && {
9137 test -z "$ac_c_werror_flag" ||
9138 test ! -s conftest.err
9139 } && test -s conftest$ac_exeext &&
9140 $as_test_x conftest$ac_exeext; then
9141 eval "$as_ac_var=yes"
9142 else
9143 echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9145
9146 eval "$as_ac_var=no"
9147 fi
9148
9149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9150 conftest$ac_exeext conftest.$ac_ext
9151 fi
9152 ac_res=`eval echo '${'$as_ac_var'}'`
9153 { echo "$as_me:$LINENO: result: $ac_res" >&5
9154 echo "${ECHO_T}$ac_res" >&6; }
9155 if test `eval echo '${'$as_ac_var'}'` = yes; then
9156 cat >>confdefs.h <<_ACEOF
9157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9158 _ACEOF
9159
9160 fi
9161 done
9162
9163 if test $ac_cv_func_pcap_create = "yes" ; then
9164 #
9165 # OK, do we have pcap_set_tstamp_type? If so, assume we have
9166 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9167 #
9168
9169 for ac_func in pcap_set_tstamp_type
9170 do
9171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 else
9177 cat >conftest.$ac_ext <<_ACEOF
9178 /* confdefs.h. */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9185 #define $ac_func innocuous_$ac_func
9186
9187 /* System header to define __stub macros and hopefully few prototypes,
9188 which can conflict with char $ac_func (); below.
9189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9190 <limits.h> exists even on freestanding compilers. */
9191
9192 #ifdef __STDC__
9193 # include <limits.h>
9194 #else
9195 # include <assert.h>
9196 #endif
9197
9198 #undef $ac_func
9199
9200 /* Override any GCC internal prototype to avoid an error.
9201 Use char because int might match the return type of a GCC
9202 builtin and then its argument prototype would still apply. */
9203 #ifdef __cplusplus
9204 extern "C"
9205 #endif
9206 char $ac_func ();
9207 /* The GNU C library defines this for functions which it implements
9208 to always fail with ENOSYS. Some functions are actually named
9209 something starting with __ and the normal name is an alias. */
9210 #if defined __stub_$ac_func || defined __stub___$ac_func
9211 choke me
9212 #endif
9213
9214 int
9215 main ()
9216 {
9217 return $ac_func ();
9218 ;
9219 return 0;
9220 }
9221 _ACEOF
9222 rm -f conftest.$ac_objext conftest$ac_exeext
9223 if { (ac_try="$ac_link"
9224 case "(($ac_try" in
9225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9226 *) ac_try_echo=$ac_try;;
9227 esac
9228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9229 (eval "$ac_link") 2>conftest.er1
9230 ac_status=$?
9231 grep -v '^ *+' conftest.er1 >conftest.err
9232 rm -f conftest.er1
9233 cat conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } && {
9236 test -z "$ac_c_werror_flag" ||
9237 test ! -s conftest.err
9238 } && test -s conftest$ac_exeext &&
9239 $as_test_x conftest$ac_exeext; then
9240 eval "$as_ac_var=yes"
9241 else
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9244
9245 eval "$as_ac_var=no"
9246 fi
9247
9248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9249 conftest$ac_exeext conftest.$ac_ext
9250 fi
9251 ac_res=`eval echo '${'$as_ac_var'}'`
9252 { echo "$as_me:$LINENO: result: $ac_res" >&5
9253 echo "${ECHO_T}$ac_res" >&6; }
9254 if test `eval echo '${'$as_ac_var'}'` = yes; then
9255 cat >>confdefs.h <<_ACEOF
9256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9257 _ACEOF
9258
9259 fi
9260 done
9261
9262 fi
9263
9264
9265
9266
9267 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9268 do
9269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9283 #define $ac_func innocuous_$ac_func
9284
9285 /* System header to define __stub macros and hopefully few prototypes,
9286 which can conflict with char $ac_func (); below.
9287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9288 <limits.h> exists even on freestanding compilers. */
9289
9290 #ifdef __STDC__
9291 # include <limits.h>
9292 #else
9293 # include <assert.h>
9294 #endif
9295
9296 #undef $ac_func
9297
9298 /* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9301 #ifdef __cplusplus
9302 extern "C"
9303 #endif
9304 char $ac_func ();
9305 /* The GNU C library defines this for functions which it implements
9306 to always fail with ENOSYS. Some functions are actually named
9307 something starting with __ and the normal name is an alias. */
9308 #if defined __stub_$ac_func || defined __stub___$ac_func
9309 choke me
9310 #endif
9311
9312 int
9313 main ()
9314 {
9315 return $ac_func ();
9316 ;
9317 return 0;
9318 }
9319 _ACEOF
9320 rm -f conftest.$ac_objext conftest$ac_exeext
9321 if { (ac_try="$ac_link"
9322 case "(($ac_try" in
9323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324 *) ac_try_echo=$ac_try;;
9325 esac
9326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327 (eval "$ac_link") 2>conftest.er1
9328 ac_status=$?
9329 grep -v '^ *+' conftest.er1 >conftest.err
9330 rm -f conftest.er1
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } && {
9334 test -z "$ac_c_werror_flag" ||
9335 test ! -s conftest.err
9336 } && test -s conftest$ac_exeext &&
9337 $as_test_x conftest$ac_exeext; then
9338 eval "$as_ac_var=yes"
9339 else
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9342
9343 eval "$as_ac_var=no"
9344 fi
9345
9346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9347 conftest$ac_exeext conftest.$ac_ext
9348 fi
9349 ac_res=`eval echo '${'$as_ac_var'}'`
9350 { echo "$as_me:$LINENO: result: $ac_res" >&5
9351 echo "${ECHO_T}$ac_res" >&6; }
9352 if test `eval echo '${'$as_ac_var'}'` = yes; then
9353 cat >>confdefs.h <<_ACEOF
9354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9355 _ACEOF
9356
9357 fi
9358 done
9359
9360 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9361 savedcppflags="$CPPFLAGS"
9362 CPPFLAGS="$CPPFLAGS $V_INCLS"
9363 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9364 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9365 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368 cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h. */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374 #include <pcap.h>
9375
9376 typedef pcap_if_t ac__type_new_;
9377 int
9378 main ()
9379 {
9380 if ((ac__type_new_ *) 0)
9381 return 0;
9382 if (sizeof (ac__type_new_))
9383 return 0;
9384 ;
9385 return 0;
9386 }
9387 _ACEOF
9388 rm -f conftest.$ac_objext
9389 if { (ac_try="$ac_compile"
9390 case "(($ac_try" in
9391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392 *) ac_try_echo=$ac_try;;
9393 esac
9394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395 (eval "$ac_compile") 2>conftest.er1
9396 ac_status=$?
9397 grep -v '^ *+' conftest.er1 >conftest.err
9398 rm -f conftest.er1
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } && {
9402 test -z "$ac_c_werror_flag" ||
9403 test ! -s conftest.err
9404 } && test -s conftest.$ac_objext; then
9405 ac_cv_type_pcap_if_t=yes
9406 else
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9409
9410 ac_cv_type_pcap_if_t=no
9411 fi
9412
9413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9414 fi
9415 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9416 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9417 if test $ac_cv_type_pcap_if_t = yes; then
9418
9419 cat >>confdefs.h <<_ACEOF
9420 #define HAVE_PCAP_IF_T 1
9421 _ACEOF
9422
9423
9424 fi
9425
9426 CPPFLAGS="$savedcppflags"
9427 fi
9428
9429 if test $ac_cv_func_pcap_lib_version = "no" ; then
9430 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9431 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h. */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438
9439 int
9440 main ()
9441 {
9442
9443 extern char pcap_version[];
9444
9445 return (int)pcap_version;
9446
9447 ;
9448 return 0;
9449 }
9450 _ACEOF
9451 rm -f conftest.$ac_objext conftest$ac_exeext
9452 if { (ac_try="$ac_link"
9453 case "(($ac_try" in
9454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9455 *) ac_try_echo=$ac_try;;
9456 esac
9457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9458 (eval "$ac_link") 2>conftest.er1
9459 ac_status=$?
9460 grep -v '^ *+' conftest.er1 >conftest.err
9461 rm -f conftest.er1
9462 cat conftest.err >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } && {
9465 test -z "$ac_c_werror_flag" ||
9466 test ! -s conftest.err
9467 } && test -s conftest$ac_exeext &&
9468 $as_test_x conftest$ac_exeext; then
9469 ac_lbl_cv_pcap_version_defined=yes
9470 else
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9473
9474 ac_lbl_cv_pcap_version_defined=no
9475 fi
9476
9477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9478 conftest$ac_exeext conftest.$ac_ext
9479 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9480 { echo "$as_me:$LINENO: result: yes" >&5
9481 echo "${ECHO_T}yes" >&6; }
9482 cat >>confdefs.h <<\_ACEOF
9483 #define HAVE_PCAP_VERSION 1
9484 _ACEOF
9485
9486 else
9487 { echo "$as_me:$LINENO: result: no" >&5
9488 echo "${ECHO_T}no" >&6; }
9489 fi
9490 fi
9491 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9492 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9493 cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h. */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9499
9500 int
9501 main ()
9502 {
9503
9504 extern int pcap_debug;
9505
9506 return pcap_debug;
9507
9508 ;
9509 return 0;
9510 }
9511 _ACEOF
9512 rm -f conftest.$ac_objext conftest$ac_exeext
9513 if { (ac_try="$ac_link"
9514 case "(($ac_try" in
9515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9517 esac
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_link") 2>conftest.er1
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } && {
9526 test -z "$ac_c_werror_flag" ||
9527 test ! -s conftest.err
9528 } && test -s conftest$ac_exeext &&
9529 $as_test_x conftest$ac_exeext; then
9530 ac_lbl_cv_pcap_debug_defined=yes
9531 else
9532 echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9534
9535 ac_lbl_cv_pcap_debug_defined=no
9536 fi
9537
9538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9539 conftest$ac_exeext conftest.$ac_ext
9540 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9541 { echo "$as_me:$LINENO: result: yes" >&5
9542 echo "${ECHO_T}yes" >&6; }
9543 cat >>confdefs.h <<\_ACEOF
9544 #define HAVE_PCAP_DEBUG 1
9545 _ACEOF
9546
9547 else
9548 { echo "$as_me:$LINENO: result: no" >&5
9549 echo "${ECHO_T}no" >&6; }
9550 #
9551 # OK, what about "yydebug"?
9552 #
9553 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9554 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9555 cat >conftest.$ac_ext <<_ACEOF
9556 /* confdefs.h. */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9561
9562 int
9563 main ()
9564 {
9565
9566 extern int yydebug;
9567
9568 return yydebug;
9569
9570 ;
9571 return 0;
9572 }
9573 _ACEOF
9574 rm -f conftest.$ac_objext conftest$ac_exeext
9575 if { (ac_try="$ac_link"
9576 case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9579 esac
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_link") 2>conftest.er1
9582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } && {
9588 test -z "$ac_c_werror_flag" ||
9589 test ! -s conftest.err
9590 } && test -s conftest$ac_exeext &&
9591 $as_test_x conftest$ac_exeext; then
9592 ac_lbl_cv_yydebug_defined=yes
9593 else
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9596
9597 ac_lbl_cv_yydebug_defined=no
9598 fi
9599
9600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9601 conftest$ac_exeext conftest.$ac_ext
9602 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9603 { echo "$as_me:$LINENO: result: yes" >&5
9604 echo "${ECHO_T}yes" >&6; }
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_YYDEBUG 1
9607 _ACEOF
9608
9609 else
9610 { echo "$as_me:$LINENO: result: no" >&5
9611 echo "${ECHO_T}no" >&6; }
9612 fi
9613 fi
9614
9615 for ac_func in bpf_dump
9616 do
9617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9618 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623 cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h. */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9631 #define $ac_func innocuous_$ac_func
9632
9633 /* System header to define __stub macros and hopefully few prototypes,
9634 which can conflict with char $ac_func (); below.
9635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9636 <limits.h> exists even on freestanding compilers. */
9637
9638 #ifdef __STDC__
9639 # include <limits.h>
9640 #else
9641 # include <assert.h>
9642 #endif
9643
9644 #undef $ac_func
9645
9646 /* Override any GCC internal prototype to avoid an error.
9647 Use char because int might match the return type of a GCC
9648 builtin and then its argument prototype would still apply. */
9649 #ifdef __cplusplus
9650 extern "C"
9651 #endif
9652 char $ac_func ();
9653 /* The GNU C library defines this for functions which it implements
9654 to always fail with ENOSYS. Some functions are actually named
9655 something starting with __ and the normal name is an alias. */
9656 #if defined __stub_$ac_func || defined __stub___$ac_func
9657 choke me
9658 #endif
9659
9660 int
9661 main ()
9662 {
9663 return $ac_func ();
9664 ;
9665 return 0;
9666 }
9667 _ACEOF
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (ac_try="$ac_link"
9670 case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9673 esac
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_link") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && {
9682 test -z "$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest$ac_exeext &&
9685 $as_test_x conftest$ac_exeext; then
9686 eval "$as_ac_var=yes"
9687 else
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9690
9691 eval "$as_ac_var=no"
9692 fi
9693
9694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9695 conftest$ac_exeext conftest.$ac_ext
9696 fi
9697 ac_res=`eval echo '${'$as_ac_var'}'`
9698 { echo "$as_me:$LINENO: result: $ac_res" >&5
9699 echo "${ECHO_T}$ac_res" >&6; }
9700 if test `eval echo '${'$as_ac_var'}'` = yes; then
9701 cat >>confdefs.h <<_ACEOF
9702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9703 _ACEOF
9704
9705 else
9706 case " $LIBOBJS " in
9707 *" $ac_func.$ac_objext "* ) ;;
9708 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9709 ;;
9710 esac
9711
9712 fi
9713 done
9714
9715
9716 V_GROUP=0
9717 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9718 V_GROUP=wheel
9719 fi
9720 #
9721 # Assume V7/BSD convention for man pages (file formats in section 5,
9722 # miscellaneous info in section 7).
9723 #
9724 MAN_FILE_FORMATS=5
9725 MAN_MISC_INFO=7
9726 case "$host_os" in
9727
9728 aix*)
9729
9730 cat >>confdefs.h <<\_ACEOF
9731 #define _SUN 1
9732 _ACEOF
9733
9734 ;;
9735
9736 hpux*)
9737 #
9738 # Use System V conventions for man pages.
9739 #
9740 MAN_FILE_FORMATS=4
9741 MAN_MISC_INFO=5
9742 ;;
9743
9744 irix*)
9745 V_GROUP=sys
9746
9747 #
9748 # Use System V conventions for man pages.
9749 #
9750 MAN_FILE_FORMATS=4
9751 MAN_MISC_INFO=5
9752 ;;
9753
9754 osf*)
9755 V_GROUP=system
9756
9757 #
9758 # Use System V conventions for man pages.
9759 #
9760 MAN_FILE_FORMATS=4
9761 MAN_MISC_INFO=5
9762 ;;
9763
9764 solaris*)
9765 V_GROUP=sys
9766
9767 #
9768 # Use System V conventions for man pages.
9769 #
9770 MAN_FILE_FORMATS=4
9771 MAN_MISC_INFO=5
9772 ;;
9773 esac
9774
9775 if test -f /dev/bpf0 ; then
9776 V_GROUP=bpf
9777 fi
9778
9779
9780 for ac_header in sys/bitypes.h
9781 do
9782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 fi
9789 ac_res=`eval echo '${'$as_ac_Header'}'`
9790 { echo "$as_me:$LINENO: result: $ac_res" >&5
9791 echo "${ECHO_T}$ac_res" >&6; }
9792 else
9793 # Is the header compilable?
9794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9796 cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h. */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 $ac_includes_default
9803 #include <$ac_header>
9804 _ACEOF
9805 rm -f conftest.$ac_objext
9806 if { (ac_try="$ac_compile"
9807 case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810 esac
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_compile") 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } && {
9819 test -z "$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9821 } && test -s conftest.$ac_objext; then
9822 ac_header_compiler=yes
9823 else
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9826
9827 ac_header_compiler=no
9828 fi
9829
9830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9832 echo "${ECHO_T}$ac_header_compiler" >&6; }
9833
9834 # Is the header present?
9835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9837 cat >conftest.$ac_ext <<_ACEOF
9838 /* confdefs.h. */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 #include <$ac_header>
9844 _ACEOF
9845 if { (ac_try="$ac_cpp conftest.$ac_ext"
9846 case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } >/dev/null && {
9858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9859 test ! -s conftest.err
9860 }; then
9861 ac_header_preproc=yes
9862 else
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 ac_header_preproc=no
9867 fi
9868
9869 rm -f conftest.err conftest.$ac_ext
9870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9871 echo "${ECHO_T}$ac_header_preproc" >&6; }
9872
9873 # So? What about this header?
9874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9875 yes:no: )
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9880 ac_header_preproc=yes
9881 ;;
9882 no:yes:* )
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9895
9896 ;;
9897 esac
9898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 else
9903 eval "$as_ac_Header=\$ac_header_preproc"
9904 fi
9905 ac_res=`eval echo '${'$as_ac_Header'}'`
9906 { echo "$as_me:$LINENO: result: $ac_res" >&5
9907 echo "${ECHO_T}$ac_res" >&6; }
9908
9909 fi
9910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9911 cat >>confdefs.h <<_ACEOF
9912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9913 _ACEOF
9914
9915 fi
9916
9917 done
9918
9919
9920 { echo "$as_me:$LINENO: checking for int8_t" >&5
9921 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
9922 if test "${ac_cv_type_int8_t+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925 cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h. */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 $ac_includes_default
9932 #ifdef HAVE_SYS_BITYPES_H
9933 #include <sys/bitypes.h>
9934 #endif
9935
9936 typedef int8_t ac__type_new_;
9937 int
9938 main ()
9939 {
9940 if ((ac__type_new_ *) 0)
9941 return 0;
9942 if (sizeof (ac__type_new_))
9943 return 0;
9944 ;
9945 return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext
9949 if { (ac_try="$ac_compile"
9950 case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_compile") 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest.$ac_objext; then
9965 ac_cv_type_int8_t=yes
9966 else
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9969
9970 ac_cv_type_int8_t=no
9971 fi
9972
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9974 fi
9975 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
9976 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
9977 if test $ac_cv_type_int8_t = yes; then
9978 :
9979 else
9980
9981 cat >>confdefs.h <<\_ACEOF
9982 #define int8_t signed char
9983 _ACEOF
9984
9985 fi
9986
9987 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
9988 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
9989 if test "${ac_cv_type_u_int8_t+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 $ac_includes_default
9999 #ifdef HAVE_SYS_BITYPES_H
10000 #include <sys/bitypes.h>
10001 #endif
10002
10003 typedef u_int8_t ac__type_new_;
10004 int
10005 main ()
10006 {
10007 if ((ac__type_new_ *) 0)
10008 return 0;
10009 if (sizeof (ac__type_new_))
10010 return 0;
10011 ;
10012 return 0;
10013 }
10014 _ACEOF
10015 rm -f conftest.$ac_objext
10016 if { (ac_try="$ac_compile"
10017 case "(($ac_try" in
10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019 *) ac_try_echo=$ac_try;;
10020 esac
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_compile") 2>conftest.er1
10023 ac_status=$?
10024 grep -v '^ *+' conftest.er1 >conftest.err
10025 rm -f conftest.er1
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } && {
10029 test -z "$ac_c_werror_flag" ||
10030 test ! -s conftest.err
10031 } && test -s conftest.$ac_objext; then
10032 ac_cv_type_u_int8_t=yes
10033 else
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037 ac_cv_type_u_int8_t=no
10038 fi
10039
10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10041 fi
10042 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10043 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
10044 if test $ac_cv_type_u_int8_t = yes; then
10045 :
10046 else
10047
10048 cat >>confdefs.h <<\_ACEOF
10049 #define u_int8_t unsigned char
10050 _ACEOF
10051
10052 fi
10053
10054 { echo "$as_me:$LINENO: checking for int16_t" >&5
10055 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10056 if test "${ac_cv_type_int16_t+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059 cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h. */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10065 $ac_includes_default
10066 typedef int16_t ac__type_new_;
10067 int
10068 main ()
10069 {
10070 if ((ac__type_new_ *) 0)
10071 return 0;
10072 if (sizeof (ac__type_new_))
10073 return 0;
10074 ;
10075 return 0;
10076 }
10077 _ACEOF
10078 rm -f conftest.$ac_objext
10079 if { (ac_try="$ac_compile"
10080 case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10083 esac
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_compile") 2>conftest.er1
10086 ac_status=$?
10087 grep -v '^ *+' conftest.er1 >conftest.err
10088 rm -f conftest.er1
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } && {
10092 test -z "$ac_c_werror_flag" ||
10093 test ! -s conftest.err
10094 } && test -s conftest.$ac_objext; then
10095 ac_cv_type_int16_t=yes
10096 else
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10099
10100 ac_cv_type_int16_t=no
10101 fi
10102
10103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10104 fi
10105 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10106 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10107 if test $ac_cv_type_int16_t = yes; then
10108 :
10109 else
10110
10111 cat >>confdefs.h <<\_ACEOF
10112 #define int16_t short
10113 _ACEOF
10114
10115 $ac_includes_default
10116 #ifdef HAVE_SYS_BITYPES_H
10117 #include <sys/bitypes.h>
10118 #endif
10119 fi
10120
10121 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
10122 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10123 if test "${ac_cv_type_u_int16_t+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h. */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 $ac_includes_default
10133 #ifdef HAVE_SYS_BITYPES_H
10134 #include <sys/bitypes.h>
10135 #endif
10136
10137 typedef u_int16_t ac__type_new_;
10138 int
10139 main ()
10140 {
10141 if ((ac__type_new_ *) 0)
10142 return 0;
10143 if (sizeof (ac__type_new_))
10144 return 0;
10145 ;
10146 return 0;
10147 }
10148 _ACEOF
10149 rm -f conftest.$ac_objext
10150 if { (ac_try="$ac_compile"
10151 case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10154 esac
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_compile") 2>conftest.er1
10157 ac_status=$?
10158 grep -v '^ *+' conftest.er1 >conftest.err
10159 rm -f conftest.er1
10160 cat conftest.err >&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && {
10163 test -z "$ac_c_werror_flag" ||
10164 test ! -s conftest.err
10165 } && test -s conftest.$ac_objext; then
10166 ac_cv_type_u_int16_t=yes
10167 else
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10170
10171 ac_cv_type_u_int16_t=no
10172 fi
10173
10174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10175 fi
10176 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10177 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10178 if test $ac_cv_type_u_int16_t = yes; then
10179 :
10180 else
10181
10182 cat >>confdefs.h <<\_ACEOF
10183 #define u_int16_t unsigned short
10184 _ACEOF
10185
10186 fi
10187
10188 { echo "$as_me:$LINENO: checking for int32_t" >&5
10189 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10190 if test "${ac_cv_type_int32_t+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193 cat >conftest.$ac_ext <<_ACEOF
10194 /* confdefs.h. */
10195 _ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10199 $ac_includes_default
10200 #ifdef HAVE_SYS_BITYPES_H
10201 #include <sys/bitypes.h>
10202 #endif
10203
10204 typedef int32_t ac__type_new_;
10205 int
10206 main ()
10207 {
10208 if ((ac__type_new_ *) 0)
10209 return 0;
10210 if (sizeof (ac__type_new_))
10211 return 0;
10212 ;
10213 return 0;
10214 }
10215 _ACEOF
10216 rm -f conftest.$ac_objext
10217 if { (ac_try="$ac_compile"
10218 case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221 esac
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_compile") 2>conftest.er1
10224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest.$ac_objext; then
10233 ac_cv_type_int32_t=yes
10234 else
10235 echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10237
10238 ac_cv_type_int32_t=no
10239 fi
10240
10241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10242 fi
10243 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10244 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
10245 if test $ac_cv_type_int32_t = yes; then
10246 :
10247 else
10248
10249 cat >>confdefs.h <<\_ACEOF
10250 #define int32_t int
10251 _ACEOF
10252
10253 fi
10254
10255 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
10256 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10257 if test "${ac_cv_type_u_int32_t+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260 cat >conftest.$ac_ext <<_ACEOF
10261 /* confdefs.h. */
10262 _ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h. */
10266 $ac_includes_default
10267 #ifdef HAVE_SYS_BITYPES_H
10268 #include <sys/bitypes.h>
10269 #endif
10270
10271 typedef u_int32_t ac__type_new_;
10272 int
10273 main ()
10274 {
10275 if ((ac__type_new_ *) 0)
10276 return 0;
10277 if (sizeof (ac__type_new_))
10278 return 0;
10279 ;
10280 return 0;
10281 }
10282 _ACEOF
10283 rm -f conftest.$ac_objext
10284 if { (ac_try="$ac_compile"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_compile") 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest.$ac_objext; then
10300 ac_cv_type_u_int32_t=yes
10301 else
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305 ac_cv_type_u_int32_t=no
10306 fi
10307
10308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309 fi
10310 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10311 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10312 if test $ac_cv_type_u_int32_t = yes; then
10313 :
10314 else
10315
10316 cat >>confdefs.h <<\_ACEOF
10317 #define u_int32_t unsigned int
10318 _ACEOF
10319
10320 fi
10321
10322 { echo "$as_me:$LINENO: checking for int64_t" >&5
10323 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10324 if test "${ac_cv_type_int64_t+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327 cat >conftest.$ac_ext <<_ACEOF
10328 /* confdefs.h. */
10329 _ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10333 $ac_includes_default
10334 #ifdef HAVE_SYS_BITYPES_H
10335 #include <sys/bitypes.h>
10336 #endif
10337
10338 typedef int64_t ac__type_new_;
10339 int
10340 main ()
10341 {
10342 if ((ac__type_new_ *) 0)
10343 return 0;
10344 if (sizeof (ac__type_new_))
10345 return 0;
10346 ;
10347 return 0;
10348 }
10349 _ACEOF
10350 rm -f conftest.$ac_objext
10351 if { (ac_try="$ac_compile"
10352 case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10355 esac
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_compile") 2>conftest.er1
10358 ac_status=$?
10359 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } && {
10364 test -z "$ac_c_werror_flag" ||
10365 test ! -s conftest.err
10366 } && test -s conftest.$ac_objext; then
10367 ac_cv_type_int64_t=yes
10368 else
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10371
10372 ac_cv_type_int64_t=no
10373 fi
10374
10375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10376 fi
10377 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10378 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
10379 if test $ac_cv_type_int64_t = yes; then
10380 :
10381 else
10382
10383 cat >>confdefs.h <<\_ACEOF
10384 #define int64_t long long
10385 _ACEOF
10386
10387 fi
10388
10389 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
10390 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10391 if test "${ac_cv_type_u_int64_t+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h. */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 $ac_includes_default
10401 #ifdef HAVE_SYS_BITYPES_H
10402 #include <sys/bitypes.h>
10403 #endif
10404
10405 typedef u_int64_t ac__type_new_;
10406 int
10407 main ()
10408 {
10409 if ((ac__type_new_ *) 0)
10410 return 0;
10411 if (sizeof (ac__type_new_))
10412 return 0;
10413 ;
10414 return 0;
10415 }
10416 _ACEOF
10417 rm -f conftest.$ac_objext
10418 if { (ac_try="$ac_compile"
10419 case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10422 esac
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_compile") 2>conftest.er1
10425 ac_status=$?
10426 grep -v '^ *+' conftest.er1 >conftest.err
10427 rm -f conftest.er1
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest.$ac_objext; then
10434 ac_cv_type_u_int64_t=yes
10435 else
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439 ac_cv_type_u_int64_t=no
10440 fi
10441
10442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10443 fi
10444 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10445 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
10446 if test $ac_cv_type_u_int64_t = yes; then
10447 :
10448 else
10449
10450 cat >>confdefs.h <<\_ACEOF
10451 #define u_int64_t unsigned long long
10452 _ACEOF
10453
10454 fi
10455
10456
10457 #
10458 # We can't just check for <inttypes.h> - some systems have one that
10459 # doesn't define all the PRI[doxu]64 macros.
10460 #
10461
10462 for ac_header in inttypes.h
10463 do
10464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 fi
10471 ac_res=`eval echo '${'$as_ac_Header'}'`
10472 { echo "$as_me:$LINENO: result: $ac_res" >&5
10473 echo "${ECHO_T}$ac_res" >&6; }
10474 else
10475 # Is the header compilable?
10476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h. */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 $ac_includes_default
10485 #include <$ac_header>
10486 _ACEOF
10487 rm -f conftest.$ac_objext
10488 if { (ac_try="$ac_compile"
10489 case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_compile") 2>conftest.er1
10495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } && {
10501 test -z "$ac_c_werror_flag" ||
10502 test ! -s conftest.err
10503 } && test -s conftest.$ac_objext; then
10504 ac_header_compiler=yes
10505 else
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10508
10509 ac_header_compiler=no
10510 fi
10511
10512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10514 echo "${ECHO_T}$ac_header_compiler" >&6; }
10515
10516 # Is the header present?
10517 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10519 cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h. */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525 #include <$ac_header>
10526 _ACEOF
10527 if { (ac_try="$ac_cpp conftest.$ac_ext"
10528 case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10531 esac
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10534 ac_status=$?
10535 grep -v '^ *+' conftest.er1 >conftest.err
10536 rm -f conftest.er1
10537 cat conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } >/dev/null && {
10540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10541 test ! -s conftest.err
10542 }; then
10543 ac_header_preproc=yes
10544 else
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10547
10548 ac_header_preproc=no
10549 fi
10550
10551 rm -f conftest.err conftest.$ac_ext
10552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10553 echo "${ECHO_T}$ac_header_preproc" >&6; }
10554
10555 # So? What about this header?
10556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10557 yes:no: )
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10562 ac_header_preproc=yes
10563 ;;
10564 no:yes:* )
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10577
10578 ;;
10579 esac
10580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 else
10585 eval "$as_ac_Header=\$ac_header_preproc"
10586 fi
10587 ac_res=`eval echo '${'$as_ac_Header'}'`
10588 { echo "$as_me:$LINENO: result: $ac_res" >&5
10589 echo "${ECHO_T}$ac_res" >&6; }
10590
10591 fi
10592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10593 cat >>confdefs.h <<_ACEOF
10594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10595 _ACEOF
10596
10597 #
10598 # OK, we have inttypes.h, but does it define those macros?
10599 #
10600 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10601 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
10602 cat >conftest.$ac_ext <<_ACEOF
10603
10604 /* confdefs.h. */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609
10610 #include <inttypes.h>
10611 #include <stdio.h>
10612 #include <sys/types.h>
10613 #ifdef HAVE_SYS_BITYPES_H
10614 #include <sys/bitypes.h>
10615 #endif
10616
10617 main()
10618 {
10619 printf("%" PRId64 "\n", (u_int64_t)1);
10620 printf("%" PRIo64 "\n", (u_int64_t)1);
10621 printf("%" PRIx64 "\n", (u_int64_t)1);
10622 printf("%" PRIu64 "\n", (u_int64_t)1);
10623 }
10624
10625
10626 _ACEOF
10627 rm -f conftest.$ac_objext
10628 if { (ac_try="$ac_compile"
10629 case "(($ac_try" in
10630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631 *) ac_try_echo=$ac_try;;
10632 esac
10633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634 (eval "$ac_compile") 2>conftest.er1
10635 ac_status=$?
10636 grep -v '^ *+' conftest.er1 >conftest.err
10637 rm -f conftest.er1
10638 cat conftest.err >&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } && {
10641 test -z "$ac_c_werror_flag" ||
10642 test ! -s conftest.err
10643 } && test -s conftest.$ac_objext; then
10644
10645 { echo "$as_me:$LINENO: result: yes" >&5
10646 echo "${ECHO_T}yes" >&6; }
10647 ac_lbl_inttypes_h_defines_formats=yes
10648
10649 else
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653
10654 { echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6; }
10656 ac_lbl_inttypes_h_defines_formats=no
10657
10658 fi
10659
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661
10662 else
10663
10664 #
10665 # We don't have inttypes.h, so it obviously can't define those
10666 # macros.
10667 #
10668 ac_lbl_inttypes_h_defines_formats=no
10669
10670 fi
10671
10672 done
10673
10674 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10675
10676 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10677 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10678 if test "$cross_compiling" = yes; then
10679 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10680 See \`config.log' for more details." >&5
10681 echo "$as_me: error: cannot run test program while cross compiling
10682 See \`config.log' for more details." >&2;}
10683 { (exit 1); exit 1; }; }
10684 else
10685 cat >conftest.$ac_ext <<_ACEOF
10686
10687 /* confdefs.h. */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692
10693 # ifdef HAVE_INTTYPES_H
10694 #include <inttypes.h>
10695 # endif
10696 # ifdef HAVE_SYS_BITYPES_H
10697 #include <sys/bitypes.h>
10698 # endif
10699 #include <stdio.h>
10700 #include <sys/types.h>
10701
10702 main()
10703 {
10704 u_int64_t t = 1;
10705 char strbuf[16+1];
10706 sprintf(strbuf, "%016lx", t << 32);
10707 if (strcmp(strbuf, "0000000100000000") == 0)
10708 exit(0);
10709 else
10710 exit(1);
10711 }
10712
10713
10714 _ACEOF
10715 rm -f conftest$ac_exeext
10716 if { (ac_try="$ac_link"
10717 case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10720 esac
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_link") 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10726 { (case "(($ac_try" in
10727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10729 esac
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731 (eval "$ac_try") 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735
10736 cat >>confdefs.h <<\_ACEOF
10737 #define PRId64 "ld"
10738 _ACEOF
10739
10740 cat >>confdefs.h <<\_ACEOF
10741 #define PRIo64 "lo"
10742 _ACEOF
10743
10744 cat >>confdefs.h <<\_ACEOF
10745 #define PRIx64 "lx"
10746 _ACEOF
10747
10748 cat >>confdefs.h <<\_ACEOF
10749 #define PRIu64 "lu"
10750 _ACEOF
10751
10752 { echo "$as_me:$LINENO: result: yes" >&5
10753 echo "${ECHO_T}yes" >&6; }
10754
10755 else
10756 echo "$as_me: program exited with status $ac_status" >&5
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760 ( exit $ac_status )
10761
10762 { echo "$as_me:$LINENO: result: no" >&5
10763 echo "${ECHO_T}no" >&6; }
10764
10765
10766 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10767 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
10768 if test "$cross_compiling" = yes; then
10769 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10770 See \`config.log' for more details." >&5
10771 echo "$as_me: error: cannot run test program while cross compiling
10772 See \`config.log' for more details." >&2;}
10773 { (exit 1); exit 1; }; }
10774 else
10775 cat >conftest.$ac_ext <<_ACEOF
10776
10777 /* confdefs.h. */
10778 _ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10782
10783 # ifdef HAVE_INTTYPES_H
10784 #include <inttypes.h>
10785 # endif
10786 # ifdef HAVE_SYS_BITYPES_H
10787 #include <sys/bitypes.h>
10788 # endif
10789 #include <stdio.h>
10790 #include <sys/types.h>
10791
10792 main()
10793 {
10794 u_int64_t t = 1;
10795 char strbuf[16+1];
10796 sprintf(strbuf, "%016llx", t << 32);
10797 if (strcmp(strbuf, "0000000100000000") == 0)
10798 exit(0);
10799 else
10800 exit(1);
10801 }
10802
10803
10804 _ACEOF
10805 rm -f conftest$ac_exeext
10806 if { (ac_try="$ac_link"
10807 case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_link") 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10816 { (case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10819 esac
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_try") 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825
10826 cat >>confdefs.h <<\_ACEOF
10827 #define PRId64 "lld"
10828 _ACEOF
10829
10830 cat >>confdefs.h <<\_ACEOF
10831 #define PRIo64 "llo"
10832 _ACEOF
10833
10834 cat >>confdefs.h <<\_ACEOF
10835 #define PRIx64 "llx"
10836 _ACEOF
10837
10838 cat >>confdefs.h <<\_ACEOF
10839 #define PRIu64 "llu"
10840 _ACEOF
10841
10842 { echo "$as_me:$LINENO: result: yes" >&5
10843 echo "${ECHO_T}yes" >&6; }
10844
10845 else
10846 echo "$as_me: program exited with status $ac_status" >&5
10847 echo "$as_me: failed program was:" >&5
10848 sed 's/^/| /' conftest.$ac_ext >&5
10849
10850 ( exit $ac_status )
10851
10852 { echo "$as_me:$LINENO: result: no" >&5
10853 echo "${ECHO_T}no" >&6; }
10854
10855
10856 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10857 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10858 if test "$cross_compiling" = yes; then
10859 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10860 See \`config.log' for more details." >&5
10861 echo "$as_me: error: cannot run test program while cross compiling
10862 See \`config.log' for more details." >&2;}
10863 { (exit 1); exit 1; }; }
10864 else
10865 cat >conftest.$ac_ext <<_ACEOF
10866
10867 /* confdefs.h. */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10872
10873 # ifdef HAVE_INTTYPES_H
10874 #include <inttypes.h>
10875 # endif
10876 # ifdef HAVE_SYS_BITYPES_H
10877 #include <sys/bitypes.h>
10878 # endif
10879 #include <stdio.h>
10880 #include <sys/types.h>
10881
10882 main()
10883 {
10884 u_int64_t t = 1;
10885 char strbuf[16+1];
10886 sprintf(strbuf, "%016Lx", t << 32);
10887 if (strcmp(strbuf, "0000000100000000") == 0)
10888 exit(0);
10889 else
10890 exit(1);
10891 }
10892
10893
10894 _ACEOF
10895 rm -f conftest$ac_exeext
10896 if { (ac_try="$ac_link"
10897 case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10900 esac
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_link") 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10906 { (case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10909 esac
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_try") 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915
10916 cat >>confdefs.h <<\_ACEOF
10917 #define PRId64 "Ld"
10918 _ACEOF
10919
10920 cat >>confdefs.h <<\_ACEOF
10921 #define PRIo64 "Lo"
10922 _ACEOF
10923
10924 cat >>confdefs.h <<\_ACEOF
10925 #define PRIx64 "Lx"
10926 _ACEOF
10927
10928 cat >>confdefs.h <<\_ACEOF
10929 #define PRIu64 "Lu"
10930 _ACEOF
10931
10932 { echo "$as_me:$LINENO: result: yes" >&5
10933 echo "${ECHO_T}yes" >&6; }
10934
10935 else
10936 echo "$as_me: program exited with status $ac_status" >&5
10937 echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10939
10940 ( exit $ac_status )
10941
10942 { echo "$as_me:$LINENO: result: no" >&5
10943 echo "${ECHO_T}no" >&6; }
10944
10945
10946 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10947 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
10948 if test "$cross_compiling" = yes; then
10949 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10950 See \`config.log' for more details." >&5
10951 echo "$as_me: error: cannot run test program while cross compiling
10952 See \`config.log' for more details." >&2;}
10953 { (exit 1); exit 1; }; }
10954 else
10955 cat >conftest.$ac_ext <<_ACEOF
10956
10957 /* confdefs.h. */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962
10963 # ifdef HAVE_INTTYPES_H
10964 #include <inttypes.h>
10965 # endif
10966 # ifdef HAVE_SYS_BITYPES_H
10967 #include <sys/bitypes.h>
10968 # endif
10969 #include <stdio.h>
10970 #include <sys/types.h>
10971
10972 main()
10973 {
10974 u_int64_t t = 1;
10975 char strbuf[16+1];
10976 sprintf(strbuf, "%016qx", t << 32);
10977 if (strcmp(strbuf, "0000000100000000") == 0)
10978 exit(0);
10979 else
10980 exit(1);
10981 }
10982
10983
10984 _ACEOF
10985 rm -f conftest$ac_exeext
10986 if { (ac_try="$ac_link"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_link") 2>&5
10993 ac_status=$?
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10996 { (case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
10999 esac
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_try") 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005
11006 cat >>confdefs.h <<\_ACEOF
11007 #define PRId64 "qd"
11008 _ACEOF
11009
11010 cat >>confdefs.h <<\_ACEOF
11011 #define PRIo64 "qo"
11012 _ACEOF
11013
11014 cat >>confdefs.h <<\_ACEOF
11015 #define PRIx64 "qx"
11016 _ACEOF
11017
11018 cat >>confdefs.h <<\_ACEOF
11019 #define PRIu64 "qu"
11020 _ACEOF
11021
11022 { echo "$as_me:$LINENO: result: yes" >&5
11023 echo "${ECHO_T}yes" >&6; }
11024
11025 else
11026 echo "$as_me: program exited with status $ac_status" >&5
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11029
11030 ( exit $ac_status )
11031
11032 { echo "$as_me:$LINENO: result: no" >&5
11033 echo "${ECHO_T}no" >&6; }
11034
11035 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11036 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11037 { (exit 1); exit 1; }; }
11038
11039
11040 fi
11041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11042 fi
11043
11044
11045
11046
11047
11048 fi
11049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11050 fi
11051
11052
11053
11054
11055
11056 fi
11057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11058 fi
11059
11060
11061
11062
11063
11064 fi
11065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11066 fi
11067
11068
11069
11070 fi
11071
11072 #
11073 # Check for some headers introduced in later versions of libpcap
11074 # and used by some printers.
11075 #
11076 # Those headers use the {u_}intN_t types, so we must do this after
11077 # we check for what's needed to get them defined.
11078 #
11079 savedcppflags="$CPPFLAGS"
11080 CPPFLAGS="$CPPFLAGS $V_INCLS"
11081
11082 for ac_header in pcap/bluetooth.h
11083 do
11084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 else
11090 cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h. */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 #include <tcpdump-stdinc.h>
11097
11098 #include <$ac_header>
11099 _ACEOF
11100 rm -f conftest.$ac_objext
11101 if { (ac_try="$ac_compile"
11102 case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11105 esac
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_compile") 2>conftest.er1
11108 ac_status=$?
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } && {
11114 test -z "$ac_c_werror_flag" ||
11115 test ! -s conftest.err
11116 } && test -s conftest.$ac_objext; then
11117 eval "$as_ac_Header=yes"
11118 else
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11121
11122 eval "$as_ac_Header=no"
11123 fi
11124
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126 fi
11127 ac_res=`eval echo '${'$as_ac_Header'}'`
11128 { echo "$as_me:$LINENO: result: $ac_res" >&5
11129 echo "${ECHO_T}$ac_res" >&6; }
11130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11131 cat >>confdefs.h <<_ACEOF
11132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11133 _ACEOF
11134
11135 fi
11136
11137 done
11138
11139
11140 for ac_header in pcap/usb.h
11141 do
11142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148 cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h. */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 #include <tcpdump-stdinc.h>
11155
11156 #include <$ac_header>
11157 _ACEOF
11158 rm -f conftest.$ac_objext
11159 if { (ac_try="$ac_compile"
11160 case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_compile") 2>conftest.er1
11166 ac_status=$?
11167 grep -v '^ *+' conftest.er1 >conftest.err
11168 rm -f conftest.er1
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } && {
11172 test -z "$ac_c_werror_flag" ||
11173 test ! -s conftest.err
11174 } && test -s conftest.$ac_objext; then
11175 eval "$as_ac_Header=yes"
11176 else
11177 echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11179
11180 eval "$as_ac_Header=no"
11181 fi
11182
11183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11184 fi
11185 ac_res=`eval echo '${'$as_ac_Header'}'`
11186 { echo "$as_me:$LINENO: result: $ac_res" >&5
11187 echo "${ECHO_T}$ac_res" >&6; }
11188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11189 cat >>confdefs.h <<_ACEOF
11190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11191 _ACEOF
11192
11193 fi
11194
11195 done
11196
11197 CPPFLAGS="$savedcppflags"
11198
11199 if test -n "$ac_tool_prefix"; then
11200 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11201 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11204 if test "${ac_cv_prog_RANLIB+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 if test -n "$RANLIB"; then
11208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11209 else
11210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211 for as_dir in $PATH
11212 do
11213 IFS=$as_save_IFS
11214 test -z "$as_dir" && as_dir=.
11215 for ac_exec_ext in '' $ac_executable_extensions; do
11216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11217 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11219 break 2
11220 fi
11221 done
11222 done
11223 IFS=$as_save_IFS
11224
11225 fi
11226 fi
11227 RANLIB=$ac_cv_prog_RANLIB
11228 if test -n "$RANLIB"; then
11229 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11230 echo "${ECHO_T}$RANLIB" >&6; }
11231 else
11232 { echo "$as_me:$LINENO: result: no" >&5
11233 echo "${ECHO_T}no" >&6; }
11234 fi
11235
11236
11237 fi
11238 if test -z "$ac_cv_prog_RANLIB"; then
11239 ac_ct_RANLIB=$RANLIB
11240 # Extract the first word of "ranlib", so it can be a program name with args.
11241 set dummy ranlib; ac_word=$2
11242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11244 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 else
11247 if test -n "$ac_ct_RANLIB"; then
11248 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11249 else
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251 for as_dir in $PATH
11252 do
11253 IFS=$as_save_IFS
11254 test -z "$as_dir" && as_dir=.
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11257 ac_cv_prog_ac_ct_RANLIB="ranlib"
11258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11259 break 2
11260 fi
11261 done
11262 done
11263 IFS=$as_save_IFS
11264
11265 fi
11266 fi
11267 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11268 if test -n "$ac_ct_RANLIB"; then
11269 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11270 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11271 else
11272 { echo "$as_me:$LINENO: result: no" >&5
11273 echo "${ECHO_T}no" >&6; }
11274 fi
11275
11276 if test "x$ac_ct_RANLIB" = x; then
11277 RANLIB=":"
11278 else
11279 case $cross_compiling:$ac_tool_warned in
11280 yes:)
11281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11282 whose name does not start with the host triplet. If you think this
11283 configuration is useful to you, please write to autoconf@gnu.org." >&5
11284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11285 whose name does not start with the host triplet. If you think this
11286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11287 ac_tool_warned=yes ;;
11288 esac
11289 RANLIB=$ac_ct_RANLIB
11290 fi
11291 else
11292 RANLIB="$ac_cv_prog_RANLIB"
11293 fi
11294
11295
11296 rm -f os-proto.h
11297 if test "${LBL_CFLAGS+set}" = set; then
11298 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11299 fi
11300 if test -f .devel ; then
11301 #
11302 # At least one version of HP's C compiler will not
11303 # exit with a non-zero exit status when given an
11304 # unknown -W flag, even if you use +We and the
11305 # number of the warning it gives for that issue.
11306 #
11307 # We therefore skip all the warning option stuff
11308 # on HP-UX.
11309 #
11310 if test "$ac_lbl_cc_is_hp_c" != yes; then
11311
11312 { echo "$as_me:$LINENO: checking whether the compiler fails when given an unknown warning option" >&5
11313 echo $ECHO_N "checking whether the compiler fails when given an unknown warning option... $ECHO_C" >&6; }
11314 save_CFLAGS="$CFLAGS"
11315 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
11316 cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h. */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322
11323 int
11324 main ()
11325 {
11326 return 0
11327 ;
11328 return 0;
11329 }
11330 _ACEOF
11331 rm -f conftest.$ac_objext
11332 if { (ac_try="$ac_compile"
11333 case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11336 esac
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338 (eval "$ac_compile") 2>conftest.er1
11339 ac_status=$?
11340 grep -v '^ *+' conftest.er1 >conftest.err
11341 rm -f conftest.er1
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } && {
11345 test -z "$ac_c_werror_flag" ||
11346 test ! -s conftest.err
11347 } && test -s conftest.$ac_objext; then
11348
11349 { echo "$as_me:$LINENO: result: no" >&5
11350 echo "${ECHO_T}no" >&6; }
11351 #
11352 # We're assuming this is clang, where
11353 # -Werror=unknown-warning-option is the appropriate
11354 # option to force the compiler to fail.
11355 #
11356 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
11357
11358 else
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11361
11362
11363 { echo "$as_me:$LINENO: result: yes" >&5
11364 echo "${ECHO_T}yes" >&6; }
11365
11366 fi
11367
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11369 CFLAGS="$save_CFLAGS"
11370
11371
11372 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wall option" >&5
11373 echo $ECHO_N "checking whether the compiler supports the -Wall option... $ECHO_C" >&6; }
11374 save_CFLAGS="$CFLAGS"
11375 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h. */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382
11383 int
11384 main ()
11385 {
11386 return 0
11387 ;
11388 return 0;
11389 }
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_compile") 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } && {
11405 test -z "$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11407 } && test -s conftest.$ac_objext; then
11408
11409 { echo "$as_me:$LINENO: result: yes" >&5
11410 echo "${ECHO_T}yes" >&6; }
11411 CFLAGS="$save_CFLAGS"
11412 V_CCOPT="$V_CCOPT -Wall"
11413
11414 else
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11417
11418
11419 { echo "$as_me:$LINENO: result: no" >&5
11420 echo "${ECHO_T}no" >&6; }
11421 CFLAGS="$save_CFLAGS"
11422
11423 fi
11424
11425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426
11427
11428 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wmissing-prototypes option" >&5
11429 echo $ECHO_N "checking whether the compiler supports the -Wmissing-prototypes option... $ECHO_C" >&6; }
11430 save_CFLAGS="$CFLAGS"
11431 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
11432 cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h. */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438
11439 int
11440 main ()
11441 {
11442 return 0
11443 ;
11444 return 0;
11445 }
11446 _ACEOF
11447 rm -f conftest.$ac_objext
11448 if { (ac_try="$ac_compile"
11449 case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11452 esac
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_compile") 2>conftest.er1
11455 ac_status=$?
11456 grep -v '^ *+' conftest.er1 >conftest.err
11457 rm -f conftest.er1
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } && {
11461 test -z "$ac_c_werror_flag" ||
11462 test ! -s conftest.err
11463 } && test -s conftest.$ac_objext; then
11464
11465 { echo "$as_me:$LINENO: result: yes" >&5
11466 echo "${ECHO_T}yes" >&6; }
11467 CFLAGS="$save_CFLAGS"
11468 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
11469
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11473
11474
11475 { echo "$as_me:$LINENO: result: no" >&5
11476 echo "${ECHO_T}no" >&6; }
11477 CFLAGS="$save_CFLAGS"
11478
11479 fi
11480
11481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11482
11483
11484 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wstrict-prototypes option" >&5
11485 echo $ECHO_N "checking whether the compiler supports the -Wstrict-prototypes option... $ECHO_C" >&6; }
11486 save_CFLAGS="$CFLAGS"
11487 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
11488 cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h. */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494
11495 int
11496 main ()
11497 {
11498 return 0
11499 ;
11500 return 0;
11501 }
11502 _ACEOF
11503 rm -f conftest.$ac_objext
11504 if { (ac_try="$ac_compile"
11505 case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11508 esac
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_compile") 2>conftest.er1
11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } && {
11517 test -z "$ac_c_werror_flag" ||
11518 test ! -s conftest.err
11519 } && test -s conftest.$ac_objext; then
11520
11521 { echo "$as_me:$LINENO: result: yes" >&5
11522 echo "${ECHO_T}yes" >&6; }
11523 CFLAGS="$save_CFLAGS"
11524 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
11525
11526 else
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11529
11530
11531 { echo "$as_me:$LINENO: result: no" >&5
11532 echo "${ECHO_T}no" >&6; }
11533 CFLAGS="$save_CFLAGS"
11534
11535 fi
11536
11537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11538
11539
11540 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wwrite-strings option" >&5
11541 echo $ECHO_N "checking whether the compiler supports the -Wwrite-strings option... $ECHO_C" >&6; }
11542 save_CFLAGS="$CFLAGS"
11543 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wwrite-strings"
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h. */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550
11551 int
11552 main ()
11553 {
11554 return 0
11555 ;
11556 return 0;
11557 }
11558 _ACEOF
11559 rm -f conftest.$ac_objext
11560 if { (ac_try="$ac_compile"
11561 case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11564 esac
11565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566 (eval "$ac_compile") 2>conftest.er1
11567 ac_status=$?
11568 grep -v '^ *+' conftest.er1 >conftest.err
11569 rm -f conftest.er1
11570 cat conftest.err >&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } && {
11573 test -z "$ac_c_werror_flag" ||
11574 test ! -s conftest.err
11575 } && test -s conftest.$ac_objext; then
11576
11577 { echo "$as_me:$LINENO: result: yes" >&5
11578 echo "${ECHO_T}yes" >&6; }
11579 CFLAGS="$save_CFLAGS"
11580 V_CCOPT="$V_CCOPT -Wwrite-strings"
11581
11582 else
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11585
11586
11587 { echo "$as_me:$LINENO: result: no" >&5
11588 echo "${ECHO_T}no" >&6; }
11589 CFLAGS="$save_CFLAGS"
11590
11591 fi
11592
11593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11594
11595
11596 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wpointer-arith option" >&5
11597 echo $ECHO_N "checking whether the compiler supports the -Wpointer-arith option... $ECHO_C" >&6; }
11598 save_CFLAGS="$CFLAGS"
11599 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wpointer-arith"
11600 cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h. */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606
11607 int
11608 main ()
11609 {
11610 return 0
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 rm -f conftest.$ac_objext
11616 if { (ac_try="$ac_compile"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_compile") 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest.$ac_objext; then
11632
11633 { echo "$as_me:$LINENO: result: yes" >&5
11634 echo "${ECHO_T}yes" >&6; }
11635 CFLAGS="$save_CFLAGS"
11636 V_CCOPT="$V_CCOPT -Wpointer-arith"
11637
11638 else
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642
11643 { echo "$as_me:$LINENO: result: no" >&5
11644 echo "${ECHO_T}no" >&6; }
11645 CFLAGS="$save_CFLAGS"
11646
11647 fi
11648
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650
11651
11652 { echo "$as_me:$LINENO: checking whether the compiler supports the -W option" >&5
11653 echo $ECHO_N "checking whether the compiler supports the -W option... $ECHO_C" >&6; }
11654 save_CFLAGS="$CFLAGS"
11655 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
11656 cat >conftest.$ac_ext <<_ACEOF
11657 /* confdefs.h. */
11658 _ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11662
11663 int
11664 main ()
11665 {
11666 return 0
11667 ;
11668 return 0;
11669 }
11670 _ACEOF
11671 rm -f conftest.$ac_objext
11672 if { (ac_try="$ac_compile"
11673 case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11676 esac
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_compile") 2>conftest.er1
11679 ac_status=$?
11680 grep -v '^ *+' conftest.er1 >conftest.err
11681 rm -f conftest.er1
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } && {
11685 test -z "$ac_c_werror_flag" ||
11686 test ! -s conftest.err
11687 } && test -s conftest.$ac_objext; then
11688
11689 { echo "$as_me:$LINENO: result: yes" >&5
11690 echo "${ECHO_T}yes" >&6; }
11691 CFLAGS="$save_CFLAGS"
11692 V_CCOPT="$V_CCOPT -W"
11693
11694 else
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11697
11698
11699 { echo "$as_me:$LINENO: result: no" >&5
11700 echo "${ECHO_T}no" >&6; }
11701 CFLAGS="$save_CFLAGS"
11702
11703 fi
11704
11705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11706
11707 fi
11708
11709 { echo "$as_me:$LINENO: checking whether the compiler supports generating dependencies" >&5
11710 echo $ECHO_N "checking whether the compiler supports generating dependencies... $ECHO_C" >&6; }
11711 if test "$GCC" = yes ; then
11712 #
11713 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
11714 # though it's not); we assume that, in this case, the flag
11715 # would be -M.
11716 #
11717 ac_lbl_dependency_flag="-M"
11718 else
11719 #
11720 # Not GCC or a compiler deemed to be GCC; what platform is
11721 # this? (We're assuming that if the compiler isn't GCC
11722 # it's the compiler from the vendor of the OS; that won't
11723 # necessarily be true for x86 platforms, where it might be
11724 # the Intel C compiler.)
11725 #
11726 case "$host_os" in
11727
11728 irix*|osf*|darwin*)
11729 #
11730 # MIPS C for IRIX, DEC C, and clang all use -M.
11731 #
11732 ac_lbl_dependency_flag="-M"
11733 ;;
11734
11735 solaris*)
11736 #
11737 # Sun C uses -xM.
11738 #
11739 ac_lbl_dependency_flag="-xM"
11740 ;;
11741
11742 hpux*)
11743 #
11744 # HP's older C compilers don't support this.
11745 # HP's newer C compilers support this with
11746 # either +M or +Make; the older compilers
11747 # interpret +M as something completely
11748 # different, so we use +Make so we don't
11749 # think it works with the older compilers.
11750 #
11751 ac_lbl_dependency_flag="+Make"
11752 ;;
11753
11754 *)
11755 #
11756 # Not one of the above; assume no support for
11757 # generating dependencies.
11758 #
11759 ac_lbl_dependency_flag=""
11760 ;;
11761 esac
11762 fi
11763
11764 #
11765 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
11766 # complain about it?
11767 #
11768 # Note: clang doesn't seem to exit with an error status when handed
11769 # an unknown non-warning error, even if you pass it
11770 # -Werror=unknown-warning-option. However, it always supports
11771 # -M, so the fact that this test always succeeds with clang
11772 # isn't an issue.
11773 #
11774 if test ! -z "$ac_lbl_dependency_flag"; then
11775 cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h. */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 int main(void) { return 0; }
11782 _ACEOF
11783 echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
11784 if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
11785 { echo "$as_me:$LINENO: result: yes, with $ac_lbl_dependency_flag" >&5
11786 echo "${ECHO_T}yes, with $ac_lbl_dependency_flag" >&6; }
11787 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
11788 MKDEP='${srcdir}/mkdep'
11789 else
11790 { echo "$as_me:$LINENO: result: no" >&5
11791 echo "${ECHO_T}no" >&6; }
11792 #
11793 # We can't run mkdep, so have "make depend" do
11794 # nothing.
11795 #
11796 MKDEP=:
11797 fi
11798 rm -rf conftest*
11799 else
11800 { echo "$as_me:$LINENO: result: no" >&5
11801 echo "${ECHO_T}no" >&6; }
11802 #
11803 # We can't run mkdep, so have "make depend" do
11804 # nothing.
11805 #
11806 MKDEP=:
11807 fi
11808
11809
11810 if test "$GCC" = yes ; then
11811 if test "${LBL_CFLAGS+set}" != set; then
11812 if test "$ac_cv_prog_cc_g" = yes ; then
11813 V_CCOPT="-g $V_CCOPT"
11814 fi
11815 fi
11816 else
11817 case "$host_os" in
11818
11819 irix6*)
11820 V_CCOPT="$V_CCOPT -n32"
11821 ;;
11822
11823 *)
11824 ;;
11825 esac
11826 fi
11827 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11828 name="lbl/os-$os.h"
11829 if test -f $name ; then
11830 ln -s $name os-proto.h
11831
11832 cat >>confdefs.h <<\_ACEOF
11833 #define HAVE_OS_PROTO_H 1
11834 _ACEOF
11835
11836 else
11837 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11838 echo "$as_me: WARNING: can't find $name" >&2;}
11839 fi
11840 fi
11841
11842 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
11843 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
11844 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 else
11847 cat >conftest.$ac_ext <<_ACEOF
11848 /* confdefs.h. */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */
11853
11854 # include <sys/types.h>
11855 # include <sys/socket.h>
11856 int
11857 main ()
11858 {
11859 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11860 ;
11861 return 0;
11862 }
11863 _ACEOF
11864 rm -f conftest.$ac_objext
11865 if { (ac_try="$ac_compile"
11866 case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_compile") 2>conftest.er1
11872 ac_status=$?
11873 grep -v '^ *+' conftest.er1 >conftest.err
11874 rm -f conftest.er1
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } && {
11878 test -z "$ac_c_werror_flag" ||
11879 test ! -s conftest.err
11880 } && test -s conftest.$ac_objext; then
11881 ac_cv_lbl_sockaddr_has_sa_len=yes
11882 else
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11885
11886 ac_cv_lbl_sockaddr_has_sa_len=no
11887 fi
11888
11889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11890 fi
11891
11892 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11893 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
11894 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11895
11896 cat >>confdefs.h <<\_ACEOF
11897 #define HAVE_SOCKADDR_SA_LEN 1
11898 _ACEOF
11899
11900 fi
11901
11902 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11903 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
11904 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11906 else
11907 case "$host_cpu" in
11908
11909 #
11910 # These are CPU types where:
11911 #
11912 # the CPU faults on an unaligned access, but at least some
11913 # OSes that support that CPU catch the fault and simulate
11914 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11915 # the simulation is slow, so we don't want to use it;
11916 #
11917 # the CPU, I infer (from the old
11918 #
11919 # XXX: should also check that they don't do weird things (like on arm)
11920 #
11921 # comment) doesn't fault on unaligned accesses, but doesn't
11922 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11923 #
11924 # for whatever reason, the test program doesn't work
11925 # (this has been claimed to be the case for several of those
11926 # CPUs - I don't know what the problem is; the problem
11927 # was reported as "the test program dumps core" for SuperH,
11928 # but that's what the test program is *supposed* to do -
11929 # it dumps core before it writes anything, so the test
11930 # for an empty output file should find an empty output
11931 # file and conclude that unaligned accesses don't work).
11932 #
11933 # This run-time test won't work if you're cross-compiling, so
11934 # in order to support cross-compiling for a particular CPU,
11935 # we have to wire in the list of CPU types anyway, as far as
11936 # I know, so perhaps we should just have a set of CPUs on
11937 # which we know it doesn't work, a set of CPUs on which we
11938 # know it does work, and have the script just fail on other
11939 # cpu types and update it when such a failure occurs.
11940 #
11941 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
11942 ac_cv_lbl_unaligned_fail=yes
11943 ;;
11944
11945 *)
11946 cat >conftest.c <<EOF
11947 # include <sys/types.h>
11948 # include <sys/wait.h>
11949 # include <stdio.h>
11950 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11951 main() {
11952 unsigned int i;
11953 pid_t pid;
11954 int status;
11955 /* avoid "core dumped" message */
11956 pid = fork();
11957 if (pid < 0)
11958 exit(2);
11959 if (pid > 0) {
11960 /* parent */
11961 pid = waitpid(pid, &status, 0);
11962 if (pid < 0)
11963 exit(3);
11964 exit(!WIFEXITED(status));
11965 }
11966 /* child */
11967 i = *(unsigned int *)&a[1];
11968 printf("%d\n", i);
11969 exit(0);
11970 }
11971 EOF
11972 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11973 conftest.c $LIBS >/dev/null 2>&1
11974 if test ! -x conftest ; then
11975 ac_cv_lbl_unaligned_fail=yes
11976 else
11977 ./conftest >conftest.out
11978 if test ! -s conftest.out ; then
11979 ac_cv_lbl_unaligned_fail=yes
11980 else
11981 ac_cv_lbl_unaligned_fail=no
11982 fi
11983 fi
11984 rm -f -r conftest* core core.conftest
11985 ;;
11986 esac
11987 fi
11988
11989 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11990 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
11991 if test $ac_cv_lbl_unaligned_fail = yes ; then
11992
11993 cat >>confdefs.h <<\_ACEOF
11994 #define LBL_ALIGN 1
11995 _ACEOF
11996
11997 fi
11998
11999
12000 { echo "$as_me:$LINENO: checking for h_errno" >&5
12001 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
12002 if test "${ac_cv_var_h_errno+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 else
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011
12012 # include <sys/types.h>
12013 # include <netdb.h>
12014 int
12015 main ()
12016 {
12017 int foo = h_errno;
12018 ;
12019 return 0;
12020 }
12021 _ACEOF
12022 rm -f conftest.$ac_objext
12023 if { (ac_try="$ac_compile"
12024 case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12027 esac
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_compile") 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } && {
12036 test -z "$ac_c_werror_flag" ||
12037 test ! -s conftest.err
12038 } && test -s conftest.$ac_objext; then
12039 ac_cv_var_h_errno=yes
12040 else
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12043
12044 ac_cv_var_h_errno=no
12045 fi
12046
12047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048 fi
12049
12050 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
12051 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
12052 if test "$ac_cv_var_h_errno" = "yes"; then
12053 cat >>confdefs.h <<\_ACEOF
12054 #define HAVE_H_ERRNO 1
12055 _ACEOF
12056
12057 fi
12058
12059
12060 # Check for OpenSSL libcrypto
12061 { echo "$as_me:$LINENO: checking whether to use OpenSSL libcrypto" >&5
12062 echo $ECHO_N "checking whether to use OpenSSL libcrypto... $ECHO_C" >&6; }
12063 # Specify location for both includes and libraries.
12064 want_libcrypto=ifavailable
12065
12066 # Check whether --with-crypto was given.
12067 if test "${with_crypto+set}" = set; then
12068 withval=$with_crypto;
12069 if test $withval = no
12070 then
12071 want_libcrypto=no
12072 { echo "$as_me:$LINENO: result: no" >&5
12073 echo "${ECHO_T}no" >&6; }
12074 elif test $withval = yes
12075 then
12076 want_libcrypto=yes
12077 { echo "$as_me:$LINENO: result: yes" >&5
12078 echo "${ECHO_T}yes" >&6; }
12079 fi
12080
12081 else
12082
12083 #
12084 # Use libcrypto if it's present, otherwise don't.
12085 #
12086 want_libcrypto=ifavailable
12087 { echo "$as_me:$LINENO: result: yes, if available" >&5
12088 echo "${ECHO_T}yes, if available" >&6; }
12089
12090 fi
12091
12092 if test "$want_libcrypto" != "no"; then
12093
12094 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
12095 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
12096 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099 ac_check_lib_save_LIBS=$LIBS
12100 LIBS="-lcrypto $LIBS"
12101 cat >conftest.$ac_ext <<_ACEOF
12102 /* confdefs.h. */
12103 _ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12107
12108 /* Override any GCC internal prototype to avoid an error.
12109 Use char because int might match the return type of a GCC
12110 builtin and then its argument prototype would still apply. */
12111 #ifdef __cplusplus
12112 extern "C"
12113 #endif
12114 char DES_cbc_encrypt ();
12115 int
12116 main ()
12117 {
12118 return DES_cbc_encrypt ();
12119 ;
12120 return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (ac_try="$ac_link"
12125 case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12128 esac
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_link") 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && {
12137 test -z "$ac_c_werror_flag" ||
12138 test ! -s conftest.err
12139 } && test -s conftest$ac_exeext &&
12140 $as_test_x conftest$ac_exeext; then
12141 ac_cv_lib_crypto_DES_cbc_encrypt=yes
12142 else
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 ac_cv_lib_crypto_DES_cbc_encrypt=no
12147 fi
12148
12149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12150 conftest$ac_exeext conftest.$ac_ext
12151 LIBS=$ac_check_lib_save_LIBS
12152 fi
12153 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
12154 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
12155 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
12156 cat >>confdefs.h <<_ACEOF
12157 #define HAVE_LIBCRYPTO 1
12158 _ACEOF
12159
12160 LIBS="-lcrypto $LIBS"
12161
12162 fi
12163
12164
12165 for ac_header in openssl/evp.h
12166 do
12167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 fi
12174 ac_res=`eval echo '${'$as_ac_Header'}'`
12175 { echo "$as_me:$LINENO: result: $ac_res" >&5
12176 echo "${ECHO_T}$ac_res" >&6; }
12177 else
12178 # Is the header compilable?
12179 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h. */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 $ac_includes_default
12188 #include <$ac_header>
12189 _ACEOF
12190 rm -f conftest.$ac_objext
12191 if { (ac_try="$ac_compile"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12195 esac
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_compile") 2>conftest.er1
12198 ac_status=$?
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } && {
12204 test -z "$ac_c_werror_flag" ||
12205 test ! -s conftest.err
12206 } && test -s conftest.$ac_objext; then
12207 ac_header_compiler=yes
12208 else
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12211
12212 ac_header_compiler=no
12213 fi
12214
12215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12217 echo "${ECHO_T}$ac_header_compiler" >&6; }
12218
12219 # Is the header present?
12220 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h. */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 #include <$ac_header>
12229 _ACEOF
12230 if { (ac_try="$ac_cpp conftest.$ac_ext"
12231 case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234 esac
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12237 ac_status=$?
12238 grep -v '^ *+' conftest.er1 >conftest.err
12239 rm -f conftest.er1
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } >/dev/null && {
12243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12244 test ! -s conftest.err
12245 }; then
12246 ac_header_preproc=yes
12247 else
12248 echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12250
12251 ac_header_preproc=no
12252 fi
12253
12254 rm -f conftest.err conftest.$ac_ext
12255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12256 echo "${ECHO_T}$ac_header_preproc" >&6; }
12257
12258 # So? What about this header?
12259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12260 yes:no: )
12261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12265 ac_header_preproc=yes
12266 ;;
12267 no:yes:* )
12268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12275 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12280
12281 ;;
12282 esac
12283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288 eval "$as_ac_Header=\$ac_header_preproc"
12289 fi
12290 ac_res=`eval echo '${'$as_ac_Header'}'`
12291 { echo "$as_me:$LINENO: result: $ac_res" >&5
12292 echo "${ECHO_T}$ac_res" >&6; }
12293
12294 fi
12295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12296 cat >>confdefs.h <<_ACEOF
12297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12298 _ACEOF
12299
12300 fi
12301
12302 done
12303
12304 fi
12305
12306 if test "$missing_includes" = "yes"; then
12307 CPPFLAGS="$CPPFLAGS -I$srcdir/missing"
12308 V_INCLS="$V_INCLS -I$srcdir/missing"
12309 fi
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320 # Find a good install program. We prefer a C program (faster),
12321 # so one script is as good as another. But avoid the broken or
12322 # incompatible versions:
12323 # SysV /etc/install, /usr/sbin/install
12324 # SunOS /usr/etc/install
12325 # IRIX /sbin/install
12326 # AIX /bin/install
12327 # AmigaOS /C/install, which installs bootblocks on floppy discs
12328 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12329 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12330 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12331 # OS/2's system install, which has a completely different semantic
12332 # ./install, which can be erroneously created by make from ./install.sh.
12333 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12334 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
12335 if test -z "$INSTALL"; then
12336 if test "${ac_cv_path_install+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12341 do
12342 IFS=$as_save_IFS
12343 test -z "$as_dir" && as_dir=.
12344 # Account for people who put trailing slashes in PATH elements.
12345 case $as_dir/ in
12346 ./ | .// | /cC/* | \
12347 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12348 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12349 /usr/ucb/* ) ;;
12350 *)
12351 # OSF1 and SCO ODT 3.0 have their own names for install.
12352 # Don't use installbsd from OSF since it installs stuff as root
12353 # by default.
12354 for ac_prog in ginstall scoinst install; do
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12357 if test $ac_prog = install &&
12358 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12359 # AIX install. It has an incompatible calling convention.
12360 :
12361 elif test $ac_prog = install &&
12362 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12363 # program-specific install script used by HP pwplus--don't use.
12364 :
12365 else
12366 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12367 break 3
12368 fi
12369 fi
12370 done
12371 done
12372 ;;
12373 esac
12374 done
12375 IFS=$as_save_IFS
12376
12377
12378 fi
12379 if test "${ac_cv_path_install+set}" = set; then
12380 INSTALL=$ac_cv_path_install
12381 else
12382 # As a last resort, use the slow shell script. Don't cache a
12383 # value for INSTALL within a source directory, because that will
12384 # break other packages using the cache if that directory is
12385 # removed, or if the value is a relative name.
12386 INSTALL=$ac_install_sh
12387 fi
12388 fi
12389 { echo "$as_me:$LINENO: result: $INSTALL" >&5
12390 echo "${ECHO_T}$INSTALL" >&6; }
12391
12392 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12393 # It thinks the first close brace ends the variable substitution.
12394 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12395
12396 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12397
12398 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12399
12400
12401 ac_config_headers="$ac_config_headers config.h"
12402
12403
12404 ac_config_commands="$ac_config_commands default-1"
12405
12406 ac_config_files="$ac_config_files Makefile tcpdump.1"
12407
12408 cat >confcache <<\_ACEOF
12409 # This file is a shell script that caches the results of configure
12410 # tests run on this system so they can be shared between configure
12411 # scripts and configure runs, see configure's option --config-cache.
12412 # It is not useful on other systems. If it contains results you don't
12413 # want to keep, you may remove or edit it.
12414 #
12415 # config.status only pays attention to the cache file if you give it
12416 # the --recheck option to rerun configure.
12417 #
12418 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12419 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12420 # following values.
12421
12422 _ACEOF
12423
12424 # The following way of writing the cache mishandles newlines in values,
12425 # but we know of no workaround that is simple, portable, and efficient.
12426 # So, we kill variables containing newlines.
12427 # Ultrix sh set writes to stderr and can't be redirected directly,
12428 # and sets the high bit in the cache file unless we assign to the vars.
12429 (
12430 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12431 eval ac_val=\$$ac_var
12432 case $ac_val in #(
12433 *${as_nl}*)
12434 case $ac_var in #(
12435 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12436 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12437 esac
12438 case $ac_var in #(
12439 _ | IFS | as_nl) ;; #(
12440 *) $as_unset $ac_var ;;
12441 esac ;;
12442 esac
12443 done
12444
12445 (set) 2>&1 |
12446 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12447 *${as_nl}ac_space=\ *)
12448 # `set' does not quote correctly, so add quotes (double-quote
12449 # substitution turns \\\\ into \\, and sed turns \\ into \).
12450 sed -n \
12451 "s/'/'\\\\''/g;
12452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12453 ;; #(
12454 *)
12455 # `set' quotes correctly as required by POSIX, so do not add quotes.
12456 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12457 ;;
12458 esac |
12459 sort
12460 ) |
12461 sed '
12462 /^ac_cv_env_/b end
12463 t clear
12464 :clear
12465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12466 t end
12467 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12468 :end' >>confcache
12469 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12470 if test -w "$cache_file"; then
12471 test "x$cache_file" != "x/dev/null" &&
12472 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12473 echo "$as_me: updating cache $cache_file" >&6;}
12474 cat confcache >$cache_file
12475 else
12476 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12477 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12478 fi
12479 fi
12480 rm -f confcache
12481
12482 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12483 # Let make expand exec_prefix.
12484 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12485
12486 DEFS=-DHAVE_CONFIG_H
12487
12488 ac_libobjs=
12489 ac_ltlibobjs=
12490 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12491 # 1. Remove the extension, and $U if already installed.
12492 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12493 ac_i=`echo "$ac_i" | sed "$ac_script"`
12494 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12495 # will be set to the directory where LIBOBJS objects are built.
12496 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12497 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12498 done
12499 LIBOBJS=$ac_libobjs
12500
12501 LTLIBOBJS=$ac_ltlibobjs
12502
12503
12504
12505 : ${CONFIG_STATUS=./config.status}
12506 ac_clean_files_save=$ac_clean_files
12507 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12508 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12509 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12510 cat >$CONFIG_STATUS <<_ACEOF
12511 #! $SHELL
12512 # Generated by $as_me.
12513 # Run this file to recreate the current configuration.
12514 # Compiler output produced by configure, useful for debugging
12515 # configure, is in config.log if it exists.
12516
12517 debug=false
12518 ac_cs_recheck=false
12519 ac_cs_silent=false
12520 SHELL=\${CONFIG_SHELL-$SHELL}
12521 _ACEOF
12522
12523 cat >>$CONFIG_STATUS <<\_ACEOF
12524 ## --------------------- ##
12525 ## M4sh Initialization. ##
12526 ## --------------------- ##
12527
12528 # Be more Bourne compatible
12529 DUALCASE=1; export DUALCASE # for MKS sh
12530 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12531 emulate sh
12532 NULLCMD=:
12533 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12534 # is contrary to our usage. Disable this feature.
12535 alias -g '${1+"$@"}'='"$@"'
12536 setopt NO_GLOB_SUBST
12537 else
12538 case `(set -o) 2>/dev/null` in
12539 *posix*) set -o posix ;;
12540 esac
12541
12542 fi
12543
12544
12545
12546
12547 # PATH needs CR
12548 # Avoid depending upon Character Ranges.
12549 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12550 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12551 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12552 as_cr_digits='0123456789'
12553 as_cr_alnum=$as_cr_Letters$as_cr_digits
12554
12555 # The user is always right.
12556 if test "${PATH_SEPARATOR+set}" != set; then
12557 echo "#! /bin/sh" >conf$$.sh
12558 echo "exit 0" >>conf$$.sh
12559 chmod +x conf$$.sh
12560 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12561 PATH_SEPARATOR=';'
12562 else
12563 PATH_SEPARATOR=:
12564 fi
12565 rm -f conf$$.sh
12566 fi
12567
12568 # Support unset when possible.
12569 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12570 as_unset=unset
12571 else
12572 as_unset=false
12573 fi
12574
12575
12576 # IFS
12577 # We need space, tab and new line, in precisely that order. Quoting is
12578 # there to prevent editors from complaining about space-tab.
12579 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12580 # splitting by setting IFS to empty value.)
12581 as_nl='
12582 '
12583 IFS=" "" $as_nl"
12584
12585 # Find who we are. Look in the path if we contain no directory separator.
12586 case $0 in
12587 *[\\/]* ) as_myself=$0 ;;
12588 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $PATH
12590 do
12591 IFS=$as_save_IFS
12592 test -z "$as_dir" && as_dir=.
12593 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12594 done
12595 IFS=$as_save_IFS
12596
12597 ;;
12598 esac
12599 # We did not find ourselves, most probably we were run as `sh COMMAND'
12600 # in which case we are not to be found in the path.
12601 if test "x$as_myself" = x; then
12602 as_myself=$0
12603 fi
12604 if test ! -f "$as_myself"; then
12605 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12606 { (exit 1); exit 1; }
12607 fi
12608
12609 # Work around bugs in pre-3.0 UWIN ksh.
12610 for as_var in ENV MAIL MAILPATH
12611 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12612 done
12613 PS1='$ '
12614 PS2='> '
12615 PS4='+ '
12616
12617 # NLS nuisances.
12618 for as_var in \
12619 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12620 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12621 LC_TELEPHONE LC_TIME
12622 do
12623 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12624 eval $as_var=C; export $as_var
12625 else
12626 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12627 fi
12628 done
12629
12630 # Required to use basename.
12631 if expr a : '\(a\)' >/dev/null 2>&1 &&
12632 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12633 as_expr=expr
12634 else
12635 as_expr=false
12636 fi
12637
12638 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12639 as_basename=basename
12640 else
12641 as_basename=false
12642 fi
12643
12644
12645 # Name of the executable.
12646 as_me=`$as_basename -- "$0" ||
12647 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12648 X"$0" : 'X\(//\)$' \| \
12649 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12650 echo X/"$0" |
12651 sed '/^.*\/\([^/][^/]*\)\/*$/{
12652 s//\1/
12653 q
12654 }
12655 /^X\/\(\/\/\)$/{
12656 s//\1/
12657 q
12658 }
12659 /^X\/\(\/\).*/{
12660 s//\1/
12661 q
12662 }
12663 s/.*/./; q'`
12664
12665 # CDPATH.
12666 $as_unset CDPATH
12667
12668
12669
12670 as_lineno_1=$LINENO
12671 as_lineno_2=$LINENO
12672 test "x$as_lineno_1" != "x$as_lineno_2" &&
12673 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12674
12675 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12676 # uniformly replaced by the line number. The first 'sed' inserts a
12677 # line-number line after each line using $LINENO; the second 'sed'
12678 # does the real work. The second script uses 'N' to pair each
12679 # line-number line with the line containing $LINENO, and appends
12680 # trailing '-' during substitution so that $LINENO is not a special
12681 # case at line end.
12682 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12683 # scripts with optimization help from Paolo Bonzini. Blame Lee
12684 # E. McMahon (1931-1989) for sed's syntax. :-)
12685 sed -n '
12686 p
12687 /[$]LINENO/=
12688 ' <$as_myself |
12689 sed '
12690 s/[$]LINENO.*/&-/
12691 t lineno
12692 b
12693 :lineno
12694 N
12695 :loop
12696 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12697 t loop
12698 s/-\n.*//
12699 ' >$as_me.lineno &&
12700 chmod +x "$as_me.lineno" ||
12701 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12702 { (exit 1); exit 1; }; }
12703
12704 # Don't try to exec as it changes $[0], causing all sort of problems
12705 # (the dirname of $[0] is not the place where we might find the
12706 # original and so on. Autoconf is especially sensitive to this).
12707 . "./$as_me.lineno"
12708 # Exit status is that of the last command.
12709 exit
12710 }
12711
12712
12713 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12714 as_dirname=dirname
12715 else
12716 as_dirname=false
12717 fi
12718
12719 ECHO_C= ECHO_N= ECHO_T=
12720 case `echo -n x` in
12721 -n*)
12722 case `echo 'x\c'` in
12723 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12724 *) ECHO_C='\c';;
12725 esac;;
12726 *)
12727 ECHO_N='-n';;
12728 esac
12729
12730 if expr a : '\(a\)' >/dev/null 2>&1 &&
12731 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12732 as_expr=expr
12733 else
12734 as_expr=false
12735 fi
12736
12737 rm -f conf$$ conf$$.exe conf$$.file
12738 if test -d conf$$.dir; then
12739 rm -f conf$$.dir/conf$$.file
12740 else
12741 rm -f conf$$.dir
12742 mkdir conf$$.dir
12743 fi
12744 echo >conf$$.file
12745 if ln -s conf$$.file conf$$ 2>/dev/null; then
12746 as_ln_s='ln -s'
12747 # ... but there are two gotchas:
12748 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12749 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12750 # In both cases, we have to default to `cp -p'.
12751 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12752 as_ln_s='cp -p'
12753 elif ln conf$$.file conf$$ 2>/dev/null; then
12754 as_ln_s=ln
12755 else
12756 as_ln_s='cp -p'
12757 fi
12758 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12759 rmdir conf$$.dir 2>/dev/null
12760
12761 if mkdir -p . 2>/dev/null; then
12762 as_mkdir_p=:
12763 else
12764 test -d ./-p && rmdir ./-p
12765 as_mkdir_p=false
12766 fi
12767
12768 if test -x / >/dev/null 2>&1; then
12769 as_test_x='test -x'
12770 else
12771 if ls -dL / >/dev/null 2>&1; then
12772 as_ls_L_option=L
12773 else
12774 as_ls_L_option=
12775 fi
12776 as_test_x='
12777 eval sh -c '\''
12778 if test -d "$1"; then
12779 test -d "$1/.";
12780 else
12781 case $1 in
12782 -*)set "./$1";;
12783 esac;
12784 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12785 ???[sx]*):;;*)false;;esac;fi
12786 '\'' sh
12787 '
12788 fi
12789 as_executable_p=$as_test_x
12790
12791 # Sed expression to map a string onto a valid CPP name.
12792 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12793
12794 # Sed expression to map a string onto a valid variable name.
12795 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12796
12797
12798 exec 6>&1
12799
12800 # Save the log message, to keep $[0] and so on meaningful, and to
12801 # report actual input values of CONFIG_FILES etc. instead of their
12802 # values after options handling.
12803 ac_log="
12804 This file was extended by $as_me, which was
12805 generated by GNU Autoconf 2.61. Invocation command line was
12806
12807 CONFIG_FILES = $CONFIG_FILES
12808 CONFIG_HEADERS = $CONFIG_HEADERS
12809 CONFIG_LINKS = $CONFIG_LINKS
12810 CONFIG_COMMANDS = $CONFIG_COMMANDS
12811 $ $0 $@
12812
12813 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12814 "
12815
12816 _ACEOF
12817
12818 cat >>$CONFIG_STATUS <<_ACEOF
12819 # Files that config.status was made for.
12820 config_files="$ac_config_files"
12821 config_headers="$ac_config_headers"
12822 config_commands="$ac_config_commands"
12823
12824 _ACEOF
12825
12826 cat >>$CONFIG_STATUS <<\_ACEOF
12827 ac_cs_usage="\
12828 \`$as_me' instantiates files from templates according to the
12829 current configuration.
12830
12831 Usage: $0 [OPTIONS] [FILE]...
12832
12833 -h, --help print this help, then exit
12834 -V, --version print version number and configuration settings, then exit
12835 -q, --quiet do not print progress messages
12836 -d, --debug don't remove temporary files
12837 --recheck update $as_me by reconfiguring in the same conditions
12838 --file=FILE[:TEMPLATE]
12839 instantiate the configuration file FILE
12840 --header=FILE[:TEMPLATE]
12841 instantiate the configuration header FILE
12842
12843 Configuration files:
12844 $config_files
12845
12846 Configuration headers:
12847 $config_headers
12848
12849 Configuration commands:
12850 $config_commands
12851
12852 Report bugs to <bug-autoconf@gnu.org>."
12853
12854 _ACEOF
12855 cat >>$CONFIG_STATUS <<_ACEOF
12856 ac_cs_version="\\
12857 config.status
12858 configured by $0, generated by GNU Autoconf 2.61,
12859 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12860
12861 Copyright (C) 2006 Free Software Foundation, Inc.
12862 This config.status script is free software; the Free Software Foundation
12863 gives unlimited permission to copy, distribute and modify it."
12864
12865 ac_pwd='$ac_pwd'
12866 srcdir='$srcdir'
12867 INSTALL='$INSTALL'
12868 _ACEOF
12869
12870 cat >>$CONFIG_STATUS <<\_ACEOF
12871 # If no file are specified by the user, then we need to provide default
12872 # value. By we need to know if files were specified by the user.
12873 ac_need_defaults=:
12874 while test $# != 0
12875 do
12876 case $1 in
12877 --*=*)
12878 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12879 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12880 ac_shift=:
12881 ;;
12882 *)
12883 ac_option=$1
12884 ac_optarg=$2
12885 ac_shift=shift
12886 ;;
12887 esac
12888
12889 case $ac_option in
12890 # Handling of the options.
12891 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12892 ac_cs_recheck=: ;;
12893 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12894 echo "$ac_cs_version"; exit ;;
12895 --debug | --debu | --deb | --de | --d | -d )
12896 debug=: ;;
12897 --file | --fil | --fi | --f )
12898 $ac_shift
12899 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12900 ac_need_defaults=false;;
12901 --header | --heade | --head | --hea )
12902 $ac_shift
12903 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12904 ac_need_defaults=false;;
12905 --he | --h)
12906 # Conflict between --help and --header
12907 { echo "$as_me: error: ambiguous option: $1
12908 Try \`$0 --help' for more information." >&2
12909 { (exit 1); exit 1; }; };;
12910 --help | --hel | -h )
12911 echo "$ac_cs_usage"; exit ;;
12912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12913 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12914 ac_cs_silent=: ;;
12915
12916 # This is an error.
12917 -*) { echo "$as_me: error: unrecognized option: $1
12918 Try \`$0 --help' for more information." >&2
12919 { (exit 1); exit 1; }; } ;;
12920
12921 *) ac_config_targets="$ac_config_targets $1"
12922 ac_need_defaults=false ;;
12923
12924 esac
12925 shift
12926 done
12927
12928 ac_configure_extra_args=
12929
12930 if $ac_cs_silent; then
12931 exec 6>/dev/null
12932 ac_configure_extra_args="$ac_configure_extra_args --silent"
12933 fi
12934
12935 _ACEOF
12936 cat >>$CONFIG_STATUS <<_ACEOF
12937 if \$ac_cs_recheck; then
12938 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12939 CONFIG_SHELL=$SHELL
12940 export CONFIG_SHELL
12941 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12942 fi
12943
12944 _ACEOF
12945 cat >>$CONFIG_STATUS <<\_ACEOF
12946 exec 5>>config.log
12947 {
12948 echo
12949 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12950 ## Running $as_me. ##
12951 _ASBOX
12952 echo "$ac_log"
12953 } >&5
12954
12955 _ACEOF
12956 cat >>$CONFIG_STATUS <<_ACEOF
12957 #
12958 # INIT-COMMANDS
12959 #
12960
12961
12962 _ACEOF
12963
12964 cat >>$CONFIG_STATUS <<\_ACEOF
12965
12966 # Handling of arguments.
12967 for ac_config_target in $ac_config_targets
12968 do
12969 case $ac_config_target in
12970 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12971 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12972 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12973 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
12974
12975 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12976 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12977 { (exit 1); exit 1; }; };;
12978 esac
12979 done
12980
12981
12982 # If the user did not use the arguments to specify the items to instantiate,
12983 # then the envvar interface is used. Set only those that are not.
12984 # We use the long form for the default assignment because of an extremely
12985 # bizarre bug on SunOS 4.1.3.
12986 if $ac_need_defaults; then
12987 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12988 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12989 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12990 fi
12991
12992 # Have a temporary directory for convenience. Make it in the build tree
12993 # simply because there is no reason against having it here, and in addition,
12994 # creating and moving files from /tmp can sometimes cause problems.
12995 # Hook for its removal unless debugging.
12996 # Note that there is a small window in which the directory will not be cleaned:
12997 # after its creation but before its name has been assigned to `$tmp'.
12998 $debug ||
12999 {
13000 tmp=
13001 trap 'exit_status=$?
13002 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13003 ' 0
13004 trap '{ (exit 1); exit 1; }' 1 2 13 15
13005 }
13006 # Create a (secure) tmp directory for tmp files.
13007
13008 {
13009 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13010 test -n "$tmp" && test -d "$tmp"
13011 } ||
13012 {
13013 tmp=./conf$$-$RANDOM
13014 (umask 077 && mkdir "$tmp")
13015 } ||
13016 {
13017 echo "$me: cannot create a temporary directory in ." >&2
13018 { (exit 1); exit 1; }
13019 }
13020
13021 #
13022 # Set up the sed scripts for CONFIG_FILES section.
13023 #
13024
13025 # No need to generate the scripts if there are no CONFIG_FILES.
13026 # This happens for instance when ./config.status config.h
13027 if test -n "$CONFIG_FILES"; then
13028
13029 _ACEOF
13030
13031
13032
13033 ac_delim='%!_!# '
13034 for ac_last_try in false false false false false :; do
13035 cat >conf$$subs.sed <<_ACEOF
13036 SHELL!$SHELL$ac_delim
13037 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13038 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13039 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13040 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13041 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13042 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13043 exec_prefix!$exec_prefix$ac_delim
13044 prefix!$prefix$ac_delim
13045 program_transform_name!$program_transform_name$ac_delim
13046 bindir!$bindir$ac_delim
13047 sbindir!$sbindir$ac_delim
13048 libexecdir!$libexecdir$ac_delim
13049 datarootdir!$datarootdir$ac_delim
13050 datadir!$datadir$ac_delim
13051 sysconfdir!$sysconfdir$ac_delim
13052 sharedstatedir!$sharedstatedir$ac_delim
13053 localstatedir!$localstatedir$ac_delim
13054 includedir!$includedir$ac_delim
13055 oldincludedir!$oldincludedir$ac_delim
13056 docdir!$docdir$ac_delim
13057 infodir!$infodir$ac_delim
13058 htmldir!$htmldir$ac_delim
13059 dvidir!$dvidir$ac_delim
13060 pdfdir!$pdfdir$ac_delim
13061 psdir!$psdir$ac_delim
13062 libdir!$libdir$ac_delim
13063 localedir!$localedir$ac_delim
13064 mandir!$mandir$ac_delim
13065 DEFS!$DEFS$ac_delim
13066 ECHO_C!$ECHO_C$ac_delim
13067 ECHO_N!$ECHO_N$ac_delim
13068 ECHO_T!$ECHO_T$ac_delim
13069 LIBS!$LIBS$ac_delim
13070 build_alias!$build_alias$ac_delim
13071 host_alias!$host_alias$ac_delim
13072 target_alias!$target_alias$ac_delim
13073 build!$build$ac_delim
13074 build_cpu!$build_cpu$ac_delim
13075 build_vendor!$build_vendor$ac_delim
13076 build_os!$build_os$ac_delim
13077 host!$host$ac_delim
13078 host_cpu!$host_cpu$ac_delim
13079 host_vendor!$host_vendor$ac_delim
13080 host_os!$host_os$ac_delim
13081 SHLICC2!$SHLICC2$ac_delim
13082 CC!$CC$ac_delim
13083 CFLAGS!$CFLAGS$ac_delim
13084 LDFLAGS!$LDFLAGS$ac_delim
13085 CPPFLAGS!$CPPFLAGS$ac_delim
13086 ac_ct_CC!$ac_ct_CC$ac_delim
13087 EXEEXT!$EXEEXT$ac_delim
13088 OBJEXT!$OBJEXT$ac_delim
13089 CPP!$CPP$ac_delim
13090 GREP!$GREP$ac_delim
13091 EGREP!$EGREP$ac_delim
13092 LIBOBJS!$LIBOBJS$ac_delim
13093 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
13094 RANLIB!$RANLIB$ac_delim
13095 DEPENDENCY_CFLAG!$DEPENDENCY_CFLAG$ac_delim
13096 MKDEP!$MKDEP$ac_delim
13097 V_CCOPT!$V_CCOPT$ac_delim
13098 V_DEFS!$V_DEFS$ac_delim
13099 V_GROUP!$V_GROUP$ac_delim
13100 V_INCLS!$V_INCLS$ac_delim
13101 V_PCAPDEP!$V_PCAPDEP$ac_delim
13102 LOCALSRC!$LOCALSRC$ac_delim
13103 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
13104 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
13105 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13106 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13107 INSTALL_DATA!$INSTALL_DATA$ac_delim
13108 LTLIBOBJS!$LTLIBOBJS$ac_delim
13109 _ACEOF
13110
13111 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
13112 break
13113 elif $ac_last_try; then
13114 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13115 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13116 { (exit 1); exit 1; }; }
13117 else
13118 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13119 fi
13120 done
13121
13122 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13123 if test -n "$ac_eof"; then
13124 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13125 ac_eof=`expr $ac_eof + 1`
13126 fi
13127
13128 cat >>$CONFIG_STATUS <<_ACEOF
13129 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13131 _ACEOF
13132 sed '
13133 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13134 s/^/s,@/; s/!/@,|#_!!_#|/
13135 :n
13136 t n
13137 s/'"$ac_delim"'$/,g/; t
13138 s/$/\\/; p
13139 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13140 ' >>$CONFIG_STATUS <conf$$subs.sed
13141 rm -f conf$$subs.sed
13142 cat >>$CONFIG_STATUS <<_ACEOF
13143 :end
13144 s/|#_!!_#|//g
13145 CEOF$ac_eof
13146 _ACEOF
13147
13148
13149 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13150 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13151 # trailing colons and then remove the whole line if VPATH becomes empty
13152 # (actually we leave an empty line to preserve line numbers).
13153 if test "x$srcdir" = x.; then
13154 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13155 s/:*\$(srcdir):*/:/
13156 s/:*\${srcdir}:*/:/
13157 s/:*@srcdir@:*/:/
13158 s/^\([^=]*=[ ]*\):*/\1/
13159 s/:*$//
13160 s/^[^=]*=[ ]*$//
13161 }'
13162 fi
13163
13164 cat >>$CONFIG_STATUS <<\_ACEOF
13165 fi # test -n "$CONFIG_FILES"
13166
13167
13168 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13169 do
13170 case $ac_tag in
13171 :[FHLC]) ac_mode=$ac_tag; continue;;
13172 esac
13173 case $ac_mode$ac_tag in
13174 :[FHL]*:*);;
13175 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13176 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13177 { (exit 1); exit 1; }; };;
13178 :[FH]-) ac_tag=-:-;;
13179 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13180 esac
13181 ac_save_IFS=$IFS
13182 IFS=:
13183 set x $ac_tag
13184 IFS=$ac_save_IFS
13185 shift
13186 ac_file=$1
13187 shift
13188
13189 case $ac_mode in
13190 :L) ac_source=$1;;
13191 :[FH])
13192 ac_file_inputs=
13193 for ac_f
13194 do
13195 case $ac_f in
13196 -) ac_f="$tmp/stdin";;
13197 *) # Look for the file first in the build tree, then in the source tree
13198 # (if the path is not absolute). The absolute path cannot be DOS-style,
13199 # because $ac_f cannot contain `:'.
13200 test -f "$ac_f" ||
13201 case $ac_f in
13202 [\\/$]*) false;;
13203 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13204 esac ||
13205 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13206 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13207 { (exit 1); exit 1; }; };;
13208 esac
13209 ac_file_inputs="$ac_file_inputs $ac_f"
13210 done
13211
13212 # Let's still pretend it is `configure' which instantiates (i.e., don't
13213 # use $as_me), people would be surprised to read:
13214 # /* config.h. Generated by config.status. */
13215 configure_input="Generated from "`IFS=:
13216 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13217 if test x"$ac_file" != x-; then
13218 configure_input="$ac_file. $configure_input"
13219 { echo "$as_me:$LINENO: creating $ac_file" >&5
13220 echo "$as_me: creating $ac_file" >&6;}
13221 fi
13222
13223 case $ac_tag in
13224 *:-:* | *:-) cat >"$tmp/stdin";;
13225 esac
13226 ;;
13227 esac
13228
13229 ac_dir=`$as_dirname -- "$ac_file" ||
13230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13231 X"$ac_file" : 'X\(//\)[^/]' \| \
13232 X"$ac_file" : 'X\(//\)$' \| \
13233 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13234 echo X"$ac_file" |
13235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13236 s//\1/
13237 q
13238 }
13239 /^X\(\/\/\)[^/].*/{
13240 s//\1/
13241 q
13242 }
13243 /^X\(\/\/\)$/{
13244 s//\1/
13245 q
13246 }
13247 /^X\(\/\).*/{
13248 s//\1/
13249 q
13250 }
13251 s/.*/./; q'`
13252 { as_dir="$ac_dir"
13253 case $as_dir in #(
13254 -*) as_dir=./$as_dir;;
13255 esac
13256 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13257 as_dirs=
13258 while :; do
13259 case $as_dir in #(
13260 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13261 *) as_qdir=$as_dir;;
13262 esac
13263 as_dirs="'$as_qdir' $as_dirs"
13264 as_dir=`$as_dirname -- "$as_dir" ||
13265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13266 X"$as_dir" : 'X\(//\)[^/]' \| \
13267 X"$as_dir" : 'X\(//\)$' \| \
13268 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13269 echo X"$as_dir" |
13270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13271 s//\1/
13272 q
13273 }
13274 /^X\(\/\/\)[^/].*/{
13275 s//\1/
13276 q
13277 }
13278 /^X\(\/\/\)$/{
13279 s//\1/
13280 q
13281 }
13282 /^X\(\/\).*/{
13283 s//\1/
13284 q
13285 }
13286 s/.*/./; q'`
13287 test -d "$as_dir" && break
13288 done
13289 test -z "$as_dirs" || eval "mkdir $as_dirs"
13290 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13291 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13292 { (exit 1); exit 1; }; }; }
13293 ac_builddir=.
13294
13295 case "$ac_dir" in
13296 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13297 *)
13298 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13299 # A ".." for each directory in $ac_dir_suffix.
13300 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13301 case $ac_top_builddir_sub in
13302 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13303 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13304 esac ;;
13305 esac
13306 ac_abs_top_builddir=$ac_pwd
13307 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13308 # for backward compatibility:
13309 ac_top_builddir=$ac_top_build_prefix
13310
13311 case $srcdir in
13312 .) # We are building in place.
13313 ac_srcdir=.
13314 ac_top_srcdir=$ac_top_builddir_sub
13315 ac_abs_top_srcdir=$ac_pwd ;;
13316 [\\/]* | ?:[\\/]* ) # Absolute name.
13317 ac_srcdir=$srcdir$ac_dir_suffix;
13318 ac_top_srcdir=$srcdir
13319 ac_abs_top_srcdir=$srcdir ;;
13320 *) # Relative name.
13321 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13322 ac_top_srcdir=$ac_top_build_prefix$srcdir
13323 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13324 esac
13325 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13326
13327
13328 case $ac_mode in
13329 :F)
13330 #
13331 # CONFIG_FILE
13332 #
13333
13334 case $INSTALL in
13335 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13336 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13337 esac
13338 _ACEOF
13339
13340 cat >>$CONFIG_STATUS <<\_ACEOF
13341 # If the template does not know about datarootdir, expand it.
13342 # FIXME: This hack should be removed a few years after 2.60.
13343 ac_datarootdir_hack=; ac_datarootdir_seen=
13344
13345 case `sed -n '/datarootdir/ {
13346 p
13347 q
13348 }
13349 /@datadir@/p
13350 /@docdir@/p
13351 /@infodir@/p
13352 /@localedir@/p
13353 /@mandir@/p
13354 ' $ac_file_inputs` in
13355 *datarootdir*) ac_datarootdir_seen=yes;;
13356 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13357 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13358 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13359 _ACEOF
13360 cat >>$CONFIG_STATUS <<_ACEOF
13361 ac_datarootdir_hack='
13362 s&@datadir@&$datadir&g
13363 s&@docdir@&$docdir&g
13364 s&@infodir@&$infodir&g
13365 s&@localedir@&$localedir&g
13366 s&@mandir@&$mandir&g
13367 s&\\\${datarootdir}&$datarootdir&g' ;;
13368 esac
13369 _ACEOF
13370
13371 # Neutralize VPATH when `$srcdir' = `.'.
13372 # Shell code in configure.ac might set extrasub.
13373 # FIXME: do we really want to maintain this feature?
13374 cat >>$CONFIG_STATUS <<_ACEOF
13375 sed "$ac_vpsub
13376 $extrasub
13377 _ACEOF
13378 cat >>$CONFIG_STATUS <<\_ACEOF
13379 :t
13380 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13381 s&@configure_input@&$configure_input&;t t
13382 s&@top_builddir@&$ac_top_builddir_sub&;t t
13383 s&@srcdir@&$ac_srcdir&;t t
13384 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13385 s&@top_srcdir@&$ac_top_srcdir&;t t
13386 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13387 s&@builddir@&$ac_builddir&;t t
13388 s&@abs_builddir@&$ac_abs_builddir&;t t
13389 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13390 s&@INSTALL@&$ac_INSTALL&;t t
13391 $ac_datarootdir_hack
13392 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
13393
13394 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13395 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13396 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13397 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13398 which seems to be undefined. Please make sure it is defined." >&5
13399 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13400 which seems to be undefined. Please make sure it is defined." >&2;}
13401
13402 rm -f "$tmp/stdin"
13403 case $ac_file in
13404 -) cat "$tmp/out"; rm -f "$tmp/out";;
13405 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13406 esac
13407 ;;
13408 :H)
13409 #
13410 # CONFIG_HEADER
13411 #
13412 _ACEOF
13413
13414 # Transform confdefs.h into a sed script `conftest.defines', that
13415 # substitutes the proper values into config.h.in to produce config.h.
13416 rm -f conftest.defines conftest.tail
13417 # First, append a space to every undef/define line, to ease matching.
13418 echo 's/$/ /' >conftest.defines
13419 # Then, protect against being on the right side of a sed subst, or in
13420 # an unquoted here document, in config.status. If some macros were
13421 # called several times there might be several #defines for the same
13422 # symbol, which is useless. But do not sort them, since the last
13423 # AC_DEFINE must be honored.
13424 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13425 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13426 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13427 # PARAMS is the parameter list in the macro definition--in most cases, it's
13428 # just an empty string.
13429 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13430 ac_dB='\\)[ (].*,\\1define\\2'
13431 ac_dC=' '
13432 ac_dD=' ,'
13433
13434 uniq confdefs.h |
13435 sed -n '
13436 t rset
13437 :rset
13438 s/^[ ]*#[ ]*define[ ][ ]*//
13439 t ok
13440 d
13441 :ok
13442 s/[\\&,]/\\&/g
13443 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13444 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13445 ' >>conftest.defines
13446
13447 # Remove the space that was appended to ease matching.
13448 # Then replace #undef with comments. This is necessary, for
13449 # example, in the case of _POSIX_SOURCE, which is predefined and required
13450 # on some systems where configure will not decide to define it.
13451 # (The regexp can be short, since the line contains either #define or #undef.)
13452 echo 's/ $//
13453 s,^[ #]*u.*,/* & */,' >>conftest.defines
13454
13455 # Break up conftest.defines:
13456 ac_max_sed_lines=50
13457
13458 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13459 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13460 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13461 # et cetera.
13462 ac_in='$ac_file_inputs'
13463 ac_out='"$tmp/out1"'
13464 ac_nxt='"$tmp/out2"'
13465
13466 while :
13467 do
13468 # Write a here document:
13469 cat >>$CONFIG_STATUS <<_ACEOF
13470 # First, check the format of the line:
13471 cat >"\$tmp/defines.sed" <<\\CEOF
13472 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13473 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13474 b
13475 :def
13476 _ACEOF
13477 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13478 echo 'CEOF
13479 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13480 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13481 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13482 grep . conftest.tail >/dev/null || break
13483 rm -f conftest.defines
13484 mv conftest.tail conftest.defines
13485 done
13486 rm -f conftest.defines conftest.tail
13487
13488 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13489 cat >>$CONFIG_STATUS <<\_ACEOF
13490 if test x"$ac_file" != x-; then
13491 echo "/* $configure_input */" >"$tmp/config.h"
13492 cat "$ac_result" >>"$tmp/config.h"
13493 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13494 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13495 echo "$as_me: $ac_file is unchanged" >&6;}
13496 else
13497 rm -f $ac_file
13498 mv "$tmp/config.h" $ac_file
13499 fi
13500 else
13501 echo "/* $configure_input */"
13502 cat "$ac_result"
13503 fi
13504 rm -f "$tmp/out12"
13505 ;;
13506
13507 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13508 echo "$as_me: executing $ac_file commands" >&6;}
13509 ;;
13510 esac
13511
13512
13513 case $ac_file$ac_mode in
13514 "default-1":C) if test -f .devel; then
13515 echo timestamp > stamp-h
13516 cat Makefile-devel-adds >> Makefile
13517 make depend
13518 fi ;;
13519
13520 esac
13521 done # for ac_tag
13522
13523
13524 { (exit 0); exit 0; }
13525 _ACEOF
13526 chmod +x $CONFIG_STATUS
13527 ac_clean_files=$ac_clean_files_save
13528
13529
13530 # configure is writing to config.log, and then calls config.status.
13531 # config.status does its own redirection, appending to config.log.
13532 # Unfortunately, on DOS this fails, as config.log is still kept open
13533 # by configure, so config.status won't be able to write to it; its
13534 # output is simply discarded. So we exec the FD to /dev/null,
13535 # effectively closing config.log, so it can be properly (re)opened and
13536 # appended to by config.status. When coming back to configure, we
13537 # need to make the FD available again.
13538 if test "$no_create" != yes; then
13539 ac_cs_success=:
13540 ac_config_status_args=
13541 test "$silent" = yes &&
13542 ac_config_status_args="$ac_config_status_args --quiet"
13543 exec 5>/dev/null
13544 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13545 exec 5>>config.log
13546 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13547 # would make configure fail if this is the last instruction.
13548 $ac_cs_success || { (exit 1); exit 1; }
13549 fi
13550
13551 exit 0