]> The Tcpdump Group git mirrors - tcpdump/blob - configure
Avoid some warnings from Sun C.
[tcpdump] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="tcpdump.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 SHLICC2
662 CC
663 CFLAGS
664 LDFLAGS
665 CPPFLAGS
666 ac_ct_CC
667 EXEEXT
668 OBJEXT
669 CPP
670 GREP
671 EGREP
672 LIBOBJS
673 PCAP_CONFIG
674 RANLIB
675 DEPENDENCY_CFLAG
676 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
2855 #
2856 # -Werror forces warnings to be errors.
2857 #
2858 ac_lbl_cc_force_warning_errors=-Werror
2859 else
2860 V_INCLS="$V_INCLS -I/usr/local/include"
2861 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2862
2863 case "$host_os" in
2864
2865 darwin*)
2866 #
2867 # This is assumed either to be GCC or clang, both
2868 # of which use -Werror to force warnings to be errors.
2869 #
2870 ac_lbl_cc_force_warning_errors=-Werror
2871 ;;
2872
2873 hpux*)
2874 #
2875 # HP C, which is what we presume we're using, doesn't
2876 # exit with a non-zero exit status if we hand it an
2877 # invalid -W flag, can't be forced to do so even with
2878 # +We, and doesn't handle GCC-style -W flags, so we
2879 # don't want to try using GCC-style -W flags.
2880 #
2881 ac_lbl_cc_dont_try_gcc_dashW=yes
2882 ;;
2883
2884 irix*)
2885 #
2886 # MIPS C, which is what we presume we're using, doesn't
2887 # necessarily exit with a non-zero exit status if we
2888 # hand it an invalid -W flag, can't be forced to do
2889 # so, and doesn't handle GCC-style -W flags, so we
2890 # don't want to try using GCC-style -W flags.
2891 #
2892 ac_lbl_cc_dont_try_gcc_dashW=yes
2893 V_CCOPT="$V_CCOPT -xansi -signed -O"
2894 ;;
2895
2896 osf*)
2897 #
2898 # Presumed to be DEC OSF/1, Digital UNIX, or
2899 # Tru64 UNIX.
2900 #
2901 # The DEC C compiler, which is what we presume we're
2902 # using, doesn't exit with a non-zero exit status if we
2903 # hand it an invalid -W flag, can't be forced to do
2904 # so, and doesn't handle GCC-style -W flags, so we
2905 # don't want to try using GCC-style -W flags.
2906 #
2907 ac_lbl_cc_dont_try_gcc_dashW=yes
2908 V_CCOPT="$V_CCOPT -O"
2909 ;;
2910
2911 solaris*)
2912 #
2913 # Assumed to be Sun C, which requires -errwarn to force
2914 # warnings to be treated as errors.
2915 #
2916 ac_lbl_cc_force_warning_errors=-errwarn
2917 ;;
2918
2919 ultrix*)
2920 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2921 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
2922 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2932 #include <sys/types.h>
2933 int
2934 main ()
2935 {
2936 struct a { int b; };
2937 void c(const struct a *)
2938 ;
2939 return 0;
2940 }
2941 _ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (ac_try="$ac_compile"
2944 case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947 esac
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2950 ac_status=$?
2951 grep -v '^ *+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } && {
2956 test -z "$ac_c_werror_flag" ||
2957 test ! -s conftest.err
2958 } && test -s conftest.$ac_objext; then
2959 ac_cv_lbl_cc_const_proto=yes
2960 else
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963
2964 ac_cv_lbl_cc_const_proto=no
2965 fi
2966
2967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968 fi
2969
2970 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2971 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
2972 if test $ac_cv_lbl_cc_const_proto = no ; then
2973
2974 cat >>confdefs.h <<\_ACEOF
2975 #define const
2976 _ACEOF
2977
2978 fi
2979 ;;
2980 esac
2981 fi
2982
2983 { echo "$as_me:$LINENO: checking for inline" >&5
2984 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
2985 save_CFLAGS="$CFLAGS"
2986 CFLAGS="$V_CCOPT"
2987 if test "${ac_cv_lbl_inline+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990
2991 ac_cv_lbl_inline=""
2992 ac_lbl_cc_inline=no
2993 for ac_lbl_inline in inline __inline__ __inline
2994 do
2995 cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h. */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3001 #define inline $ac_lbl_inline
3002 static inline struct iltest *foo(void);
3003 struct iltest {
3004 int iltest1;
3005 int iltest2;
3006 };
3007
3008 static inline struct iltest *
3009 foo()
3010 {
3011 static struct iltest xxx;
3012
3013 return &xxx;
3014 }
3015 int
3016 main ()
3017 {
3018
3019 ;
3020 return 0;
3021 }
3022 _ACEOF
3023 rm -f conftest.$ac_objext
3024 if { (ac_try="$ac_compile"
3025 case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compile") 2>conftest.er1
3031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } && {
3037 test -z "$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3039 } && test -s conftest.$ac_objext; then
3040 ac_lbl_cc_inline=yes
3041 else
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045
3046 fi
3047
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 if test "$ac_lbl_cc_inline" = yes ; then
3050 break;
3051 fi
3052 done
3053 if test "$ac_lbl_cc_inline" = yes ; then
3054 ac_cv_lbl_inline=$ac_lbl_inline
3055 fi
3056 fi
3057
3058 CFLAGS="$save_CFLAGS"
3059 if test ! -z "$ac_cv_lbl_inline" ; then
3060 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3061 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3062 else
3063 { echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6; }
3065 fi
3066
3067 cat >>confdefs.h <<_ACEOF
3068 #define inline $ac_cv_lbl_inline
3069 _ACEOF
3070
3071
3072 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3073 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3074 if test "${ac_cv___attribute__+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077
3078 cat >conftest.$ac_ext <<_ACEOF
3079
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085
3086 #include <stdlib.h>
3087
3088 static void foo(void) __attribute__ ((noreturn));
3089
3090 static void
3091 foo(void)
3092 {
3093 exit(1);
3094 }
3095
3096 int
3097 main(int argc, char **argv)
3098 {
3099 foo();
3100 }
3101
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3105 case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_compile") 2>conftest.er1
3111 ac_status=$?
3112 grep -v '^ *+' conftest.er1 >conftest.err
3113 rm -f conftest.er1
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } && {
3117 test -z "$ac_c_werror_flag" ||
3118 test ! -s conftest.err
3119 } && test -s conftest.$ac_objext; then
3120 ac_cv___attribute__=yes
3121 else
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125 ac_cv___attribute__=no
3126 fi
3127
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 fi
3130
3131 if test "$ac_cv___attribute__" = "yes"; then
3132
3133 cat >>confdefs.h <<\_ACEOF
3134 #define HAVE___ATTRIBUTE__ 1
3135 _ACEOF
3136
3137 else
3138 #
3139 # We can't use __attribute__, so we can't use __attribute__((unused)),
3140 # so we define _U_ to an empty string.
3141 #
3142 V_DEFS="$V_DEFS -D_U_=\"\""
3143 fi
3144 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3145 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3146
3147 if test "$ac_cv___attribute__" = "yes"; then
3148
3149 { echo "$as_me:$LINENO: checking whether __attribute__((unused)) can be used without warnings" >&5
3150 echo $ECHO_N "checking whether __attribute__((unused)) can be used without warnings... $ECHO_C" >&6; }
3151 if test "${ac_cv___attribute___unused+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154
3155 save_CFLAGS="$CFLAGS"
3156 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3157 cat >conftest.$ac_ext <<_ACEOF
3158
3159 /* confdefs.h. */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3164
3165 #include <stdlib.h>
3166 #include <stdio.h>
3167
3168 int
3169 main(int argc __attribute((unused)), char **argv __attribute((unused)))
3170 {
3171 printf("Hello, world!\n");
3172 return 0;
3173 }
3174
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3184 ac_status=$?
3185 grep -v '^ *+' conftest.er1 >conftest.err
3186 rm -f conftest.er1
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3193 ac_cv___attribute___unused=yes
3194 else
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198 ac_cv___attribute___unused=no
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 fi
3203
3204 CFLAGS="$save_CFLAGS"
3205 if test "$ac_cv___attribute___unused" = "yes"; then
3206 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3207 else
3208 V_DEFS="$V_DEFS -D_U_=\"\""
3209 fi
3210 { echo "$as_me:$LINENO: result: $ac_cv___attribute___unused" >&5
3211 echo "${ECHO_T}$ac_cv___attribute___unused" >&6; }
3212
3213
3214 { echo "$as_me:$LINENO: checking whether __attribute__((noreturn)) can be applied to function pointers without warnings" >&5
3215 echo $ECHO_N "checking whether __attribute__((noreturn)) can be applied to function pointers without warnings... $ECHO_C" >&6; }
3216 if test "${ac_cv___attribute___noreturn_function_pointer+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219
3220 save_CFLAGS="$CFLAGS"
3221 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3222 cat >conftest.$ac_ext <<_ACEOF
3223
3224 /* confdefs.h. */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3229
3230 #include <stdlib.h>
3231
3232 extern int (*foo)(int i)
3233 __attribute__ ((noreturn));
3234
3235 int
3236 main(int argc, char **argv)
3237 {
3238 (*foo)(1);
3239 }
3240
3241 _ACEOF
3242 rm -f conftest.$ac_objext
3243 if { (ac_try="$ac_compile"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_compile") 2>conftest.er1
3250 ac_status=$?
3251 grep -v '^ *+' conftest.er1 >conftest.err
3252 rm -f conftest.er1
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } && {
3256 test -z "$ac_c_werror_flag" ||
3257 test ! -s conftest.err
3258 } && test -s conftest.$ac_objext; then
3259 ac_cv___attribute___noreturn_function_pointer=yes
3260 else
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264 ac_cv___attribute___noreturn_function_pointer=no
3265 fi
3266
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 fi
3269
3270 CFLAGS="$save_CFLAGS"
3271 if test "$ac_cv___attribute___noreturn_function_pointer" = "yes"; then
3272
3273 cat >>confdefs.h <<\_ACEOF
3274 #define __ATTRIBUTE___NORETURN_OK_FOR_FUNCTION_POINTERS 1
3275 _ACEOF
3276
3277 fi
3278 { echo "$as_me:$LINENO: result: $ac_cv___attribute___noreturn_function_pointer" >&5
3279 echo "${ECHO_T}$ac_cv___attribute___noreturn_function_pointer" >&6; }
3280
3281
3282 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be used without warnings" >&5
3283 echo $ECHO_N "checking whether __attribute__((format)) can be used without warnings... $ECHO_C" >&6; }
3284 if test "${ac_cv___attribute___format+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287
3288 save_CFLAGS="$CFLAGS"
3289 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3290 cat >conftest.$ac_ext <<_ACEOF
3291
3292 /* confdefs.h. */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3297
3298 #include <stdlib.h>
3299
3300 extern int foo(const char *fmt, ...)
3301 __attribute__ ((format (printf, 1, 2)));
3302
3303 int
3304 main(int argc, char **argv)
3305 {
3306 foo("%s", "test");
3307 }
3308
3309 _ACEOF
3310 rm -f conftest.$ac_objext
3311 if { (ac_try="$ac_compile"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_compile") 2>conftest.er1
3318 ac_status=$?
3319 grep -v '^ *+' conftest.er1 >conftest.err
3320 rm -f conftest.er1
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } && {
3324 test -z "$ac_c_werror_flag" ||
3325 test ! -s conftest.err
3326 } && test -s conftest.$ac_objext; then
3327 ac_cv___attribute___format=yes
3328 else
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332 ac_cv___attribute___format=no
3333 fi
3334
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 fi
3337
3338 CFLAGS="$save_CFLAGS"
3339 if test "$ac_cv___attribute___format" = "yes"; then
3340
3341 cat >>confdefs.h <<\_ACEOF
3342 #define __ATTRIBUTE___FORMAT_OK 1
3343 _ACEOF
3344
3345 fi
3346 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format" >&5
3347 echo "${ECHO_T}$ac_cv___attribute___format" >&6; }
3348
3349 if test "$ac_cv___attribute___format" = "yes"; then
3350
3351 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3352 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3353 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356
3357 cat >conftest.$ac_ext <<_ACEOF
3358
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3364
3365 #include <stdlib.h>
3366
3367 extern int (*foo)(const char *fmt, ...)
3368 __attribute__ ((format (printf, 1, 2)));
3369
3370 int
3371 main(int argc, char **argv)
3372 {
3373 (*foo)("%s", "test");
3374 }
3375
3376 _ACEOF
3377 rm -f conftest.$ac_objext
3378 if { (ac_try="$ac_compile"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compile") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } && {
3391 test -z "$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 } && test -s conftest.$ac_objext; then
3394 ac_cv___attribute___format_function_pointer=yes
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 ac_cv___attribute___format_function_pointer=no
3400 fi
3401
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 fi
3404
3405 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3406
3407 cat >>confdefs.h <<\_ACEOF
3408 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3409 _ACEOF
3410
3411 fi
3412 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3413 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3414
3415 fi
3416 fi
3417 ac_ext=c
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3423 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3424 # On Suns, sometimes $CPP names a directory.
3425 if test -n "$CPP" && test -d "$CPP"; then
3426 CPP=
3427 fi
3428 if test -z "$CPP"; then
3429 if test "${ac_cv_prog_CPP+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432 # Double quotes because CPP needs to be expanded
3433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3434 do
3435 ac_preproc_ok=false
3436 for ac_c_preproc_warn_flag in '' yes
3437 do
3438 # Use a header file that comes with gcc, so configuring glibc
3439 # with a fresh cross-compiler works.
3440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3441 # <limits.h> exists even on freestanding compilers.
3442 # On the NeXT, cc -E runs the code through the compiler's parser,
3443 # not just through cpp. "Syntax error" is here to catch this case.
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #ifdef __STDC__
3451 # include <limits.h>
3452 #else
3453 # include <assert.h>
3454 #endif
3455 Syntax error
3456 _ACEOF
3457 if { (ac_try="$ac_cpp conftest.$ac_ext"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } >/dev/null && {
3470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3471 test ! -s conftest.err
3472 }; then
3473 :
3474 else
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 # Broken: fails on valid input.
3479 continue
3480 fi
3481
3482 rm -f conftest.err conftest.$ac_ext
3483
3484 # OK, works on sane cases. Now check whether nonexistent headers
3485 # can be detected and how.
3486 cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h. */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3492 #include <ac_nonexistent.h>
3493 _ACEOF
3494 if { (ac_try="$ac_cpp conftest.$ac_ext"
3495 case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3498 esac
3499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } >/dev/null && {
3507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3508 test ! -s conftest.err
3509 }; then
3510 # Broken: success on invalid input.
3511 continue
3512 else
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 # Passes both tests.
3517 ac_preproc_ok=:
3518 break
3519 fi
3520
3521 rm -f conftest.err conftest.$ac_ext
3522
3523 done
3524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3525 rm -f conftest.err conftest.$ac_ext
3526 if $ac_preproc_ok; then
3527 break
3528 fi
3529
3530 done
3531 ac_cv_prog_CPP=$CPP
3532
3533 fi
3534 CPP=$ac_cv_prog_CPP
3535 else
3536 ac_cv_prog_CPP=$CPP
3537 fi
3538 { echo "$as_me:$LINENO: result: $CPP" >&5
3539 echo "${ECHO_T}$CPP" >&6; }
3540 ac_preproc_ok=false
3541 for ac_c_preproc_warn_flag in '' yes
3542 do
3543 # Use a header file that comes with gcc, so configuring glibc
3544 # with a fresh cross-compiler works.
3545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3546 # <limits.h> exists even on freestanding compilers.
3547 # On the NeXT, cc -E runs the code through the compiler's parser,
3548 # not just through cpp. "Syntax error" is here to catch this case.
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 #ifdef __STDC__
3556 # include <limits.h>
3557 #else
3558 # include <assert.h>
3559 #endif
3560 Syntax error
3561 _ACEOF
3562 if { (ac_try="$ac_cpp conftest.$ac_ext"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3569 ac_status=$?
3570 grep -v '^ *+' conftest.er1 >conftest.err
3571 rm -f conftest.er1
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } >/dev/null && {
3575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3576 test ! -s conftest.err
3577 }; then
3578 :
3579 else
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 # Broken: fails on valid input.
3584 continue
3585 fi
3586
3587 rm -f conftest.err conftest.$ac_ext
3588
3589 # OK, works on sane cases. Now check whether nonexistent headers
3590 # can be detected and how.
3591 cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 #include <ac_nonexistent.h>
3598 _ACEOF
3599 if { (ac_try="$ac_cpp conftest.$ac_ext"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } >/dev/null && {
3612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3613 test ! -s conftest.err
3614 }; then
3615 # Broken: success on invalid input.
3616 continue
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621 # Passes both tests.
3622 ac_preproc_ok=:
3623 break
3624 fi
3625
3626 rm -f conftest.err conftest.$ac_ext
3627
3628 done
3629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3630 rm -f conftest.err conftest.$ac_ext
3631 if $ac_preproc_ok; then
3632 :
3633 else
3634 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3635 See \`config.log' for more details." >&5
3636 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3637 See \`config.log' for more details." >&2;}
3638 { (exit 1); exit 1; }; }
3639 fi
3640
3641 ac_ext=c
3642 ac_cpp='$CPP $CPPFLAGS'
3643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646
3647
3648 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3649 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3650 if test "${ac_cv_path_GREP+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653 # Extract the first word of "grep ggrep" to use in msg output
3654 if test -z "$GREP"; then
3655 set dummy grep ggrep; ac_prog_name=$2
3656 if test "${ac_cv_path_GREP+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659 ac_path_GREP_found=false
3660 # Loop through the user's path and test for each of PROGNAME-LIST
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3663 do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_prog in grep ggrep; do
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3669 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3670 # Check for GNU ac_path_GREP and select it if it is found.
3671 # Check for GNU $ac_path_GREP
3672 case `"$ac_path_GREP" --version 2>&1` in
3673 *GNU*)
3674 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3675 *)
3676 ac_count=0
3677 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3678 while :
3679 do
3680 cat "conftest.in" "conftest.in" >"conftest.tmp"
3681 mv "conftest.tmp" "conftest.in"
3682 cp "conftest.in" "conftest.nl"
3683 echo 'GREP' >> "conftest.nl"
3684 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3686 ac_count=`expr $ac_count + 1`
3687 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3688 # Best one so far, save it but keep looking for a better one
3689 ac_cv_path_GREP="$ac_path_GREP"
3690 ac_path_GREP_max=$ac_count
3691 fi
3692 # 10*(2^10) chars as input seems more than enough
3693 test $ac_count -gt 10 && break
3694 done
3695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3696 esac
3697
3698
3699 $ac_path_GREP_found && break 3
3700 done
3701 done
3702
3703 done
3704 IFS=$as_save_IFS
3705
3706
3707 fi
3708
3709 GREP="$ac_cv_path_GREP"
3710 if test -z "$GREP"; then
3711 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3712 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3713 { (exit 1); exit 1; }; }
3714 fi
3715
3716 else
3717 ac_cv_path_GREP=$GREP
3718 fi
3719
3720
3721 fi
3722 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3723 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3724 GREP="$ac_cv_path_GREP"
3725
3726
3727 { echo "$as_me:$LINENO: checking for egrep" >&5
3728 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3729 if test "${ac_cv_path_EGREP+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3733 then ac_cv_path_EGREP="$GREP -E"
3734 else
3735 # Extract the first word of "egrep" to use in msg output
3736 if test -z "$EGREP"; then
3737 set dummy egrep; ac_prog_name=$2
3738 if test "${ac_cv_path_EGREP+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741 ac_path_EGREP_found=false
3742 # Loop through the user's path and test for each of PROGNAME-LIST
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3745 do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_prog in egrep; do
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3751 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3752 # Check for GNU ac_path_EGREP and select it if it is found.
3753 # Check for GNU $ac_path_EGREP
3754 case `"$ac_path_EGREP" --version 2>&1` in
3755 *GNU*)
3756 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3757 *)
3758 ac_count=0
3759 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3760 while :
3761 do
3762 cat "conftest.in" "conftest.in" >"conftest.tmp"
3763 mv "conftest.tmp" "conftest.in"
3764 cp "conftest.in" "conftest.nl"
3765 echo 'EGREP' >> "conftest.nl"
3766 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3767 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3768 ac_count=`expr $ac_count + 1`
3769 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3770 # Best one so far, save it but keep looking for a better one
3771 ac_cv_path_EGREP="$ac_path_EGREP"
3772 ac_path_EGREP_max=$ac_count
3773 fi
3774 # 10*(2^10) chars as input seems more than enough
3775 test $ac_count -gt 10 && break
3776 done
3777 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3778 esac
3779
3780
3781 $ac_path_EGREP_found && break 3
3782 done
3783 done
3784
3785 done
3786 IFS=$as_save_IFS
3787
3788
3789 fi
3790
3791 EGREP="$ac_cv_path_EGREP"
3792 if test -z "$EGREP"; then
3793 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3794 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3795 { (exit 1); exit 1; }; }
3796 fi
3797
3798 else
3799 ac_cv_path_EGREP=$EGREP
3800 fi
3801
3802
3803 fi
3804 fi
3805 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3806 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3807 EGREP="$ac_cv_path_EGREP"
3808
3809
3810 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3811 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3812 if test "${ac_cv_header_stdc+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 else
3815 cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h. */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 #include <stdlib.h>
3822 #include <stdarg.h>
3823 #include <string.h>
3824 #include <float.h>
3825
3826 int
3827 main ()
3828 {
3829
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.$ac_objext
3835 if { (ac_try="$ac_compile"
3836 case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839 esac
3840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3841 (eval "$ac_compile") 2>conftest.er1
3842 ac_status=$?
3843 grep -v '^ *+' conftest.er1 >conftest.err
3844 rm -f conftest.er1
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } && {
3848 test -z "$ac_c_werror_flag" ||
3849 test ! -s conftest.err
3850 } && test -s conftest.$ac_objext; then
3851 ac_cv_header_stdc=yes
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 ac_cv_header_stdc=no
3857 fi
3858
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860
3861 if test $ac_cv_header_stdc = yes; then
3862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3863 cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h. */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #include <string.h>
3870
3871 _ACEOF
3872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3873 $EGREP "memchr" >/dev/null 2>&1; then
3874 :
3875 else
3876 ac_cv_header_stdc=no
3877 fi
3878 rm -f conftest*
3879
3880 fi
3881
3882 if test $ac_cv_header_stdc = yes; then
3883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3884 cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h. */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3890 #include <stdlib.h>
3891
3892 _ACEOF
3893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3894 $EGREP "free" >/dev/null 2>&1; then
3895 :
3896 else
3897 ac_cv_header_stdc=no
3898 fi
3899 rm -f conftest*
3900
3901 fi
3902
3903 if test $ac_cv_header_stdc = yes; then
3904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3905 if test "$cross_compiling" = yes; then
3906 :
3907 else
3908 cat >conftest.$ac_ext <<_ACEOF
3909 /* confdefs.h. */
3910 _ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3914 #include <ctype.h>
3915 #include <stdlib.h>
3916 #if ((' ' & 0x0FF) == 0x020)
3917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3919 #else
3920 # define ISLOWER(c) \
3921 (('a' <= (c) && (c) <= 'i') \
3922 || ('j' <= (c) && (c) <= 'r') \
3923 || ('s' <= (c) && (c) <= 'z'))
3924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3925 #endif
3926
3927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3928 int
3929 main ()
3930 {
3931 int i;
3932 for (i = 0; i < 256; i++)
3933 if (XOR (islower (i), ISLOWER (i))
3934 || toupper (i) != TOUPPER (i))
3935 return 2;
3936 return 0;
3937 }
3938 _ACEOF
3939 rm -f conftest$ac_exeext
3940 if { (ac_try="$ac_link"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946 (eval "$ac_link") 2>&5
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3950 { (case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953 esac
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_try") 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; }; then
3959 :
3960 else
3961 echo "$as_me: program exited with status $ac_status" >&5
3962 echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3964
3965 ( exit $ac_status )
3966 ac_cv_header_stdc=no
3967 fi
3968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3969 fi
3970
3971
3972 fi
3973 fi
3974 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3975 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3976 if test $ac_cv_header_stdc = yes; then
3977
3978 cat >>confdefs.h <<\_ACEOF
3979 #define STDC_HEADERS 1
3980 _ACEOF
3981
3982 fi
3983
3984 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3995 inttypes.h stdint.h unistd.h
3996 do
3997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h. */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 $ac_includes_default
4010
4011 #include <$ac_header>
4012 _ACEOF
4013 rm -f conftest.$ac_objext
4014 if { (ac_try="$ac_compile"
4015 case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4018 esac
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_compile") 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && {
4027 test -z "$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 } && test -s conftest.$ac_objext; then
4030 eval "$as_ac_Header=yes"
4031 else
4032 echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4034
4035 eval "$as_ac_Header=no"
4036 fi
4037
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 fi
4040 ac_res=`eval echo '${'$as_ac_Header'}'`
4041 { echo "$as_me:$LINENO: result: $ac_res" >&5
4042 echo "${ECHO_T}$ac_res" >&6; }
4043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4044 cat >>confdefs.h <<_ACEOF
4045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4046 _ACEOF
4047
4048 fi
4049
4050 done
4051
4052
4053
4054
4055
4056
4057 for ac_header in fcntl.h rpc/rpc.h rpc/rpcent.h netdnet/dnetdb.h
4058 do
4059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 fi
4066 ac_res=`eval echo '${'$as_ac_Header'}'`
4067 { echo "$as_me:$LINENO: result: $ac_res" >&5
4068 echo "${ECHO_T}$ac_res" >&6; }
4069 else
4070 # Is the header compilable?
4071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 $ac_includes_default
4080 #include <$ac_header>
4081 _ACEOF
4082 rm -f conftest.$ac_objext
4083 if { (ac_try="$ac_compile"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_compile") 2>conftest.er1
4090 ac_status=$?
4091 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -f conftest.er1
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && {
4096 test -z "$ac_c_werror_flag" ||
4097 test ! -s conftest.err
4098 } && test -s conftest.$ac_objext; then
4099 ac_header_compiler=yes
4100 else
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 ac_header_compiler=no
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4109 echo "${ECHO_T}$ac_header_compiler" >&6; }
4110
4111 # Is the header present?
4112 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <$ac_header>
4121 _ACEOF
4122 if { (ac_try="$ac_cpp conftest.$ac_ext"
4123 case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } >/dev/null && {
4135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4136 test ! -s conftest.err
4137 }; then
4138 ac_header_preproc=yes
4139 else
4140 echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4142
4143 ac_header_preproc=no
4144 fi
4145
4146 rm -f conftest.err conftest.$ac_ext
4147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4148 echo "${ECHO_T}$ac_header_preproc" >&6; }
4149
4150 # So? What about this header?
4151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4152 yes:no: )
4153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4157 ac_header_preproc=yes
4158 ;;
4159 no:yes:* )
4160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4172
4173 ;;
4174 esac
4175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180 eval "$as_ac_Header=\$ac_header_preproc"
4181 fi
4182 ac_res=`eval echo '${'$as_ac_Header'}'`
4183 { echo "$as_me:$LINENO: result: $ac_res" >&5
4184 echo "${ECHO_T}$ac_res" >&6; }
4185
4186 fi
4187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4188 cat >>confdefs.h <<_ACEOF
4189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4190 _ACEOF
4191
4192 fi
4193
4194 done
4195
4196
4197 for ac_header in net/pfvar.h
4198 do
4199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h. */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 #include <sys/types.h>
4212 #include <sys/socket.h>
4213 #include <net/if.h>
4214
4215 #include <$ac_header>
4216 _ACEOF
4217 rm -f conftest.$ac_objext
4218 if { (ac_try="$ac_compile"
4219 case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_compile") 2>conftest.er1
4225 ac_status=$?
4226 grep -v '^ *+' conftest.er1 >conftest.err
4227 rm -f conftest.er1
4228 cat conftest.err >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } && {
4231 test -z "$ac_c_werror_flag" ||
4232 test ! -s conftest.err
4233 } && test -s conftest.$ac_objext; then
4234 eval "$as_ac_Header=yes"
4235 else
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 eval "$as_ac_Header=no"
4240 fi
4241
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 fi
4244 ac_res=`eval echo '${'$as_ac_Header'}'`
4245 { echo "$as_me:$LINENO: result: $ac_res" >&5
4246 echo "${ECHO_T}$ac_res" >&6; }
4247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4248 cat >>confdefs.h <<_ACEOF
4249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4250 _ACEOF
4251
4252 fi
4253
4254 done
4255
4256 if test "$ac_cv_header_net_pfvar_h" = yes; then
4257 LOCALSRC="print-pflog.c $LOCALSRC"
4258 fi
4259
4260 for ac_header in netinet/if_ether.h
4261 do
4262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h. */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 #include <sys/types.h>
4275 #include <sys/socket.h>
4276
4277 #include <$ac_header>
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (ac_try="$ac_compile"
4281 case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_compile") 2>conftest.er1
4287 ac_status=$?
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && {
4293 test -z "$ac_c_werror_flag" ||
4294 test ! -s conftest.err
4295 } && test -s conftest.$ac_objext; then
4296 eval "$as_ac_Header=yes"
4297 else
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301 eval "$as_ac_Header=no"
4302 fi
4303
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 fi
4306 ac_res=`eval echo '${'$as_ac_Header'}'`
4307 { echo "$as_me:$LINENO: result: $ac_res" >&5
4308 echo "${ECHO_T}$ac_res" >&6; }
4309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4310 cat >>confdefs.h <<_ACEOF
4311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4312 _ACEOF
4313
4314 fi
4315
4316 done
4317
4318 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4319 #
4320 # The simple test didn't work.
4321 # Do we need to include <net/if.h> first?
4322 # Unset ac_cv_header_netinet_if_ether_h so we don't
4323 # treat the previous failure as a cached value and
4324 # suppress the next test.
4325 #
4326 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4327 echo "$as_me: Rechecking with some additional includes" >&6;}
4328 unset ac_cv_header_netinet_if_ether_h
4329
4330 for ac_header in netinet/if_ether.h
4331 do
4332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 else
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 #include <sys/types.h>
4345 #include <sys/socket.h>
4346 #include <netinet/in.h>
4347 struct mbuf;
4348 struct rtentry;
4349 #include <net/if.h>
4350
4351 #include <$ac_header>
4352 _ACEOF
4353 rm -f conftest.$ac_objext
4354 if { (ac_try="$ac_compile"
4355 case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358 esac
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_compile") 2>conftest.er1
4361 ac_status=$?
4362 grep -v '^ *+' conftest.er1 >conftest.err
4363 rm -f conftest.er1
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && {
4367 test -z "$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4369 } && test -s conftest.$ac_objext; then
4370 eval "$as_ac_Header=yes"
4371 else
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4374
4375 eval "$as_ac_Header=no"
4376 fi
4377
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 fi
4380 ac_res=`eval echo '${'$as_ac_Header'}'`
4381 { echo "$as_me:$LINENO: result: $ac_res" >&5
4382 echo "${ECHO_T}$ac_res" >&6; }
4383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4384 cat >>confdefs.h <<_ACEOF
4385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4386 _ACEOF
4387
4388 fi
4389
4390 done
4391
4392 fi
4393
4394 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4395 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4396 if test "${ac_cv_header_time+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h. */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <sys/types.h>
4406 #include <sys/time.h>
4407 #include <time.h>
4408
4409 int
4410 main ()
4411 {
4412 if ((struct tm *) 0)
4413 return 0;
4414 ;
4415 return 0;
4416 }
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (ac_try="$ac_compile"
4420 case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_compile") 2>conftest.er1
4426 ac_status=$?
4427 grep -v '^ *+' conftest.er1 >conftest.err
4428 rm -f conftest.er1
4429 cat conftest.err >&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } && {
4432 test -z "$ac_c_werror_flag" ||
4433 test ! -s conftest.err
4434 } && test -s conftest.$ac_objext; then
4435 ac_cv_header_time=yes
4436 else
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440 ac_cv_header_time=no
4441 fi
4442
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 fi
4445 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4446 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4447 if test $ac_cv_header_time = yes; then
4448
4449 cat >>confdefs.h <<\_ACEOF
4450 #define TIME_WITH_SYS_TIME 1
4451 _ACEOF
4452
4453 fi
4454
4455
4456 case "$host_os" in
4457
4458 darwin*)
4459 # Check whether --enable-universal was given.
4460 if test "${enable_universal+set}" = set; then
4461 enableval=$enable_universal;
4462 fi
4463
4464 if test "$enable_universal" != "no"; then
4465 case "$host_os" in
4466
4467 darwin9.*)
4468 #
4469 # Leopard. Build for x86 and 32-bit PowerPC, with
4470 # x86 first. (That's what Apple does.)
4471 #
4472 V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
4473 LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
4474 ;;
4475
4476 darwin10.*)
4477 #
4478 # Snow Leopard. Build for x86-64 and x86, with
4479 # x86-64 first. (That's what Apple does.)
4480 #
4481 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
4482 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
4483 ;;
4484 esac
4485 fi
4486 ;;
4487
4488 linux*)
4489 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4490 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4491 if test "$cross_compiling" = yes; then
4492 if test "${ac_cv_linux_vers+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495 ac_cv_linux_vers=unknown
4496 fi
4497
4498 else
4499 if test "${ac_cv_linux_vers+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502 ac_cv_linux_vers=`uname -r 2>&1 | \
4503 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4504 fi
4505
4506 fi
4507 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4508 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4509 if test $ac_cv_linux_vers = unknown ; then
4510 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4511 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4512 { (exit 1); exit 1; }; }
4513 fi
4514 if test $ac_cv_linux_vers -lt 2 ; then
4515 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4516 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4517 { (exit 1); exit 1; }; }
4518 fi
4519 ;;
4520
4521 *)
4522 ;;
4523 esac
4524
4525
4526
4527 # Check whether --with-smi was given.
4528 if test "${with_smi+set}" = set; then
4529 withval=$with_smi;
4530 else
4531 with_smi=yes
4532 fi
4533
4534
4535 if test "x$with_smi" != "xno" ; then
4536
4537 for ac_header in smi.h
4538 do
4539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 fi
4546 ac_res=`eval echo '${'$as_ac_Header'}'`
4547 { echo "$as_me:$LINENO: result: $ac_res" >&5
4548 echo "${ECHO_T}$ac_res" >&6; }
4549 else
4550 # Is the header compilable?
4551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4553 cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h. */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 $ac_includes_default
4560 #include <$ac_header>
4561 _ACEOF
4562 rm -f conftest.$ac_objext
4563 if { (ac_try="$ac_compile"
4564 case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_compile") 2>conftest.er1
4570 ac_status=$?
4571 grep -v '^ *+' conftest.er1 >conftest.err
4572 rm -f conftest.er1
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } && {
4576 test -z "$ac_c_werror_flag" ||
4577 test ! -s conftest.err
4578 } && test -s conftest.$ac_objext; then
4579 ac_header_compiler=yes
4580 else
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 ac_header_compiler=no
4585 fi
4586
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4589 echo "${ECHO_T}$ac_header_compiler" >&6; }
4590
4591 # Is the header present?
4592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 #include <$ac_header>
4601 _ACEOF
4602 if { (ac_try="$ac_cpp conftest.$ac_ext"
4603 case "(($ac_try" in
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4606 esac
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4609 ac_status=$?
4610 grep -v '^ *+' conftest.er1 >conftest.err
4611 rm -f conftest.er1
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } >/dev/null && {
4615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4616 test ! -s conftest.err
4617 }; then
4618 ac_header_preproc=yes
4619 else
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 ac_header_preproc=no
4624 fi
4625
4626 rm -f conftest.err conftest.$ac_ext
4627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4628 echo "${ECHO_T}$ac_header_preproc" >&6; }
4629
4630 # So? What about this header?
4631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4632 yes:no: )
4633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4637 ac_header_preproc=yes
4638 ;;
4639 no:yes:* )
4640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4652
4653 ;;
4654 esac
4655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660 eval "$as_ac_Header=\$ac_header_preproc"
4661 fi
4662 ac_res=`eval echo '${'$as_ac_Header'}'`
4663 { echo "$as_me:$LINENO: result: $ac_res" >&5
4664 echo "${ECHO_T}$ac_res" >&6; }
4665
4666 fi
4667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4668 cat >>confdefs.h <<_ACEOF
4669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4670 _ACEOF
4671
4672 fi
4673
4674 done
4675
4676
4677 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4678 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4679 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 ac_check_lib_save_LIBS=$LIBS
4683 LIBS="-lsmi $LIBS"
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690
4691 /* Override any GCC internal prototype to avoid an error.
4692 Use char because int might match the return type of a GCC
4693 builtin and then its argument prototype would still apply. */
4694 #ifdef __cplusplus
4695 extern "C"
4696 #endif
4697 char smiInit ();
4698 int
4699 main ()
4700 {
4701 return smiInit ();
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext conftest$ac_exeext
4707 if { (ac_try="$ac_link"
4708 case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711 esac
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713 (eval "$ac_link") 2>conftest.er1
4714 ac_status=$?
4715 grep -v '^ *+' conftest.er1 >conftest.err
4716 rm -f conftest.er1
4717 cat conftest.err >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } && {
4720 test -z "$ac_c_werror_flag" ||
4721 test ! -s conftest.err
4722 } && test -s conftest$ac_exeext &&
4723 $as_test_x conftest$ac_exeext; then
4724 ac_cv_lib_smi_smiInit=yes
4725 else
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729 ac_cv_lib_smi_smiInit=no
4730 fi
4731
4732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4733 conftest$ac_exeext conftest.$ac_ext
4734 LIBS=$ac_check_lib_save_LIBS
4735 fi
4736 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4737 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4738 if test $ac_cv_lib_smi_smiInit = yes; then
4739 cat >>confdefs.h <<_ACEOF
4740 #define HAVE_LIBSMI 1
4741 _ACEOF
4742
4743 LIBS="-lsmi $LIBS"
4744
4745 fi
4746
4747 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4748 then
4749 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4750 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4751 if test "$cross_compiling" = yes; then
4752 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4753 echo "${ECHO_T}not when cross-compiling" >&6; }
4754 libsmi=no
4755
4756 else
4757 cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h. */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 /* libsmi available check */
4764 #include <smi.h>
4765 main()
4766 {
4767 int current, revision, age, n;
4768 const int required = 2;
4769 if (smiInit(""))
4770 exit(1);
4771 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4772 exit(2);
4773 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4774 if (n != 3)
4775 exit(3);
4776 if (required < current - age || required > current)
4777 exit(4);
4778 exit(0);
4779 }
4780
4781 _ACEOF
4782 rm -f conftest$ac_exeext
4783 if { (ac_try="$ac_link"
4784 case "(($ac_try" in
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4787 esac
4788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4789 (eval "$ac_link") 2>&5
4790 ac_status=$?
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4793 { (case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_try") 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 { echo "$as_me:$LINENO: result: yes" >&5
4803 echo "${ECHO_T}yes" >&6; }
4804
4805 cat >>confdefs.h <<\_ACEOF
4806 #define LIBSMI 1
4807 _ACEOF
4808
4809 libsmi=yes
4810 else
4811 echo "$as_me: program exited with status $ac_status" >&5
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ( exit $ac_status )
4816 case $? in
4817 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4818 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4819 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4820 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4821 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4822 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4823 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4824 echo "${ECHO_T}no - too old" >&6; } ;;
4825 *) { echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6; } ;;
4827 esac
4828 libsmi=no
4829 fi
4830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4831 fi
4832
4833
4834 fi
4835 fi
4836
4837 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4838 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4839 # Check whether --enable-smb was given.
4840 if test "${enable_smb+set}" = set; then
4841 enableval=$enable_smb;
4842 else
4843 enableval=yes
4844 fi
4845
4846 case "$enableval" in
4847 yes) { echo "$as_me:$LINENO: result: yes" >&5
4848 echo "${ECHO_T}yes" >&6; }
4849 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4850 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4851
4852 cat >>confdefs.h <<\_ACEOF
4853 #define TCPDUMP_DO_SMB 1
4854 _ACEOF
4855
4856 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4857 ;;
4858 *) { echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6; }
4860 ;;
4861 esac
4862
4863
4864 # Check whether --with-user was given.
4865 if test "${with_user+set}" = set; then
4866 withval=$with_user;
4867 fi
4868
4869 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4870 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4871 if test ! -z "$with_user" ; then
4872
4873 cat >>confdefs.h <<_ACEOF
4874 #define WITH_USER "$withval"
4875 _ACEOF
4876
4877 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4878 echo "${ECHO_T}to \"$withval\"" >&6; }
4879 else
4880 { echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6; }
4882 fi
4883
4884
4885 # Check whether --with-chroot was given.
4886 if test "${with_chroot+set}" = set; then
4887 withval=$with_chroot;
4888 fi
4889
4890 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4891 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4892 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4893
4894 cat >>confdefs.h <<_ACEOF
4895 #define WITH_CHROOT "$withval"
4896 _ACEOF
4897
4898 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4899 echo "${ECHO_T}to \"$withval\"" >&6; }
4900 else
4901 { echo "$as_me:$LINENO: result: no" >&5
4902 echo "${ECHO_T}no" >&6; }
4903 fi
4904
4905 #
4906 # We must check this before checking whether to enable IPv6, because,
4907 # on some platforms (such as SunOS 5.x), the test program requires
4908 # the extra networking libraries.
4909 #
4910
4911 # Most operating systems have gethostbyname() in the default searched
4912 # libraries (i.e. libc):
4913 # Some OSes (eg. Solaris) place it in libnsl
4914 # Some strange OSes (SINIX) have it in libsocket:
4915 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4916 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4917 if test "${ac_cv_search_gethostbyname+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 ac_func_search_save_LIBS=$LIBS
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927
4928 /* Override any GCC internal prototype to avoid an error.
4929 Use char because int might match the return type of a GCC
4930 builtin and then its argument prototype would still apply. */
4931 #ifdef __cplusplus
4932 extern "C"
4933 #endif
4934 char gethostbyname ();
4935 int
4936 main ()
4937 {
4938 return gethostbyname ();
4939 ;
4940 return 0;
4941 }
4942 _ACEOF
4943 for ac_lib in '' nsl socket resolv; do
4944 if test -z "$ac_lib"; then
4945 ac_res="none required"
4946 else
4947 ac_res=-l$ac_lib
4948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4949 fi
4950 rm -f conftest.$ac_objext conftest$ac_exeext
4951 if { (ac_try="$ac_link"
4952 case "(($ac_try" in
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4955 esac
4956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4957 (eval "$ac_link") 2>conftest.er1
4958 ac_status=$?
4959 grep -v '^ *+' conftest.er1 >conftest.err
4960 rm -f conftest.er1
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } && {
4964 test -z "$ac_c_werror_flag" ||
4965 test ! -s conftest.err
4966 } && test -s conftest$ac_exeext &&
4967 $as_test_x conftest$ac_exeext; then
4968 ac_cv_search_gethostbyname=$ac_res
4969 else
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973
4974 fi
4975
4976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4977 conftest$ac_exeext
4978 if test "${ac_cv_search_gethostbyname+set}" = set; then
4979 break
4980 fi
4981 done
4982 if test "${ac_cv_search_gethostbyname+set}" = set; then
4983 :
4984 else
4985 ac_cv_search_gethostbyname=no
4986 fi
4987 rm conftest.$ac_ext
4988 LIBS=$ac_func_search_save_LIBS
4989 fi
4990 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4991 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4992 ac_res=$ac_cv_search_gethostbyname
4993 if test "$ac_res" != no; then
4994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4995
4996 fi
4997
4998 # Unfortunately libsocket sometimes depends on libnsl and
4999 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
5000 if test "$ac_cv_search_gethostbyname" = "no"
5001 then
5002 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
5003 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
5004 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-lsocket -lnsl $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015
5016 /* Override any GCC internal prototype to avoid an error.
5017 Use char because int might match the return type of a GCC
5018 builtin and then its argument prototype would still apply. */
5019 #ifdef __cplusplus
5020 extern "C"
5021 #endif
5022 char gethostbyname ();
5023 int
5024 main ()
5025 {
5026 return gethostbyname ();
5027 ;
5028 return 0;
5029 }
5030 _ACEOF
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (ac_try="$ac_link"
5033 case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036 esac
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_link") 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } && {
5045 test -z "$ac_c_werror_flag" ||
5046 test ! -s conftest.err
5047 } && test -s conftest$ac_exeext &&
5048 $as_test_x conftest$ac_exeext; then
5049 ac_cv_lib_socket_gethostbyname=yes
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 ac_cv_lib_socket_gethostbyname=no
5055 fi
5056
5057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5058 conftest$ac_exeext conftest.$ac_ext
5059 LIBS=$ac_check_lib_save_LIBS
5060 fi
5061 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
5062 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
5063 if test $ac_cv_lib_socket_gethostbyname = yes; then
5064 LIBS="-lsocket -lnsl $LIBS"
5065 fi
5066
5067 fi
5068 { echo "$as_me:$LINENO: checking for library containing socket" >&5
5069 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
5070 if test "${ac_cv_search_socket+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073 ac_func_search_save_LIBS=$LIBS
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080
5081 /* Override any GCC internal prototype to avoid an error.
5082 Use char because int might match the return type of a GCC
5083 builtin and then its argument prototype would still apply. */
5084 #ifdef __cplusplus
5085 extern "C"
5086 #endif
5087 char socket ();
5088 int
5089 main ()
5090 {
5091 return socket ();
5092 ;
5093 return 0;
5094 }
5095 _ACEOF
5096 for ac_lib in '' socket; do
5097 if test -z "$ac_lib"; then
5098 ac_res="none required"
5099 else
5100 ac_res=-l$ac_lib
5101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5102 fi
5103 rm -f conftest.$ac_objext conftest$ac_exeext
5104 if { (ac_try="$ac_link"
5105 case "(($ac_try" in
5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5108 esac
5109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5110 (eval "$ac_link") 2>conftest.er1
5111 ac_status=$?
5112 grep -v '^ *+' conftest.er1 >conftest.err
5113 rm -f conftest.er1
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } && {
5117 test -z "$ac_c_werror_flag" ||
5118 test ! -s conftest.err
5119 } && test -s conftest$ac_exeext &&
5120 $as_test_x conftest$ac_exeext; then
5121 ac_cv_search_socket=$ac_res
5122 else
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126
5127 fi
5128
5129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5130 conftest$ac_exeext
5131 if test "${ac_cv_search_socket+set}" = set; then
5132 break
5133 fi
5134 done
5135 if test "${ac_cv_search_socket+set}" = set; then
5136 :
5137 else
5138 ac_cv_search_socket=no
5139 fi
5140 rm conftest.$ac_ext
5141 LIBS=$ac_func_search_save_LIBS
5142 fi
5143 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5144 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
5145 ac_res=$ac_cv_search_socket
5146 if test "$ac_res" != no; then
5147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5148
5149 else
5150 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5151 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5152 if test "${ac_cv_lib_socket_socket+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 ac_check_lib_save_LIBS=$LIBS
5156 LIBS="-lsocket -lnsl $LIBS"
5157 cat >conftest.$ac_ext <<_ACEOF
5158 /* confdefs.h. */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5163
5164 /* Override any GCC internal prototype to avoid an error.
5165 Use char because int might match the return type of a GCC
5166 builtin and then its argument prototype would still apply. */
5167 #ifdef __cplusplus
5168 extern "C"
5169 #endif
5170 char socket ();
5171 int
5172 main ()
5173 {
5174 return socket ();
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 rm -f conftest.$ac_objext conftest$ac_exeext
5180 if { (ac_try="$ac_link"
5181 case "(($ac_try" in
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5184 esac
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_link") 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } && {
5193 test -z "$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5195 } && test -s conftest$ac_exeext &&
5196 $as_test_x conftest$ac_exeext; then
5197 ac_cv_lib_socket_socket=yes
5198 else
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5201
5202 ac_cv_lib_socket_socket=no
5203 fi
5204
5205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5206 conftest$ac_exeext conftest.$ac_ext
5207 LIBS=$ac_check_lib_save_LIBS
5208 fi
5209 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5210 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5211 if test $ac_cv_lib_socket_socket = yes; then
5212 LIBS="-lsocket -lnsl $LIBS"
5213 fi
5214
5215 fi
5216
5217 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5218 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5219 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
5220 if test "${ac_cv_search_putmsg+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223 ac_func_search_save_LIBS=$LIBS
5224 cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h. */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230
5231 /* Override any GCC internal prototype to avoid an error.
5232 Use char because int might match the return type of a GCC
5233 builtin and then its argument prototype would still apply. */
5234 #ifdef __cplusplus
5235 extern "C"
5236 #endif
5237 char putmsg ();
5238 int
5239 main ()
5240 {
5241 return putmsg ();
5242 ;
5243 return 0;
5244 }
5245 _ACEOF
5246 for ac_lib in '' str; do
5247 if test -z "$ac_lib"; then
5248 ac_res="none required"
5249 else
5250 ac_res=-l$ac_lib
5251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5252 fi
5253 rm -f conftest.$ac_objext conftest$ac_exeext
5254 if { (ac_try="$ac_link"
5255 case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258 esac
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_link") 2>conftest.er1
5261 ac_status=$?
5262 grep -v '^ *+' conftest.er1 >conftest.err
5263 rm -f conftest.er1
5264 cat conftest.err >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } && {
5267 test -z "$ac_c_werror_flag" ||
5268 test ! -s conftest.err
5269 } && test -s conftest$ac_exeext &&
5270 $as_test_x conftest$ac_exeext; then
5271 ac_cv_search_putmsg=$ac_res
5272 else
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5275
5276
5277 fi
5278
5279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5280 conftest$ac_exeext
5281 if test "${ac_cv_search_putmsg+set}" = set; then
5282 break
5283 fi
5284 done
5285 if test "${ac_cv_search_putmsg+set}" = set; then
5286 :
5287 else
5288 ac_cv_search_putmsg=no
5289 fi
5290 rm conftest.$ac_ext
5291 LIBS=$ac_func_search_save_LIBS
5292 fi
5293 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5294 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5295 ac_res=$ac_cv_search_putmsg
5296 if test "$ac_res" != no; then
5297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5298
5299 fi
5300
5301
5302
5303 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
5304 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
5305 # Check whether --enable-ipv6 was given.
5306 if test "${enable_ipv6+set}" = set; then
5307 enableval=$enable_ipv6; case "$enableval" in
5308 yes) { 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
5312 cat >>confdefs.h <<\_ACEOF
5313 #define INET6 1
5314 _ACEOF
5315
5316 ipv6=yes
5317 ;;
5318 *)
5319 { echo "$as_me:$LINENO: result: no" >&5
5320 echo "${ECHO_T}no" >&6; }
5321 ipv6=no
5322 ;;
5323 esac
5324 else
5325 if test "$cross_compiling" = yes; then
5326 { echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6; }
5328 ipv6=no
5329
5330 else
5331 cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h. */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 /* AF_INET6 available check */
5338 #include <sys/types.h>
5339 #include <sys/socket.h>
5340 main()
5341 {
5342 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
5343 exit(1);
5344 else
5345 exit(0);
5346 }
5347
5348 _ACEOF
5349 rm -f conftest$ac_exeext
5350 if { (ac_try="$ac_link"
5351 case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354 esac
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_link") 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5360 { (case "(($ac_try" in
5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5363 esac
5364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365 (eval "$ac_try") 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5369 { echo "$as_me:$LINENO: result: yes" >&5
5370 echo "${ECHO_T}yes" >&6; }
5371 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"
5372
5373 cat >>confdefs.h <<\_ACEOF
5374 #define INET6 1
5375 _ACEOF
5376
5377 ipv6=yes
5378 else
5379 echo "$as_me: program exited with status $ac_status" >&5
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5382
5383 ( exit $ac_status )
5384 { echo "$as_me:$LINENO: result: no" >&5
5385 echo "${ECHO_T}no" >&6; }
5386 ipv6=no
5387 fi
5388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5389 fi
5390
5391
5392 fi
5393
5394
5395 ipv6type=unknown
5396 ipv6lib=none
5397 ipv6trylibc=no
5398
5399 if test "$ipv6" = "yes"; then
5400 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
5401 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
5402 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
5403 case $i in
5404 inria)
5405 cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h. */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <netinet/in.h>
5412 #ifdef IPV6_INRIA_VERSION
5413 yes
5414 #endif
5415 _ACEOF
5416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5417 $EGREP "yes" >/dev/null 2>&1; then
5418 ipv6type=$i;
5419 CFLAGS="-DINET6 $CFLAGS"
5420 fi
5421 rm -f conftest*
5422
5423 ;;
5424 kame)
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <netinet/in.h>
5432 #ifdef __KAME__
5433 yes
5434 #endif
5435 _ACEOF
5436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5437 $EGREP "yes" >/dev/null 2>&1; then
5438 ipv6type=$i;
5439 ipv6lib=inet6;
5440 ipv6libdir=/usr/local/v6/lib;
5441 ipv6trylibc=yes;
5442 CFLAGS="-DINET6 $CFLAGS"
5443 fi
5444 rm -f conftest*
5445
5446 ;;
5447 linux-glibc)
5448 cat >conftest.$ac_ext <<_ACEOF
5449 /* confdefs.h. */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 #include <features.h>
5455 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5456 yes
5457 #endif
5458 _ACEOF
5459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5460 $EGREP "yes" >/dev/null 2>&1; then
5461 ipv6type=$i;
5462 CFLAGS="-DINET6 $CFLAGS"
5463 fi
5464 rm -f conftest*
5465
5466 ;;
5467 linux-libinet6)
5468 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
5469 ipv6type=$i
5470 ipv6lib=inet6
5471 ipv6libdir=/usr/inet6/lib
5472 ipv6trylibc=yes;
5473 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
5474 fi
5475 ;;
5476 toshiba)
5477 cat >conftest.$ac_ext <<_ACEOF
5478 /* confdefs.h. */
5479 _ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h. */
5483 #include <sys/param.h>
5484 #ifdef _TOSHIBA_INET6
5485 yes
5486 #endif
5487 _ACEOF
5488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5489 $EGREP "yes" >/dev/null 2>&1; then
5490 ipv6type=$i;
5491 ipv6lib=inet6;
5492 ipv6libdir=/usr/local/v6/lib;
5493 CFLAGS="-DINET6 $CFLAGS"
5494 fi
5495 rm -f conftest*
5496
5497 ;;
5498 v6d)
5499 cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h. */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 #include </usr/local/v6/include/sys/v6config.h>
5506 #ifdef __V6D__
5507 yes
5508 #endif
5509 _ACEOF
5510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5511 $EGREP "yes" >/dev/null 2>&1; then
5512 ipv6type=$i;
5513 ipv6lib=v6;
5514 ipv6libdir=/usr/local/v6/lib;
5515 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5516 fi
5517 rm -f conftest*
5518
5519 ;;
5520 zeta)
5521 cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h. */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 #include <sys/param.h>
5528 #ifdef _ZETA_MINAMI_INET6
5529 yes
5530 #endif
5531 _ACEOF
5532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5533 $EGREP "yes" >/dev/null 2>&1; then
5534 ipv6type=$i;
5535 ipv6lib=inet6;
5536 ipv6libdir=/usr/local/v6/lib;
5537 CFLAGS="-DINET6 $CFLAGS"
5538 fi
5539 rm -f conftest*
5540
5541 ;;
5542 esac
5543 if test "$ipv6type" != "unknown"; then
5544 break
5545 fi
5546 done
5547 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5548 echo "${ECHO_T}$ipv6type" >&6; }
5549 fi
5550
5551 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5552 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5553 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5554 echo "You have $ipv6lib library, using it"
5555 else
5556 if test "$ipv6trylibc" = "yes"; then
5557 echo "You do not have $ipv6lib library, using libc"
5558 else
5559 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5560 echo "You need to fetch lib$ipv6lib.a from appropriate"
5561 echo 'ipv6 kit and compile beforehand.'
5562 exit 1
5563 fi
5564 fi
5565 fi
5566
5567
5568 if test "$ipv6" = "yes"; then
5569 #
5570 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5571 # function in libc; there are "ngetaddrinfo()" and
5572 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5573 # "getaddrinfo" to be either "ngetaddrinfo" or
5574 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5575 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5576 #
5577 # So this test doesn't work on Tru64 5.1, and possibly
5578 # on other 5.x releases. This causes the configure
5579 # script to become confused, and results in libpcap
5580 # being unbuildable.
5581 #
5582 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5583 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5584 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 ac_func_search_save_LIBS=$LIBS
5588 cat >conftest.$ac_ext <<_ACEOF
5589 /* confdefs.h. */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594
5595 /* Override any GCC internal prototype to avoid an error.
5596 Use char because int might match the return type of a GCC
5597 builtin and then its argument prototype would still apply. */
5598 #ifdef __cplusplus
5599 extern "C"
5600 #endif
5601 char getaddrinfo ();
5602 int
5603 main ()
5604 {
5605 return getaddrinfo ();
5606 ;
5607 return 0;
5608 }
5609 _ACEOF
5610 for ac_lib in '' socket; do
5611 if test -z "$ac_lib"; then
5612 ac_res="none required"
5613 else
5614 ac_res=-l$ac_lib
5615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5616 fi
5617 rm -f conftest.$ac_objext conftest$ac_exeext
5618 if { (ac_try="$ac_link"
5619 case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_link") 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest$ac_exeext &&
5634 $as_test_x conftest$ac_exeext; then
5635 ac_cv_search_getaddrinfo=$ac_res
5636 else
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640
5641 fi
5642
5643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5644 conftest$ac_exeext
5645 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5646 break
5647 fi
5648 done
5649 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5650 :
5651 else
5652 ac_cv_search_getaddrinfo=no
5653 fi
5654 rm conftest.$ac_ext
5655 LIBS=$ac_func_search_save_LIBS
5656 fi
5657 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5658 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5659 ac_res=$ac_cv_search_getaddrinfo
5660 if test "$ac_res" != no; then
5661 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5662 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5663 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5664 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667 if test "$cross_compiling" = yes; then
5668 td_cv_buggygetaddrinfo=yes
5669 else
5670 cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h. */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676
5677 #include <sys/types.h>
5678 #include <netdb.h>
5679 #include <string.h>
5680 #include <sys/socket.h>
5681 #include <netinet/in.h>
5682
5683 main()
5684 {
5685 int passive, gaierr, inet4 = 0, inet6 = 0;
5686 struct addrinfo hints, *ai, *aitop;
5687 char straddr[INET6_ADDRSTRLEN], strport[16];
5688
5689 for (passive = 0; passive <= 1; passive++) {
5690 memset(&hints, 0, sizeof(hints));
5691 hints.ai_family = AF_UNSPEC;
5692 hints.ai_flags = passive ? AI_PASSIVE : 0;
5693 hints.ai_socktype = SOCK_STREAM;
5694 hints.ai_protocol = IPPROTO_TCP;
5695 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5696 (void)gai_strerror(gaierr);
5697 goto bad;
5698 }
5699 for (ai = aitop; ai; ai = ai->ai_next) {
5700 if (ai->ai_addr == NULL ||
5701 ai->ai_addrlen == 0 ||
5702 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5703 straddr, sizeof(straddr), strport, sizeof(strport),
5704 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5705 goto bad;
5706 }
5707 switch (ai->ai_family) {
5708 case AF_INET:
5709 if (strcmp(strport, "54321") != 0) {
5710 goto bad;
5711 }
5712 if (passive) {
5713 if (strcmp(straddr, "0.0.0.0") != 0) {
5714 goto bad;
5715 }
5716 } else {
5717 if (strcmp(straddr, "127.0.0.1") != 0) {
5718 goto bad;
5719 }
5720 }
5721 inet4++;
5722 break;
5723 case AF_INET6:
5724 if (strcmp(strport, "54321") != 0) {
5725 goto bad;
5726 }
5727 if (passive) {
5728 if (strcmp(straddr, "::") != 0) {
5729 goto bad;
5730 }
5731 } else {
5732 if (strcmp(straddr, "::1") != 0) {
5733 goto bad;
5734 }
5735 }
5736 inet6++;
5737 break;
5738 case AF_UNSPEC:
5739 goto bad;
5740 break;
5741 #ifdef AF_UNIX
5742 case AF_UNIX:
5743 #else
5744 #ifdef AF_LOCAL
5745 case AF_LOCAL:
5746 #endif
5747 #endif
5748 default:
5749 /* another family support? */
5750 break;
5751 }
5752 }
5753 }
5754
5755 /* supported family should be 2, unsupported family should be 0 */
5756 if (!(inet4 == 0 || inet4 == 2))
5757 goto bad;
5758 if (!(inet6 == 0 || inet6 == 2))
5759 goto bad;
5760
5761 if (aitop)
5762 freeaddrinfo(aitop);
5763 exit(0);
5764
5765 bad:
5766 if (aitop)
5767 freeaddrinfo(aitop);
5768 exit(1);
5769 }
5770
5771 _ACEOF
5772 rm -f conftest$ac_exeext
5773 if { (ac_try="$ac_link"
5774 case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_link") 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5783 { (case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5786 esac
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_try") 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 td_cv_buggygetaddrinfo=no
5793 else
5794 echo "$as_me: program exited with status $ac_status" >&5
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5797
5798 ( exit $ac_status )
5799 td_cv_buggygetaddrinfo=yes
5800 fi
5801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5802 fi
5803
5804
5805 fi
5806
5807 if test "$td_cv_buggygetaddrinfo" = no; then
5808 { echo "$as_me:$LINENO: result: good" >&5
5809 echo "${ECHO_T}good" >&6; }
5810 else
5811 { echo "$as_me:$LINENO: result: buggy" >&5
5812 echo "${ECHO_T}buggy" >&6; }
5813 fi
5814
5815 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5816 #
5817 # XXX - it doesn't appear that "ipv6type" can ever be
5818 # set to "linux". Should this be testing for
5819 # "linux-glibc", or for that *or* "linux-libinet6"?
5820 # If the latter, note that "linux-libinet6" is also
5821 # the type given to some non-Linux OSes.
5822 #
5823 if test "$ipv6type" != "linux"; then
5824 echo 'Fatal: You must get working getaddrinfo() function.'
5825 echo ' or you can specify "--disable-ipv6"'.
5826 exit 1
5827 else
5828 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5829 echo ' Better upgrade your system library to newest version'
5830 echo ' of GNU C library (aka glibc).'
5831 fi
5832 fi
5833
5834 fi
5835
5836
5837 for ac_func in getnameinfo
5838 do
5839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845 cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h. */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5853 #define $ac_func innocuous_$ac_func
5854
5855 /* System header to define __stub macros and hopefully few prototypes,
5856 which can conflict with char $ac_func (); below.
5857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5858 <limits.h> exists even on freestanding compilers. */
5859
5860 #ifdef __STDC__
5861 # include <limits.h>
5862 #else
5863 # include <assert.h>
5864 #endif
5865
5866 #undef $ac_func
5867
5868 /* Override any GCC internal prototype to avoid an error.
5869 Use char because int might match the return type of a GCC
5870 builtin and then its argument prototype would still apply. */
5871 #ifdef __cplusplus
5872 extern "C"
5873 #endif
5874 char $ac_func ();
5875 /* The GNU C library defines this for functions which it implements
5876 to always fail with ENOSYS. Some functions are actually named
5877 something starting with __ and the normal name is an alias. */
5878 #if defined __stub_$ac_func || defined __stub___$ac_func
5879 choke me
5880 #endif
5881
5882 int
5883 main ()
5884 {
5885 return $ac_func ();
5886 ;
5887 return 0;
5888 }
5889 _ACEOF
5890 rm -f conftest.$ac_objext conftest$ac_exeext
5891 if { (ac_try="$ac_link"
5892 case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_link") 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && {
5904 test -z "$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest$ac_exeext &&
5907 $as_test_x conftest$ac_exeext; then
5908 eval "$as_ac_var=yes"
5909 else
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5912
5913 eval "$as_ac_var=no"
5914 fi
5915
5916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5917 conftest$ac_exeext conftest.$ac_ext
5918 fi
5919 ac_res=`eval echo '${'$as_ac_var'}'`
5920 { echo "$as_me:$LINENO: result: $ac_res" >&5
5921 echo "${ECHO_T}$ac_res" >&6; }
5922 if test `eval echo '${'$as_ac_var'}'` = yes; then
5923 cat >>confdefs.h <<_ACEOF
5924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5925 _ACEOF
5926
5927 else
5928 case " $LIBOBJS " in
5929 *" $ac_func.$ac_objext "* ) ;;
5930 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5931 ;;
5932 esac
5933
5934 fi
5935 done
5936
5937
5938 fi
5939
5940 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5941 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5942 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945 cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h. */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 #include <netdnet/dnetdb.h>
5952
5953 _ACEOF
5954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5955 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5956 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5957 else
5958 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5959 fi
5960 rm -f conftest*
5961
5962 fi
5963 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5964 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5965 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5966
5967 cat >>confdefs.h <<\_ACEOF
5968 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5969 _ACEOF
5970
5971 fi
5972
5973
5974 { echo "$as_me:$LINENO: checking for addrinfo" >&5
5975 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5976 if test "${ac_cv_addrinfo+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985
5986 # include <netdb.h>
5987 int
5988 main ()
5989 {
5990 struct addrinfo a
5991 ;
5992 return 0;
5993 }
5994 _ACEOF
5995 rm -f conftest.$ac_objext
5996 if { (ac_try="$ac_compile"
5997 case "(($ac_try" in
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6000 esac
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_compile") 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && {
6009 test -z "$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 } && test -s conftest.$ac_objext; then
6012 ac_cv_addrinfo=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 ac_cv_addrinfo=no
6018 fi
6019
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021 fi
6022
6023 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6024 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
6025 if test $ac_cv_addrinfo = yes; then
6026
6027 cat >>confdefs.h <<\_ACEOF
6028 #define HAVE_ADDRINFO 1
6029 _ACEOF
6030
6031 else
6032
6033 cat >>confdefs.h <<\_ACEOF
6034 #define NEED_ADDRINFO_H 1
6035 _ACEOF
6036
6037 fi
6038
6039 if test "$ac_cv_addrinfo" = no; then
6040 missing_includes=yes
6041 fi
6042
6043
6044 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6045 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
6046 if test "${ac_cv_maxserv+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #include <netdb.h>
6056 #ifdef NI_MAXSERV
6057 yes
6058 #endif
6059 _ACEOF
6060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6061 $EGREP "yes" >/dev/null 2>&1; then
6062 ac_cv_maxserv=yes
6063 else
6064 ac_cv_maxserv=no
6065 fi
6066 rm -f conftest*
6067
6068 fi
6069
6070 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6071 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
6072 if test $ac_cv_maxserv != yes; then
6073 cat >>confdefs.h <<\_ACEOF
6074 #define NEED_ADDRINFO_H 1
6075 _ACEOF
6076
6077 fi
6078
6079 if test "$ac_cv_maxserv" = no; then
6080 missing_includes=yes
6081 fi
6082
6083
6084 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6085 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
6086 if test "${ac_cv_namereqd+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h. */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 #include <netdb.h>
6096 #ifdef NI_NOFQDN
6097 yes
6098 #endif
6099 _ACEOF
6100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6101 $EGREP "yes" >/dev/null 2>&1; then
6102 ac_cv_namereqd=yes
6103 else
6104 ac_cv_namereqd=no
6105 fi
6106 rm -f conftest*
6107
6108 fi
6109
6110 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6111 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
6112 if test $ac_cv_namereqd != yes; then
6113 cat >>confdefs.h <<\_ACEOF
6114 #define NEED_ADDRINFO_H 1
6115 _ACEOF
6116
6117 fi
6118
6119 if test "$ac_cv_namereqd" = no; then
6120 missing_includes=yes
6121 fi
6122
6123
6124 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6125 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
6126 if test "${ac_cv_sa_storage+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h. */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135
6136 # include <sys/types.h>
6137 # include <sys/socket.h>
6138 int
6139 main ()
6140 {
6141 struct sockaddr_storage s
6142 ;
6143 return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6148 case "(($ac_try" in
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6151 esac
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_compile") 2>conftest.er1
6154 ac_status=$?
6155 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && {
6160 test -z "$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6162 } && test -s conftest.$ac_objext; then
6163 ac_cv_sa_storage=yes
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168 ac_cv_sa_storage=no
6169 fi
6170
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 fi
6173
6174 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6175 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
6176 if test $ac_cv_sa_storage = yes; then
6177
6178 cat >>confdefs.h <<\_ACEOF
6179 #define HAVE_SOCKADDR_STORAGE 1
6180 _ACEOF
6181
6182 fi
6183
6184 if test "$ac_cv_sa_storage" = no; then
6185 missing_includes=yes
6186 fi
6187
6188
6189
6190
6191
6192
6193
6194 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6195 do
6196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6210 #define $ac_func innocuous_$ac_func
6211
6212 /* System header to define __stub macros and hopefully few prototypes,
6213 which can conflict with char $ac_func (); below.
6214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6215 <limits.h> exists even on freestanding compilers. */
6216
6217 #ifdef __STDC__
6218 # include <limits.h>
6219 #else
6220 # include <assert.h>
6221 #endif
6222
6223 #undef $ac_func
6224
6225 /* Override any GCC internal prototype to avoid an error.
6226 Use char because int might match the return type of a GCC
6227 builtin and then its argument prototype would still apply. */
6228 #ifdef __cplusplus
6229 extern "C"
6230 #endif
6231 char $ac_func ();
6232 /* The GNU C library defines this for functions which it implements
6233 to always fail with ENOSYS. Some functions are actually named
6234 something starting with __ and the normal name is an alias. */
6235 #if defined __stub_$ac_func || defined __stub___$ac_func
6236 choke me
6237 #endif
6238
6239 int
6240 main ()
6241 {
6242 return $ac_func ();
6243 ;
6244 return 0;
6245 }
6246 _ACEOF
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (ac_try="$ac_link"
6249 case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_link") 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest$ac_exeext &&
6264 $as_test_x conftest$ac_exeext; then
6265 eval "$as_ac_var=yes"
6266 else
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 eval "$as_ac_var=no"
6271 fi
6272
6273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6274 conftest$ac_exeext conftest.$ac_ext
6275 fi
6276 ac_res=`eval echo '${'$as_ac_var'}'`
6277 { echo "$as_me:$LINENO: result: $ac_res" >&5
6278 echo "${ECHO_T}$ac_res" >&6; }
6279 if test `eval echo '${'$as_ac_var'}'` = yes; then
6280 cat >>confdefs.h <<_ACEOF
6281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6282 _ACEOF
6283
6284 else
6285 case " $LIBOBJS " in
6286 *" $ac_func.$ac_objext "* ) ;;
6287 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6288 ;;
6289 esac
6290
6291 fi
6292 done
6293
6294
6295
6296
6297
6298 for ac_func in fork vfork strftime
6299 do
6300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h. */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6314 #define $ac_func innocuous_$ac_func
6315
6316 /* System header to define __stub macros and hopefully few prototypes,
6317 which can conflict with char $ac_func (); below.
6318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6319 <limits.h> exists even on freestanding compilers. */
6320
6321 #ifdef __STDC__
6322 # include <limits.h>
6323 #else
6324 # include <assert.h>
6325 #endif
6326
6327 #undef $ac_func
6328
6329 /* Override any GCC internal prototype to avoid an error.
6330 Use char because int might match the return type of a GCC
6331 builtin and then its argument prototype would still apply. */
6332 #ifdef __cplusplus
6333 extern "C"
6334 #endif
6335 char $ac_func ();
6336 /* The GNU C library defines this for functions which it implements
6337 to always fail with ENOSYS. Some functions are actually named
6338 something starting with __ and the normal name is an alias. */
6339 #if defined __stub_$ac_func || defined __stub___$ac_func
6340 choke me
6341 #endif
6342
6343 int
6344 main ()
6345 {
6346 return $ac_func ();
6347 ;
6348 return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext conftest$ac_exeext
6352 if { (ac_try="$ac_link"
6353 case "(($ac_try" in
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6356 esac
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_link") 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest$ac_exeext &&
6368 $as_test_x conftest$ac_exeext; then
6369 eval "$as_ac_var=yes"
6370 else
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6373
6374 eval "$as_ac_var=no"
6375 fi
6376
6377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6378 conftest$ac_exeext conftest.$ac_ext
6379 fi
6380 ac_res=`eval echo '${'$as_ac_var'}'`
6381 { echo "$as_me:$LINENO: result: $ac_res" >&5
6382 echo "${ECHO_T}$ac_res" >&6; }
6383 if test `eval echo '${'$as_ac_var'}'` = yes; then
6384 cat >>confdefs.h <<_ACEOF
6385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6386 _ACEOF
6387
6388 fi
6389 done
6390
6391
6392
6393 for ac_func in setlinebuf alarm
6394 do
6395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h. */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6409 #define $ac_func innocuous_$ac_func
6410
6411 /* System header to define __stub macros and hopefully few prototypes,
6412 which can conflict with char $ac_func (); below.
6413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6414 <limits.h> exists even on freestanding compilers. */
6415
6416 #ifdef __STDC__
6417 # include <limits.h>
6418 #else
6419 # include <assert.h>
6420 #endif
6421
6422 #undef $ac_func
6423
6424 /* Override any GCC internal prototype to avoid an error.
6425 Use char because int might match the return type of a GCC
6426 builtin and then its argument prototype would still apply. */
6427 #ifdef __cplusplus
6428 extern "C"
6429 #endif
6430 char $ac_func ();
6431 /* The GNU C library defines this for functions which it implements
6432 to always fail with ENOSYS. Some functions are actually named
6433 something starting with __ and the normal name is an alias. */
6434 #if defined __stub_$ac_func || defined __stub___$ac_func
6435 choke me
6436 #endif
6437
6438 int
6439 main ()
6440 {
6441 return $ac_func ();
6442 ;
6443 return 0;
6444 }
6445 _ACEOF
6446 rm -f conftest.$ac_objext conftest$ac_exeext
6447 if { (ac_try="$ac_link"
6448 case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_link") 2>conftest.er1
6454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } && {
6460 test -z "$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6462 } && test -s conftest$ac_exeext &&
6463 $as_test_x conftest$ac_exeext; then
6464 eval "$as_ac_var=yes"
6465 else
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6468
6469 eval "$as_ac_var=no"
6470 fi
6471
6472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6473 conftest$ac_exeext conftest.$ac_ext
6474 fi
6475 ac_res=`eval echo '${'$as_ac_var'}'`
6476 { echo "$as_me:$LINENO: result: $ac_res" >&5
6477 echo "${ECHO_T}$ac_res" >&6; }
6478 if test `eval echo '${'$as_ac_var'}'` = yes; then
6479 cat >>confdefs.h <<_ACEOF
6480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6481 _ACEOF
6482
6483 fi
6484 done
6485
6486
6487 needsnprintf=no
6488
6489
6490 for ac_func in vsnprintf snprintf
6491 do
6492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498 cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h. */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6506 #define $ac_func innocuous_$ac_func
6507
6508 /* System header to define __stub macros and hopefully few prototypes,
6509 which can conflict with char $ac_func (); below.
6510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6511 <limits.h> exists even on freestanding compilers. */
6512
6513 #ifdef __STDC__
6514 # include <limits.h>
6515 #else
6516 # include <assert.h>
6517 #endif
6518
6519 #undef $ac_func
6520
6521 /* Override any GCC internal prototype to avoid an error.
6522 Use char because int might match the return type of a GCC
6523 builtin and then its argument prototype would still apply. */
6524 #ifdef __cplusplus
6525 extern "C"
6526 #endif
6527 char $ac_func ();
6528 /* The GNU C library defines this for functions which it implements
6529 to always fail with ENOSYS. Some functions are actually named
6530 something starting with __ and the normal name is an alias. */
6531 #if defined __stub_$ac_func || defined __stub___$ac_func
6532 choke me
6533 #endif
6534
6535 int
6536 main ()
6537 {
6538 return $ac_func ();
6539 ;
6540 return 0;
6541 }
6542 _ACEOF
6543 rm -f conftest.$ac_objext conftest$ac_exeext
6544 if { (ac_try="$ac_link"
6545 case "(($ac_try" in
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6548 esac
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_link") 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } && {
6557 test -z "$ac_c_werror_flag" ||
6558 test ! -s conftest.err
6559 } && test -s conftest$ac_exeext &&
6560 $as_test_x conftest$ac_exeext; then
6561 eval "$as_ac_var=yes"
6562 else
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6565
6566 eval "$as_ac_var=no"
6567 fi
6568
6569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6570 conftest$ac_exeext conftest.$ac_ext
6571 fi
6572 ac_res=`eval echo '${'$as_ac_var'}'`
6573 { echo "$as_me:$LINENO: result: $ac_res" >&5
6574 echo "${ECHO_T}$ac_res" >&6; }
6575 if test `eval echo '${'$as_ac_var'}'` = yes; then
6576 cat >>confdefs.h <<_ACEOF
6577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6578 _ACEOF
6579
6580 else
6581 needsnprintf=yes
6582 fi
6583 done
6584
6585 if test $needsnprintf = yes; then
6586 case " $LIBOBJS " in
6587 *" snprintf.$ac_objext "* ) ;;
6588 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6589 ;;
6590 esac
6591
6592 fi
6593
6594
6595 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6596 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6597 if test "${ac_cv_type_signal+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600 cat >conftest.$ac_ext <<_ACEOF
6601 /* confdefs.h. */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 #include <sys/types.h>
6607 #include <signal.h>
6608
6609 int
6610 main ()
6611 {
6612 return *(signal (0, 0)) (0) == 1;
6613 ;
6614 return 0;
6615 }
6616 _ACEOF
6617 rm -f conftest.$ac_objext
6618 if { (ac_try="$ac_compile"
6619 case "(($ac_try" in
6620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621 *) ac_try_echo=$ac_try;;
6622 esac
6623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624 (eval "$ac_compile") 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } && {
6631 test -z "$ac_c_werror_flag" ||
6632 test ! -s conftest.err
6633 } && test -s conftest.$ac_objext; then
6634 ac_cv_type_signal=int
6635 else
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6638
6639 ac_cv_type_signal=void
6640 fi
6641
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 fi
6644 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6645 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6646
6647 cat >>confdefs.h <<_ACEOF
6648 #define RETSIGTYPE $ac_cv_type_signal
6649 _ACEOF
6650
6651
6652 if test "$ac_cv_type_signal" = void ; then
6653
6654 cat >>confdefs.h <<\_ACEOF
6655 #define RETSIGVAL
6656 _ACEOF
6657
6658 else
6659
6660 cat >>confdefs.h <<\_ACEOF
6661 #define RETSIGVAL (0)
6662 _ACEOF
6663
6664 fi
6665 case "$host_os" in
6666
6667 irix*)
6668
6669 cat >>confdefs.h <<\_ACEOF
6670 #define _BSD_SIGNALS 1
6671 _ACEOF
6672
6673 ;;
6674
6675 *)
6676
6677 for ac_func in sigaction
6678 do
6679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6693 #define $ac_func innocuous_$ac_func
6694
6695 /* System header to define __stub macros and hopefully few prototypes,
6696 which can conflict with char $ac_func (); below.
6697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6698 <limits.h> exists even on freestanding compilers. */
6699
6700 #ifdef __STDC__
6701 # include <limits.h>
6702 #else
6703 # include <assert.h>
6704 #endif
6705
6706 #undef $ac_func
6707
6708 /* Override any GCC internal prototype to avoid an error.
6709 Use char because int might match the return type of a GCC
6710 builtin and then its argument prototype would still apply. */
6711 #ifdef __cplusplus
6712 extern "C"
6713 #endif
6714 char $ac_func ();
6715 /* The GNU C library defines this for functions which it implements
6716 to always fail with ENOSYS. Some functions are actually named
6717 something starting with __ and the normal name is an alias. */
6718 #if defined __stub_$ac_func || defined __stub___$ac_func
6719 choke me
6720 #endif
6721
6722 int
6723 main ()
6724 {
6725 return $ac_func ();
6726 ;
6727 return 0;
6728 }
6729 _ACEOF
6730 rm -f conftest.$ac_objext conftest$ac_exeext
6731 if { (ac_try="$ac_link"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_link") 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest$ac_exeext &&
6747 $as_test_x conftest$ac_exeext; then
6748 eval "$as_ac_var=yes"
6749 else
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 eval "$as_ac_var=no"
6754 fi
6755
6756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6757 conftest$ac_exeext conftest.$ac_ext
6758 fi
6759 ac_res=`eval echo '${'$as_ac_var'}'`
6760 { echo "$as_me:$LINENO: result: $ac_res" >&5
6761 echo "${ECHO_T}$ac_res" >&6; }
6762 if test `eval echo '${'$as_ac_var'}'` = yes; then
6763 cat >>confdefs.h <<_ACEOF
6764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6765 _ACEOF
6766
6767 fi
6768 done
6769
6770 if test $ac_cv_func_sigaction = no ; then
6771
6772 for ac_func in sigset
6773 do
6774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6788 #define $ac_func innocuous_$ac_func
6789
6790 /* System header to define __stub macros and hopefully few prototypes,
6791 which can conflict with char $ac_func (); below.
6792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6793 <limits.h> exists even on freestanding compilers. */
6794
6795 #ifdef __STDC__
6796 # include <limits.h>
6797 #else
6798 # include <assert.h>
6799 #endif
6800
6801 #undef $ac_func
6802
6803 /* Override any GCC internal prototype to avoid an error.
6804 Use char because int might match the return type of a GCC
6805 builtin and then its argument prototype would still apply. */
6806 #ifdef __cplusplus
6807 extern "C"
6808 #endif
6809 char $ac_func ();
6810 /* The GNU C library defines this for functions which it implements
6811 to always fail with ENOSYS. Some functions are actually named
6812 something starting with __ and the normal name is an alias. */
6813 #if defined __stub_$ac_func || defined __stub___$ac_func
6814 choke me
6815 #endif
6816
6817 int
6818 main ()
6819 {
6820 return $ac_func ();
6821 ;
6822 return 0;
6823 }
6824 _ACEOF
6825 rm -f conftest.$ac_objext conftest$ac_exeext
6826 if { (ac_try="$ac_link"
6827 case "(($ac_try" in
6828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829 *) ac_try_echo=$ac_try;;
6830 esac
6831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6832 (eval "$ac_link") 2>conftest.er1
6833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && {
6839 test -z "$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 } && test -s conftest$ac_exeext &&
6842 $as_test_x conftest$ac_exeext; then
6843 eval "$as_ac_var=yes"
6844 else
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6847
6848 eval "$as_ac_var=no"
6849 fi
6850
6851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6852 conftest$ac_exeext conftest.$ac_ext
6853 fi
6854 ac_res=`eval echo '${'$as_ac_var'}'`
6855 { echo "$as_me:$LINENO: result: $ac_res" >&5
6856 echo "${ECHO_T}$ac_res" >&6; }
6857 if test `eval echo '${'$as_ac_var'}'` = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6860 _ACEOF
6861
6862 fi
6863 done
6864
6865 fi
6866 ;;
6867 esac
6868
6869 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6870 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6871 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874 ac_func_search_save_LIBS=$LIBS
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881
6882 /* Override any GCC internal prototype to avoid an error.
6883 Use char because int might match the return type of a GCC
6884 builtin and then its argument prototype would still apply. */
6885 #ifdef __cplusplus
6886 extern "C"
6887 #endif
6888 char dnet_htoa ();
6889 int
6890 main ()
6891 {
6892 return dnet_htoa ();
6893 ;
6894 return 0;
6895 }
6896 _ACEOF
6897 for ac_lib in '' dnet; do
6898 if test -z "$ac_lib"; then
6899 ac_res="none required"
6900 else
6901 ac_res=-l$ac_lib
6902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6903 fi
6904 rm -f conftest.$ac_objext conftest$ac_exeext
6905 if { (ac_try="$ac_link"
6906 case "(($ac_try" in
6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6909 esac
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911 (eval "$ac_link") 2>conftest.er1
6912 ac_status=$?
6913 grep -v '^ *+' conftest.er1 >conftest.err
6914 rm -f conftest.er1
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && {
6918 test -z "$ac_c_werror_flag" ||
6919 test ! -s conftest.err
6920 } && test -s conftest$ac_exeext &&
6921 $as_test_x conftest$ac_exeext; then
6922 ac_cv_search_dnet_htoa=$ac_res
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6926
6927
6928 fi
6929
6930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6931 conftest$ac_exeext
6932 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6933 break
6934 fi
6935 done
6936 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6937 :
6938 else
6939 ac_cv_search_dnet_htoa=no
6940 fi
6941 rm conftest.$ac_ext
6942 LIBS=$ac_func_search_save_LIBS
6943 fi
6944 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6945 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6946 ac_res=$ac_cv_search_dnet_htoa
6947 if test "$ac_res" != no; then
6948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6949
6950 cat >>confdefs.h <<\_ACEOF
6951 #define HAVE_DNET_HTOA 1
6952 _ACEOF
6953
6954 fi
6955
6956
6957
6958 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6959 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6960 if test "${ac_cv_lib_rpc_main+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 ac_check_lib_save_LIBS=$LIBS
6964 LIBS="-lrpc $LIBS"
6965 cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h. */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971
6972
6973 int
6974 main ()
6975 {
6976 return main ();
6977 ;
6978 return 0;
6979 }
6980 _ACEOF
6981 rm -f conftest.$ac_objext conftest$ac_exeext
6982 if { (ac_try="$ac_link"
6983 case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986 esac
6987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_link") 2>conftest.er1
6989 ac_status=$?
6990 grep -v '^ *+' conftest.er1 >conftest.err
6991 rm -f conftest.er1
6992 cat conftest.err >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } && {
6995 test -z "$ac_c_werror_flag" ||
6996 test ! -s conftest.err
6997 } && test -s conftest$ac_exeext &&
6998 $as_test_x conftest$ac_exeext; then
6999 ac_cv_lib_rpc_main=yes
7000 else
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7003
7004 ac_cv_lib_rpc_main=no
7005 fi
7006
7007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7008 conftest$ac_exeext conftest.$ac_ext
7009 LIBS=$ac_check_lib_save_LIBS
7010 fi
7011 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7012 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
7013 if test $ac_cv_lib_rpc_main = yes; then
7014 cat >>confdefs.h <<_ACEOF
7015 #define HAVE_LIBRPC 1
7016 _ACEOF
7017
7018 LIBS="-lrpc $LIBS"
7019
7020 fi
7021
7022 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7023 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
7024 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027 ac_func_search_save_LIBS=$LIBS
7028 cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h. */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034
7035 /* Override any GCC internal prototype to avoid an error.
7036 Use char because int might match the return type of a GCC
7037 builtin and then its argument prototype would still apply. */
7038 #ifdef __cplusplus
7039 extern "C"
7040 #endif
7041 char getrpcbynumber ();
7042 int
7043 main ()
7044 {
7045 return getrpcbynumber ();
7046 ;
7047 return 0;
7048 }
7049 _ACEOF
7050 for ac_lib in '' nsl; do
7051 if test -z "$ac_lib"; then
7052 ac_res="none required"
7053 else
7054 ac_res=-l$ac_lib
7055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7056 fi
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (ac_try="$ac_link"
7059 case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062 esac
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_link") 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest$ac_exeext &&
7074 $as_test_x conftest$ac_exeext; then
7075 ac_cv_search_getrpcbynumber=$ac_res
7076 else
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080
7081 fi
7082
7083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7084 conftest$ac_exeext
7085 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7086 break
7087 fi
7088 done
7089 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7090 :
7091 else
7092 ac_cv_search_getrpcbynumber=no
7093 fi
7094 rm conftest.$ac_ext
7095 LIBS=$ac_func_search_save_LIBS
7096 fi
7097 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7098 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
7099 ac_res=$ac_cv_search_getrpcbynumber
7100 if test "$ac_res" != no; then
7101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7102
7103 cat >>confdefs.h <<\_ACEOF
7104 #define HAVE_GETRPCBYNUMBER 1
7105 _ACEOF
7106
7107 fi
7108
7109
7110
7111
7112 LBL_LIBS="$LIBS"
7113 pfopen=/usr/examples/packetfilter/pfopen.c
7114 if test -f $pfopen ; then
7115
7116 for ac_func in pfopen
7117 do
7118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h. */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7132 #define $ac_func innocuous_$ac_func
7133
7134 /* System header to define __stub macros and hopefully few prototypes,
7135 which can conflict with char $ac_func (); below.
7136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7137 <limits.h> exists even on freestanding compilers. */
7138
7139 #ifdef __STDC__
7140 # include <limits.h>
7141 #else
7142 # include <assert.h>
7143 #endif
7144
7145 #undef $ac_func
7146
7147 /* Override any GCC internal prototype to avoid an error.
7148 Use char because int might match the return type of a GCC
7149 builtin and then its argument prototype would still apply. */
7150 #ifdef __cplusplus
7151 extern "C"
7152 #endif
7153 char $ac_func ();
7154 /* The GNU C library defines this for functions which it implements
7155 to always fail with ENOSYS. Some functions are actually named
7156 something starting with __ and the normal name is an alias. */
7157 #if defined __stub_$ac_func || defined __stub___$ac_func
7158 choke me
7159 #endif
7160
7161 int
7162 main ()
7163 {
7164 return $ac_func ();
7165 ;
7166 return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest.$ac_objext conftest$ac_exeext
7170 if { (ac_try="$ac_link"
7171 case "(($ac_try" in
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_link") 2>conftest.er1
7177 ac_status=$?
7178 grep -v '^ *+' conftest.er1 >conftest.err
7179 rm -f conftest.er1
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } && {
7183 test -z "$ac_c_werror_flag" ||
7184 test ! -s conftest.err
7185 } && test -s conftest$ac_exeext &&
7186 $as_test_x conftest$ac_exeext; then
7187 eval "$as_ac_var=yes"
7188 else
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7191
7192 eval "$as_ac_var=no"
7193 fi
7194
7195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7196 conftest$ac_exeext conftest.$ac_ext
7197 fi
7198 ac_res=`eval echo '${'$as_ac_var'}'`
7199 { echo "$as_me:$LINENO: result: $ac_res" >&5
7200 echo "${ECHO_T}$ac_res" >&6; }
7201 if test `eval echo '${'$as_ac_var'}'` = yes; then
7202 cat >>confdefs.h <<_ACEOF
7203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7204 _ACEOF
7205
7206 fi
7207 done
7208
7209 if test $ac_cv_func_pfopen = "no" ; then
7210 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
7211 echo "${ECHO_T}Using $pfopen" >&6; }
7212 LIBS="$LIBS $pfopen"
7213 fi
7214 fi
7215 { echo "$as_me:$LINENO: checking for local pcap library" >&5
7216 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
7217 libpcap=FAIL
7218 lastdir=FAIL
7219 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7220 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
7221 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7222 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
7223 sed -e 's/-PRE-GIT$//' `
7224 if test $lastdir = $basedir ; then
7225 continue;
7226 fi
7227 lastdir=$dir
7228 if test -r $dir/libpcap.a ; then
7229 libpcap=$dir/libpcap.a
7230 d=$dir
7231 fi
7232 done
7233 if test $libpcap = FAIL ; then
7234 { echo "$as_me:$LINENO: result: not found" >&5
7235 echo "${ECHO_T}not found" >&6; }
7236
7237 #
7238 # Look for pcap-config.
7239 #
7240 if test -n "$ac_tool_prefix"; then
7241 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7242 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248 case $PCAP_CONFIG in
7249 [\\/]* | ?:[\\/]*)
7250 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7251 ;;
7252 *)
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7263 fi
7264 done
7265 done
7266 IFS=$as_save_IFS
7267
7268 ;;
7269 esac
7270 fi
7271 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7272 if test -n "$PCAP_CONFIG"; then
7273 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7274 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7275 else
7276 { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7278 fi
7279
7280
7281 fi
7282 if test -z "$ac_cv_path_PCAP_CONFIG"; then
7283 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
7284 # Extract the first word of "pcap-config", so it can be a program name with args.
7285 set dummy pcap-config; ac_word=$2
7286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7288 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291 case $ac_pt_PCAP_CONFIG in
7292 [\\/]* | ?:[\\/]*)
7293 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7294 ;;
7295 *)
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307 done
7308 done
7309 IFS=$as_save_IFS
7310
7311 ;;
7312 esac
7313 fi
7314 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
7315 if test -n "$ac_pt_PCAP_CONFIG"; then
7316 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7317 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7318 else
7319 { echo "$as_me:$LINENO: result: no" >&5
7320 echo "${ECHO_T}no" >&6; }
7321 fi
7322
7323 if test "x$ac_pt_PCAP_CONFIG" = x; then
7324 PCAP_CONFIG=""
7325 else
7326 case $cross_compiling:$ac_tool_warned in
7327 yes:)
7328 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7329 whose name does not start with the host triplet. If you think this
7330 configuration is useful to you, please write to autoconf@gnu.org." >&5
7331 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7332 whose name does not start with the host triplet. If you think this
7333 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7334 ac_tool_warned=yes ;;
7335 esac
7336 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
7337 fi
7338 else
7339 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
7340 fi
7341
7342 if test -n "$PCAP_CONFIG" ; then
7343 #
7344 # Found - use it to get the include flags for
7345 # libpcap and the flags to link with libpcap.
7346 #
7347 # Please read section 11.6 "Shell Substitutions"
7348 # in the autoconf manual before doing anything
7349 # to this that involves quoting. Especially note
7350 # the statement "There is just no portable way to use
7351 # double-quoted strings inside double-quoted back-quoted
7352 # expressions (pfew!)."
7353 #
7354 cflags=`"$PCAP_CONFIG" --cflags`
7355 V_INCLS="$cflags $V_INCLS"
7356 libpcap=`"$PCAP_CONFIG" --libs`
7357 else
7358 #
7359 # Not found; look for pcap.
7360 #
7361 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7362 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7363 if test "${ac_cv_lib_pcap_main+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 ac_check_lib_save_LIBS=$LIBS
7367 LIBS="-lpcap $LIBS"
7368 cat >conftest.$ac_ext <<_ACEOF
7369 /* confdefs.h. */
7370 _ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374
7375
7376 int
7377 main ()
7378 {
7379 return main ();
7380 ;
7381 return 0;
7382 }
7383 _ACEOF
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (ac_try="$ac_link"
7386 case "(($ac_try" in
7387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7388 *) ac_try_echo=$ac_try;;
7389 esac
7390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7391 (eval "$ac_link") 2>conftest.er1
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } && {
7398 test -z "$ac_c_werror_flag" ||
7399 test ! -s conftest.err
7400 } && test -s conftest$ac_exeext &&
7401 $as_test_x conftest$ac_exeext; then
7402 ac_cv_lib_pcap_main=yes
7403 else
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7406
7407 ac_cv_lib_pcap_main=no
7408 fi
7409
7410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7411 conftest$ac_exeext conftest.$ac_ext
7412 LIBS=$ac_check_lib_save_LIBS
7413 fi
7414 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7415 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7416 if test $ac_cv_lib_pcap_main = yes; then
7417 libpcap="-lpcap"
7418 fi
7419
7420 if test $libpcap = FAIL ; then
7421 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7422 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7423 { (exit 1); exit 1; }; }
7424 fi
7425 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7426 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7427 if test \( ! -r /usr/local/include/pcap.h \) -a \
7428 \( ! -r /usr/include/pcap.h \); then
7429 if test -r /usr/local/include/pcap/pcap.h; then
7430 d="/usr/local/include/pcap"
7431 elif test -r /usr/include/pcap/pcap.h; then
7432 d="/usr/include/pcap"
7433 fi
7434 fi
7435 if test -z "$d" ; then
7436 { echo "$as_me:$LINENO: result: not found" >&5
7437 echo "${ECHO_T}not found" >&6; }
7438 else
7439 V_INCLS="-I$d $V_INCLS"
7440 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7441 echo "${ECHO_T}found -- -I$d added" >&6; }
7442 fi
7443 fi
7444 else
7445 V_PCAPDEP=$libpcap
7446 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7447 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7448 if test -r $d/pcap.h; then
7449 V_INCLS="-I$d $V_INCLS"
7450 elif test -r $places/pcap.h; then
7451 V_INCLS="-I$places $V_INCLS"
7452 else
7453 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7454 echo "$as_me: error: cannot find pcap.h" >&2;}
7455 { (exit see INSTALL); exit see INSTALL; }; }
7456 fi
7457 { echo "$as_me:$LINENO: result: $libpcap" >&5
7458 echo "${ECHO_T}$libpcap" >&6; }
7459 # Extract the first word of "pcap-config", so it can be a program name with args.
7460 set dummy pcap-config; ac_word=$2
7461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466 case $PCAP_CONFIG in
7467 [\\/]* | ?:[\\/]*)
7468 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7469 ;;
7470 *)
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $d
7473 do
7474 IFS=$as_save_IFS
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7478 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 break 2
7481 fi
7482 done
7483 done
7484 IFS=$as_save_IFS
7485
7486 ;;
7487 esac
7488 fi
7489 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7490 if test -n "$PCAP_CONFIG"; then
7491 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7492 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7493 else
7494 { echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6; }
7496 fi
7497
7498
7499 if test -n "$PCAP_CONFIG"; then
7500 #
7501 # The libpcap directory has a pcap-config script.
7502 # Use it to get any additioal libraries needed
7503 # to link with the libpcap archive library in
7504 # that directory.
7505 #
7506 # Please read section 11.6 "Shell Substitutions"
7507 # in the autoconf manual before doing anything
7508 # to this that involves quoting. Especially note
7509 # the statement "There is just no portable way to use
7510 # double-quoted strings inside double-quoted back-quoted
7511 # expressions (pfew!)."
7512 #
7513 additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
7514 libpcap="$libpcap $additional_libs"
7515 fi
7516 fi
7517 LIBS="$libpcap $LIBS"
7518 if ! test -n "$PCAP_CONFIG" ; then
7519 #
7520 # We don't have pcap-config; find out any additional link flags
7521 # we need. (If we have pcap-config, we assume it tells us what
7522 # we need.)
7523 #
7524 case "$host_os" in
7525
7526 aix*)
7527 #
7528 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7529 # present, as we use the STREAMS routines.
7530 #
7531 # (XXX - true only if we're linking with a static libpcap?)
7532 #
7533 pseexe="/lib/pse.exp"
7534 { echo "$as_me:$LINENO: checking for $pseexe" >&5
7535 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
7536 if test -f $pseexe ; then
7537 { echo "$as_me:$LINENO: result: yes" >&5
7538 echo "${ECHO_T}yes" >&6; }
7539 LIBS="$LIBS -I:$pseexe"
7540 fi
7541
7542 #
7543 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7544 # we use them to load the BPF module.
7545 #
7546 # (XXX - true only if we're linking with a static libpcap?)
7547 #
7548 LIBS="$LIBS -lodm -lcfg"
7549 ;;
7550 esac
7551 fi
7552
7553 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7554 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7555 if test "${ac_cv_func_pcap_loop+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h. */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7566 #define pcap_loop innocuous_pcap_loop
7567
7568 /* System header to define __stub macros and hopefully few prototypes,
7569 which can conflict with char pcap_loop (); below.
7570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7571 <limits.h> exists even on freestanding compilers. */
7572
7573 #ifdef __STDC__
7574 # include <limits.h>
7575 #else
7576 # include <assert.h>
7577 #endif
7578
7579 #undef pcap_loop
7580
7581 /* Override any GCC internal prototype to avoid an error.
7582 Use char because int might match the return type of a GCC
7583 builtin and then its argument prototype would still apply. */
7584 #ifdef __cplusplus
7585 extern "C"
7586 #endif
7587 char pcap_loop ();
7588 /* The GNU C library defines this for functions which it implements
7589 to always fail with ENOSYS. Some functions are actually named
7590 something starting with __ and the normal name is an alias. */
7591 #if defined __stub_pcap_loop || defined __stub___pcap_loop
7592 choke me
7593 #endif
7594
7595 int
7596 main ()
7597 {
7598 return pcap_loop ();
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (ac_try="$ac_link"
7605 case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608 esac
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_link") 2>conftest.er1
7611 ac_status=$?
7612 grep -v '^ *+' conftest.er1 >conftest.err
7613 rm -f conftest.er1
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest$ac_exeext &&
7620 $as_test_x conftest$ac_exeext; then
7621 ac_cv_func_pcap_loop=yes
7622 else
7623 echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7625
7626 ac_cv_func_pcap_loop=no
7627 fi
7628
7629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7630 conftest$ac_exeext conftest.$ac_ext
7631 fi
7632 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7633 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7634 if test $ac_cv_func_pcap_loop = yes; then
7635 :
7636 else
7637
7638 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7639 config.log file in your report. If you have downloaded libpcap from
7640 tcpdump.org, and built it yourself, please also include the config.log
7641 file from the libpcap source directory, the Makefile from the libpcap
7642 source directory, and the output of the make process for libpcap, as
7643 this could be a problem with the libpcap that was built, and we will
7644 not be able to determine why this is happening, and thus will not be
7645 able to fix it, without that information, as we have not been able to
7646 reproduce this problem ourselves." >&5
7647 echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7648 config.log file in your report. If you have downloaded libpcap from
7649 tcpdump.org, and built it yourself, please also include the config.log
7650 file from the libpcap source directory, the Makefile from the libpcap
7651 source directory, and the output of the make process for libpcap, as
7652 this could be a problem with the libpcap that was built, and we will
7653 not be able to determine why this is happening, and thus will not be
7654 able to fix it, without that information, as we have not been able to
7655 reproduce this problem ourselves." >&2;}
7656 { (exit 1); exit 1; }; }
7657
7658 fi
7659
7660
7661 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7662 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7663 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666 cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h. */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7672 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7674 #define pcap_list_datalinks innocuous_pcap_list_datalinks
7675
7676 /* System header to define __stub macros and hopefully few prototypes,
7677 which can conflict with char pcap_list_datalinks (); below.
7678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7679 <limits.h> exists even on freestanding compilers. */
7680
7681 #ifdef __STDC__
7682 # include <limits.h>
7683 #else
7684 # include <assert.h>
7685 #endif
7686
7687 #undef pcap_list_datalinks
7688
7689 /* Override any GCC internal prototype to avoid an error.
7690 Use char because int might match the return type of a GCC
7691 builtin and then its argument prototype would still apply. */
7692 #ifdef __cplusplus
7693 extern "C"
7694 #endif
7695 char pcap_list_datalinks ();
7696 /* The GNU C library defines this for functions which it implements
7697 to always fail with ENOSYS. Some functions are actually named
7698 something starting with __ and the normal name is an alias. */
7699 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7700 choke me
7701 #endif
7702
7703 int
7704 main ()
7705 {
7706 return pcap_list_datalinks ();
7707 ;
7708 return 0;
7709 }
7710 _ACEOF
7711 rm -f conftest.$ac_objext conftest$ac_exeext
7712 if { (ac_try="$ac_link"
7713 case "(($ac_try" in
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7716 esac
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718 (eval "$ac_link") 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } && {
7725 test -z "$ac_c_werror_flag" ||
7726 test ! -s conftest.err
7727 } && test -s conftest$ac_exeext &&
7728 $as_test_x conftest$ac_exeext; then
7729 ac_cv_func_pcap_list_datalinks=yes
7730 else
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 ac_cv_func_pcap_list_datalinks=no
7735 fi
7736
7737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7738 conftest$ac_exeext conftest.$ac_ext
7739 fi
7740 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7741 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7742 if test $ac_cv_func_pcap_list_datalinks = yes; then
7743
7744 cat >>confdefs.h <<\_ACEOF
7745 #define HAVE_PCAP_LIST_DATALINKS 1
7746 _ACEOF
7747
7748 else
7749
7750 case " $LIBOBJS " in
7751 *" datalinks.$ac_objext "* ) ;;
7752 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
7753 ;;
7754 esac
7755
7756
7757 fi
7758
7759 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7760 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7761 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764 cat >conftest.$ac_ext <<_ACEOF
7765 /* confdefs.h. */
7766 _ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7772 #define pcap_set_datalink innocuous_pcap_set_datalink
7773
7774 /* System header to define __stub macros and hopefully few prototypes,
7775 which can conflict with char pcap_set_datalink (); below.
7776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7777 <limits.h> exists even on freestanding compilers. */
7778
7779 #ifdef __STDC__
7780 # include <limits.h>
7781 #else
7782 # include <assert.h>
7783 #endif
7784
7785 #undef pcap_set_datalink
7786
7787 /* Override any GCC internal prototype to avoid an error.
7788 Use char because int might match the return type of a GCC
7789 builtin and then its argument prototype would still apply. */
7790 #ifdef __cplusplus
7791 extern "C"
7792 #endif
7793 char pcap_set_datalink ();
7794 /* The GNU C library defines this for functions which it implements
7795 to always fail with ENOSYS. Some functions are actually named
7796 something starting with __ and the normal name is an alias. */
7797 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
7798 choke me
7799 #endif
7800
7801 int
7802 main ()
7803 {
7804 return pcap_set_datalink ();
7805 ;
7806 return 0;
7807 }
7808 _ACEOF
7809 rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (ac_try="$ac_link"
7811 case "(($ac_try" in
7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813 *) ac_try_echo=$ac_try;;
7814 esac
7815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7816 (eval "$ac_link") 2>conftest.er1
7817 ac_status=$?
7818 grep -v '^ *+' conftest.er1 >conftest.err
7819 rm -f conftest.er1
7820 cat conftest.err >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } && {
7823 test -z "$ac_c_werror_flag" ||
7824 test ! -s conftest.err
7825 } && test -s conftest$ac_exeext &&
7826 $as_test_x conftest$ac_exeext; then
7827 ac_cv_func_pcap_set_datalink=yes
7828 else
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7831
7832 ac_cv_func_pcap_set_datalink=no
7833 fi
7834
7835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7836 conftest$ac_exeext conftest.$ac_ext
7837 fi
7838 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
7839 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
7840 if test $ac_cv_func_pcap_set_datalink = yes; then
7841
7842 cat >>confdefs.h <<\_ACEOF
7843 #define HAVE_PCAP_SET_DATALINK 1
7844 _ACEOF
7845
7846 fi
7847
7848 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
7849 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
7850 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853 cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h. */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7859 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
7860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7861 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
7862
7863 /* System header to define __stub macros and hopefully few prototypes,
7864 which can conflict with char pcap_datalink_name_to_val (); below.
7865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7866 <limits.h> exists even on freestanding compilers. */
7867
7868 #ifdef __STDC__
7869 # include <limits.h>
7870 #else
7871 # include <assert.h>
7872 #endif
7873
7874 #undef pcap_datalink_name_to_val
7875
7876 /* Override any GCC internal prototype to avoid an error.
7877 Use char because int might match the return type of a GCC
7878 builtin and then its argument prototype would still apply. */
7879 #ifdef __cplusplus
7880 extern "C"
7881 #endif
7882 char pcap_datalink_name_to_val ();
7883 /* The GNU C library defines this for functions which it implements
7884 to always fail with ENOSYS. Some functions are actually named
7885 something starting with __ and the normal name is an alias. */
7886 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
7887 choke me
7888 #endif
7889
7890 int
7891 main ()
7892 {
7893 return pcap_datalink_name_to_val ();
7894 ;
7895 return 0;
7896 }
7897 _ACEOF
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (ac_try="$ac_link"
7900 case "(($ac_try" in
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7903 esac
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_link") 2>conftest.er1
7906 ac_status=$?
7907 grep -v '^ *+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } && {
7912 test -z "$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7914 } && test -s conftest$ac_exeext &&
7915 $as_test_x conftest$ac_exeext; then
7916 ac_cv_func_pcap_datalink_name_to_val=yes
7917 else
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7920
7921 ac_cv_func_pcap_datalink_name_to_val=no
7922 fi
7923
7924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7925 conftest$ac_exeext conftest.$ac_ext
7926 fi
7927 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
7928 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
7929 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
7930
7931
7932 cat >>confdefs.h <<\_ACEOF
7933 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
7934 _ACEOF
7935
7936 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
7937 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
7938 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
7948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7949 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
7950
7951 /* System header to define __stub macros and hopefully few prototypes,
7952 which can conflict with char pcap_datalink_val_to_description (); below.
7953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7954 <limits.h> exists even on freestanding compilers. */
7955
7956 #ifdef __STDC__
7957 # include <limits.h>
7958 #else
7959 # include <assert.h>
7960 #endif
7961
7962 #undef pcap_datalink_val_to_description
7963
7964 /* Override any GCC internal prototype to avoid an error.
7965 Use char because int might match the return type of a GCC
7966 builtin and then its argument prototype would still apply. */
7967 #ifdef __cplusplus
7968 extern "C"
7969 #endif
7970 char pcap_datalink_val_to_description ();
7971 /* The GNU C library defines this for functions which it implements
7972 to always fail with ENOSYS. Some functions are actually named
7973 something starting with __ and the normal name is an alias. */
7974 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
7975 choke me
7976 #endif
7977
7978 int
7979 main ()
7980 {
7981 return pcap_datalink_val_to_description ();
7982 ;
7983 return 0;
7984 }
7985 _ACEOF
7986 rm -f conftest.$ac_objext conftest$ac_exeext
7987 if { (ac_try="$ac_link"
7988 case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991 esac
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_link") 2>conftest.er1
7994 ac_status=$?
7995 grep -v '^ *+' conftest.er1 >conftest.err
7996 rm -f conftest.er1
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } && {
8000 test -z "$ac_c_werror_flag" ||
8001 test ! -s conftest.err
8002 } && test -s conftest$ac_exeext &&
8003 $as_test_x conftest$ac_exeext; then
8004 ac_cv_func_pcap_datalink_val_to_description=yes
8005 else
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8008
8009 ac_cv_func_pcap_datalink_val_to_description=no
8010 fi
8011
8012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8013 conftest$ac_exeext conftest.$ac_ext
8014 fi
8015 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8016 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
8017 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8018
8019 cat >>confdefs.h <<\_ACEOF
8020 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8021 _ACEOF
8022
8023 else
8024
8025 case " $LIBOBJS " in
8026 *" dlnames.$ac_objext "* ) ;;
8027 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8028 ;;
8029 esac
8030
8031
8032 fi
8033
8034
8035 else
8036
8037 case " $LIBOBJS " in
8038 *" dlnames.$ac_objext "* ) ;;
8039 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8040 ;;
8041 esac
8042
8043
8044 fi
8045
8046
8047
8048 for ac_func in pcap_breakloop
8049 do
8050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056 cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h. */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8064 #define $ac_func innocuous_$ac_func
8065
8066 /* System header to define __stub macros and hopefully few prototypes,
8067 which can conflict with char $ac_func (); below.
8068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8069 <limits.h> exists even on freestanding compilers. */
8070
8071 #ifdef __STDC__
8072 # include <limits.h>
8073 #else
8074 # include <assert.h>
8075 #endif
8076
8077 #undef $ac_func
8078
8079 /* Override any GCC internal prototype to avoid an error.
8080 Use char because int might match the return type of a GCC
8081 builtin and then its argument prototype would still apply. */
8082 #ifdef __cplusplus
8083 extern "C"
8084 #endif
8085 char $ac_func ();
8086 /* The GNU C library defines this for functions which it implements
8087 to always fail with ENOSYS. Some functions are actually named
8088 something starting with __ and the normal name is an alias. */
8089 #if defined __stub_$ac_func || defined __stub___$ac_func
8090 choke me
8091 #endif
8092
8093 int
8094 main ()
8095 {
8096 return $ac_func ();
8097 ;
8098 return 0;
8099 }
8100 _ACEOF
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (ac_try="$ac_link"
8103 case "(($ac_try" in
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8106 esac
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_link") 2>conftest.er1
8109 ac_status=$?
8110 grep -v '^ *+' conftest.er1 >conftest.err
8111 rm -f conftest.er1
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } && {
8115 test -z "$ac_c_werror_flag" ||
8116 test ! -s conftest.err
8117 } && test -s conftest$ac_exeext &&
8118 $as_test_x conftest$ac_exeext; then
8119 eval "$as_ac_var=yes"
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8123
8124 eval "$as_ac_var=no"
8125 fi
8126
8127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8128 conftest$ac_exeext conftest.$ac_ext
8129 fi
8130 ac_res=`eval echo '${'$as_ac_var'}'`
8131 { echo "$as_me:$LINENO: result: $ac_res" >&5
8132 echo "${ECHO_T}$ac_res" >&6; }
8133 if test `eval echo '${'$as_ac_var'}'` = yes; then
8134 cat >>confdefs.h <<_ACEOF
8135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8136 _ACEOF
8137
8138 fi
8139 done
8140
8141
8142 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8143 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
8144 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
8154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8155 #define pcap_dump_ftell innocuous_pcap_dump_ftell
8156
8157 /* System header to define __stub macros and hopefully few prototypes,
8158 which can conflict with char pcap_dump_ftell (); below.
8159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8160 <limits.h> exists even on freestanding compilers. */
8161
8162 #ifdef __STDC__
8163 # include <limits.h>
8164 #else
8165 # include <assert.h>
8166 #endif
8167
8168 #undef pcap_dump_ftell
8169
8170 /* Override any GCC internal prototype to avoid an error.
8171 Use char because int might match the return type of a GCC
8172 builtin and then its argument prototype would still apply. */
8173 #ifdef __cplusplus
8174 extern "C"
8175 #endif
8176 char pcap_dump_ftell ();
8177 /* The GNU C library defines this for functions which it implements
8178 to always fail with ENOSYS. Some functions are actually named
8179 something starting with __ and the normal name is an alias. */
8180 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
8181 choke me
8182 #endif
8183
8184 int
8185 main ()
8186 {
8187 return pcap_dump_ftell ();
8188 ;
8189 return 0;
8190 }
8191 _ACEOF
8192 rm -f conftest.$ac_objext conftest$ac_exeext
8193 if { (ac_try="$ac_link"
8194 case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_link") 2>conftest.er1
8200 ac_status=$?
8201 grep -v '^ *+' conftest.er1 >conftest.err
8202 rm -f conftest.er1
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && {
8206 test -z "$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest$ac_exeext &&
8209 $as_test_x conftest$ac_exeext; then
8210 ac_cv_func_pcap_dump_ftell=yes
8211 else
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215 ac_cv_func_pcap_dump_ftell=no
8216 fi
8217
8218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8219 conftest$ac_exeext conftest.$ac_ext
8220 fi
8221 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8222 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
8223 if test $ac_cv_func_pcap_dump_ftell = yes; then
8224
8225 cat >>confdefs.h <<\_ACEOF
8226 #define HAVE_PCAP_DUMP_FTELL 1
8227 _ACEOF
8228
8229 else
8230
8231 case " $LIBOBJS " in
8232 *" pcap_dump_ftell.$ac_objext "* ) ;;
8233 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8234 ;;
8235 esac
8236
8237
8238 fi
8239
8240
8241
8242 #
8243 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8244 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8245 #
8246 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8247 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8248 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8249 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8250 # it does not ship with a libc symbol "inet_ntop()", it ships with
8251 # "_inet_ntop()", and has a #define macro in one of the system headers
8252 # to rename it.
8253 #
8254 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
8255 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h. */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 #include <sys/types.h>
8263 #include <sys/socket.h>
8264 #include <netinet/in.h>
8265 #include <arpa/inet.h>
8266 int
8267 main ()
8268 {
8269 char src[4], dst[128];
8270 inet_ntop(AF_INET, src, dst, sizeof(dst));
8271 ;
8272 return 0;
8273 }
8274 _ACEOF
8275 rm -f conftest.$ac_objext conftest$ac_exeext
8276 if { (ac_try="$ac_link"
8277 case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_link") 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } && {
8289 test -z "$ac_c_werror_flag" ||
8290 test ! -s conftest.err
8291 } && test -s conftest$ac_exeext &&
8292 $as_test_x conftest$ac_exeext; then
8293 { echo "$as_me:$LINENO: result: yes" >&5
8294 echo "${ECHO_T}yes" >&6; }
8295 else
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8298
8299 { echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6; }
8301 case " $LIBOBJS " in
8302 *" inet_ntop.$ac_objext "* ) ;;
8303 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8304 ;;
8305 esac
8306
8307 fi
8308
8309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8310 conftest$ac_exeext conftest.$ac_ext
8311 { echo "$as_me:$LINENO: checking for inet_pton" >&5
8312 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <sys/types.h>
8320 #include <sys/socket.h>
8321 #include <netinet/in.h>
8322 #include <arpa/inet.h>
8323 int
8324 main ()
8325 {
8326 char src[128], dst[4];
8327 inet_pton(AF_INET, src, dst);
8328 ;
8329 return 0;
8330 }
8331 _ACEOF
8332 rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (ac_try="$ac_link"
8334 case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_link") 2>conftest.er1
8340 ac_status=$?
8341 grep -v '^ *+' conftest.er1 >conftest.err
8342 rm -f conftest.er1
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && {
8346 test -z "$ac_c_werror_flag" ||
8347 test ! -s conftest.err
8348 } && test -s conftest$ac_exeext &&
8349 $as_test_x conftest$ac_exeext; then
8350 { echo "$as_me:$LINENO: result: yes" >&5
8351 echo "${ECHO_T}yes" >&6; }
8352 else
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8355
8356 { echo "$as_me:$LINENO: result: no" >&5
8357 echo "${ECHO_T}no" >&6; }
8358 case " $LIBOBJS " in
8359 *" inet_pton.$ac_objext "* ) ;;
8360 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8361 ;;
8362 esac
8363
8364 fi
8365
8366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8367 conftest$ac_exeext conftest.$ac_ext
8368 { echo "$as_me:$LINENO: checking for inet_aton" >&5
8369 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8370 cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h. */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 #include <sys/types.h>
8377 #include <netinet/in.h>
8378 #include <arpa/inet.h>
8379 int
8380 main ()
8381 {
8382 char src[128];
8383 struct in_addr dst;
8384 inet_aton(src, &dst);
8385 ;
8386 return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (ac_try="$ac_link"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_link") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest$ac_exeext &&
8406 $as_test_x conftest$ac_exeext; then
8407 { echo "$as_me:$LINENO: result: yes" >&5
8408 echo "${ECHO_T}yes" >&6; }
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413 { echo "$as_me:$LINENO: result: no" >&5
8414 echo "${ECHO_T}no" >&6; }
8415 case " $LIBOBJS " in
8416 *" inet_aton.$ac_objext "* ) ;;
8417 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8418 ;;
8419 esac
8420
8421 fi
8422
8423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8424 conftest$ac_exeext conftest.$ac_ext
8425
8426 #
8427 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8428 #
8429 # You are in a twisty little maze of UN*Xes, all different.
8430 # Some might not have ether_ntohost().
8431 # Some might have it, but not declare it in any header file.
8432 # Some might have it, but declare it in <netinet/if_ether.h>.
8433 # Some might have it, but declare it in <netinet/ether.h>
8434 # (And some might have it but document it as something declared in
8435 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8436 #
8437 # Before you is a C compiler.
8438 #
8439
8440 for ac_func in ether_ntohost
8441 do
8442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h. */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8456 #define $ac_func innocuous_$ac_func
8457
8458 /* System header to define __stub macros and hopefully few prototypes,
8459 which can conflict with char $ac_func (); below.
8460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8461 <limits.h> exists even on freestanding compilers. */
8462
8463 #ifdef __STDC__
8464 # include <limits.h>
8465 #else
8466 # include <assert.h>
8467 #endif
8468
8469 #undef $ac_func
8470
8471 /* Override any GCC internal prototype to avoid an error.
8472 Use char because int might match the return type of a GCC
8473 builtin and then its argument prototype would still apply. */
8474 #ifdef __cplusplus
8475 extern "C"
8476 #endif
8477 char $ac_func ();
8478 /* The GNU C library defines this for functions which it implements
8479 to always fail with ENOSYS. Some functions are actually named
8480 something starting with __ and the normal name is an alias. */
8481 #if defined __stub_$ac_func || defined __stub___$ac_func
8482 choke me
8483 #endif
8484
8485 int
8486 main ()
8487 {
8488 return $ac_func ();
8489 ;
8490 return 0;
8491 }
8492 _ACEOF
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (ac_try="$ac_link"
8495 case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_link") 2>conftest.er1
8501 ac_status=$?
8502 grep -v '^ *+' conftest.er1 >conftest.err
8503 rm -f conftest.er1
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && {
8507 test -z "$ac_c_werror_flag" ||
8508 test ! -s conftest.err
8509 } && test -s conftest$ac_exeext &&
8510 $as_test_x conftest$ac_exeext; then
8511 eval "$as_ac_var=yes"
8512 else
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 eval "$as_ac_var=no"
8517 fi
8518
8519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8520 conftest$ac_exeext conftest.$ac_ext
8521 fi
8522 ac_res=`eval echo '${'$as_ac_var'}'`
8523 { echo "$as_me:$LINENO: result: $ac_res" >&5
8524 echo "${ECHO_T}$ac_res" >&6; }
8525 if test `eval echo '${'$as_ac_var'}'` = yes; then
8526 cat >>confdefs.h <<_ACEOF
8527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8528 _ACEOF
8529
8530 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8531 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8532 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535
8536 if test "$cross_compiling" = yes; then
8537 ac_cv_buggy_ether_ntohost="not while cross-compiling"
8538 else
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h. */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545
8546 #include <netdb.h>
8547 #include <sys/types.h>
8548 #include <sys/param.h>
8549 #include <sys/socket.h>
8550
8551 int
8552 main(int argc, char **argv)
8553 {
8554 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8555 char name[MAXHOSTNAMELEN];
8556
8557 ether_ntohost(name, (struct ether_addr *)ea);
8558 exit(0);
8559 }
8560
8561 _ACEOF
8562 rm -f conftest$ac_exeext
8563 if { (ac_try="$ac_link"
8564 case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567 esac
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_link") 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8573 { (case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_try") 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 ac_cv_buggy_ether_ntohost=no
8583 else
8584 echo "$as_me: program exited with status $ac_status" >&5
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8587
8588 ( exit $ac_status )
8589 ac_cv_buggy_ether_ntohost=yes
8590 fi
8591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8592 fi
8593
8594
8595 fi
8596 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8597 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8598 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8599
8600 cat >>confdefs.h <<\_ACEOF
8601 #define USE_ETHER_NTOHOST 1
8602 _ACEOF
8603
8604 fi
8605
8606 fi
8607 done
8608
8609 if test "$ac_cv_func_ether_ntohost" = yes -a \
8610 "$ac_cv_buggy_ether_ntohost" = "no"; then
8611 #
8612 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
8613 #
8614 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8615 #
8616 # Yes. Does it declare ether_ntohost()?
8617 #
8618 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8619 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8620 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623 cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h. */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8629
8630 #include <sys/types.h>
8631 #include <sys/socket.h>
8632 #include <netinet/in.h>
8633 #include <arpa/inet.h>
8634 struct mbuf;
8635 struct rtentry;
8636 #include <net/if.h>
8637 #include <netinet/if_ether.h>
8638
8639
8640 int
8641 main ()
8642 {
8643 #ifndef ether_ntohost
8644 (void) ether_ntohost;
8645 #endif
8646
8647 ;
8648 return 0;
8649 }
8650 _ACEOF
8651 rm -f conftest.$ac_objext
8652 if { (ac_try="$ac_compile"
8653 case "(($ac_try" in
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8656 esac
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_compile") 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && {
8665 test -z "$ac_c_werror_flag" ||
8666 test ! -s conftest.err
8667 } && test -s conftest.$ac_objext; then
8668 ac_cv_have_decl_ether_ntohost=yes
8669 else
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673 ac_cv_have_decl_ether_ntohost=no
8674 fi
8675
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 fi
8678 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8679 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8680 if test $ac_cv_have_decl_ether_ntohost = yes; then
8681
8682
8683 cat >>confdefs.h <<\_ACEOF
8684 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8685 _ACEOF
8686
8687
8688 fi
8689
8690 fi
8691 #
8692 # Did that succeed?
8693 #
8694 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8695 #
8696 # No, how about <netinet/ether.h>, as on Linux?
8697 #
8698
8699 for ac_header in netinet/ether.h
8700 do
8701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 fi
8708 ac_res=`eval echo '${'$as_ac_Header'}'`
8709 { echo "$as_me:$LINENO: result: $ac_res" >&5
8710 echo "${ECHO_T}$ac_res" >&6; }
8711 else
8712 # Is the header compilable?
8713 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8715 cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h. */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 $ac_includes_default
8722 #include <$ac_header>
8723 _ACEOF
8724 rm -f conftest.$ac_objext
8725 if { (ac_try="$ac_compile"
8726 case "(($ac_try" in
8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8729 esac
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731 (eval "$ac_compile") 2>conftest.er1
8732 ac_status=$?
8733 grep -v '^ *+' conftest.er1 >conftest.err
8734 rm -f conftest.er1
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } && {
8738 test -z "$ac_c_werror_flag" ||
8739 test ! -s conftest.err
8740 } && test -s conftest.$ac_objext; then
8741 ac_header_compiler=yes
8742 else
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8745
8746 ac_header_compiler=no
8747 fi
8748
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8751 echo "${ECHO_T}$ac_header_compiler" >&6; }
8752
8753 # Is the header present?
8754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 #include <$ac_header>
8763 _ACEOF
8764 if { (ac_try="$ac_cpp conftest.$ac_ext"
8765 case "(($ac_try" in
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8768 esac
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8771 ac_status=$?
8772 grep -v '^ *+' conftest.er1 >conftest.err
8773 rm -f conftest.er1
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } >/dev/null && {
8777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 }; then
8780 ac_header_preproc=yes
8781 else
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8784
8785 ac_header_preproc=no
8786 fi
8787
8788 rm -f conftest.err conftest.$ac_ext
8789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8790 echo "${ECHO_T}$ac_header_preproc" >&6; }
8791
8792 # So? What about this header?
8793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8794 yes:no: )
8795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8799 ac_header_preproc=yes
8800 ;;
8801 no:yes:* )
8802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8814
8815 ;;
8816 esac
8817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822 eval "$as_ac_Header=\$ac_header_preproc"
8823 fi
8824 ac_res=`eval echo '${'$as_ac_Header'}'`
8825 { echo "$as_me:$LINENO: result: $ac_res" >&5
8826 echo "${ECHO_T}$ac_res" >&6; }
8827
8828 fi
8829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8830 cat >>confdefs.h <<_ACEOF
8831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8832 _ACEOF
8833
8834 fi
8835
8836 done
8837
8838 if test "$ac_cv_header_netinet_ether_h" = yes; then
8839 #
8840 # We have it - does it declare ether_ntohost()?
8841 # Unset ac_cv_have_decl_ether_ntohost so we don't
8842 # treat the previous failure as a cached value and
8843 # suppress the next test.
8844 #
8845 unset ac_cv_have_decl_ether_ntohost
8846 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8847 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8848 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851 cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h. */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8857
8858 #include <netinet/ether.h>
8859
8860
8861 int
8862 main ()
8863 {
8864 #ifndef ether_ntohost
8865 (void) ether_ntohost;
8866 #endif
8867
8868 ;
8869 return 0;
8870 }
8871 _ACEOF
8872 rm -f conftest.$ac_objext
8873 if { (ac_try="$ac_compile"
8874 case "(($ac_try" in
8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8877 esac
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879 (eval "$ac_compile") 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest.$ac_objext; then
8889 ac_cv_have_decl_ether_ntohost=yes
8890 else
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8893
8894 ac_cv_have_decl_ether_ntohost=no
8895 fi
8896
8897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8898 fi
8899 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8900 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8901 if test $ac_cv_have_decl_ether_ntohost = yes; then
8902
8903
8904 cat >>confdefs.h <<\_ACEOF
8905 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
8906 _ACEOF
8907
8908
8909 fi
8910
8911 fi
8912 fi
8913 #
8914 # Is ether_ntohost() declared?
8915 #
8916 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8917 #
8918 # No, we'll have to declare it ourselves.
8919 # Do we have "struct ether_addr"?
8920 #
8921 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
8922 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
8923 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h. */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8932
8933 #include <sys/types.h>
8934 #include <sys/socket.h>
8935 #include <netinet/in.h>
8936 #include <arpa/inet.h>
8937 struct mbuf;
8938 struct rtentry;
8939 #include <net/if.h>
8940 #include <netinet/if_ether.h>
8941
8942
8943 typedef struct ether_addr ac__type_new_;
8944 int
8945 main ()
8946 {
8947 if ((ac__type_new_ *) 0)
8948 return 0;
8949 if (sizeof (ac__type_new_))
8950 return 0;
8951 ;
8952 return 0;
8953 }
8954 _ACEOF
8955 rm -f conftest.$ac_objext
8956 if { (ac_try="$ac_compile"
8957 case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_compile") 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } && {
8969 test -z "$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8971 } && test -s conftest.$ac_objext; then
8972 ac_cv_type_struct_ether_addr=yes
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977 ac_cv_type_struct_ether_addr=no
8978 fi
8979
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 fi
8982 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
8983 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
8984 if test $ac_cv_type_struct_ether_addr = yes; then
8985
8986 cat >>confdefs.h <<_ACEOF
8987 #define HAVE_STRUCT_ETHER_ADDR 1
8988 _ACEOF
8989
8990
8991 fi
8992
8993
8994 cat >>confdefs.h <<\_ACEOF
8995 #define HAVE_DECL_ETHER_NTOHOST 0
8996 _ACEOF
8997
8998 else
8999
9000 cat >>confdefs.h <<\_ACEOF
9001 #define HAVE_DECL_ETHER_NTOHOST 1
9002 _ACEOF
9003
9004 fi
9005 fi
9006
9007 # libdlpi is needed for Solaris 11 and later.
9008 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
9009 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
9010 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 ac_check_lib_save_LIBS=$LIBS
9014 LIBS="-ldlpi -L/lib $LIBS"
9015 cat >conftest.$ac_ext <<_ACEOF
9016 /* confdefs.h. */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9021
9022 /* Override any GCC internal prototype to avoid an error.
9023 Use char because int might match the return type of a GCC
9024 builtin and then its argument prototype would still apply. */
9025 #ifdef __cplusplus
9026 extern "C"
9027 #endif
9028 char dlpi_walk ();
9029 int
9030 main ()
9031 {
9032 return dlpi_walk ();
9033 ;
9034 return 0;
9035 }
9036 _ACEOF
9037 rm -f conftest.$ac_objext conftest$ac_exeext
9038 if { (ac_try="$ac_link"
9039 case "(($ac_try" in
9040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9041 *) ac_try_echo=$ac_try;;
9042 esac
9043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9044 (eval "$ac_link") 2>conftest.er1
9045 ac_status=$?
9046 grep -v '^ *+' conftest.er1 >conftest.err
9047 rm -f conftest.er1
9048 cat conftest.err >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } && {
9051 test -z "$ac_c_werror_flag" ||
9052 test ! -s conftest.err
9053 } && test -s conftest$ac_exeext &&
9054 $as_test_x conftest$ac_exeext; then
9055 ac_cv_lib_dlpi_dlpi_walk=yes
9056 else
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9059
9060 ac_cv_lib_dlpi_dlpi_walk=no
9061 fi
9062
9063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9064 conftest$ac_exeext conftest.$ac_ext
9065 LIBS=$ac_check_lib_save_LIBS
9066 fi
9067 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
9068 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
9069 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
9070 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
9071 fi
9072
9073
9074
9075 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9076 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
9077 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080 cat >conftest.$ac_ext <<_ACEOF
9081 /* confdefs.h. */
9082 _ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9086
9087 # include <sys/types.h>
9088 # include <sys/socket.h>
9089 int
9090 main ()
9091 {
9092 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9093 ;
9094 return 0;
9095 }
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (ac_try="$ac_compile"
9099 case "(($ac_try" in
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9102 esac
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_compile") 2>conftest.er1
9105 ac_status=$?
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } && {
9111 test -z "$ac_c_werror_flag" ||
9112 test ! -s conftest.err
9113 } && test -s conftest.$ac_objext; then
9114 ac_cv_sockaddr_has_sa_len=yes
9115 else
9116 echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9118
9119 ac_cv_sockaddr_has_sa_len=no
9120 fi
9121
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9123 fi
9124
9125 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9126 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
9127 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9128 cat >>confdefs.h <<\_ACEOF
9129 #define HAVE_SOCKADDR_SA_LEN 1
9130 _ACEOF
9131
9132 fi
9133
9134 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9135 missing_includes=yes
9136 fi
9137
9138 #
9139 # Do we have the new open API? Check for pcap_create, and assume that,
9140 # if we do, we also have pcap_activate() and the other new routines
9141 # introduced in libpcap 1.0.0.
9142 #
9143
9144 for ac_func in pcap_create
9145 do
9146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 else
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9160 #define $ac_func innocuous_$ac_func
9161
9162 /* System header to define __stub macros and hopefully few prototypes,
9163 which can conflict with char $ac_func (); below.
9164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9165 <limits.h> exists even on freestanding compilers. */
9166
9167 #ifdef __STDC__
9168 # include <limits.h>
9169 #else
9170 # include <assert.h>
9171 #endif
9172
9173 #undef $ac_func
9174
9175 /* Override any GCC internal prototype to avoid an error.
9176 Use char because int might match the return type of a GCC
9177 builtin and then its argument prototype would still apply. */
9178 #ifdef __cplusplus
9179 extern "C"
9180 #endif
9181 char $ac_func ();
9182 /* The GNU C library defines this for functions which it implements
9183 to always fail with ENOSYS. Some functions are actually named
9184 something starting with __ and the normal name is an alias. */
9185 #if defined __stub_$ac_func || defined __stub___$ac_func
9186 choke me
9187 #endif
9188
9189 int
9190 main ()
9191 {
9192 return $ac_func ();
9193 ;
9194 return 0;
9195 }
9196 _ACEOF
9197 rm -f conftest.$ac_objext conftest$ac_exeext
9198 if { (ac_try="$ac_link"
9199 case "(($ac_try" in
9200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201 *) ac_try_echo=$ac_try;;
9202 esac
9203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9204 (eval "$ac_link") 2>conftest.er1
9205 ac_status=$?
9206 grep -v '^ *+' conftest.er1 >conftest.err
9207 rm -f conftest.er1
9208 cat conftest.err >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } && {
9211 test -z "$ac_c_werror_flag" ||
9212 test ! -s conftest.err
9213 } && test -s conftest$ac_exeext &&
9214 $as_test_x conftest$ac_exeext; then
9215 eval "$as_ac_var=yes"
9216 else
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9219
9220 eval "$as_ac_var=no"
9221 fi
9222
9223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9224 conftest$ac_exeext conftest.$ac_ext
9225 fi
9226 ac_res=`eval echo '${'$as_ac_var'}'`
9227 { echo "$as_me:$LINENO: result: $ac_res" >&5
9228 echo "${ECHO_T}$ac_res" >&6; }
9229 if test `eval echo '${'$as_ac_var'}'` = yes; then
9230 cat >>confdefs.h <<_ACEOF
9231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9232 _ACEOF
9233
9234 fi
9235 done
9236
9237 if test $ac_cv_func_pcap_create = "yes" ; then
9238 #
9239 # OK, do we have pcap_set_tstamp_type? If so, assume we have
9240 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9241 #
9242
9243 for ac_func in pcap_set_tstamp_type
9244 do
9245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 else
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9259 #define $ac_func innocuous_$ac_func
9260
9261 /* System header to define __stub macros and hopefully few prototypes,
9262 which can conflict with char $ac_func (); below.
9263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9264 <limits.h> exists even on freestanding compilers. */
9265
9266 #ifdef __STDC__
9267 # include <limits.h>
9268 #else
9269 # include <assert.h>
9270 #endif
9271
9272 #undef $ac_func
9273
9274 /* Override any GCC internal prototype to avoid an error.
9275 Use char because int might match the return type of a GCC
9276 builtin and then its argument prototype would still apply. */
9277 #ifdef __cplusplus
9278 extern "C"
9279 #endif
9280 char $ac_func ();
9281 /* The GNU C library defines this for functions which it implements
9282 to always fail with ENOSYS. Some functions are actually named
9283 something starting with __ and the normal name is an alias. */
9284 #if defined __stub_$ac_func || defined __stub___$ac_func
9285 choke me
9286 #endif
9287
9288 int
9289 main ()
9290 {
9291 return $ac_func ();
9292 ;
9293 return 0;
9294 }
9295 _ACEOF
9296 rm -f conftest.$ac_objext conftest$ac_exeext
9297 if { (ac_try="$ac_link"
9298 case "(($ac_try" in
9299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9300 *) ac_try_echo=$ac_try;;
9301 esac
9302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9303 (eval "$ac_link") 2>conftest.er1
9304 ac_status=$?
9305 grep -v '^ *+' conftest.er1 >conftest.err
9306 rm -f conftest.er1
9307 cat conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && {
9310 test -z "$ac_c_werror_flag" ||
9311 test ! -s conftest.err
9312 } && test -s conftest$ac_exeext &&
9313 $as_test_x conftest$ac_exeext; then
9314 eval "$as_ac_var=yes"
9315 else
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9318
9319 eval "$as_ac_var=no"
9320 fi
9321
9322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9323 conftest$ac_exeext conftest.$ac_ext
9324 fi
9325 ac_res=`eval echo '${'$as_ac_var'}'`
9326 { echo "$as_me:$LINENO: result: $ac_res" >&5
9327 echo "${ECHO_T}$ac_res" >&6; }
9328 if test `eval echo '${'$as_ac_var'}'` = yes; then
9329 cat >>confdefs.h <<_ACEOF
9330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9331 _ACEOF
9332
9333 fi
9334 done
9335
9336 fi
9337
9338
9339
9340
9341 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9342 do
9343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 else
9349 cat >conftest.$ac_ext <<_ACEOF
9350 /* confdefs.h. */
9351 _ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9357 #define $ac_func innocuous_$ac_func
9358
9359 /* System header to define __stub macros and hopefully few prototypes,
9360 which can conflict with char $ac_func (); below.
9361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9362 <limits.h> exists even on freestanding compilers. */
9363
9364 #ifdef __STDC__
9365 # include <limits.h>
9366 #else
9367 # include <assert.h>
9368 #endif
9369
9370 #undef $ac_func
9371
9372 /* Override any GCC internal prototype to avoid an error.
9373 Use char because int might match the return type of a GCC
9374 builtin and then its argument prototype would still apply. */
9375 #ifdef __cplusplus
9376 extern "C"
9377 #endif
9378 char $ac_func ();
9379 /* The GNU C library defines this for functions which it implements
9380 to always fail with ENOSYS. Some functions are actually named
9381 something starting with __ and the normal name is an alias. */
9382 #if defined __stub_$ac_func || defined __stub___$ac_func
9383 choke me
9384 #endif
9385
9386 int
9387 main ()
9388 {
9389 return $ac_func ();
9390 ;
9391 return 0;
9392 }
9393 _ACEOF
9394 rm -f conftest.$ac_objext conftest$ac_exeext
9395 if { (ac_try="$ac_link"
9396 case "(($ac_try" in
9397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9399 esac
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_link") 2>conftest.er1
9402 ac_status=$?
9403 grep -v '^ *+' conftest.er1 >conftest.err
9404 rm -f conftest.er1
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest$ac_exeext &&
9411 $as_test_x conftest$ac_exeext; then
9412 eval "$as_ac_var=yes"
9413 else
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9416
9417 eval "$as_ac_var=no"
9418 fi
9419
9420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9421 conftest$ac_exeext conftest.$ac_ext
9422 fi
9423 ac_res=`eval echo '${'$as_ac_var'}'`
9424 { echo "$as_me:$LINENO: result: $ac_res" >&5
9425 echo "${ECHO_T}$ac_res" >&6; }
9426 if test `eval echo '${'$as_ac_var'}'` = yes; then
9427 cat >>confdefs.h <<_ACEOF
9428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9429 _ACEOF
9430
9431 fi
9432 done
9433
9434 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9435 savedcppflags="$CPPFLAGS"
9436 CPPFLAGS="$CPPFLAGS $V_INCLS"
9437 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9438 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9439 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 else
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h. */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448 #include <pcap.h>
9449
9450 typedef pcap_if_t ac__type_new_;
9451 int
9452 main ()
9453 {
9454 if ((ac__type_new_ *) 0)
9455 return 0;
9456 if (sizeof (ac__type_new_))
9457 return 0;
9458 ;
9459 return 0;
9460 }
9461 _ACEOF
9462 rm -f conftest.$ac_objext
9463 if { (ac_try="$ac_compile"
9464 case "(($ac_try" in
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9467 esac
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_compile") 2>conftest.er1
9470 ac_status=$?
9471 grep -v '^ *+' conftest.er1 >conftest.err
9472 rm -f conftest.er1
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } && {
9476 test -z "$ac_c_werror_flag" ||
9477 test ! -s conftest.err
9478 } && test -s conftest.$ac_objext; then
9479 ac_cv_type_pcap_if_t=yes
9480 else
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9483
9484 ac_cv_type_pcap_if_t=no
9485 fi
9486
9487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9488 fi
9489 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9490 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9491 if test $ac_cv_type_pcap_if_t = yes; then
9492
9493 cat >>confdefs.h <<_ACEOF
9494 #define HAVE_PCAP_IF_T 1
9495 _ACEOF
9496
9497
9498 fi
9499
9500 CPPFLAGS="$savedcppflags"
9501 fi
9502
9503 if test $ac_cv_func_pcap_lib_version = "no" ; then
9504 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9505 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9506 cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h. */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512
9513 int
9514 main ()
9515 {
9516
9517 extern char pcap_version[];
9518
9519 return (int)pcap_version;
9520
9521 ;
9522 return 0;
9523 }
9524 _ACEOF
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (ac_try="$ac_link"
9527 case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_link") 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && {
9539 test -z "$ac_c_werror_flag" ||
9540 test ! -s conftest.err
9541 } && test -s conftest$ac_exeext &&
9542 $as_test_x conftest$ac_exeext; then
9543 ac_lbl_cv_pcap_version_defined=yes
9544 else
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9547
9548 ac_lbl_cv_pcap_version_defined=no
9549 fi
9550
9551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9552 conftest$ac_exeext conftest.$ac_ext
9553 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9554 { echo "$as_me:$LINENO: result: yes" >&5
9555 echo "${ECHO_T}yes" >&6; }
9556
9557 cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_PCAP_VERSION 1
9559 _ACEOF
9560
9561 else
9562 { echo "$as_me:$LINENO: result: no" >&5
9563 echo "${ECHO_T}no" >&6; }
9564 fi
9565 fi
9566 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9567 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h. */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9574
9575 int
9576 main ()
9577 {
9578
9579 extern int pcap_debug;
9580
9581 return pcap_debug;
9582
9583 ;
9584 return 0;
9585 }
9586 _ACEOF
9587 rm -f conftest.$ac_objext conftest$ac_exeext
9588 if { (ac_try="$ac_link"
9589 case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592 esac
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_link") 2>conftest.er1
9595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } && {
9601 test -z "$ac_c_werror_flag" ||
9602 test ! -s conftest.err
9603 } && test -s conftest$ac_exeext &&
9604 $as_test_x conftest$ac_exeext; then
9605 ac_lbl_cv_pcap_debug_defined=yes
9606 else
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9609
9610 ac_lbl_cv_pcap_debug_defined=no
9611 fi
9612
9613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9614 conftest$ac_exeext conftest.$ac_ext
9615 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9616 { echo "$as_me:$LINENO: result: yes" >&5
9617 echo "${ECHO_T}yes" >&6; }
9618
9619 cat >>confdefs.h <<\_ACEOF
9620 #define HAVE_PCAP_DEBUG 1
9621 _ACEOF
9622
9623 else
9624 { echo "$as_me:$LINENO: result: no" >&5
9625 echo "${ECHO_T}no" >&6; }
9626 #
9627 # OK, what about "yydebug"?
9628 #
9629 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9630 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9631 cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h. */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637
9638 int
9639 main ()
9640 {
9641
9642 extern int yydebug;
9643
9644 return yydebug;
9645
9646 ;
9647 return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (ac_try="$ac_link"
9652 case "(($ac_try" in
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9655 esac
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_link") 2>conftest.er1
9658 ac_status=$?
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } && {
9664 test -z "$ac_c_werror_flag" ||
9665 test ! -s conftest.err
9666 } && test -s conftest$ac_exeext &&
9667 $as_test_x conftest$ac_exeext; then
9668 ac_lbl_cv_yydebug_defined=yes
9669 else
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673 ac_lbl_cv_yydebug_defined=no
9674 fi
9675
9676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9677 conftest$ac_exeext conftest.$ac_ext
9678 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9679 { echo "$as_me:$LINENO: result: yes" >&5
9680 echo "${ECHO_T}yes" >&6; }
9681
9682 cat >>confdefs.h <<\_ACEOF
9683 #define HAVE_YYDEBUG 1
9684 _ACEOF
9685
9686 else
9687 { echo "$as_me:$LINENO: result: no" >&5
9688 echo "${ECHO_T}no" >&6; }
9689 fi
9690 fi
9691
9692 for ac_func in bpf_dump
9693 do
9694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700 cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h. */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9708 #define $ac_func innocuous_$ac_func
9709
9710 /* System header to define __stub macros and hopefully few prototypes,
9711 which can conflict with char $ac_func (); below.
9712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9713 <limits.h> exists even on freestanding compilers. */
9714
9715 #ifdef __STDC__
9716 # include <limits.h>
9717 #else
9718 # include <assert.h>
9719 #endif
9720
9721 #undef $ac_func
9722
9723 /* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9726 #ifdef __cplusplus
9727 extern "C"
9728 #endif
9729 char $ac_func ();
9730 /* The GNU C library defines this for functions which it implements
9731 to always fail with ENOSYS. Some functions are actually named
9732 something starting with __ and the normal name is an alias. */
9733 #if defined __stub_$ac_func || defined __stub___$ac_func
9734 choke me
9735 #endif
9736
9737 int
9738 main ()
9739 {
9740 return $ac_func ();
9741 ;
9742 return 0;
9743 }
9744 _ACEOF
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (ac_try="$ac_link"
9747 case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9750 esac
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_link") 2>conftest.er1
9753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } && {
9759 test -z "$ac_c_werror_flag" ||
9760 test ! -s conftest.err
9761 } && test -s conftest$ac_exeext &&
9762 $as_test_x conftest$ac_exeext; then
9763 eval "$as_ac_var=yes"
9764 else
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9767
9768 eval "$as_ac_var=no"
9769 fi
9770
9771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9772 conftest$ac_exeext conftest.$ac_ext
9773 fi
9774 ac_res=`eval echo '${'$as_ac_var'}'`
9775 { echo "$as_me:$LINENO: result: $ac_res" >&5
9776 echo "${ECHO_T}$ac_res" >&6; }
9777 if test `eval echo '${'$as_ac_var'}'` = yes; then
9778 cat >>confdefs.h <<_ACEOF
9779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9780 _ACEOF
9781
9782 else
9783 case " $LIBOBJS " in
9784 *" $ac_func.$ac_objext "* ) ;;
9785 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9786 ;;
9787 esac
9788
9789 fi
9790 done
9791
9792
9793 V_GROUP=0
9794 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9795 V_GROUP=wheel
9796 fi
9797 #
9798 # Assume V7/BSD convention for man pages (file formats in section 5,
9799 # miscellaneous info in section 7).
9800 #
9801 MAN_FILE_FORMATS=5
9802 MAN_MISC_INFO=7
9803 case "$host_os" in
9804
9805 aix*)
9806
9807 cat >>confdefs.h <<\_ACEOF
9808 #define _SUN 1
9809 _ACEOF
9810
9811 ;;
9812
9813 hpux*)
9814 #
9815 # Use System V conventions for man pages.
9816 #
9817 MAN_FILE_FORMATS=4
9818 MAN_MISC_INFO=5
9819 ;;
9820
9821 irix*)
9822 V_GROUP=sys
9823
9824 #
9825 # Use System V conventions for man pages.
9826 #
9827 MAN_FILE_FORMATS=4
9828 MAN_MISC_INFO=5
9829 ;;
9830
9831 osf*)
9832 V_GROUP=system
9833
9834 #
9835 # Use System V conventions for man pages.
9836 #
9837 MAN_FILE_FORMATS=4
9838 MAN_MISC_INFO=5
9839 ;;
9840
9841 solaris*)
9842 V_GROUP=sys
9843
9844 #
9845 # Use System V conventions for man pages.
9846 #
9847 MAN_FILE_FORMATS=4
9848 MAN_MISC_INFO=5
9849 ;;
9850 esac
9851
9852 if test -f /dev/bpf0 ; then
9853 V_GROUP=bpf
9854 fi
9855
9856
9857 for ac_header in sys/bitypes.h
9858 do
9859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 fi
9866 ac_res=`eval echo '${'$as_ac_Header'}'`
9867 { echo "$as_me:$LINENO: result: $ac_res" >&5
9868 echo "${ECHO_T}$ac_res" >&6; }
9869 else
9870 # Is the header compilable?
9871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h. */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 $ac_includes_default
9880 #include <$ac_header>
9881 _ACEOF
9882 rm -f conftest.$ac_objext
9883 if { (ac_try="$ac_compile"
9884 case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_compile") 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } && {
9896 test -z "$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9898 } && test -s conftest.$ac_objext; then
9899 ac_header_compiler=yes
9900 else
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904 ac_header_compiler=no
9905 fi
9906
9907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9909 echo "${ECHO_T}$ac_header_compiler" >&6; }
9910
9911 # Is the header present?
9912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 #include <$ac_header>
9921 _ACEOF
9922 if { (ac_try="$ac_cpp conftest.$ac_ext"
9923 case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } >/dev/null && {
9935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 }; then
9938 ac_header_preproc=yes
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9942
9943 ac_header_preproc=no
9944 fi
9945
9946 rm -f conftest.err conftest.$ac_ext
9947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9948 echo "${ECHO_T}$ac_header_preproc" >&6; }
9949
9950 # So? What about this header?
9951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9952 yes:no: )
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9957 ac_header_preproc=yes
9958 ;;
9959 no:yes:* )
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9972
9973 ;;
9974 esac
9975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980 eval "$as_ac_Header=\$ac_header_preproc"
9981 fi
9982 ac_res=`eval echo '${'$as_ac_Header'}'`
9983 { echo "$as_me:$LINENO: result: $ac_res" >&5
9984 echo "${ECHO_T}$ac_res" >&6; }
9985
9986 fi
9987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9988 cat >>confdefs.h <<_ACEOF
9989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9990 _ACEOF
9991
9992 fi
9993
9994 done
9995
9996
9997 { echo "$as_me:$LINENO: checking for int8_t" >&5
9998 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
9999 if test "${ac_cv_type_int8_t+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 else
10002 cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h. */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 $ac_includes_default
10009 #ifdef HAVE_SYS_BITYPES_H
10010 #include <sys/bitypes.h>
10011 #endif
10012
10013 typedef int8_t ac__type_new_;
10014 int
10015 main ()
10016 {
10017 if ((ac__type_new_ *) 0)
10018 return 0;
10019 if (sizeof (ac__type_new_))
10020 return 0;
10021 ;
10022 return 0;
10023 }
10024 _ACEOF
10025 rm -f conftest.$ac_objext
10026 if { (ac_try="$ac_compile"
10027 case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10030 esac
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_compile") 2>conftest.er1
10033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } && {
10039 test -z "$ac_c_werror_flag" ||
10040 test ! -s conftest.err
10041 } && test -s conftest.$ac_objext; then
10042 ac_cv_type_int8_t=yes
10043 else
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10046
10047 ac_cv_type_int8_t=no
10048 fi
10049
10050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10051 fi
10052 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
10053 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
10054 if test $ac_cv_type_int8_t = yes; then
10055 :
10056 else
10057
10058 cat >>confdefs.h <<\_ACEOF
10059 #define int8_t signed char
10060 _ACEOF
10061
10062 fi
10063
10064 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
10065 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
10066 if test "${ac_cv_type_u_int8_t+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h. */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 $ac_includes_default
10076 #ifdef HAVE_SYS_BITYPES_H
10077 #include <sys/bitypes.h>
10078 #endif
10079
10080 typedef u_int8_t ac__type_new_;
10081 int
10082 main ()
10083 {
10084 if ((ac__type_new_ *) 0)
10085 return 0;
10086 if (sizeof (ac__type_new_))
10087 return 0;
10088 ;
10089 return 0;
10090 }
10091 _ACEOF
10092 rm -f conftest.$ac_objext
10093 if { (ac_try="$ac_compile"
10094 case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097 esac
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_compile") 2>conftest.er1
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } && {
10106 test -z "$ac_c_werror_flag" ||
10107 test ! -s conftest.err
10108 } && test -s conftest.$ac_objext; then
10109 ac_cv_type_u_int8_t=yes
10110 else
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114 ac_cv_type_u_int8_t=no
10115 fi
10116
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 fi
10119 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10120 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
10121 if test $ac_cv_type_u_int8_t = yes; then
10122 :
10123 else
10124
10125 cat >>confdefs.h <<\_ACEOF
10126 #define u_int8_t unsigned char
10127 _ACEOF
10128
10129 fi
10130
10131 { echo "$as_me:$LINENO: checking for int16_t" >&5
10132 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10133 if test "${ac_cv_type_int16_t+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 else
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h. */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 $ac_includes_default
10143 typedef int16_t ac__type_new_;
10144 int
10145 main ()
10146 {
10147 if ((ac__type_new_ *) 0)
10148 return 0;
10149 if (sizeof (ac__type_new_))
10150 return 0;
10151 ;
10152 return 0;
10153 }
10154 _ACEOF
10155 rm -f conftest.$ac_objext
10156 if { (ac_try="$ac_compile"
10157 case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10160 esac
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_compile") 2>conftest.er1
10163 ac_status=$?
10164 grep -v '^ *+' conftest.er1 >conftest.err
10165 rm -f conftest.er1
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } && {
10169 test -z "$ac_c_werror_flag" ||
10170 test ! -s conftest.err
10171 } && test -s conftest.$ac_objext; then
10172 ac_cv_type_int16_t=yes
10173 else
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10176
10177 ac_cv_type_int16_t=no
10178 fi
10179
10180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10181 fi
10182 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10183 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10184 if test $ac_cv_type_int16_t = yes; then
10185 :
10186 else
10187
10188 cat >>confdefs.h <<\_ACEOF
10189 #define int16_t short
10190 _ACEOF
10191
10192 $ac_includes_default
10193 #ifdef HAVE_SYS_BITYPES_H
10194 #include <sys/bitypes.h>
10195 #endif
10196 fi
10197
10198 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
10199 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10200 if test "${ac_cv_type_u_int16_t+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203 cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h. */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10209 $ac_includes_default
10210 #ifdef HAVE_SYS_BITYPES_H
10211 #include <sys/bitypes.h>
10212 #endif
10213
10214 typedef u_int16_t ac__type_new_;
10215 int
10216 main ()
10217 {
10218 if ((ac__type_new_ *) 0)
10219 return 0;
10220 if (sizeof (ac__type_new_))
10221 return 0;
10222 ;
10223 return 0;
10224 }
10225 _ACEOF
10226 rm -f conftest.$ac_objext
10227 if { (ac_try="$ac_compile"
10228 case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10231 esac
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_compile") 2>conftest.er1
10234 ac_status=$?
10235 grep -v '^ *+' conftest.er1 >conftest.err
10236 rm -f conftest.er1
10237 cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } && {
10240 test -z "$ac_c_werror_flag" ||
10241 test ! -s conftest.err
10242 } && test -s conftest.$ac_objext; then
10243 ac_cv_type_u_int16_t=yes
10244 else
10245 echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10247
10248 ac_cv_type_u_int16_t=no
10249 fi
10250
10251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10252 fi
10253 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10254 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10255 if test $ac_cv_type_u_int16_t = yes; then
10256 :
10257 else
10258
10259 cat >>confdefs.h <<\_ACEOF
10260 #define u_int16_t unsigned short
10261 _ACEOF
10262
10263 fi
10264
10265 { echo "$as_me:$LINENO: checking for int32_t" >&5
10266 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10267 if test "${ac_cv_type_int32_t+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270 cat >conftest.$ac_ext <<_ACEOF
10271 /* confdefs.h. */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10276 $ac_includes_default
10277 #ifdef HAVE_SYS_BITYPES_H
10278 #include <sys/bitypes.h>
10279 #endif
10280
10281 typedef int32_t ac__type_new_;
10282 int
10283 main ()
10284 {
10285 if ((ac__type_new_ *) 0)
10286 return 0;
10287 if (sizeof (ac__type_new_))
10288 return 0;
10289 ;
10290 return 0;
10291 }
10292 _ACEOF
10293 rm -f conftest.$ac_objext
10294 if { (ac_try="$ac_compile"
10295 case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10298 esac
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300 (eval "$ac_compile") 2>conftest.er1
10301 ac_status=$?
10302 grep -v '^ *+' conftest.er1 >conftest.err
10303 rm -f conftest.er1
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } && {
10307 test -z "$ac_c_werror_flag" ||
10308 test ! -s conftest.err
10309 } && test -s conftest.$ac_objext; then
10310 ac_cv_type_int32_t=yes
10311 else
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10314
10315 ac_cv_type_int32_t=no
10316 fi
10317
10318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10319 fi
10320 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10321 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
10322 if test $ac_cv_type_int32_t = yes; then
10323 :
10324 else
10325
10326 cat >>confdefs.h <<\_ACEOF
10327 #define int32_t int
10328 _ACEOF
10329
10330 fi
10331
10332 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
10333 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10334 if test "${ac_cv_type_u_int32_t+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337 cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h. */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10343 $ac_includes_default
10344 #ifdef HAVE_SYS_BITYPES_H
10345 #include <sys/bitypes.h>
10346 #endif
10347
10348 typedef u_int32_t ac__type_new_;
10349 int
10350 main ()
10351 {
10352 if ((ac__type_new_ *) 0)
10353 return 0;
10354 if (sizeof (ac__type_new_))
10355 return 0;
10356 ;
10357 return 0;
10358 }
10359 _ACEOF
10360 rm -f conftest.$ac_objext
10361 if { (ac_try="$ac_compile"
10362 case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10365 esac
10366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367 (eval "$ac_compile") 2>conftest.er1
10368 ac_status=$?
10369 grep -v '^ *+' conftest.er1 >conftest.err
10370 rm -f conftest.er1
10371 cat conftest.err >&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } && {
10374 test -z "$ac_c_werror_flag" ||
10375 test ! -s conftest.err
10376 } && test -s conftest.$ac_objext; then
10377 ac_cv_type_u_int32_t=yes
10378 else
10379 echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10381
10382 ac_cv_type_u_int32_t=no
10383 fi
10384
10385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10386 fi
10387 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10388 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10389 if test $ac_cv_type_u_int32_t = yes; then
10390 :
10391 else
10392
10393 cat >>confdefs.h <<\_ACEOF
10394 #define u_int32_t unsigned int
10395 _ACEOF
10396
10397 fi
10398
10399 { echo "$as_me:$LINENO: checking for int64_t" >&5
10400 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10401 if test "${ac_cv_type_int64_t+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404 cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h. */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 $ac_includes_default
10411 #ifdef HAVE_SYS_BITYPES_H
10412 #include <sys/bitypes.h>
10413 #endif
10414
10415 typedef int64_t ac__type_new_;
10416 int
10417 main ()
10418 {
10419 if ((ac__type_new_ *) 0)
10420 return 0;
10421 if (sizeof (ac__type_new_))
10422 return 0;
10423 ;
10424 return 0;
10425 }
10426 _ACEOF
10427 rm -f conftest.$ac_objext
10428 if { (ac_try="$ac_compile"
10429 case "(($ac_try" in
10430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431 *) ac_try_echo=$ac_try;;
10432 esac
10433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434 (eval "$ac_compile") 2>conftest.er1
10435 ac_status=$?
10436 grep -v '^ *+' conftest.er1 >conftest.err
10437 rm -f conftest.er1
10438 cat conftest.err >&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } && {
10441 test -z "$ac_c_werror_flag" ||
10442 test ! -s conftest.err
10443 } && test -s conftest.$ac_objext; then
10444 ac_cv_type_int64_t=yes
10445 else
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449 ac_cv_type_int64_t=no
10450 fi
10451
10452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10453 fi
10454 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10455 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
10456 if test $ac_cv_type_int64_t = yes; then
10457 :
10458 else
10459
10460 cat >>confdefs.h <<\_ACEOF
10461 #define int64_t long long
10462 _ACEOF
10463
10464 fi
10465
10466 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
10467 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10468 if test "${ac_cv_type_u_int64_t+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10471 cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h. */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10477 $ac_includes_default
10478 #ifdef HAVE_SYS_BITYPES_H
10479 #include <sys/bitypes.h>
10480 #endif
10481
10482 typedef u_int64_t ac__type_new_;
10483 int
10484 main ()
10485 {
10486 if ((ac__type_new_ *) 0)
10487 return 0;
10488 if (sizeof (ac__type_new_))
10489 return 0;
10490 ;
10491 return 0;
10492 }
10493 _ACEOF
10494 rm -f conftest.$ac_objext
10495 if { (ac_try="$ac_compile"
10496 case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10499 esac
10500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_compile") 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } && {
10508 test -z "$ac_c_werror_flag" ||
10509 test ! -s conftest.err
10510 } && test -s conftest.$ac_objext; then
10511 ac_cv_type_u_int64_t=yes
10512 else
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10515
10516 ac_cv_type_u_int64_t=no
10517 fi
10518
10519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10520 fi
10521 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10522 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
10523 if test $ac_cv_type_u_int64_t = yes; then
10524 :
10525 else
10526
10527 cat >>confdefs.h <<\_ACEOF
10528 #define u_int64_t unsigned long long
10529 _ACEOF
10530
10531 fi
10532
10533
10534 #
10535 # We can't just check for <inttypes.h> - some systems have one that
10536 # doesn't define all the PRI[doxu]64 macros.
10537 #
10538
10539 for ac_header in inttypes.h
10540 do
10541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 fi
10548 ac_res=`eval echo '${'$as_ac_Header'}'`
10549 { echo "$as_me:$LINENO: result: $ac_res" >&5
10550 echo "${ECHO_T}$ac_res" >&6; }
10551 else
10552 # Is the header compilable?
10553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10555 cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h. */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 $ac_includes_default
10562 #include <$ac_header>
10563 _ACEOF
10564 rm -f conftest.$ac_objext
10565 if { (ac_try="$ac_compile"
10566 case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10569 esac
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_compile") 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest.$ac_objext; then
10581 ac_header_compiler=yes
10582 else
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10585
10586 ac_header_compiler=no
10587 fi
10588
10589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10591 echo "${ECHO_T}$ac_header_compiler" >&6; }
10592
10593 # Is the header present?
10594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10596 cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h. */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 #include <$ac_header>
10603 _ACEOF
10604 if { (ac_try="$ac_cpp conftest.$ac_ext"
10605 case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10608 esac
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10611 ac_status=$?
10612 grep -v '^ *+' conftest.er1 >conftest.err
10613 rm -f conftest.er1
10614 cat conftest.err >&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } >/dev/null && {
10617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10618 test ! -s conftest.err
10619 }; then
10620 ac_header_preproc=yes
10621 else
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10624
10625 ac_header_preproc=no
10626 fi
10627
10628 rm -f conftest.err conftest.$ac_ext
10629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10630 echo "${ECHO_T}$ac_header_preproc" >&6; }
10631
10632 # So? What about this header?
10633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10634 yes:no: )
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10639 ac_header_preproc=yes
10640 ;;
10641 no:yes:* )
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10654
10655 ;;
10656 esac
10657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662 eval "$as_ac_Header=\$ac_header_preproc"
10663 fi
10664 ac_res=`eval echo '${'$as_ac_Header'}'`
10665 { echo "$as_me:$LINENO: result: $ac_res" >&5
10666 echo "${ECHO_T}$ac_res" >&6; }
10667
10668 fi
10669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10670 cat >>confdefs.h <<_ACEOF
10671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10672 _ACEOF
10673
10674 #
10675 # OK, we have inttypes.h, but does it define those macros?
10676 #
10677 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10678 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
10679 cat >conftest.$ac_ext <<_ACEOF
10680
10681 /* confdefs.h. */
10682 _ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10686
10687 #include <inttypes.h>
10688 #include <stdio.h>
10689 #include <sys/types.h>
10690 #ifdef HAVE_SYS_BITYPES_H
10691 #include <sys/bitypes.h>
10692 #endif
10693
10694 main()
10695 {
10696 printf("%" PRId64 "\n", (u_int64_t)1);
10697 printf("%" PRIo64 "\n", (u_int64_t)1);
10698 printf("%" PRIx64 "\n", (u_int64_t)1);
10699 printf("%" PRIu64 "\n", (u_int64_t)1);
10700 }
10701
10702
10703 _ACEOF
10704 rm -f conftest.$ac_objext
10705 if { (ac_try="$ac_compile"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709 esac
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_compile") 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && {
10718 test -z "$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 } && test -s conftest.$ac_objext; then
10721
10722 { echo "$as_me:$LINENO: result: yes" >&5
10723 echo "${ECHO_T}yes" >&6; }
10724 ac_lbl_inttypes_h_defines_formats=yes
10725
10726 else
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730
10731 { echo "$as_me:$LINENO: result: no" >&5
10732 echo "${ECHO_T}no" >&6; }
10733 ac_lbl_inttypes_h_defines_formats=no
10734
10735 fi
10736
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10738
10739 else
10740
10741 #
10742 # We don't have inttypes.h, so it obviously can't define those
10743 # macros.
10744 #
10745 ac_lbl_inttypes_h_defines_formats=no
10746
10747 fi
10748
10749 done
10750
10751 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10752
10753 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10754 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10755 if test "$cross_compiling" = yes; then
10756 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10757 See \`config.log' for more details." >&5
10758 echo "$as_me: error: cannot run test program while cross compiling
10759 See \`config.log' for more details." >&2;}
10760 { (exit 1); exit 1; }; }
10761 else
10762 cat >conftest.$ac_ext <<_ACEOF
10763
10764 /* confdefs.h. */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769
10770 # ifdef HAVE_INTTYPES_H
10771 #include <inttypes.h>
10772 # endif
10773 # ifdef HAVE_SYS_BITYPES_H
10774 #include <sys/bitypes.h>
10775 # endif
10776 #include <stdio.h>
10777 #include <sys/types.h>
10778
10779 main()
10780 {
10781 u_int64_t t = 1;
10782 char strbuf[16+1];
10783 sprintf(strbuf, "%016lx", t << 32);
10784 if (strcmp(strbuf, "0000000100000000") == 0)
10785 exit(0);
10786 else
10787 exit(1);
10788 }
10789
10790
10791 _ACEOF
10792 rm -f conftest$ac_exeext
10793 if { (ac_try="$ac_link"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_link") 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10803 { (case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10806 esac
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_try") 2>&5
10809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; }; then
10812
10813
10814 cat >>confdefs.h <<\_ACEOF
10815 #define PRId64 "ld"
10816 _ACEOF
10817
10818
10819 cat >>confdefs.h <<\_ACEOF
10820 #define PRIo64 "lo"
10821 _ACEOF
10822
10823
10824 cat >>confdefs.h <<\_ACEOF
10825 #define PRIx64 "lx"
10826 _ACEOF
10827
10828
10829 cat >>confdefs.h <<\_ACEOF
10830 #define PRIu64 "lu"
10831 _ACEOF
10832
10833 { echo "$as_me:$LINENO: result: yes" >&5
10834 echo "${ECHO_T}yes" >&6; }
10835
10836 else
10837 echo "$as_me: program exited with status $ac_status" >&5
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10840
10841 ( exit $ac_status )
10842
10843 { echo "$as_me:$LINENO: result: no" >&5
10844 echo "${ECHO_T}no" >&6; }
10845
10846
10847 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10848 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
10849 if test "$cross_compiling" = yes; then
10850 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10851 See \`config.log' for more details." >&5
10852 echo "$as_me: error: cannot run test program while cross compiling
10853 See \`config.log' for more details." >&2;}
10854 { (exit 1); exit 1; }; }
10855 else
10856 cat >conftest.$ac_ext <<_ACEOF
10857
10858 /* confdefs.h. */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863
10864 # ifdef HAVE_INTTYPES_H
10865 #include <inttypes.h>
10866 # endif
10867 # ifdef HAVE_SYS_BITYPES_H
10868 #include <sys/bitypes.h>
10869 # endif
10870 #include <stdio.h>
10871 #include <sys/types.h>
10872
10873 main()
10874 {
10875 u_int64_t t = 1;
10876 char strbuf[16+1];
10877 sprintf(strbuf, "%016llx", t << 32);
10878 if (strcmp(strbuf, "0000000100000000") == 0)
10879 exit(0);
10880 else
10881 exit(1);
10882 }
10883
10884
10885 _ACEOF
10886 rm -f conftest$ac_exeext
10887 if { (ac_try="$ac_link"
10888 case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891 esac
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_link") 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906
10907
10908 cat >>confdefs.h <<\_ACEOF
10909 #define PRId64 "lld"
10910 _ACEOF
10911
10912
10913 cat >>confdefs.h <<\_ACEOF
10914 #define PRIo64 "llo"
10915 _ACEOF
10916
10917
10918 cat >>confdefs.h <<\_ACEOF
10919 #define PRIx64 "llx"
10920 _ACEOF
10921
10922
10923 cat >>confdefs.h <<\_ACEOF
10924 #define PRIu64 "llu"
10925 _ACEOF
10926
10927 { echo "$as_me:$LINENO: result: yes" >&5
10928 echo "${ECHO_T}yes" >&6; }
10929
10930 else
10931 echo "$as_me: program exited with status $ac_status" >&5
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10934
10935 ( exit $ac_status )
10936
10937 { echo "$as_me:$LINENO: result: no" >&5
10938 echo "${ECHO_T}no" >&6; }
10939
10940
10941 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10942 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10943 if test "$cross_compiling" = yes; then
10944 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10945 See \`config.log' for more details." >&5
10946 echo "$as_me: error: cannot run test program while cross compiling
10947 See \`config.log' for more details." >&2;}
10948 { (exit 1); exit 1; }; }
10949 else
10950 cat >conftest.$ac_ext <<_ACEOF
10951
10952 /* confdefs.h. */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957
10958 # ifdef HAVE_INTTYPES_H
10959 #include <inttypes.h>
10960 # endif
10961 # ifdef HAVE_SYS_BITYPES_H
10962 #include <sys/bitypes.h>
10963 # endif
10964 #include <stdio.h>
10965 #include <sys/types.h>
10966
10967 main()
10968 {
10969 u_int64_t t = 1;
10970 char strbuf[16+1];
10971 sprintf(strbuf, "%016Lx", t << 32);
10972 if (strcmp(strbuf, "0000000100000000") == 0)
10973 exit(0);
10974 else
10975 exit(1);
10976 }
10977
10978
10979 _ACEOF
10980 rm -f conftest$ac_exeext
10981 if { (ac_try="$ac_link"
10982 case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985 esac
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_link") 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10991 { (case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10994 esac
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_try") 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11000
11001
11002 cat >>confdefs.h <<\_ACEOF
11003 #define PRId64 "Ld"
11004 _ACEOF
11005
11006
11007 cat >>confdefs.h <<\_ACEOF
11008 #define PRIo64 "Lo"
11009 _ACEOF
11010
11011
11012 cat >>confdefs.h <<\_ACEOF
11013 #define PRIx64 "Lx"
11014 _ACEOF
11015
11016
11017 cat >>confdefs.h <<\_ACEOF
11018 #define PRIu64 "Lu"
11019 _ACEOF
11020
11021 { echo "$as_me:$LINENO: result: yes" >&5
11022 echo "${ECHO_T}yes" >&6; }
11023
11024 else
11025 echo "$as_me: program exited with status $ac_status" >&5
11026 echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11028
11029 ( exit $ac_status )
11030
11031 { echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6; }
11033
11034
11035 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
11036 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
11037 if test "$cross_compiling" = yes; then
11038 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11039 See \`config.log' for more details." >&5
11040 echo "$as_me: error: cannot run test program while cross compiling
11041 See \`config.log' for more details." >&2;}
11042 { (exit 1); exit 1; }; }
11043 else
11044 cat >conftest.$ac_ext <<_ACEOF
11045
11046 /* confdefs.h. */
11047 _ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11051
11052 # ifdef HAVE_INTTYPES_H
11053 #include <inttypes.h>
11054 # endif
11055 # ifdef HAVE_SYS_BITYPES_H
11056 #include <sys/bitypes.h>
11057 # endif
11058 #include <stdio.h>
11059 #include <sys/types.h>
11060
11061 main()
11062 {
11063 u_int64_t t = 1;
11064 char strbuf[16+1];
11065 sprintf(strbuf, "%016qx", t << 32);
11066 if (strcmp(strbuf, "0000000100000000") == 0)
11067 exit(0);
11068 else
11069 exit(1);
11070 }
11071
11072
11073 _ACEOF
11074 rm -f conftest$ac_exeext
11075 if { (ac_try="$ac_link"
11076 case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11079 esac
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_link") 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11085 { (case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11088 esac
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_try") 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094
11095
11096 cat >>confdefs.h <<\_ACEOF
11097 #define PRId64 "qd"
11098 _ACEOF
11099
11100
11101 cat >>confdefs.h <<\_ACEOF
11102 #define PRIo64 "qo"
11103 _ACEOF
11104
11105
11106 cat >>confdefs.h <<\_ACEOF
11107 #define PRIx64 "qx"
11108 _ACEOF
11109
11110
11111 cat >>confdefs.h <<\_ACEOF
11112 #define PRIu64 "qu"
11113 _ACEOF
11114
11115 { echo "$as_me:$LINENO: result: yes" >&5
11116 echo "${ECHO_T}yes" >&6; }
11117
11118 else
11119 echo "$as_me: program exited with status $ac_status" >&5
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11122
11123 ( exit $ac_status )
11124
11125 { echo "$as_me:$LINENO: result: no" >&5
11126 echo "${ECHO_T}no" >&6; }
11127
11128 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11129 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11130 { (exit 1); exit 1; }; }
11131
11132
11133 fi
11134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11135 fi
11136
11137
11138
11139
11140
11141 fi
11142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11143 fi
11144
11145
11146
11147
11148
11149 fi
11150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11151 fi
11152
11153
11154
11155
11156
11157 fi
11158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11159 fi
11160
11161
11162
11163 fi
11164
11165 #
11166 # Check for some headers introduced in later versions of libpcap
11167 # and used by some printers.
11168 #
11169 # Those headers use the {u_}intN_t types, so we must do this after
11170 # we check for what's needed to get them defined.
11171 #
11172 savedcppflags="$CPPFLAGS"
11173 CPPFLAGS="$CPPFLAGS $V_INCLS"
11174
11175 for ac_header in pcap/bluetooth.h
11176 do
11177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h. */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 #include <tcpdump-stdinc.h>
11190
11191 #include <$ac_header>
11192 _ACEOF
11193 rm -f conftest.$ac_objext
11194 if { (ac_try="$ac_compile"
11195 case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11198 esac
11199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200 (eval "$ac_compile") 2>conftest.er1
11201 ac_status=$?
11202 grep -v '^ *+' conftest.er1 >conftest.err
11203 rm -f conftest.er1
11204 cat conftest.err >&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && {
11207 test -z "$ac_c_werror_flag" ||
11208 test ! -s conftest.err
11209 } && test -s conftest.$ac_objext; then
11210 eval "$as_ac_Header=yes"
11211 else
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 eval "$as_ac_Header=no"
11216 fi
11217
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219 fi
11220 ac_res=`eval echo '${'$as_ac_Header'}'`
11221 { echo "$as_me:$LINENO: result: $ac_res" >&5
11222 echo "${ECHO_T}$ac_res" >&6; }
11223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11224 cat >>confdefs.h <<_ACEOF
11225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11226 _ACEOF
11227
11228 fi
11229
11230 done
11231
11232
11233 for ac_header in pcap/usb.h
11234 do
11235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h. */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 #include <tcpdump-stdinc.h>
11248
11249 #include <$ac_header>
11250 _ACEOF
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } && {
11265 test -z "$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11267 } && test -s conftest.$ac_objext; then
11268 eval "$as_ac_Header=yes"
11269 else
11270 echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11272
11273 eval "$as_ac_Header=no"
11274 fi
11275
11276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11277 fi
11278 ac_res=`eval echo '${'$as_ac_Header'}'`
11279 { echo "$as_me:$LINENO: result: $ac_res" >&5
11280 echo "${ECHO_T}$ac_res" >&6; }
11281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11282 cat >>confdefs.h <<_ACEOF
11283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11284 _ACEOF
11285
11286 fi
11287
11288 done
11289
11290 CPPFLAGS="$savedcppflags"
11291
11292 if test -n "$ac_tool_prefix"; then
11293 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11294 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11297 if test "${ac_cv_prog_RANLIB+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300 if test -n "$RANLIB"; then
11301 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11302 else
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11305 do
11306 IFS=$as_save_IFS
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
11309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11310 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11312 break 2
11313 fi
11314 done
11315 done
11316 IFS=$as_save_IFS
11317
11318 fi
11319 fi
11320 RANLIB=$ac_cv_prog_RANLIB
11321 if test -n "$RANLIB"; then
11322 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11323 echo "${ECHO_T}$RANLIB" >&6; }
11324 else
11325 { echo "$as_me:$LINENO: result: no" >&5
11326 echo "${ECHO_T}no" >&6; }
11327 fi
11328
11329
11330 fi
11331 if test -z "$ac_cv_prog_RANLIB"; then
11332 ac_ct_RANLIB=$RANLIB
11333 # Extract the first word of "ranlib", so it can be a program name with args.
11334 set dummy ranlib; ac_word=$2
11335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11337 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340 if test -n "$ac_ct_RANLIB"; then
11341 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11342 else
11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344 for as_dir in $PATH
11345 do
11346 IFS=$as_save_IFS
11347 test -z "$as_dir" && as_dir=.
11348 for ac_exec_ext in '' $ac_executable_extensions; do
11349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11350 ac_cv_prog_ac_ct_RANLIB="ranlib"
11351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11352 break 2
11353 fi
11354 done
11355 done
11356 IFS=$as_save_IFS
11357
11358 fi
11359 fi
11360 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11361 if test -n "$ac_ct_RANLIB"; then
11362 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11363 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11364 else
11365 { echo "$as_me:$LINENO: result: no" >&5
11366 echo "${ECHO_T}no" >&6; }
11367 fi
11368
11369 if test "x$ac_ct_RANLIB" = x; then
11370 RANLIB=":"
11371 else
11372 case $cross_compiling:$ac_tool_warned in
11373 yes:)
11374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11375 whose name does not start with the host triplet. If you think this
11376 configuration is useful to you, please write to autoconf@gnu.org." >&5
11377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11378 whose name does not start with the host triplet. If you think this
11379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11380 ac_tool_warned=yes ;;
11381 esac
11382 RANLIB=$ac_ct_RANLIB
11383 fi
11384 else
11385 RANLIB="$ac_cv_prog_RANLIB"
11386 fi
11387
11388
11389 rm -f os-proto.h
11390 if test "${LBL_CFLAGS+set}" = set; then
11391 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11392 fi
11393 if test -f .devel ; then
11394 #
11395 # Skip all the warning option stuff on some compilers.
11396 #
11397 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
11398
11399 { echo "$as_me:$LINENO: checking whether the compiler fails when given an unknown warning option" >&5
11400 echo $ECHO_N "checking whether the compiler fails when given an unknown warning option... $ECHO_C" >&6; }
11401 save_CFLAGS="$CFLAGS"
11402 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
11403 cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h. */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409
11410 int
11411 main ()
11412 {
11413 return 0
11414 ;
11415 return 0;
11416 }
11417 _ACEOF
11418 rm -f conftest.$ac_objext
11419 if { (ac_try="$ac_compile"
11420 case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11423 esac
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_compile") 2>conftest.er1
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } && {
11432 test -z "$ac_c_werror_flag" ||
11433 test ! -s conftest.err
11434 } && test -s conftest.$ac_objext; then
11435
11436 { echo "$as_me:$LINENO: result: no" >&5
11437 echo "${ECHO_T}no" >&6; }
11438 #
11439 # We're assuming this is clang, where
11440 # -Werror=unknown-warning-option is the appropriate
11441 # option to force the compiler to fail.
11442 #
11443 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
11444
11445 else
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11448
11449
11450 { echo "$as_me:$LINENO: result: yes" >&5
11451 echo "${ECHO_T}yes" >&6; }
11452
11453 fi
11454
11455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11456 CFLAGS="$save_CFLAGS"
11457
11458
11459 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wall option" >&5
11460 echo $ECHO_N "checking whether the compiler supports the -Wall option... $ECHO_C" >&6; }
11461 save_CFLAGS="$CFLAGS"
11462 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
11463 cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h. */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469
11470 int
11471 main ()
11472 {
11473 return 0
11474 ;
11475 return 0;
11476 }
11477 _ACEOF
11478 rm -f conftest.$ac_objext
11479 if { (ac_try="$ac_compile"
11480 case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11483 esac
11484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485 (eval "$ac_compile") 2>conftest.er1
11486 ac_status=$?
11487 grep -v '^ *+' conftest.er1 >conftest.err
11488 rm -f conftest.er1
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } && {
11492 test -z "$ac_c_werror_flag" ||
11493 test ! -s conftest.err
11494 } && test -s conftest.$ac_objext; then
11495
11496 { echo "$as_me:$LINENO: result: yes" >&5
11497 echo "${ECHO_T}yes" >&6; }
11498 CFLAGS="$save_CFLAGS"
11499 V_CCOPT="$V_CCOPT -Wall"
11500
11501 else
11502 echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11504
11505
11506 { echo "$as_me:$LINENO: result: no" >&5
11507 echo "${ECHO_T}no" >&6; }
11508 CFLAGS="$save_CFLAGS"
11509
11510 fi
11511
11512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11513
11514
11515 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wmissing-prototypes option" >&5
11516 echo $ECHO_N "checking whether the compiler supports the -Wmissing-prototypes option... $ECHO_C" >&6; }
11517 save_CFLAGS="$CFLAGS"
11518 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
11519 cat >conftest.$ac_ext <<_ACEOF
11520 /* confdefs.h. */
11521 _ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11525
11526 int
11527 main ()
11528 {
11529 return 0
11530 ;
11531 return 0;
11532 }
11533 _ACEOF
11534 rm -f conftest.$ac_objext
11535 if { (ac_try="$ac_compile"
11536 case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_compile") 2>conftest.er1
11542 ac_status=$?
11543 grep -v '^ *+' conftest.er1 >conftest.err
11544 rm -f conftest.er1
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } && {
11548 test -z "$ac_c_werror_flag" ||
11549 test ! -s conftest.err
11550 } && test -s conftest.$ac_objext; then
11551
11552 { echo "$as_me:$LINENO: result: yes" >&5
11553 echo "${ECHO_T}yes" >&6; }
11554 CFLAGS="$save_CFLAGS"
11555 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
11556
11557 else
11558 echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11560
11561
11562 { echo "$as_me:$LINENO: result: no" >&5
11563 echo "${ECHO_T}no" >&6; }
11564 CFLAGS="$save_CFLAGS"
11565
11566 fi
11567
11568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569
11570
11571 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wstrict-prototypes option" >&5
11572 echo $ECHO_N "checking whether the compiler supports the -Wstrict-prototypes option... $ECHO_C" >&6; }
11573 save_CFLAGS="$CFLAGS"
11574 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h. */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11581
11582 int
11583 main ()
11584 {
11585 return 0
11586 ;
11587 return 0;
11588 }
11589 _ACEOF
11590 rm -f conftest.$ac_objext
11591 if { (ac_try="$ac_compile"
11592 case "(($ac_try" in
11593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11594 *) ac_try_echo=$ac_try;;
11595 esac
11596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11597 (eval "$ac_compile") 2>conftest.er1
11598 ac_status=$?
11599 grep -v '^ *+' conftest.er1 >conftest.err
11600 rm -f conftest.er1
11601 cat conftest.err >&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } && {
11604 test -z "$ac_c_werror_flag" ||
11605 test ! -s conftest.err
11606 } && test -s conftest.$ac_objext; then
11607
11608 { echo "$as_me:$LINENO: result: yes" >&5
11609 echo "${ECHO_T}yes" >&6; }
11610 CFLAGS="$save_CFLAGS"
11611 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
11612
11613 else
11614 echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11616
11617
11618 { echo "$as_me:$LINENO: result: no" >&5
11619 echo "${ECHO_T}no" >&6; }
11620 CFLAGS="$save_CFLAGS"
11621
11622 fi
11623
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625
11626
11627 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wwrite-strings option" >&5
11628 echo $ECHO_N "checking whether the compiler supports the -Wwrite-strings option... $ECHO_C" >&6; }
11629 save_CFLAGS="$CFLAGS"
11630 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wwrite-strings"
11631 cat >conftest.$ac_ext <<_ACEOF
11632 /* confdefs.h. */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11637
11638 int
11639 main ()
11640 {
11641 return 0
11642 ;
11643 return 0;
11644 }
11645 _ACEOF
11646 rm -f conftest.$ac_objext
11647 if { (ac_try="$ac_compile"
11648 case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11651 esac
11652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_compile") 2>conftest.er1
11654 ac_status=$?
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } && {
11660 test -z "$ac_c_werror_flag" ||
11661 test ! -s conftest.err
11662 } && test -s conftest.$ac_objext; then
11663
11664 { echo "$as_me:$LINENO: result: yes" >&5
11665 echo "${ECHO_T}yes" >&6; }
11666 CFLAGS="$save_CFLAGS"
11667 V_CCOPT="$V_CCOPT -Wwrite-strings"
11668
11669 else
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11672
11673
11674 { echo "$as_me:$LINENO: result: no" >&5
11675 echo "${ECHO_T}no" >&6; }
11676 CFLAGS="$save_CFLAGS"
11677
11678 fi
11679
11680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11681
11682
11683 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wpointer-arith option" >&5
11684 echo $ECHO_N "checking whether the compiler supports the -Wpointer-arith option... $ECHO_C" >&6; }
11685 save_CFLAGS="$CFLAGS"
11686 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wpointer-arith"
11687 cat >conftest.$ac_ext <<_ACEOF
11688 /* confdefs.h. */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h. */
11693
11694 int
11695 main ()
11696 {
11697 return 0
11698 ;
11699 return 0;
11700 }
11701 _ACEOF
11702 rm -f conftest.$ac_objext
11703 if { (ac_try="$ac_compile"
11704 case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707 esac
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_compile") 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest.$ac_objext; then
11719
11720 { echo "$as_me:$LINENO: result: yes" >&5
11721 echo "${ECHO_T}yes" >&6; }
11722 CFLAGS="$save_CFLAGS"
11723 V_CCOPT="$V_CCOPT -Wpointer-arith"
11724
11725 else
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11728
11729
11730 { echo "$as_me:$LINENO: result: no" >&5
11731 echo "${ECHO_T}no" >&6; }
11732 CFLAGS="$save_CFLAGS"
11733
11734 fi
11735
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11737
11738
11739 { echo "$as_me:$LINENO: checking whether the compiler supports the -W option" >&5
11740 echo $ECHO_N "checking whether the compiler supports the -W option... $ECHO_C" >&6; }
11741 save_CFLAGS="$CFLAGS"
11742 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
11743 cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h. */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749
11750 int
11751 main ()
11752 {
11753 return 0
11754 ;
11755 return 0;
11756 }
11757 _ACEOF
11758 rm -f conftest.$ac_objext
11759 if { (ac_try="$ac_compile"
11760 case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763 esac
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_compile") 2>conftest.er1
11766 ac_status=$?
11767 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } && {
11772 test -z "$ac_c_werror_flag" ||
11773 test ! -s conftest.err
11774 } && test -s conftest.$ac_objext; then
11775
11776 { echo "$as_me:$LINENO: result: yes" >&5
11777 echo "${ECHO_T}yes" >&6; }
11778 CFLAGS="$save_CFLAGS"
11779 V_CCOPT="$V_CCOPT -W"
11780
11781 else
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11784
11785
11786 { echo "$as_me:$LINENO: result: no" >&5
11787 echo "${ECHO_T}no" >&6; }
11788 CFLAGS="$save_CFLAGS"
11789
11790 fi
11791
11792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11793
11794 fi
11795
11796 { echo "$as_me:$LINENO: checking whether the compiler supports generating dependencies" >&5
11797 echo $ECHO_N "checking whether the compiler supports generating dependencies... $ECHO_C" >&6; }
11798 if test "$GCC" = yes ; then
11799 #
11800 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
11801 # though it's not); we assume that, in this case, the flag
11802 # would be -M.
11803 #
11804 ac_lbl_dependency_flag="-M"
11805 else
11806 #
11807 # Not GCC or a compiler deemed to be GCC; what platform is
11808 # this? (We're assuming that if the compiler isn't GCC
11809 # it's the compiler from the vendor of the OS; that won't
11810 # necessarily be true for x86 platforms, where it might be
11811 # the Intel C compiler.)
11812 #
11813 case "$host_os" in
11814
11815 irix*|osf*|darwin*)
11816 #
11817 # MIPS C for IRIX, DEC C, and clang all use -M.
11818 #
11819 ac_lbl_dependency_flag="-M"
11820 ;;
11821
11822 solaris*)
11823 #
11824 # Sun C uses -xM.
11825 #
11826 ac_lbl_dependency_flag="-xM"
11827 ;;
11828
11829 hpux*)
11830 #
11831 # HP's older C compilers don't support this.
11832 # HP's newer C compilers support this with
11833 # either +M or +Make; the older compilers
11834 # interpret +M as something completely
11835 # different, so we use +Make so we don't
11836 # think it works with the older compilers.
11837 #
11838 ac_lbl_dependency_flag="+Make"
11839 ;;
11840
11841 *)
11842 #
11843 # Not one of the above; assume no support for
11844 # generating dependencies.
11845 #
11846 ac_lbl_dependency_flag=""
11847 ;;
11848 esac
11849 fi
11850
11851 #
11852 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
11853 # complain about it?
11854 #
11855 # Note: clang doesn't seem to exit with an error status when handed
11856 # an unknown non-warning error, even if you pass it
11857 # -Werror=unknown-warning-option. However, it always supports
11858 # -M, so the fact that this test always succeeds with clang
11859 # isn't an issue.
11860 #
11861 if test ! -z "$ac_lbl_dependency_flag"; then
11862 cat >conftest.$ac_ext <<_ACEOF
11863 /* confdefs.h. */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11868 int main(void) { return 0; }
11869 _ACEOF
11870 echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
11871 if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
11872 { echo "$as_me:$LINENO: result: yes, with $ac_lbl_dependency_flag" >&5
11873 echo "${ECHO_T}yes, with $ac_lbl_dependency_flag" >&6; }
11874 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
11875 MKDEP='${srcdir}/mkdep'
11876 else
11877 { echo "$as_me:$LINENO: result: no" >&5
11878 echo "${ECHO_T}no" >&6; }
11879 #
11880 # We can't run mkdep, so have "make depend" do
11881 # nothing.
11882 #
11883 MKDEP=:
11884 fi
11885 rm -rf conftest*
11886 else
11887 { echo "$as_me:$LINENO: result: no" >&5
11888 echo "${ECHO_T}no" >&6; }
11889 #
11890 # We can't run mkdep, so have "make depend" do
11891 # nothing.
11892 #
11893 MKDEP=:
11894 fi
11895
11896
11897
11898 if test "$GCC" = yes ; then
11899 if test "${LBL_CFLAGS+set}" != set; then
11900 if test "$ac_cv_prog_cc_g" = yes ; then
11901 V_CCOPT="-g $V_CCOPT"
11902 fi
11903 fi
11904 else
11905 case "$host_os" in
11906
11907 irix6*)
11908 V_CCOPT="$V_CCOPT -n32"
11909 ;;
11910
11911 *)
11912 ;;
11913 esac
11914 fi
11915 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11916 name="lbl/os-$os.h"
11917 if test -f $name ; then
11918 ln -s $name os-proto.h
11919
11920 cat >>confdefs.h <<\_ACEOF
11921 #define HAVE_OS_PROTO_H 1
11922 _ACEOF
11923
11924 else
11925 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11926 echo "$as_me: WARNING: can't find $name" >&2;}
11927 fi
11928 fi
11929
11930 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
11931 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
11932 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935 cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h. */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11941
11942 # include <sys/types.h>
11943 # include <sys/socket.h>
11944 int
11945 main ()
11946 {
11947 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11948 ;
11949 return 0;
11950 }
11951 _ACEOF
11952 rm -f conftest.$ac_objext
11953 if { (ac_try="$ac_compile"
11954 case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11957 esac
11958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_compile") 2>conftest.er1
11960 ac_status=$?
11961 grep -v '^ *+' conftest.er1 >conftest.err
11962 rm -f conftest.er1
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } && {
11966 test -z "$ac_c_werror_flag" ||
11967 test ! -s conftest.err
11968 } && test -s conftest.$ac_objext; then
11969 ac_cv_lbl_sockaddr_has_sa_len=yes
11970 else
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11973
11974 ac_cv_lbl_sockaddr_has_sa_len=no
11975 fi
11976
11977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11978 fi
11979
11980 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11981 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
11982 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11983
11984 cat >>confdefs.h <<\_ACEOF
11985 #define HAVE_SOCKADDR_SA_LEN 1
11986 _ACEOF
11987
11988 fi
11989
11990 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11991 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
11992 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995 case "$host_cpu" in
11996
11997 #
11998 # These are CPU types where:
11999 #
12000 # the CPU faults on an unaligned access, but at least some
12001 # OSes that support that CPU catch the fault and simulate
12002 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
12003 # the simulation is slow, so we don't want to use it;
12004 #
12005 # the CPU, I infer (from the old
12006 #
12007 # XXX: should also check that they don't do weird things (like on arm)
12008 #
12009 # comment) doesn't fault on unaligned accesses, but doesn't
12010 # do a normal unaligned fetch, either (e.g., presumably, ARM);
12011 #
12012 # for whatever reason, the test program doesn't work
12013 # (this has been claimed to be the case for several of those
12014 # CPUs - I don't know what the problem is; the problem
12015 # was reported as "the test program dumps core" for SuperH,
12016 # but that's what the test program is *supposed* to do -
12017 # it dumps core before it writes anything, so the test
12018 # for an empty output file should find an empty output
12019 # file and conclude that unaligned accesses don't work).
12020 #
12021 # This run-time test won't work if you're cross-compiling, so
12022 # in order to support cross-compiling for a particular CPU,
12023 # we have to wire in the list of CPU types anyway, as far as
12024 # I know, so perhaps we should just have a set of CPUs on
12025 # which we know it doesn't work, a set of CPUs on which we
12026 # know it does work, and have the script just fail on other
12027 # cpu types and update it when such a failure occurs.
12028 #
12029 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
12030 ac_cv_lbl_unaligned_fail=yes
12031 ;;
12032
12033 *)
12034 cat >conftest.c <<EOF
12035 # include <sys/types.h>
12036 # include <sys/wait.h>
12037 # include <stdio.h>
12038 unsigned char a[5] = { 1, 2, 3, 4, 5 };
12039 main() {
12040 unsigned int i;
12041 pid_t pid;
12042 int status;
12043 /* avoid "core dumped" message */
12044 pid = fork();
12045 if (pid < 0)
12046 exit(2);
12047 if (pid > 0) {
12048 /* parent */
12049 pid = waitpid(pid, &status, 0);
12050 if (pid < 0)
12051 exit(3);
12052 exit(!WIFEXITED(status));
12053 }
12054 /* child */
12055 i = *(unsigned int *)&a[1];
12056 printf("%d\n", i);
12057 exit(0);
12058 }
12059 EOF
12060 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
12061 conftest.c $LIBS >/dev/null 2>&1
12062 if test ! -x conftest ; then
12063 ac_cv_lbl_unaligned_fail=yes
12064 else
12065 ./conftest >conftest.out
12066 if test ! -s conftest.out ; then
12067 ac_cv_lbl_unaligned_fail=yes
12068 else
12069 ac_cv_lbl_unaligned_fail=no
12070 fi
12071 fi
12072 rm -f -r conftest* core core.conftest
12073 ;;
12074 esac
12075 fi
12076
12077 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
12078 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
12079 if test $ac_cv_lbl_unaligned_fail = yes ; then
12080
12081 cat >>confdefs.h <<\_ACEOF
12082 #define LBL_ALIGN 1
12083 _ACEOF
12084
12085 fi
12086
12087
12088 { echo "$as_me:$LINENO: checking for h_errno" >&5
12089 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
12090 if test "${ac_cv_var_h_errno+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h. */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099
12100 # include <sys/types.h>
12101 # include <netdb.h>
12102 int
12103 main ()
12104 {
12105 int foo = h_errno;
12106 ;
12107 return 0;
12108 }
12109 _ACEOF
12110 rm -f conftest.$ac_objext
12111 if { (ac_try="$ac_compile"
12112 case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12115 esac
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_compile") 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } && {
12124 test -z "$ac_c_werror_flag" ||
12125 test ! -s conftest.err
12126 } && test -s conftest.$ac_objext; then
12127 ac_cv_var_h_errno=yes
12128 else
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.$ac_ext >&5
12131
12132 ac_cv_var_h_errno=no
12133 fi
12134
12135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12136 fi
12137
12138 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
12139 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
12140 if test "$ac_cv_var_h_errno" = "yes"; then
12141
12142 cat >>confdefs.h <<\_ACEOF
12143 #define HAVE_H_ERRNO 1
12144 _ACEOF
12145
12146 fi
12147
12148
12149 # Check for OpenSSL libcrypto
12150 { echo "$as_me:$LINENO: checking whether to use OpenSSL libcrypto" >&5
12151 echo $ECHO_N "checking whether to use OpenSSL libcrypto... $ECHO_C" >&6; }
12152 # Specify location for both includes and libraries.
12153 want_libcrypto=ifavailable
12154
12155 # Check whether --with-crypto was given.
12156 if test "${with_crypto+set}" = set; then
12157 withval=$with_crypto;
12158 if test $withval = no
12159 then
12160 want_libcrypto=no
12161 { echo "$as_me:$LINENO: result: no" >&5
12162 echo "${ECHO_T}no" >&6; }
12163 elif test $withval = yes
12164 then
12165 want_libcrypto=yes
12166 { echo "$as_me:$LINENO: result: yes" >&5
12167 echo "${ECHO_T}yes" >&6; }
12168 fi
12169
12170 else
12171
12172 #
12173 # Use libcrypto if it's present, otherwise don't.
12174 #
12175 want_libcrypto=ifavailable
12176 { echo "$as_me:$LINENO: result: yes, if available" >&5
12177 echo "${ECHO_T}yes, if available" >&6; }
12178
12179 fi
12180
12181 if test "$want_libcrypto" != "no"; then
12182
12183 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
12184 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
12185 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188 ac_check_lib_save_LIBS=$LIBS
12189 LIBS="-lcrypto $LIBS"
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h. */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196
12197 /* Override any GCC internal prototype to avoid an error.
12198 Use char because int might match the return type of a GCC
12199 builtin and then its argument prototype would still apply. */
12200 #ifdef __cplusplus
12201 extern "C"
12202 #endif
12203 char DES_cbc_encrypt ();
12204 int
12205 main ()
12206 {
12207 return DES_cbc_encrypt ();
12208 ;
12209 return 0;
12210 }
12211 _ACEOF
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12217 esac
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_link") 2>conftest.er1
12220 ac_status=$?
12221 grep -v '^ *+' conftest.er1 >conftest.err
12222 rm -f conftest.er1
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } && {
12226 test -z "$ac_c_werror_flag" ||
12227 test ! -s conftest.err
12228 } && test -s conftest$ac_exeext &&
12229 $as_test_x conftest$ac_exeext; then
12230 ac_cv_lib_crypto_DES_cbc_encrypt=yes
12231 else
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235 ac_cv_lib_crypto_DES_cbc_encrypt=no
12236 fi
12237
12238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12239 conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12241 fi
12242 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
12243 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
12244 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
12245 cat >>confdefs.h <<_ACEOF
12246 #define HAVE_LIBCRYPTO 1
12247 _ACEOF
12248
12249 LIBS="-lcrypto $LIBS"
12250
12251 fi
12252
12253
12254 for ac_header in openssl/evp.h
12255 do
12256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 fi
12263 ac_res=`eval echo '${'$as_ac_Header'}'`
12264 { echo "$as_me:$LINENO: result: $ac_res" >&5
12265 echo "${ECHO_T}$ac_res" >&6; }
12266 else
12267 # Is the header compilable?
12268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12270 cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h. */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 $ac_includes_default
12277 #include <$ac_header>
12278 _ACEOF
12279 rm -f conftest.$ac_objext
12280 if { (ac_try="$ac_compile"
12281 case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12284 esac
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_compile") 2>conftest.er1
12287 ac_status=$?
12288 grep -v '^ *+' conftest.er1 >conftest.err
12289 rm -f conftest.er1
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } && {
12293 test -z "$ac_c_werror_flag" ||
12294 test ! -s conftest.err
12295 } && test -s conftest.$ac_objext; then
12296 ac_header_compiler=yes
12297 else
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 ac_header_compiler=no
12302 fi
12303
12304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12306 echo "${ECHO_T}$ac_header_compiler" >&6; }
12307
12308 # Is the header present?
12309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #include <$ac_header>
12318 _ACEOF
12319 if { (ac_try="$ac_cpp conftest.$ac_ext"
12320 case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323 esac
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12326 ac_status=$?
12327 grep -v '^ *+' conftest.er1 >conftest.err
12328 rm -f conftest.er1
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } >/dev/null && {
12332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12333 test ! -s conftest.err
12334 }; then
12335 ac_header_preproc=yes
12336 else
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12339
12340 ac_header_preproc=no
12341 fi
12342
12343 rm -f conftest.err conftest.$ac_ext
12344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12345 echo "${ECHO_T}$ac_header_preproc" >&6; }
12346
12347 # So? What about this header?
12348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12349 yes:no: )
12350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12354 ac_header_preproc=yes
12355 ;;
12356 no:yes:* )
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12369
12370 ;;
12371 esac
12372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377 eval "$as_ac_Header=\$ac_header_preproc"
12378 fi
12379 ac_res=`eval echo '${'$as_ac_Header'}'`
12380 { echo "$as_me:$LINENO: result: $ac_res" >&5
12381 echo "${ECHO_T}$ac_res" >&6; }
12382
12383 fi
12384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12385 cat >>confdefs.h <<_ACEOF
12386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12387 _ACEOF
12388
12389 fi
12390
12391 done
12392
12393 fi
12394
12395 if test "$missing_includes" = "yes"; then
12396 CPPFLAGS="$CPPFLAGS -I$srcdir/missing"
12397 V_INCLS="$V_INCLS -I$srcdir/missing"
12398 fi
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409 # Find a good install program. We prefer a C program (faster),
12410 # so one script is as good as another. But avoid the broken or
12411 # incompatible versions:
12412 # SysV /etc/install, /usr/sbin/install
12413 # SunOS /usr/etc/install
12414 # IRIX /sbin/install
12415 # AIX /bin/install
12416 # AmigaOS /C/install, which installs bootblocks on floppy discs
12417 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12418 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12419 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12420 # OS/2's system install, which has a completely different semantic
12421 # ./install, which can be erroneously created by make from ./install.sh.
12422 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12423 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
12424 if test -z "$INSTALL"; then
12425 if test "${ac_cv_path_install+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 else
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12430 do
12431 IFS=$as_save_IFS
12432 test -z "$as_dir" && as_dir=.
12433 # Account for people who put trailing slashes in PATH elements.
12434 case $as_dir/ in
12435 ./ | .// | /cC/* | \
12436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12437 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12438 /usr/ucb/* ) ;;
12439 *)
12440 # OSF1 and SCO ODT 3.0 have their own names for install.
12441 # Don't use installbsd from OSF since it installs stuff as root
12442 # by default.
12443 for ac_prog in ginstall scoinst install; do
12444 for ac_exec_ext in '' $ac_executable_extensions; do
12445 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12446 if test $ac_prog = install &&
12447 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12448 # AIX install. It has an incompatible calling convention.
12449 :
12450 elif test $ac_prog = install &&
12451 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12452 # program-specific install script used by HP pwplus--don't use.
12453 :
12454 else
12455 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12456 break 3
12457 fi
12458 fi
12459 done
12460 done
12461 ;;
12462 esac
12463 done
12464 IFS=$as_save_IFS
12465
12466
12467 fi
12468 if test "${ac_cv_path_install+set}" = set; then
12469 INSTALL=$ac_cv_path_install
12470 else
12471 # As a last resort, use the slow shell script. Don't cache a
12472 # value for INSTALL within a source directory, because that will
12473 # break other packages using the cache if that directory is
12474 # removed, or if the value is a relative name.
12475 INSTALL=$ac_install_sh
12476 fi
12477 fi
12478 { echo "$as_me:$LINENO: result: $INSTALL" >&5
12479 echo "${ECHO_T}$INSTALL" >&6; }
12480
12481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12482 # It thinks the first close brace ends the variable substitution.
12483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12484
12485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12486
12487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12488
12489
12490 ac_config_headers="$ac_config_headers config.h"
12491
12492
12493 ac_config_commands="$ac_config_commands default-1"
12494
12495 ac_config_files="$ac_config_files Makefile tcpdump.1"
12496
12497 cat >confcache <<\_ACEOF
12498 # This file is a shell script that caches the results of configure
12499 # tests run on this system so they can be shared between configure
12500 # scripts and configure runs, see configure's option --config-cache.
12501 # It is not useful on other systems. If it contains results you don't
12502 # want to keep, you may remove or edit it.
12503 #
12504 # config.status only pays attention to the cache file if you give it
12505 # the --recheck option to rerun configure.
12506 #
12507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12509 # following values.
12510
12511 _ACEOF
12512
12513 # The following way of writing the cache mishandles newlines in values,
12514 # but we know of no workaround that is simple, portable, and efficient.
12515 # So, we kill variables containing newlines.
12516 # Ultrix sh set writes to stderr and can't be redirected directly,
12517 # and sets the high bit in the cache file unless we assign to the vars.
12518 (
12519 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12520 eval ac_val=\$$ac_var
12521 case $ac_val in #(
12522 *${as_nl}*)
12523 case $ac_var in #(
12524 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12525 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12526 esac
12527 case $ac_var in #(
12528 _ | IFS | as_nl) ;; #(
12529 *) $as_unset $ac_var ;;
12530 esac ;;
12531 esac
12532 done
12533
12534 (set) 2>&1 |
12535 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12536 *${as_nl}ac_space=\ *)
12537 # `set' does not quote correctly, so add quotes (double-quote
12538 # substitution turns \\\\ into \\, and sed turns \\ into \).
12539 sed -n \
12540 "s/'/'\\\\''/g;
12541 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12542 ;; #(
12543 *)
12544 # `set' quotes correctly as required by POSIX, so do not add quotes.
12545 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12546 ;;
12547 esac |
12548 sort
12549 ) |
12550 sed '
12551 /^ac_cv_env_/b end
12552 t clear
12553 :clear
12554 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12555 t end
12556 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12557 :end' >>confcache
12558 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12559 if test -w "$cache_file"; then
12560 test "x$cache_file" != "x/dev/null" &&
12561 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12562 echo "$as_me: updating cache $cache_file" >&6;}
12563 cat confcache >$cache_file
12564 else
12565 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12566 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12567 fi
12568 fi
12569 rm -f confcache
12570
12571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12572 # Let make expand exec_prefix.
12573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12574
12575 DEFS=-DHAVE_CONFIG_H
12576
12577 ac_libobjs=
12578 ac_ltlibobjs=
12579 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12580 # 1. Remove the extension, and $U if already installed.
12581 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12582 ac_i=`echo "$ac_i" | sed "$ac_script"`
12583 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12584 # will be set to the directory where LIBOBJS objects are built.
12585 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12586 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12587 done
12588 LIBOBJS=$ac_libobjs
12589
12590 LTLIBOBJS=$ac_ltlibobjs
12591
12592
12593
12594 : ${CONFIG_STATUS=./config.status}
12595 ac_clean_files_save=$ac_clean_files
12596 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12597 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12598 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12599 cat >$CONFIG_STATUS <<_ACEOF
12600 #! $SHELL
12601 # Generated by $as_me.
12602 # Run this file to recreate the current configuration.
12603 # Compiler output produced by configure, useful for debugging
12604 # configure, is in config.log if it exists.
12605
12606 debug=false
12607 ac_cs_recheck=false
12608 ac_cs_silent=false
12609 SHELL=\${CONFIG_SHELL-$SHELL}
12610 _ACEOF
12611
12612 cat >>$CONFIG_STATUS <<\_ACEOF
12613 ## --------------------- ##
12614 ## M4sh Initialization. ##
12615 ## --------------------- ##
12616
12617 # Be more Bourne compatible
12618 DUALCASE=1; export DUALCASE # for MKS sh
12619 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12620 emulate sh
12621 NULLCMD=:
12622 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12623 # is contrary to our usage. Disable this feature.
12624 alias -g '${1+"$@"}'='"$@"'
12625 setopt NO_GLOB_SUBST
12626 else
12627 case `(set -o) 2>/dev/null` in
12628 *posix*) set -o posix ;;
12629 esac
12630
12631 fi
12632
12633
12634
12635
12636 # PATH needs CR
12637 # Avoid depending upon Character Ranges.
12638 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12641 as_cr_digits='0123456789'
12642 as_cr_alnum=$as_cr_Letters$as_cr_digits
12643
12644 # The user is always right.
12645 if test "${PATH_SEPARATOR+set}" != set; then
12646 echo "#! /bin/sh" >conf$$.sh
12647 echo "exit 0" >>conf$$.sh
12648 chmod +x conf$$.sh
12649 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12650 PATH_SEPARATOR=';'
12651 else
12652 PATH_SEPARATOR=:
12653 fi
12654 rm -f conf$$.sh
12655 fi
12656
12657 # Support unset when possible.
12658 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12659 as_unset=unset
12660 else
12661 as_unset=false
12662 fi
12663
12664
12665 # IFS
12666 # We need space, tab and new line, in precisely that order. Quoting is
12667 # there to prevent editors from complaining about space-tab.
12668 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12669 # splitting by setting IFS to empty value.)
12670 as_nl='
12671 '
12672 IFS=" "" $as_nl"
12673
12674 # Find who we are. Look in the path if we contain no directory separator.
12675 case $0 in
12676 *[\\/]* ) as_myself=$0 ;;
12677 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678 for as_dir in $PATH
12679 do
12680 IFS=$as_save_IFS
12681 test -z "$as_dir" && as_dir=.
12682 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12683 done
12684 IFS=$as_save_IFS
12685
12686 ;;
12687 esac
12688 # We did not find ourselves, most probably we were run as `sh COMMAND'
12689 # in which case we are not to be found in the path.
12690 if test "x$as_myself" = x; then
12691 as_myself=$0
12692 fi
12693 if test ! -f "$as_myself"; then
12694 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12695 { (exit 1); exit 1; }
12696 fi
12697
12698 # Work around bugs in pre-3.0 UWIN ksh.
12699 for as_var in ENV MAIL MAILPATH
12700 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12701 done
12702 PS1='$ '
12703 PS2='> '
12704 PS4='+ '
12705
12706 # NLS nuisances.
12707 for as_var in \
12708 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12709 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12710 LC_TELEPHONE LC_TIME
12711 do
12712 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12713 eval $as_var=C; export $as_var
12714 else
12715 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12716 fi
12717 done
12718
12719 # Required to use basename.
12720 if expr a : '\(a\)' >/dev/null 2>&1 &&
12721 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12722 as_expr=expr
12723 else
12724 as_expr=false
12725 fi
12726
12727 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12728 as_basename=basename
12729 else
12730 as_basename=false
12731 fi
12732
12733
12734 # Name of the executable.
12735 as_me=`$as_basename -- "$0" ||
12736 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12737 X"$0" : 'X\(//\)$' \| \
12738 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12739 echo X/"$0" |
12740 sed '/^.*\/\([^/][^/]*\)\/*$/{
12741 s//\1/
12742 q
12743 }
12744 /^X\/\(\/\/\)$/{
12745 s//\1/
12746 q
12747 }
12748 /^X\/\(\/\).*/{
12749 s//\1/
12750 q
12751 }
12752 s/.*/./; q'`
12753
12754 # CDPATH.
12755 $as_unset CDPATH
12756
12757
12758
12759 as_lineno_1=$LINENO
12760 as_lineno_2=$LINENO
12761 test "x$as_lineno_1" != "x$as_lineno_2" &&
12762 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12763
12764 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12765 # uniformly replaced by the line number. The first 'sed' inserts a
12766 # line-number line after each line using $LINENO; the second 'sed'
12767 # does the real work. The second script uses 'N' to pair each
12768 # line-number line with the line containing $LINENO, and appends
12769 # trailing '-' during substitution so that $LINENO is not a special
12770 # case at line end.
12771 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12772 # scripts with optimization help from Paolo Bonzini. Blame Lee
12773 # E. McMahon (1931-1989) for sed's syntax. :-)
12774 sed -n '
12775 p
12776 /[$]LINENO/=
12777 ' <$as_myself |
12778 sed '
12779 s/[$]LINENO.*/&-/
12780 t lineno
12781 b
12782 :lineno
12783 N
12784 :loop
12785 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12786 t loop
12787 s/-\n.*//
12788 ' >$as_me.lineno &&
12789 chmod +x "$as_me.lineno" ||
12790 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12791 { (exit 1); exit 1; }; }
12792
12793 # Don't try to exec as it changes $[0], causing all sort of problems
12794 # (the dirname of $[0] is not the place where we might find the
12795 # original and so on. Autoconf is especially sensitive to this).
12796 . "./$as_me.lineno"
12797 # Exit status is that of the last command.
12798 exit
12799 }
12800
12801
12802 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12803 as_dirname=dirname
12804 else
12805 as_dirname=false
12806 fi
12807
12808 ECHO_C= ECHO_N= ECHO_T=
12809 case `echo -n x` in
12810 -n*)
12811 case `echo 'x\c'` in
12812 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12813 *) ECHO_C='\c';;
12814 esac;;
12815 *)
12816 ECHO_N='-n';;
12817 esac
12818
12819 if expr a : '\(a\)' >/dev/null 2>&1 &&
12820 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12821 as_expr=expr
12822 else
12823 as_expr=false
12824 fi
12825
12826 rm -f conf$$ conf$$.exe conf$$.file
12827 if test -d conf$$.dir; then
12828 rm -f conf$$.dir/conf$$.file
12829 else
12830 rm -f conf$$.dir
12831 mkdir conf$$.dir
12832 fi
12833 echo >conf$$.file
12834 if ln -s conf$$.file conf$$ 2>/dev/null; then
12835 as_ln_s='ln -s'
12836 # ... but there are two gotchas:
12837 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12838 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12839 # In both cases, we have to default to `cp -p'.
12840 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12841 as_ln_s='cp -p'
12842 elif ln conf$$.file conf$$ 2>/dev/null; then
12843 as_ln_s=ln
12844 else
12845 as_ln_s='cp -p'
12846 fi
12847 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12848 rmdir conf$$.dir 2>/dev/null
12849
12850 if mkdir -p . 2>/dev/null; then
12851 as_mkdir_p=:
12852 else
12853 test -d ./-p && rmdir ./-p
12854 as_mkdir_p=false
12855 fi
12856
12857 if test -x / >/dev/null 2>&1; then
12858 as_test_x='test -x'
12859 else
12860 if ls -dL / >/dev/null 2>&1; then
12861 as_ls_L_option=L
12862 else
12863 as_ls_L_option=
12864 fi
12865 as_test_x='
12866 eval sh -c '\''
12867 if test -d "$1"; then
12868 test -d "$1/.";
12869 else
12870 case $1 in
12871 -*)set "./$1";;
12872 esac;
12873 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12874 ???[sx]*):;;*)false;;esac;fi
12875 '\'' sh
12876 '
12877 fi
12878 as_executable_p=$as_test_x
12879
12880 # Sed expression to map a string onto a valid CPP name.
12881 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12882
12883 # Sed expression to map a string onto a valid variable name.
12884 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12885
12886
12887 exec 6>&1
12888
12889 # Save the log message, to keep $[0] and so on meaningful, and to
12890 # report actual input values of CONFIG_FILES etc. instead of their
12891 # values after options handling.
12892 ac_log="
12893 This file was extended by $as_me, which was
12894 generated by GNU Autoconf 2.61. Invocation command line was
12895
12896 CONFIG_FILES = $CONFIG_FILES
12897 CONFIG_HEADERS = $CONFIG_HEADERS
12898 CONFIG_LINKS = $CONFIG_LINKS
12899 CONFIG_COMMANDS = $CONFIG_COMMANDS
12900 $ $0 $@
12901
12902 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12903 "
12904
12905 _ACEOF
12906
12907 cat >>$CONFIG_STATUS <<_ACEOF
12908 # Files that config.status was made for.
12909 config_files="$ac_config_files"
12910 config_headers="$ac_config_headers"
12911 config_commands="$ac_config_commands"
12912
12913 _ACEOF
12914
12915 cat >>$CONFIG_STATUS <<\_ACEOF
12916 ac_cs_usage="\
12917 \`$as_me' instantiates files from templates according to the
12918 current configuration.
12919
12920 Usage: $0 [OPTIONS] [FILE]...
12921
12922 -h, --help print this help, then exit
12923 -V, --version print version number and configuration settings, then exit
12924 -q, --quiet do not print progress messages
12925 -d, --debug don't remove temporary files
12926 --recheck update $as_me by reconfiguring in the same conditions
12927 --file=FILE[:TEMPLATE]
12928 instantiate the configuration file FILE
12929 --header=FILE[:TEMPLATE]
12930 instantiate the configuration header FILE
12931
12932 Configuration files:
12933 $config_files
12934
12935 Configuration headers:
12936 $config_headers
12937
12938 Configuration commands:
12939 $config_commands
12940
12941 Report bugs to <bug-autoconf@gnu.org>."
12942
12943 _ACEOF
12944 cat >>$CONFIG_STATUS <<_ACEOF
12945 ac_cs_version="\\
12946 config.status
12947 configured by $0, generated by GNU Autoconf 2.61,
12948 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12949
12950 Copyright (C) 2006 Free Software Foundation, Inc.
12951 This config.status script is free software; the Free Software Foundation
12952 gives unlimited permission to copy, distribute and modify it."
12953
12954 ac_pwd='$ac_pwd'
12955 srcdir='$srcdir'
12956 INSTALL='$INSTALL'
12957 _ACEOF
12958
12959 cat >>$CONFIG_STATUS <<\_ACEOF
12960 # If no file are specified by the user, then we need to provide default
12961 # value. By we need to know if files were specified by the user.
12962 ac_need_defaults=:
12963 while test $# != 0
12964 do
12965 case $1 in
12966 --*=*)
12967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12969 ac_shift=:
12970 ;;
12971 *)
12972 ac_option=$1
12973 ac_optarg=$2
12974 ac_shift=shift
12975 ;;
12976 esac
12977
12978 case $ac_option in
12979 # Handling of the options.
12980 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12981 ac_cs_recheck=: ;;
12982 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12983 echo "$ac_cs_version"; exit ;;
12984 --debug | --debu | --deb | --de | --d | -d )
12985 debug=: ;;
12986 --file | --fil | --fi | --f )
12987 $ac_shift
12988 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12989 ac_need_defaults=false;;
12990 --header | --heade | --head | --hea )
12991 $ac_shift
12992 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12993 ac_need_defaults=false;;
12994 --he | --h)
12995 # Conflict between --help and --header
12996 { echo "$as_me: error: ambiguous option: $1
12997 Try \`$0 --help' for more information." >&2
12998 { (exit 1); exit 1; }; };;
12999 --help | --hel | -h )
13000 echo "$ac_cs_usage"; exit ;;
13001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13002 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13003 ac_cs_silent=: ;;
13004
13005 # This is an error.
13006 -*) { echo "$as_me: error: unrecognized option: $1
13007 Try \`$0 --help' for more information." >&2
13008 { (exit 1); exit 1; }; } ;;
13009
13010 *) ac_config_targets="$ac_config_targets $1"
13011 ac_need_defaults=false ;;
13012
13013 esac
13014 shift
13015 done
13016
13017 ac_configure_extra_args=
13018
13019 if $ac_cs_silent; then
13020 exec 6>/dev/null
13021 ac_configure_extra_args="$ac_configure_extra_args --silent"
13022 fi
13023
13024 _ACEOF
13025 cat >>$CONFIG_STATUS <<_ACEOF
13026 if \$ac_cs_recheck; then
13027 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13028 CONFIG_SHELL=$SHELL
13029 export CONFIG_SHELL
13030 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13031 fi
13032
13033 _ACEOF
13034 cat >>$CONFIG_STATUS <<\_ACEOF
13035 exec 5>>config.log
13036 {
13037 echo
13038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13039 ## Running $as_me. ##
13040 _ASBOX
13041 echo "$ac_log"
13042 } >&5
13043
13044 _ACEOF
13045 cat >>$CONFIG_STATUS <<_ACEOF
13046 #
13047 # INIT-COMMANDS
13048 #
13049
13050
13051 _ACEOF
13052
13053 cat >>$CONFIG_STATUS <<\_ACEOF
13054
13055 # Handling of arguments.
13056 for ac_config_target in $ac_config_targets
13057 do
13058 case $ac_config_target in
13059 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13060 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13061 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13062 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
13063
13064 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13065 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13066 { (exit 1); exit 1; }; };;
13067 esac
13068 done
13069
13070
13071 # If the user did not use the arguments to specify the items to instantiate,
13072 # then the envvar interface is used. Set only those that are not.
13073 # We use the long form for the default assignment because of an extremely
13074 # bizarre bug on SunOS 4.1.3.
13075 if $ac_need_defaults; then
13076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13077 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13078 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13079 fi
13080
13081 # Have a temporary directory for convenience. Make it in the build tree
13082 # simply because there is no reason against having it here, and in addition,
13083 # creating and moving files from /tmp can sometimes cause problems.
13084 # Hook for its removal unless debugging.
13085 # Note that there is a small window in which the directory will not be cleaned:
13086 # after its creation but before its name has been assigned to `$tmp'.
13087 $debug ||
13088 {
13089 tmp=
13090 trap 'exit_status=$?
13091 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13092 ' 0
13093 trap '{ (exit 1); exit 1; }' 1 2 13 15
13094 }
13095 # Create a (secure) tmp directory for tmp files.
13096
13097 {
13098 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13099 test -n "$tmp" && test -d "$tmp"
13100 } ||
13101 {
13102 tmp=./conf$$-$RANDOM
13103 (umask 077 && mkdir "$tmp")
13104 } ||
13105 {
13106 echo "$me: cannot create a temporary directory in ." >&2
13107 { (exit 1); exit 1; }
13108 }
13109
13110 #
13111 # Set up the sed scripts for CONFIG_FILES section.
13112 #
13113
13114 # No need to generate the scripts if there are no CONFIG_FILES.
13115 # This happens for instance when ./config.status config.h
13116 if test -n "$CONFIG_FILES"; then
13117
13118 _ACEOF
13119
13120
13121
13122 ac_delim='%!_!# '
13123 for ac_last_try in false false false false false :; do
13124 cat >conf$$subs.sed <<_ACEOF
13125 SHELL!$SHELL$ac_delim
13126 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13127 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13128 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13129 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13130 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13131 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13132 exec_prefix!$exec_prefix$ac_delim
13133 prefix!$prefix$ac_delim
13134 program_transform_name!$program_transform_name$ac_delim
13135 bindir!$bindir$ac_delim
13136 sbindir!$sbindir$ac_delim
13137 libexecdir!$libexecdir$ac_delim
13138 datarootdir!$datarootdir$ac_delim
13139 datadir!$datadir$ac_delim
13140 sysconfdir!$sysconfdir$ac_delim
13141 sharedstatedir!$sharedstatedir$ac_delim
13142 localstatedir!$localstatedir$ac_delim
13143 includedir!$includedir$ac_delim
13144 oldincludedir!$oldincludedir$ac_delim
13145 docdir!$docdir$ac_delim
13146 infodir!$infodir$ac_delim
13147 htmldir!$htmldir$ac_delim
13148 dvidir!$dvidir$ac_delim
13149 pdfdir!$pdfdir$ac_delim
13150 psdir!$psdir$ac_delim
13151 libdir!$libdir$ac_delim
13152 localedir!$localedir$ac_delim
13153 mandir!$mandir$ac_delim
13154 DEFS!$DEFS$ac_delim
13155 ECHO_C!$ECHO_C$ac_delim
13156 ECHO_N!$ECHO_N$ac_delim
13157 ECHO_T!$ECHO_T$ac_delim
13158 LIBS!$LIBS$ac_delim
13159 build_alias!$build_alias$ac_delim
13160 host_alias!$host_alias$ac_delim
13161 target_alias!$target_alias$ac_delim
13162 build!$build$ac_delim
13163 build_cpu!$build_cpu$ac_delim
13164 build_vendor!$build_vendor$ac_delim
13165 build_os!$build_os$ac_delim
13166 host!$host$ac_delim
13167 host_cpu!$host_cpu$ac_delim
13168 host_vendor!$host_vendor$ac_delim
13169 host_os!$host_os$ac_delim
13170 SHLICC2!$SHLICC2$ac_delim
13171 CC!$CC$ac_delim
13172 CFLAGS!$CFLAGS$ac_delim
13173 LDFLAGS!$LDFLAGS$ac_delim
13174 CPPFLAGS!$CPPFLAGS$ac_delim
13175 ac_ct_CC!$ac_ct_CC$ac_delim
13176 EXEEXT!$EXEEXT$ac_delim
13177 OBJEXT!$OBJEXT$ac_delim
13178 CPP!$CPP$ac_delim
13179 GREP!$GREP$ac_delim
13180 EGREP!$EGREP$ac_delim
13181 LIBOBJS!$LIBOBJS$ac_delim
13182 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
13183 RANLIB!$RANLIB$ac_delim
13184 DEPENDENCY_CFLAG!$DEPENDENCY_CFLAG$ac_delim
13185 MKDEP!$MKDEP$ac_delim
13186 V_CCOPT!$V_CCOPT$ac_delim
13187 V_DEFS!$V_DEFS$ac_delim
13188 V_GROUP!$V_GROUP$ac_delim
13189 V_INCLS!$V_INCLS$ac_delim
13190 V_PCAPDEP!$V_PCAPDEP$ac_delim
13191 LOCALSRC!$LOCALSRC$ac_delim
13192 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
13193 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
13194 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13195 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13196 INSTALL_DATA!$INSTALL_DATA$ac_delim
13197 LTLIBOBJS!$LTLIBOBJS$ac_delim
13198 _ACEOF
13199
13200 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
13201 break
13202 elif $ac_last_try; then
13203 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13204 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13205 { (exit 1); exit 1; }; }
13206 else
13207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13208 fi
13209 done
13210
13211 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13212 if test -n "$ac_eof"; then
13213 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13214 ac_eof=`expr $ac_eof + 1`
13215 fi
13216
13217 cat >>$CONFIG_STATUS <<_ACEOF
13218 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13220 _ACEOF
13221 sed '
13222 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13223 s/^/s,@/; s/!/@,|#_!!_#|/
13224 :n
13225 t n
13226 s/'"$ac_delim"'$/,g/; t
13227 s/$/\\/; p
13228 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13229 ' >>$CONFIG_STATUS <conf$$subs.sed
13230 rm -f conf$$subs.sed
13231 cat >>$CONFIG_STATUS <<_ACEOF
13232 :end
13233 s/|#_!!_#|//g
13234 CEOF$ac_eof
13235 _ACEOF
13236
13237
13238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13240 # trailing colons and then remove the whole line if VPATH becomes empty
13241 # (actually we leave an empty line to preserve line numbers).
13242 if test "x$srcdir" = x.; then
13243 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13244 s/:*\$(srcdir):*/:/
13245 s/:*\${srcdir}:*/:/
13246 s/:*@srcdir@:*/:/
13247 s/^\([^=]*=[ ]*\):*/\1/
13248 s/:*$//
13249 s/^[^=]*=[ ]*$//
13250 }'
13251 fi
13252
13253 cat >>$CONFIG_STATUS <<\_ACEOF
13254 fi # test -n "$CONFIG_FILES"
13255
13256
13257 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13258 do
13259 case $ac_tag in
13260 :[FHLC]) ac_mode=$ac_tag; continue;;
13261 esac
13262 case $ac_mode$ac_tag in
13263 :[FHL]*:*);;
13264 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13265 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13266 { (exit 1); exit 1; }; };;
13267 :[FH]-) ac_tag=-:-;;
13268 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13269 esac
13270 ac_save_IFS=$IFS
13271 IFS=:
13272 set x $ac_tag
13273 IFS=$ac_save_IFS
13274 shift
13275 ac_file=$1
13276 shift
13277
13278 case $ac_mode in
13279 :L) ac_source=$1;;
13280 :[FH])
13281 ac_file_inputs=
13282 for ac_f
13283 do
13284 case $ac_f in
13285 -) ac_f="$tmp/stdin";;
13286 *) # Look for the file first in the build tree, then in the source tree
13287 # (if the path is not absolute). The absolute path cannot be DOS-style,
13288 # because $ac_f cannot contain `:'.
13289 test -f "$ac_f" ||
13290 case $ac_f in
13291 [\\/$]*) false;;
13292 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13293 esac ||
13294 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13295 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13296 { (exit 1); exit 1; }; };;
13297 esac
13298 ac_file_inputs="$ac_file_inputs $ac_f"
13299 done
13300
13301 # Let's still pretend it is `configure' which instantiates (i.e., don't
13302 # use $as_me), people would be surprised to read:
13303 # /* config.h. Generated by config.status. */
13304 configure_input="Generated from "`IFS=:
13305 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13306 if test x"$ac_file" != x-; then
13307 configure_input="$ac_file. $configure_input"
13308 { echo "$as_me:$LINENO: creating $ac_file" >&5
13309 echo "$as_me: creating $ac_file" >&6;}
13310 fi
13311
13312 case $ac_tag in
13313 *:-:* | *:-) cat >"$tmp/stdin";;
13314 esac
13315 ;;
13316 esac
13317
13318 ac_dir=`$as_dirname -- "$ac_file" ||
13319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13320 X"$ac_file" : 'X\(//\)[^/]' \| \
13321 X"$ac_file" : 'X\(//\)$' \| \
13322 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13323 echo X"$ac_file" |
13324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13325 s//\1/
13326 q
13327 }
13328 /^X\(\/\/\)[^/].*/{
13329 s//\1/
13330 q
13331 }
13332 /^X\(\/\/\)$/{
13333 s//\1/
13334 q
13335 }
13336 /^X\(\/\).*/{
13337 s//\1/
13338 q
13339 }
13340 s/.*/./; q'`
13341 { as_dir="$ac_dir"
13342 case $as_dir in #(
13343 -*) as_dir=./$as_dir;;
13344 esac
13345 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13346 as_dirs=
13347 while :; do
13348 case $as_dir in #(
13349 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13350 *) as_qdir=$as_dir;;
13351 esac
13352 as_dirs="'$as_qdir' $as_dirs"
13353 as_dir=`$as_dirname -- "$as_dir" ||
13354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13355 X"$as_dir" : 'X\(//\)[^/]' \| \
13356 X"$as_dir" : 'X\(//\)$' \| \
13357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13358 echo X"$as_dir" |
13359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13360 s//\1/
13361 q
13362 }
13363 /^X\(\/\/\)[^/].*/{
13364 s//\1/
13365 q
13366 }
13367 /^X\(\/\/\)$/{
13368 s//\1/
13369 q
13370 }
13371 /^X\(\/\).*/{
13372 s//\1/
13373 q
13374 }
13375 s/.*/./; q'`
13376 test -d "$as_dir" && break
13377 done
13378 test -z "$as_dirs" || eval "mkdir $as_dirs"
13379 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13380 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13381 { (exit 1); exit 1; }; }; }
13382 ac_builddir=.
13383
13384 case "$ac_dir" in
13385 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13386 *)
13387 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13388 # A ".." for each directory in $ac_dir_suffix.
13389 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13390 case $ac_top_builddir_sub in
13391 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13392 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13393 esac ;;
13394 esac
13395 ac_abs_top_builddir=$ac_pwd
13396 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13397 # for backward compatibility:
13398 ac_top_builddir=$ac_top_build_prefix
13399
13400 case $srcdir in
13401 .) # We are building in place.
13402 ac_srcdir=.
13403 ac_top_srcdir=$ac_top_builddir_sub
13404 ac_abs_top_srcdir=$ac_pwd ;;
13405 [\\/]* | ?:[\\/]* ) # Absolute name.
13406 ac_srcdir=$srcdir$ac_dir_suffix;
13407 ac_top_srcdir=$srcdir
13408 ac_abs_top_srcdir=$srcdir ;;
13409 *) # Relative name.
13410 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13411 ac_top_srcdir=$ac_top_build_prefix$srcdir
13412 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13413 esac
13414 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13415
13416
13417 case $ac_mode in
13418 :F)
13419 #
13420 # CONFIG_FILE
13421 #
13422
13423 case $INSTALL in
13424 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13425 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13426 esac
13427 _ACEOF
13428
13429 cat >>$CONFIG_STATUS <<\_ACEOF
13430 # If the template does not know about datarootdir, expand it.
13431 # FIXME: This hack should be removed a few years after 2.60.
13432 ac_datarootdir_hack=; ac_datarootdir_seen=
13433
13434 case `sed -n '/datarootdir/ {
13435 p
13436 q
13437 }
13438 /@datadir@/p
13439 /@docdir@/p
13440 /@infodir@/p
13441 /@localedir@/p
13442 /@mandir@/p
13443 ' $ac_file_inputs` in
13444 *datarootdir*) ac_datarootdir_seen=yes;;
13445 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13446 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13447 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13448 _ACEOF
13449 cat >>$CONFIG_STATUS <<_ACEOF
13450 ac_datarootdir_hack='
13451 s&@datadir@&$datadir&g
13452 s&@docdir@&$docdir&g
13453 s&@infodir@&$infodir&g
13454 s&@localedir@&$localedir&g
13455 s&@mandir@&$mandir&g
13456 s&\\\${datarootdir}&$datarootdir&g' ;;
13457 esac
13458 _ACEOF
13459
13460 # Neutralize VPATH when `$srcdir' = `.'.
13461 # Shell code in configure.ac might set extrasub.
13462 # FIXME: do we really want to maintain this feature?
13463 cat >>$CONFIG_STATUS <<_ACEOF
13464 sed "$ac_vpsub
13465 $extrasub
13466 _ACEOF
13467 cat >>$CONFIG_STATUS <<\_ACEOF
13468 :t
13469 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13470 s&@configure_input@&$configure_input&;t t
13471 s&@top_builddir@&$ac_top_builddir_sub&;t t
13472 s&@srcdir@&$ac_srcdir&;t t
13473 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13474 s&@top_srcdir@&$ac_top_srcdir&;t t
13475 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13476 s&@builddir@&$ac_builddir&;t t
13477 s&@abs_builddir@&$ac_abs_builddir&;t t
13478 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13479 s&@INSTALL@&$ac_INSTALL&;t t
13480 $ac_datarootdir_hack
13481 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
13482
13483 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13484 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13485 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13486 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13487 which seems to be undefined. Please make sure it is defined." >&5
13488 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13489 which seems to be undefined. Please make sure it is defined." >&2;}
13490
13491 rm -f "$tmp/stdin"
13492 case $ac_file in
13493 -) cat "$tmp/out"; rm -f "$tmp/out";;
13494 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13495 esac
13496 ;;
13497 :H)
13498 #
13499 # CONFIG_HEADER
13500 #
13501 _ACEOF
13502
13503 # Transform confdefs.h into a sed script `conftest.defines', that
13504 # substitutes the proper values into config.h.in to produce config.h.
13505 rm -f conftest.defines conftest.tail
13506 # First, append a space to every undef/define line, to ease matching.
13507 echo 's/$/ /' >conftest.defines
13508 # Then, protect against being on the right side of a sed subst, or in
13509 # an unquoted here document, in config.status. If some macros were
13510 # called several times there might be several #defines for the same
13511 # symbol, which is useless. But do not sort them, since the last
13512 # AC_DEFINE must be honored.
13513 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13514 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13515 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13516 # PARAMS is the parameter list in the macro definition--in most cases, it's
13517 # just an empty string.
13518 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13519 ac_dB='\\)[ (].*,\\1define\\2'
13520 ac_dC=' '
13521 ac_dD=' ,'
13522
13523 uniq confdefs.h |
13524 sed -n '
13525 t rset
13526 :rset
13527 s/^[ ]*#[ ]*define[ ][ ]*//
13528 t ok
13529 d
13530 :ok
13531 s/[\\&,]/\\&/g
13532 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13533 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13534 ' >>conftest.defines
13535
13536 # Remove the space that was appended to ease matching.
13537 # Then replace #undef with comments. This is necessary, for
13538 # example, in the case of _POSIX_SOURCE, which is predefined and required
13539 # on some systems where configure will not decide to define it.
13540 # (The regexp can be short, since the line contains either #define or #undef.)
13541 echo 's/ $//
13542 s,^[ #]*u.*,/* & */,' >>conftest.defines
13543
13544 # Break up conftest.defines:
13545 ac_max_sed_lines=50
13546
13547 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13548 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13549 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13550 # et cetera.
13551 ac_in='$ac_file_inputs'
13552 ac_out='"$tmp/out1"'
13553 ac_nxt='"$tmp/out2"'
13554
13555 while :
13556 do
13557 # Write a here document:
13558 cat >>$CONFIG_STATUS <<_ACEOF
13559 # First, check the format of the line:
13560 cat >"\$tmp/defines.sed" <<\\CEOF
13561 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13562 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13563 b
13564 :def
13565 _ACEOF
13566 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13567 echo 'CEOF
13568 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13569 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13570 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13571 grep . conftest.tail >/dev/null || break
13572 rm -f conftest.defines
13573 mv conftest.tail conftest.defines
13574 done
13575 rm -f conftest.defines conftest.tail
13576
13577 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13578 cat >>$CONFIG_STATUS <<\_ACEOF
13579 if test x"$ac_file" != x-; then
13580 echo "/* $configure_input */" >"$tmp/config.h"
13581 cat "$ac_result" >>"$tmp/config.h"
13582 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13583 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13584 echo "$as_me: $ac_file is unchanged" >&6;}
13585 else
13586 rm -f $ac_file
13587 mv "$tmp/config.h" $ac_file
13588 fi
13589 else
13590 echo "/* $configure_input */"
13591 cat "$ac_result"
13592 fi
13593 rm -f "$tmp/out12"
13594 ;;
13595
13596 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13597 echo "$as_me: executing $ac_file commands" >&6;}
13598 ;;
13599 esac
13600
13601
13602 case $ac_file$ac_mode in
13603 "default-1":C) if test -f .devel; then
13604 echo timestamp > stamp-h
13605 cat Makefile-devel-adds >> Makefile
13606 make depend
13607 fi ;;
13608
13609 esac
13610 done # for ac_tag
13611
13612
13613 { (exit 0); exit 0; }
13614 _ACEOF
13615 chmod +x $CONFIG_STATUS
13616 ac_clean_files=$ac_clean_files_save
13617
13618
13619 # configure is writing to config.log, and then calls config.status.
13620 # config.status does its own redirection, appending to config.log.
13621 # Unfortunately, on DOS this fails, as config.log is still kept open
13622 # by configure, so config.status won't be able to write to it; its
13623 # output is simply discarded. So we exec the FD to /dev/null,
13624 # effectively closing config.log, so it can be properly (re)opened and
13625 # appended to by config.status. When coming back to configure, we
13626 # need to make the FD available again.
13627 if test "$no_create" != yes; then
13628 ac_cs_success=:
13629 ac_config_status_args=
13630 test "$silent" = yes &&
13631 ac_config_status_args="$ac_config_status_args --quiet"
13632 exec 5>/dev/null
13633 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13634 exec 5>>config.log
13635 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13636 # would make configure fail if this is the last instruction.
13637 $ac_cs_success || { (exit 1); exit 1; }
13638 fi
13639
13640 exit 0