]> The Tcpdump Group git mirrors - tcpdump/blob - configure
Add a --with-arch-flags configuration option to specify target architectures.
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.204 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
50 fi
51 rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 as_unset=unset
57 else
58 as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" "" $as_nl"
70
71 # Find who we are. Look in the path if we contain no directory separator.
72 case $0 in
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77 IFS=$as_save_IFS
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83 ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88 as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 LC_TELEPHONE LC_TIME
108 do
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
111 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 as_expr=expr
120 else
121 as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125 as_basename=basename
126 else
127 as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
138 s//\1/
139 q
140 }
141 /^X\/\(\/\/\)$/{
142 s//\1/
143 q
144 }
145 /^X\/\(\/\).*/{
146 s//\1/
147 q
148 }
149 s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
157 as_have_required=yes
158 else
159 as_have_required=no
160 fi
161
162 if test $as_have_required = yes && (eval ":
163 (as_func_return () {
164 (exit \$1)
165 }
166 as_func_success () {
167 as_func_return 0
168 }
169 as_func_failure () {
170 as_func_return 1
171 }
172 as_func_ret_success () {
173 return 0
174 }
175 as_func_ret_failure () {
176 return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181 :
182 else
183 exitcode=1
184 echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188 exitcode=1
189 echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193 :
194 else
195 exitcode=1
196 echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200 exitcode=1
201 echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 :
206 else
207 exitcode=1
208 echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214 as_lineno_1=\$LINENO
215 as_lineno_2=\$LINENO
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219 :
220 else
221 as_candidate_shells=
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 case $as_dir in
228 /*)
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 done;;
232 esac
233 done
234 IFS=$as_save_IFS
235
236
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259 CONFIG_SHELL=$as_shell
260 as_have_required=yes
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279 (exit $1)
280 }
281 as_func_success () {
282 as_func_return 0
283 }
284 as_func_failure () {
285 as_func_return 1
286 }
287 as_func_ret_success () {
288 return 0
289 }
290 as_func_ret_failure () {
291 return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296 :
297 else
298 exitcode=1
299 echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303 exitcode=1
304 echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308 :
309 else
310 exitcode=1
311 echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315 exitcode=1
316 echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 :
321 else
322 exitcode=1
323 echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329 as_lineno_1=$LINENO
330 as_lineno_2=$LINENO
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336 break
337 fi
338
339 fi
340
341 done
342
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346 done
347 export CONFIG_SHELL
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368 (exit \$1)
369 }
370 as_func_success () {
371 as_func_return 0
372 }
373 as_func_failure () {
374 as_func_return 1
375 }
376 as_func_ret_success () {
377 return 0
378 }
379 as_func_ret_failure () {
380 return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385 :
386 else
387 exitcode=1
388 echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392 exitcode=1
393 echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397 :
398 else
399 exitcode=1
400 echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404 exitcode=1
405 echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 :
410 else
411 exitcode=1
412 echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
419 echo message
420 }
421
422
423
424 as_lineno_1=$LINENO
425 as_lineno_2=$LINENO
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
435 # case at line end.
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
439 sed -n '
440 p
441 /[$]LINENO/=
442 ' <$as_myself |
443 sed '
444 s/[$]LINENO.*/&-/
445 t lineno
446 b
447 :lineno
448 N
449 :loop
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 t loop
452 s/-\n.*//
453 ' >$as_me.lineno &&
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
457
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
461 . "./$as_me.lineno"
462 # Exit status is that of the last command.
463 exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_dirname=dirname
469 else
470 as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476 case `echo 'x\c'` in
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) ECHO_C='\c';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 as_expr=expr
487 else
488 as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
494 else
495 rm -f conf$$.dir
496 mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s='ln -s'
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508 as_ln_s=ln
509 else
510 as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516 as_mkdir_p=:
517 else
518 test -d ./-p && rmdir ./-p
519 as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523 as_test_x='test -x'
524 else
525 if ls -dL / >/dev/null 2>&1; then
526 as_ls_L_option=L
527 else
528 as_ls_L_option=
529 fi
530 as_test_x='
531 eval sh -c '\''
532 if test -d "$1"; then
533 test -d "$1/.";
534 else
535 case $1 in
536 -*)set "./$1";;
537 esac;
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
540 '\'' sh
541 '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 7<&0 </dev/null 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="tcpdump.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 SHLICC2
663 CC
664 CFLAGS
665 LDFLAGS
666 CPPFLAGS
667 ac_ct_CC
668 EXEEXT
669 OBJEXT
670 ARCHFLAGS
671 CPP
672 GREP
673 EGREP
674 LIBOBJS
675 PCAP_CONFIG
676 RANLIB
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 --enable-smb enable possibly-buggy SMB printer default=yes
1272 --disable-smb disable possibly-buggy SMB printer
1273 --enable-ipv6 enable ipv6 (with ipv4) support
1274 --disable-ipv6 disable ipv6 support
1275
1276 Optional Packages:
1277 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1278 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1279 --without-gcc don't use gcc
1280 --with-arch-flags=FLAGS Use FLAGS to specify the target architecture(s)
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[=PATH] use SSLeay libcrypto (located in directory PATH, if
1286 supplied). [default=yes, if available]
1287
1288 Some influential environment variables:
1289 CC C compiler command
1290 CFLAGS C compiler flags
1291 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1292 nonstandard directory <lib dir>
1293 LIBS libraries to pass to the linker, e.g. -l<library>
1294 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1295 you have headers in a nonstandard directory <include dir>
1296 CPP C preprocessor
1297
1298 Use these variables to override the choices made by `configure' or to help
1299 it to find libraries and programs with nonstandard names/locations.
1300
1301 _ACEOF
1302 ac_status=$?
1303 fi
1304
1305 if test "$ac_init_help" = "recursive"; then
1306 # If there are subdirs, report their specific --help.
1307 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1308 test -d "$ac_dir" || continue
1309 ac_builddir=.
1310
1311 case "$ac_dir" in
1312 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1313 *)
1314 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1315 # A ".." for each directory in $ac_dir_suffix.
1316 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1317 case $ac_top_builddir_sub in
1318 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1319 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1320 esac ;;
1321 esac
1322 ac_abs_top_builddir=$ac_pwd
1323 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1324 # for backward compatibility:
1325 ac_top_builddir=$ac_top_build_prefix
1326
1327 case $srcdir in
1328 .) # We are building in place.
1329 ac_srcdir=.
1330 ac_top_srcdir=$ac_top_builddir_sub
1331 ac_abs_top_srcdir=$ac_pwd ;;
1332 [\\/]* | ?:[\\/]* ) # Absolute name.
1333 ac_srcdir=$srcdir$ac_dir_suffix;
1334 ac_top_srcdir=$srcdir
1335 ac_abs_top_srcdir=$srcdir ;;
1336 *) # Relative name.
1337 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1338 ac_top_srcdir=$ac_top_build_prefix$srcdir
1339 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1340 esac
1341 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1342
1343 cd "$ac_dir" || { ac_status=$?; continue; }
1344 # Check for guested configure.
1345 if test -f "$ac_srcdir/configure.gnu"; then
1346 echo &&
1347 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1348 elif test -f "$ac_srcdir/configure"; then
1349 echo &&
1350 $SHELL "$ac_srcdir/configure" --help=recursive
1351 else
1352 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1353 fi || ac_status=$?
1354 cd "$ac_pwd" || { ac_status=$?; break; }
1355 done
1356 fi
1357
1358 test -n "$ac_init_help" && exit $ac_status
1359 if $ac_init_version; then
1360 cat <<\_ACEOF
1361 configure
1362 generated by GNU Autoconf 2.61
1363
1364 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1365 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1366 This configure script is free software; the Free Software Foundation
1367 gives unlimited permission to copy, distribute and modify it.
1368 _ACEOF
1369 exit
1370 fi
1371 cat >config.log <<_ACEOF
1372 This file contains any messages produced by compilers while
1373 running configure, to aid debugging if configure makes a mistake.
1374
1375 It was created by $as_me, which was
1376 generated by GNU Autoconf 2.61. Invocation command line was
1377
1378 $ $0 $@
1379
1380 _ACEOF
1381 exec 5>>config.log
1382 {
1383 cat <<_ASUNAME
1384 ## --------- ##
1385 ## Platform. ##
1386 ## --------- ##
1387
1388 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1389 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1390 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1391 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1392 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1393
1394 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1395 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1396
1397 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1398 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1399 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1400 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1401 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1402 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1403 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1404
1405 _ASUNAME
1406
1407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1408 for as_dir in $PATH
1409 do
1410 IFS=$as_save_IFS
1411 test -z "$as_dir" && as_dir=.
1412 echo "PATH: $as_dir"
1413 done
1414 IFS=$as_save_IFS
1415
1416 } >&5
1417
1418 cat >&5 <<_ACEOF
1419
1420
1421 ## ----------- ##
1422 ## Core tests. ##
1423 ## ----------- ##
1424
1425 _ACEOF
1426
1427
1428 # Keep a trace of the command line.
1429 # Strip out --no-create and --no-recursion so they do not pile up.
1430 # Strip out --silent because we don't want to record it for future runs.
1431 # Also quote any args containing shell meta-characters.
1432 # Make two passes to allow for proper duplicate-argument suppression.
1433 ac_configure_args=
1434 ac_configure_args0=
1435 ac_configure_args1=
1436 ac_must_keep_next=false
1437 for ac_pass in 1 2
1438 do
1439 for ac_arg
1440 do
1441 case $ac_arg in
1442 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1444 | -silent | --silent | --silen | --sile | --sil)
1445 continue ;;
1446 *\'*)
1447 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1448 esac
1449 case $ac_pass in
1450 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1451 2)
1452 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1453 if test $ac_must_keep_next = true; then
1454 ac_must_keep_next=false # Got value, back to normal.
1455 else
1456 case $ac_arg in
1457 *=* | --config-cache | -C | -disable-* | --disable-* \
1458 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1459 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1460 | -with-* | --with-* | -without-* | --without-* | --x)
1461 case "$ac_configure_args0 " in
1462 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1463 esac
1464 ;;
1465 -* ) ac_must_keep_next=true ;;
1466 esac
1467 fi
1468 ac_configure_args="$ac_configure_args '$ac_arg'"
1469 ;;
1470 esac
1471 done
1472 done
1473 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1474 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1475
1476 # When interrupted or exit'd, cleanup temporary files, and complete
1477 # config.log. We remove comments because anyway the quotes in there
1478 # would cause problems or look ugly.
1479 # WARNING: Use '\'' to represent an apostrophe within the trap.
1480 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1481 trap 'exit_status=$?
1482 # Save into config.log some information that might help in debugging.
1483 {
1484 echo
1485
1486 cat <<\_ASBOX
1487 ## ---------------- ##
1488 ## Cache variables. ##
1489 ## ---------------- ##
1490 _ASBOX
1491 echo
1492 # The following way of writing the cache mishandles newlines in values,
1493 (
1494 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1495 eval ac_val=\$$ac_var
1496 case $ac_val in #(
1497 *${as_nl}*)
1498 case $ac_var in #(
1499 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1500 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1501 esac
1502 case $ac_var in #(
1503 _ | IFS | as_nl) ;; #(
1504 *) $as_unset $ac_var ;;
1505 esac ;;
1506 esac
1507 done
1508 (set) 2>&1 |
1509 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1510 *${as_nl}ac_space=\ *)
1511 sed -n \
1512 "s/'\''/'\''\\\\'\'''\''/g;
1513 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1514 ;; #(
1515 *)
1516 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1517 ;;
1518 esac |
1519 sort
1520 )
1521 echo
1522
1523 cat <<\_ASBOX
1524 ## ----------------- ##
1525 ## Output variables. ##
1526 ## ----------------- ##
1527 _ASBOX
1528 echo
1529 for ac_var in $ac_subst_vars
1530 do
1531 eval ac_val=\$$ac_var
1532 case $ac_val in
1533 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1534 esac
1535 echo "$ac_var='\''$ac_val'\''"
1536 done | sort
1537 echo
1538
1539 if test -n "$ac_subst_files"; then
1540 cat <<\_ASBOX
1541 ## ------------------- ##
1542 ## File substitutions. ##
1543 ## ------------------- ##
1544 _ASBOX
1545 echo
1546 for ac_var in $ac_subst_files
1547 do
1548 eval ac_val=\$$ac_var
1549 case $ac_val in
1550 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1551 esac
1552 echo "$ac_var='\''$ac_val'\''"
1553 done | sort
1554 echo
1555 fi
1556
1557 if test -s confdefs.h; then
1558 cat <<\_ASBOX
1559 ## ----------- ##
1560 ## confdefs.h. ##
1561 ## ----------- ##
1562 _ASBOX
1563 echo
1564 cat confdefs.h
1565 echo
1566 fi
1567 test "$ac_signal" != 0 &&
1568 echo "$as_me: caught signal $ac_signal"
1569 echo "$as_me: exit $exit_status"
1570 } >&5
1571 rm -f core *.core core.conftest.* &&
1572 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1573 exit $exit_status
1574 ' 0
1575 for ac_signal in 1 2 13 15; do
1576 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1577 done
1578 ac_signal=0
1579
1580 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1581 rm -f -r conftest* confdefs.h
1582
1583 # Predefined preprocessor variables.
1584
1585 cat >>confdefs.h <<_ACEOF
1586 #define PACKAGE_NAME "$PACKAGE_NAME"
1587 _ACEOF
1588
1589
1590 cat >>confdefs.h <<_ACEOF
1591 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1592 _ACEOF
1593
1594
1595 cat >>confdefs.h <<_ACEOF
1596 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1597 _ACEOF
1598
1599
1600 cat >>confdefs.h <<_ACEOF
1601 #define PACKAGE_STRING "$PACKAGE_STRING"
1602 _ACEOF
1603
1604
1605 cat >>confdefs.h <<_ACEOF
1606 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1607 _ACEOF
1608
1609
1610 # Let the site file select an alternate cache file if it wants to.
1611 # Prefer explicitly selected file to automatically selected ones.
1612 if test -n "$CONFIG_SITE"; then
1613 set x "$CONFIG_SITE"
1614 elif test "x$prefix" != xNONE; then
1615 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1616 else
1617 set x "$ac_default_prefix/share/config.site" \
1618 "$ac_default_prefix/etc/config.site"
1619 fi
1620 shift
1621 for ac_site_file
1622 do
1623 if test -r "$ac_site_file"; then
1624 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1625 echo "$as_me: loading site script $ac_site_file" >&6;}
1626 sed 's/^/| /' "$ac_site_file" >&5
1627 . "$ac_site_file"
1628 fi
1629 done
1630
1631 if test -r "$cache_file"; then
1632 # Some versions of bash will fail to source /dev/null (special
1633 # files actually), so we avoid doing that.
1634 if test -f "$cache_file"; then
1635 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1636 echo "$as_me: loading cache $cache_file" >&6;}
1637 case $cache_file in
1638 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1639 *) . "./$cache_file";;
1640 esac
1641 fi
1642 else
1643 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1644 echo "$as_me: creating cache $cache_file" >&6;}
1645 >$cache_file
1646 fi
1647
1648 # Check that the precious variables saved in the cache have kept the same
1649 # value.
1650 ac_cache_corrupted=false
1651 for ac_var in $ac_precious_vars; do
1652 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1653 eval ac_new_set=\$ac_env_${ac_var}_set
1654 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1655 eval ac_new_val=\$ac_env_${ac_var}_value
1656 case $ac_old_set,$ac_new_set in
1657 set,)
1658 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1659 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1660 ac_cache_corrupted=: ;;
1661 ,set)
1662 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1663 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1664 ac_cache_corrupted=: ;;
1665 ,);;
1666 *)
1667 if test "x$ac_old_val" != "x$ac_new_val"; then
1668 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1669 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1670 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1671 echo "$as_me: former value: $ac_old_val" >&2;}
1672 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1673 echo "$as_me: current value: $ac_new_val" >&2;}
1674 ac_cache_corrupted=:
1675 fi;;
1676 esac
1677 # Pass precious variables to config.status.
1678 if test "$ac_new_set" = set; then
1679 case $ac_new_val in
1680 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1681 *) ac_arg=$ac_var=$ac_new_val ;;
1682 esac
1683 case " $ac_configure_args " in
1684 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1685 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1686 esac
1687 fi
1688 done
1689 if $ac_cache_corrupted; then
1690 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1691 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1692 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1693 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1694 { (exit 1); exit 1; }; }
1695 fi
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713 ac_ext=c
1714 ac_cpp='$CPP $CPPFLAGS'
1715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1718
1719
1720
1721 ac_aux_dir=
1722 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1723 if test -f "$ac_dir/install-sh"; then
1724 ac_aux_dir=$ac_dir
1725 ac_install_sh="$ac_aux_dir/install-sh -c"
1726 break
1727 elif test -f "$ac_dir/install.sh"; then
1728 ac_aux_dir=$ac_dir
1729 ac_install_sh="$ac_aux_dir/install.sh -c"
1730 break
1731 elif test -f "$ac_dir/shtool"; then
1732 ac_aux_dir=$ac_dir
1733 ac_install_sh="$ac_aux_dir/shtool install -c"
1734 break
1735 fi
1736 done
1737 if test -z "$ac_aux_dir"; then
1738 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1739 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1740 { (exit 1); exit 1; }; }
1741 fi
1742
1743 # These three variables are undocumented and unsupported,
1744 # and are intended to be withdrawn in a future Autoconf release.
1745 # They can cause serious problems if a builder's source tree is in a directory
1746 # whose full name contains unusual characters.
1747 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1748 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1749 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1750
1751
1752 # Make sure we can run config.sub.
1753 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1754 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1755 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1756 { (exit 1); exit 1; }; }
1757
1758 { echo "$as_me:$LINENO: checking build system type" >&5
1759 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1760 if test "${ac_cv_build+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763 ac_build_alias=$build_alias
1764 test "x$ac_build_alias" = x &&
1765 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1766 test "x$ac_build_alias" = x &&
1767 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1768 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1769 { (exit 1); exit 1; }; }
1770 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1771 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1772 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1773 { (exit 1); exit 1; }; }
1774
1775 fi
1776 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1777 echo "${ECHO_T}$ac_cv_build" >&6; }
1778 case $ac_cv_build in
1779 *-*-*) ;;
1780 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1781 echo "$as_me: error: invalid value of canonical build" >&2;}
1782 { (exit 1); exit 1; }; };;
1783 esac
1784 build=$ac_cv_build
1785 ac_save_IFS=$IFS; IFS='-'
1786 set x $ac_cv_build
1787 shift
1788 build_cpu=$1
1789 build_vendor=$2
1790 shift; shift
1791 # Remember, the first character of IFS is used to create $*,
1792 # except with old shells:
1793 build_os=$*
1794 IFS=$ac_save_IFS
1795 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1796
1797
1798 { echo "$as_me:$LINENO: checking host system type" >&5
1799 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1800 if test "${ac_cv_host+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803 if test "x$host_alias" = x; then
1804 ac_cv_host=$ac_cv_build
1805 else
1806 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1807 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1808 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1809 { (exit 1); exit 1; }; }
1810 fi
1811
1812 fi
1813 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1814 echo "${ECHO_T}$ac_cv_host" >&6; }
1815 case $ac_cv_host in
1816 *-*-*) ;;
1817 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1818 echo "$as_me: error: invalid value of canonical host" >&2;}
1819 { (exit 1); exit 1; }; };;
1820 esac
1821 host=$ac_cv_host
1822 ac_save_IFS=$IFS; IFS='-'
1823 set x $ac_cv_host
1824 shift
1825 host_cpu=$1
1826 host_vendor=$2
1827 shift; shift
1828 # Remember, the first character of IFS is used to create $*,
1829 # except with old shells:
1830 host_os=$*
1831 IFS=$ac_save_IFS
1832 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842 # Check whether --with-gcc was given.
1843 if test "${with_gcc+set}" = set; then
1844 withval=$with_gcc;
1845 fi
1846
1847 V_CCOPT="-O"
1848 V_INCLS=""
1849 if test "${srcdir}" != "." ; then
1850 V_INCLS="-I\$(srcdir)"
1851 fi
1852 if test "${CFLAGS+set}" = set; then
1853 LBL_CFLAGS="$CFLAGS"
1854 fi
1855 if test -z "$CC" ; then
1856 case "$host_os" in
1857
1858 bsdi*)
1859 # Extract the first word of "shlicc2", so it can be a program name with args.
1860 set dummy shlicc2; ac_word=$2
1861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1863 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 else
1866 if test -n "$SHLICC2"; then
1867 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1868 else
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 for as_dir in $PATH
1871 do
1872 IFS=$as_save_IFS
1873 test -z "$as_dir" && as_dir=.
1874 for ac_exec_ext in '' $ac_executable_extensions; do
1875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1876 ac_cv_prog_SHLICC2="yes"
1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878 break 2
1879 fi
1880 done
1881 done
1882 IFS=$as_save_IFS
1883
1884 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1885 fi
1886 fi
1887 SHLICC2=$ac_cv_prog_SHLICC2
1888 if test -n "$SHLICC2"; then
1889 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1890 echo "${ECHO_T}$SHLICC2" >&6; }
1891 else
1892 { echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6; }
1894 fi
1895
1896
1897 if test $SHLICC2 = yes ; then
1898 CC=shlicc2
1899 export CC
1900 fi
1901 ;;
1902 esac
1903 fi
1904 if test -z "$CC" -a "$with_gcc" = no ; then
1905 CC=cc
1906 export CC
1907 fi
1908
1909 ac_ext=c
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914 if test -n "$ac_tool_prefix"; then
1915 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1916 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1919 if test "${ac_cv_prog_CC+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922 if test -n "$CC"; then
1923 ac_cv_prog_CC="$CC" # Let the user override the test.
1924 else
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 for as_dir in $PATH
1927 do
1928 IFS=$as_save_IFS
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1932 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 break 2
1935 fi
1936 done
1937 done
1938 IFS=$as_save_IFS
1939
1940 fi
1941 fi
1942 CC=$ac_cv_prog_CC
1943 if test -n "$CC"; then
1944 { echo "$as_me:$LINENO: result: $CC" >&5
1945 echo "${ECHO_T}$CC" >&6; }
1946 else
1947 { echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6; }
1949 fi
1950
1951
1952 fi
1953 if test -z "$ac_cv_prog_CC"; then
1954 ac_ct_CC=$CC
1955 # Extract the first word of "gcc", so it can be a program name with args.
1956 set dummy gcc; ac_word=$2
1957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962 if test -n "$ac_ct_CC"; then
1963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1964 else
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 for as_dir in $PATH
1967 do
1968 IFS=$as_save_IFS
1969 test -z "$as_dir" && as_dir=.
1970 for ac_exec_ext in '' $ac_executable_extensions; do
1971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1972 ac_cv_prog_ac_ct_CC="gcc"
1973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 break 2
1975 fi
1976 done
1977 done
1978 IFS=$as_save_IFS
1979
1980 fi
1981 fi
1982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1983 if test -n "$ac_ct_CC"; then
1984 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1985 echo "${ECHO_T}$ac_ct_CC" >&6; }
1986 else
1987 { echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6; }
1989 fi
1990
1991 if test "x$ac_ct_CC" = x; then
1992 CC=""
1993 else
1994 case $cross_compiling:$ac_tool_warned in
1995 yes:)
1996 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1997 whose name does not start with the host triplet. If you think this
1998 configuration is useful to you, please write to autoconf@gnu.org." >&5
1999 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2000 whose name does not start with the host triplet. If you think this
2001 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2002 ac_tool_warned=yes ;;
2003 esac
2004 CC=$ac_ct_CC
2005 fi
2006 else
2007 CC="$ac_cv_prog_CC"
2008 fi
2009
2010 if test -z "$CC"; then
2011 if test -n "$ac_tool_prefix"; then
2012 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2013 set dummy ${ac_tool_prefix}cc; ac_word=$2
2014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2016 if test "${ac_cv_prog_CC+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 else
2019 if test -n "$CC"; then
2020 ac_cv_prog_CC="$CC" # Let the user override the test.
2021 else
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2029 ac_cv_prog_CC="${ac_tool_prefix}cc"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 break 2
2032 fi
2033 done
2034 done
2035 IFS=$as_save_IFS
2036
2037 fi
2038 fi
2039 CC=$ac_cv_prog_CC
2040 if test -n "$CC"; then
2041 { echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6; }
2043 else
2044 { echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6; }
2046 fi
2047
2048
2049 fi
2050 fi
2051 if test -z "$CC"; then
2052 # Extract the first word of "cc", so it can be a program name with args.
2053 set dummy cc; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059 if test -n "$CC"; then
2060 ac_cv_prog_CC="$CC" # Let the user override the test.
2061 else
2062 ac_prog_rejected=no
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2065 do
2066 IFS=$as_save_IFS
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2070 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2071 ac_prog_rejected=yes
2072 continue
2073 fi
2074 ac_cv_prog_CC="cc"
2075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 break 2
2077 fi
2078 done
2079 done
2080 IFS=$as_save_IFS
2081
2082 if test $ac_prog_rejected = yes; then
2083 # We found a bogon in the path, so make sure we never use it.
2084 set dummy $ac_cv_prog_CC
2085 shift
2086 if test $# != 0; then
2087 # We chose a different compiler from the bogus one.
2088 # However, it has the same basename, so the bogon will be chosen
2089 # first if we set CC to just the basename; use the full file name.
2090 shift
2091 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2092 fi
2093 fi
2094 fi
2095 fi
2096 CC=$ac_cv_prog_CC
2097 if test -n "$CC"; then
2098 { echo "$as_me:$LINENO: result: $CC" >&5
2099 echo "${ECHO_T}$CC" >&6; }
2100 else
2101 { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2103 fi
2104
2105
2106 fi
2107 if test -z "$CC"; then
2108 if test -n "$ac_tool_prefix"; then
2109 for ac_prog in cl.exe
2110 do
2111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118 if test -n "$CC"; then
2119 ac_cv_prog_CC="$CC" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130 break 2
2131 fi
2132 done
2133 done
2134 IFS=$as_save_IFS
2135
2136 fi
2137 fi
2138 CC=$ac_cv_prog_CC
2139 if test -n "$CC"; then
2140 { echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6; }
2142 else
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2145 fi
2146
2147
2148 test -n "$CC" && break
2149 done
2150 fi
2151 if test -z "$CC"; then
2152 ac_ct_CC=$CC
2153 for ac_prog in cl.exe
2154 do
2155 # Extract the first word of "$ac_prog", so it can be a program name with args.
2156 set dummy $ac_prog; ac_word=$2
2157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162 if test -n "$ac_ct_CC"; then
2163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2164 else
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2167 do
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2172 ac_cv_prog_ac_ct_CC="$ac_prog"
2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 break 2
2175 fi
2176 done
2177 done
2178 IFS=$as_save_IFS
2179
2180 fi
2181 fi
2182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2183 if test -n "$ac_ct_CC"; then
2184 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2185 echo "${ECHO_T}$ac_ct_CC" >&6; }
2186 else
2187 { echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6; }
2189 fi
2190
2191
2192 test -n "$ac_ct_CC" && break
2193 done
2194
2195 if test "x$ac_ct_CC" = x; then
2196 CC=""
2197 else
2198 case $cross_compiling:$ac_tool_warned in
2199 yes:)
2200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2201 whose name does not start with the host triplet. If you think this
2202 configuration is useful to you, please write to autoconf@gnu.org." >&5
2203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2204 whose name does not start with the host triplet. If you think this
2205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2206 ac_tool_warned=yes ;;
2207 esac
2208 CC=$ac_ct_CC
2209 fi
2210 fi
2211
2212 fi
2213
2214
2215 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: no acceptable C compiler found in \$PATH
2218 See \`config.log' for more details." >&2;}
2219 { (exit 1); exit 1; }; }
2220
2221 # Provide some information about the compiler.
2222 echo "$as_me:$LINENO: checking for C compiler version" >&5
2223 ac_compiler=`set X $ac_compile; echo $2`
2224 { (ac_try="$ac_compiler --version >&5"
2225 case "(($ac_try" in
2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2228 esac
2229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2230 (eval "$ac_compiler --version >&5") 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }
2234 { (ac_try="$ac_compiler -v >&5"
2235 case "(($ac_try" in
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2238 esac
2239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2240 (eval "$ac_compiler -v >&5") 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }
2244 { (ac_try="$ac_compiler -V >&5"
2245 case "(($ac_try" in
2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2248 esac
2249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2250 (eval "$ac_compiler -V >&5") 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }
2254
2255 cat >conftest.$ac_ext <<_ACEOF
2256 /* confdefs.h. */
2257 _ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2261
2262 int
2263 main ()
2264 {
2265
2266 ;
2267 return 0;
2268 }
2269 _ACEOF
2270 ac_clean_files_save=$ac_clean_files
2271 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2272 # Try to create an executable without -o first, disregard a.out.
2273 # It will help us diagnose broken compilers, and finding out an intuition
2274 # of exeext.
2275 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2276 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2277 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2278 #
2279 # List of possible output files, starting from the most likely.
2280 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2281 # only as a last resort. b.out is created by i960 compilers.
2282 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2283 #
2284 # The IRIX 6 linker writes into existing files which may not be
2285 # executable, retaining their permissions. Remove them first so a
2286 # subsequent execution test works.
2287 ac_rmfiles=
2288 for ac_file in $ac_files
2289 do
2290 case $ac_file in
2291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2292 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2293 esac
2294 done
2295 rm -f $ac_rmfiles
2296
2297 if { (ac_try="$ac_link_default"
2298 case "(($ac_try" in
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2301 esac
2302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2303 (eval "$ac_link_default") 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; then
2307 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2308 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2309 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2310 # so that the user can short-circuit this test for compilers unknown to
2311 # Autoconf.
2312 for ac_file in $ac_files ''
2313 do
2314 test -f "$ac_file" || continue
2315 case $ac_file in
2316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2317 ;;
2318 [ab].out )
2319 # We found the default executable, but exeext='' is most
2320 # certainly right.
2321 break;;
2322 *.* )
2323 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2324 then :; else
2325 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2326 fi
2327 # We set ac_cv_exeext here because the later test for it is not
2328 # safe: cross compilers may not add the suffix if given an `-o'
2329 # argument, so we may need to know it at that point already.
2330 # Even if this section looks crufty: it has the advantage of
2331 # actually working.
2332 break;;
2333 * )
2334 break;;
2335 esac
2336 done
2337 test "$ac_cv_exeext" = no && ac_cv_exeext=
2338
2339 else
2340 ac_file=''
2341 fi
2342
2343 { echo "$as_me:$LINENO: result: $ac_file" >&5
2344 echo "${ECHO_T}$ac_file" >&6; }
2345 if test -z "$ac_file"; then
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2350 See \`config.log' for more details." >&5
2351 echo "$as_me: error: C compiler cannot create executables
2352 See \`config.log' for more details." >&2;}
2353 { (exit 77); exit 77; }; }
2354 fi
2355
2356 ac_exeext=$ac_cv_exeext
2357
2358 # Check that the compiler produces executables we can run. If not, either
2359 # the compiler is broken, or we cross compile.
2360 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2361 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2362 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2363 # If not cross compiling, check that we can run a simple program.
2364 if test "$cross_compiling" != yes; then
2365 if { ac_try='./$ac_file'
2366 { (case "(($ac_try" in
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2369 esac
2370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371 (eval "$ac_try") 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 cross_compiling=no
2376 else
2377 if test "$cross_compiling" = maybe; then
2378 cross_compiling=yes
2379 else
2380 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2381 If you meant to cross compile, use \`--host'.
2382 See \`config.log' for more details." >&5
2383 echo "$as_me: error: cannot run C compiled programs.
2384 If you meant to cross compile, use \`--host'.
2385 See \`config.log' for more details." >&2;}
2386 { (exit 1); exit 1; }; }
2387 fi
2388 fi
2389 fi
2390 { echo "$as_me:$LINENO: result: yes" >&5
2391 echo "${ECHO_T}yes" >&6; }
2392
2393 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2394 ac_clean_files=$ac_clean_files_save
2395 # Check that the compiler produces executables we can run. If not, either
2396 # the compiler is broken, or we cross compile.
2397 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2398 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2399 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2400 echo "${ECHO_T}$cross_compiling" >&6; }
2401
2402 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2403 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2404 if { (ac_try="$ac_link"
2405 case "(($ac_try" in
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2408 esac
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410 (eval "$ac_link") 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; then
2414 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2415 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2416 # work properly (i.e., refer to `conftest.exe'), while it won't with
2417 # `rm'.
2418 for ac_file in conftest.exe conftest conftest.*; do
2419 test -f "$ac_file" || continue
2420 case $ac_file in
2421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2422 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423 break;;
2424 * ) break;;
2425 esac
2426 done
2427 else
2428 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2429 See \`config.log' for more details." >&5
2430 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2431 See \`config.log' for more details." >&2;}
2432 { (exit 1); exit 1; }; }
2433 fi
2434
2435 rm -f conftest$ac_cv_exeext
2436 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2437 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2438
2439 rm -f conftest.$ac_ext
2440 EXEEXT=$ac_cv_exeext
2441 ac_exeext=$EXEEXT
2442 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2443 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2444 if test "${ac_cv_objext+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447 cat >conftest.$ac_ext <<_ACEOF
2448 /* confdefs.h. */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2453
2454 int
2455 main ()
2456 {
2457
2458 ;
2459 return 0;
2460 }
2461 _ACEOF
2462 rm -f conftest.o conftest.obj
2463 if { (ac_try="$ac_compile"
2464 case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467 esac
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469 (eval "$ac_compile") 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; then
2473 for ac_file in conftest.o conftest.obj conftest.*; do
2474 test -f "$ac_file" || continue;
2475 case $ac_file in
2476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2477 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2478 break;;
2479 esac
2480 done
2481 else
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2486 See \`config.log' for more details." >&5
2487 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2488 See \`config.log' for more details." >&2;}
2489 { (exit 1); exit 1; }; }
2490 fi
2491
2492 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2493 fi
2494 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2495 echo "${ECHO_T}$ac_cv_objext" >&6; }
2496 OBJEXT=$ac_cv_objext
2497 ac_objext=$OBJEXT
2498 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2499 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2500 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503 cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h. */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2509
2510 int
2511 main ()
2512 {
2513 #ifndef __GNUC__
2514 choke me
2515 #endif
2516
2517 ;
2518 return 0;
2519 }
2520 _ACEOF
2521 rm -f conftest.$ac_objext
2522 if { (ac_try="$ac_compile"
2523 case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526 esac
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_compile") 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } && {
2535 test -z "$ac_c_werror_flag" ||
2536 test ! -s conftest.err
2537 } && test -s conftest.$ac_objext; then
2538 ac_compiler_gnu=yes
2539 else
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2542
2543 ac_compiler_gnu=no
2544 fi
2545
2546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2548
2549 fi
2550 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2551 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2552 GCC=`test $ac_compiler_gnu = yes && echo yes`
2553 ac_test_CFLAGS=${CFLAGS+set}
2554 ac_save_CFLAGS=$CFLAGS
2555 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2556 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2557 if test "${ac_cv_prog_cc_g+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560 ac_save_c_werror_flag=$ac_c_werror_flag
2561 ac_c_werror_flag=yes
2562 ac_cv_prog_cc_g=no
2563 CFLAGS="-g"
2564 cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h. */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2570
2571 int
2572 main ()
2573 {
2574
2575 ;
2576 return 0;
2577 }
2578 _ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (ac_try="$ac_compile"
2581 case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584 esac
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_compile") 2>conftest.er1
2587 ac_status=$?
2588 grep -v '^ *+' conftest.er1 >conftest.err
2589 rm -f conftest.er1
2590 cat conftest.err >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } && {
2593 test -z "$ac_c_werror_flag" ||
2594 test ! -s conftest.err
2595 } && test -s conftest.$ac_objext; then
2596 ac_cv_prog_cc_g=yes
2597 else
2598 echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2600
2601 CFLAGS=""
2602 cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h. */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2608
2609 int
2610 main ()
2611 {
2612
2613 ;
2614 return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (ac_try="$ac_compile"
2619 case "(($ac_try" in
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2622 esac
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624 (eval "$ac_compile") 2>conftest.er1
2625 ac_status=$?
2626 grep -v '^ *+' conftest.er1 >conftest.err
2627 rm -f conftest.er1
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } && {
2631 test -z "$ac_c_werror_flag" ||
2632 test ! -s conftest.err
2633 } && test -s conftest.$ac_objext; then
2634 :
2635 else
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 ac_c_werror_flag=$ac_save_c_werror_flag
2640 CFLAGS="-g"
2641 cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h. */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2647
2648 int
2649 main ()
2650 {
2651
2652 ;
2653 return 0;
2654 }
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (ac_try="$ac_compile"
2658 case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2661 esac
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_compile") 2>conftest.er1
2664 ac_status=$?
2665 grep -v '^ *+' conftest.er1 >conftest.err
2666 rm -f conftest.er1
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } && {
2670 test -z "$ac_c_werror_flag" ||
2671 test ! -s conftest.err
2672 } && test -s conftest.$ac_objext; then
2673 ac_cv_prog_cc_g=yes
2674 else
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2677
2678
2679 fi
2680
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 fi
2683
2684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 fi
2686
2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 ac_c_werror_flag=$ac_save_c_werror_flag
2689 fi
2690 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2691 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2692 if test "$ac_test_CFLAGS" = set; then
2693 CFLAGS=$ac_save_CFLAGS
2694 elif test $ac_cv_prog_cc_g = yes; then
2695 if test "$GCC" = yes; then
2696 CFLAGS="-g -O2"
2697 else
2698 CFLAGS="-g"
2699 fi
2700 else
2701 if test "$GCC" = yes; then
2702 CFLAGS="-O2"
2703 else
2704 CFLAGS=
2705 fi
2706 fi
2707 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2708 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2709 if test "${ac_cv_prog_cc_c89+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712 ac_cv_prog_cc_c89=no
2713 ac_save_CC=$CC
2714 cat >conftest.$ac_ext <<_ACEOF
2715 /* confdefs.h. */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2720 #include <stdarg.h>
2721 #include <stdio.h>
2722 #include <sys/types.h>
2723 #include <sys/stat.h>
2724 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2725 struct buf { int x; };
2726 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2727 static char *e (p, i)
2728 char **p;
2729 int i;
2730 {
2731 return p[i];
2732 }
2733 static char *f (char * (*g) (char **, int), char **p, ...)
2734 {
2735 char *s;
2736 va_list v;
2737 va_start (v,p);
2738 s = g (p, va_arg (v,int));
2739 va_end (v);
2740 return s;
2741 }
2742
2743 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2744 function prototypes and stuff, but not '\xHH' hex character constants.
2745 These don't provoke an error unfortunately, instead are silently treated
2746 as 'x'. The following induces an error, until -std is added to get
2747 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2748 array size at least. It's necessary to write '\x00'==0 to get something
2749 that's true only with -std. */
2750 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2751
2752 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2753 inside strings and character constants. */
2754 #define FOO(x) 'x'
2755 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2756
2757 int test (int i, double x);
2758 struct s1 {int (*f) (int a);};
2759 struct s2 {int (*f) (double a);};
2760 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2761 int argc;
2762 char **argv;
2763 int
2764 main ()
2765 {
2766 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2767 ;
2768 return 0;
2769 }
2770 _ACEOF
2771 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2772 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2773 do
2774 CC="$ac_save_CC $ac_arg"
2775 rm -f conftest.$ac_objext
2776 if { (ac_try="$ac_compile"
2777 case "(($ac_try" in
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2780 esac
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_compile") 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } && {
2789 test -z "$ac_c_werror_flag" ||
2790 test ! -s conftest.err
2791 } && test -s conftest.$ac_objext; then
2792 ac_cv_prog_cc_c89=$ac_arg
2793 else
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797
2798 fi
2799
2800 rm -f core conftest.err conftest.$ac_objext
2801 test "x$ac_cv_prog_cc_c89" != "xno" && break
2802 done
2803 rm -f conftest.$ac_ext
2804 CC=$ac_save_CC
2805
2806 fi
2807 # AC_CACHE_VAL
2808 case "x$ac_cv_prog_cc_c89" in
2809 x)
2810 { echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6; } ;;
2812 xno)
2813 { echo "$as_me:$LINENO: result: unsupported" >&5
2814 echo "${ECHO_T}unsupported" >&6; } ;;
2815 *)
2816 CC="$CC $ac_cv_prog_cc_c89"
2817 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2818 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2819 esac
2820
2821
2822 ac_ext=c
2823 ac_cpp='$CPP $CPPFLAGS'
2824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827
2828
2829 # Check whether --with-arch-flags was given.
2830 if test "${with_arch_flags+set}" = set; then
2831 withval=$with_arch_flags;
2832 if test "$withval" = "yes"
2833 then
2834 { { echo "$as_me:$LINENO: error: No flags specified for --with-arch-flags" >&5
2835 echo "$as_me: error: No flags specified for --with-arch-flags" >&2;}
2836 { (exit 1); exit 1; }; }
2837 fi
2838 ARCHFLAGS="$withval"
2839
2840
2841 fi
2842
2843
2844
2845
2846
2847 if test "$GCC" = yes ; then
2848 if test "$SHLICC2" = yes ; then
2849 ac_cv_lbl_gcc_vers=2
2850 V_CCOPT="-O2"
2851 else
2852 { echo "$as_me:$LINENO: checking gcc version" >&5
2853 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2854 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2858 sed -e '/^gcc version /!d' \
2859 -e 's/^gcc version //' \
2860 -e 's/ .*//' -e 's/^[^0-9]*//' \
2861 -e 's/\..*//'`
2862 fi
2863
2864 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2865 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2866 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2867 V_CCOPT="-O2"
2868 fi
2869 fi
2870 else
2871 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2872 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2873 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876
2877 cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h. */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 #include <sys/types.h>
2884 int
2885 main ()
2886 {
2887 int frob(int, char *)
2888 ;
2889 return 0;
2890 }
2891 _ACEOF
2892 rm -f conftest.$ac_objext
2893 if { (ac_try="$ac_compile"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>conftest.er1
2900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } && {
2906 test -z "$ac_c_werror_flag" ||
2907 test ! -s conftest.err
2908 } && test -s conftest.$ac_objext; then
2909 ac_cv_lbl_cc_ansi_prototypes=yes
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2913
2914 ac_cv_lbl_cc_ansi_prototypes=no
2915 fi
2916
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 fi
2919
2920 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2921 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2922 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2923 case "$host_os" in
2924
2925 hpux*)
2926 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2927 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2928 savedcflags="$CFLAGS"
2929 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2930 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 else
2933 cat >conftest.$ac_ext <<_ACEOF
2934 /* confdefs.h. */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2939 #include <sys/types.h>
2940 int
2941 main ()
2942 {
2943 int frob(int, char *)
2944 ;
2945 return 0;
2946 }
2947 _ACEOF
2948 rm -f conftest.$ac_objext
2949 if { (ac_try="$ac_compile"
2950 case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_compile") 2>conftest.er1
2956 ac_status=$?
2957 grep -v '^ *+' conftest.er1 >conftest.err
2958 rm -f conftest.er1
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } && {
2962 test -z "$ac_c_werror_flag" ||
2963 test ! -s conftest.err
2964 } && test -s conftest.$ac_objext; then
2965 ac_cv_lbl_cc_hpux_cc_aa=yes
2966 else
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970 ac_cv_lbl_cc_hpux_cc_aa=no
2971 fi
2972
2973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974 fi
2975
2976 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2977 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2978 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2979 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2980 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2981 { (exit 1); exit 1; }; }
2982 fi
2983 CFLAGS="$savedcflags"
2984 V_CCOPT="-Aa $V_CCOPT"
2985
2986 cat >>confdefs.h <<\_ACEOF
2987 #define _HPUX_SOURCE 1
2988 _ACEOF
2989
2990 ;;
2991
2992 osf*)
2993 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2994 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2995 savedcflags="$CFLAGS"
2996 CFLAGS="-std1"
2997 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000 cat >conftest.$ac_ext <<_ACEOF
3001 /* confdefs.h. */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3006 #include <sys/types.h>
3007 int
3008 main ()
3009 {
3010 int frob(int, char *)
3011 ;
3012 return 0;
3013 }
3014 _ACEOF
3015 rm -f conftest.$ac_objext
3016 if { (ac_try="$ac_compile"
3017 case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020 esac
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_compile") 2>conftest.er1
3023 ac_status=$?
3024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } && {
3029 test -z "$ac_c_werror_flag" ||
3030 test ! -s conftest.err
3031 } && test -s conftest.$ac_objext; then
3032 ac_cv_lbl_cc_osf1_cc_std1=yes
3033 else
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037 ac_cv_lbl_cc_osf1_cc_std1=no
3038 fi
3039
3040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041 fi
3042
3043 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3044 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3045 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3046 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3047 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3048 { (exit 1); exit 1; }; }
3049 fi
3050 CFLAGS="$savedcflags"
3051 V_CCOPT="-std1 $V_CCOPT"
3052 ;;
3053
3054 *)
3055 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3056 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3057 { (exit 1); exit 1; }; }
3058 ;;
3059 esac
3060 fi
3061 V_INCLS="$V_INCLS -I/usr/local/include"
3062 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3063
3064 case "$host_os" in
3065
3066 irix*)
3067 V_CCOPT="$V_CCOPT -xansi -signed -O"
3068 ;;
3069
3070 osf*)
3071 #
3072 # Presumed to be DEC OSF/1, Digital UNIX, or
3073 # Tru64 UNIX.
3074 #
3075 V_CCOPT="$V_CCOPT -O"
3076 ;;
3077
3078 ultrix*)
3079 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3080 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3081 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084 cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h. */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3090 #include <sys/types.h>
3091 int
3092 main ()
3093 {
3094 struct a { int b; };
3095 void c(const struct a *)
3096 ;
3097 return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3108 ac_status=$?
3109 grep -v '^ *+' conftest.er1 >conftest.err
3110 rm -f conftest.er1
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } && {
3114 test -z "$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3116 } && test -s conftest.$ac_objext; then
3117 ac_cv_lbl_cc_const_proto=yes
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122 ac_cv_lbl_cc_const_proto=no
3123 fi
3124
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126 fi
3127
3128 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3129 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3130 if test $ac_cv_lbl_cc_const_proto = no ; then
3131
3132 cat >>confdefs.h <<\_ACEOF
3133 #define const
3134 _ACEOF
3135
3136 fi
3137 ;;
3138 esac
3139 fi
3140
3141 { echo "$as_me:$LINENO: checking for inline" >&5
3142 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3143 save_CFLAGS="$CFLAGS"
3144 CFLAGS="$V_CCOPT"
3145 if test "${ac_cv_lbl_inline+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148
3149 ac_cv_lbl_inline=""
3150 ac_lbl_cc_inline=no
3151 for ac_lbl_inline in inline __inline__ __inline
3152 do
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159 #define inline $ac_lbl_inline
3160 static inline struct iltest *foo(void);
3161 struct iltest {
3162 int iltest1;
3163 int iltest2;
3164 };
3165
3166 static inline struct iltest *
3167 foo()
3168 {
3169 static struct iltest xxx;
3170
3171 return &xxx;
3172 }
3173 int
3174 main ()
3175 {
3176
3177 ;
3178 return 0;
3179 }
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3183 case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } && {
3195 test -z "$ac_c_werror_flag" ||
3196 test ! -s conftest.err
3197 } && test -s conftest.$ac_objext; then
3198 ac_lbl_cc_inline=yes
3199 else
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203
3204 fi
3205
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 if test "$ac_lbl_cc_inline" = yes ; then
3208 break;
3209 fi
3210 done
3211 if test "$ac_lbl_cc_inline" = yes ; then
3212 ac_cv_lbl_inline=$ac_lbl_inline
3213 fi
3214 fi
3215
3216 CFLAGS="$save_CFLAGS"
3217 if test ! -z "$ac_cv_lbl_inline" ; then
3218 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3219 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3220 else
3221 { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3223 fi
3224
3225 cat >>confdefs.h <<_ACEOF
3226 #define inline $ac_cv_lbl_inline
3227 _ACEOF
3228
3229
3230 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3231 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3232 if test "${ac_cv___attribute__+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235
3236 cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h. */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242
3243 #include <stdlib.h>
3244
3245 static void foo(void) __attribute__ ((noreturn));
3246
3247 static void
3248 foo(void)
3249 {
3250 exit(1);
3251 }
3252
3253 int
3254 main(int argc, char **argv)
3255 {
3256 foo();
3257 }
3258
3259 _ACEOF
3260 rm -f conftest.$ac_objext
3261 if { (ac_try="$ac_compile"
3262 case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265 esac
3266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3267 (eval "$ac_compile") 2>conftest.er1
3268 ac_status=$?
3269 grep -v '^ *+' conftest.er1 >conftest.err
3270 rm -f conftest.er1
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } && {
3274 test -z "$ac_c_werror_flag" ||
3275 test ! -s conftest.err
3276 } && test -s conftest.$ac_objext; then
3277 ac_cv___attribute__=yes
3278 else
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 ac_cv___attribute__=no
3283 fi
3284
3285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3286 fi
3287
3288 if test "$ac_cv___attribute__" = "yes"; then
3289
3290 cat >>confdefs.h <<\_ACEOF
3291 #define HAVE___ATTRIBUTE__ 1
3292 _ACEOF
3293
3294 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3295 else
3296 V_DEFS="$V_DEFS -D_U_=\"\""
3297 fi
3298 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3299 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3300
3301 if test "$ac_cv___attribute__" = "yes"; then
3302
3303 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3304 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3305 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308
3309 cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h. */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3315
3316 #include <stdlib.h>
3317
3318 extern int (*foo)(const char *fmt, ...)
3319 __attribute__ ((format (printf, 1, 2)));
3320
3321 int
3322 main(int argc, char **argv)
3323 {
3324 (*foo)("%s", "test");
3325 }
3326
3327 _ACEOF
3328 rm -f conftest.$ac_objext
3329 if { (ac_try="$ac_compile"
3330 case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_compile") 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } && {
3342 test -z "$ac_c_werror_flag" ||
3343 test ! -s conftest.err
3344 } && test -s conftest.$ac_objext; then
3345 ac_cv___attribute___format_function_pointer=yes
3346 else
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350 ac_cv___attribute___format_function_pointer=no
3351 fi
3352
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 fi
3355
3356 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3357
3358 cat >>confdefs.h <<\_ACEOF
3359 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3360 _ACEOF
3361
3362 fi
3363 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3364 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3365
3366 fi
3367 ac_ext=c
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3373 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3374 # On Suns, sometimes $CPP names a directory.
3375 if test -n "$CPP" && test -d "$CPP"; then
3376 CPP=
3377 fi
3378 if test -z "$CPP"; then
3379 if test "${ac_cv_prog_CPP+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382 # Double quotes because CPP needs to be expanded
3383 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3384 do
3385 ac_preproc_ok=false
3386 for ac_c_preproc_warn_flag in '' yes
3387 do
3388 # Use a header file that comes with gcc, so configuring glibc
3389 # with a fresh cross-compiler works.
3390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3391 # <limits.h> exists even on freestanding compilers.
3392 # On the NeXT, cc -E runs the code through the compiler's parser,
3393 # not just through cpp. "Syntax error" is here to catch this case.
3394 cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h. */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3400 #ifdef __STDC__
3401 # include <limits.h>
3402 #else
3403 # include <assert.h>
3404 #endif
3405 Syntax error
3406 _ACEOF
3407 if { (ac_try="$ac_cpp conftest.$ac_ext"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3414 ac_status=$?
3415 grep -v '^ *+' conftest.er1 >conftest.err
3416 rm -f conftest.er1
3417 cat conftest.err >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } >/dev/null && {
3420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3421 test ! -s conftest.err
3422 }; then
3423 :
3424 else
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428 # Broken: fails on valid input.
3429 continue
3430 fi
3431
3432 rm -f conftest.err conftest.$ac_ext
3433
3434 # OK, works on sane cases. Now check whether nonexistent headers
3435 # can be detected and how.
3436 cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h. */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #include <ac_nonexistent.h>
3443 _ACEOF
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null && {
3457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 }; then
3460 # Broken: success on invalid input.
3461 continue
3462 else
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 # Passes both tests.
3467 ac_preproc_ok=:
3468 break
3469 fi
3470
3471 rm -f conftest.err conftest.$ac_ext
3472
3473 done
3474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475 rm -f conftest.err conftest.$ac_ext
3476 if $ac_preproc_ok; then
3477 break
3478 fi
3479
3480 done
3481 ac_cv_prog_CPP=$CPP
3482
3483 fi
3484 CPP=$ac_cv_prog_CPP
3485 else
3486 ac_cv_prog_CPP=$CPP
3487 fi
3488 { echo "$as_me:$LINENO: result: $CPP" >&5
3489 echo "${ECHO_T}$CPP" >&6; }
3490 ac_preproc_ok=false
3491 for ac_c_preproc_warn_flag in '' yes
3492 do
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h. */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 #ifdef __STDC__
3506 # include <limits.h>
3507 #else
3508 # include <assert.h>
3509 #endif
3510 Syntax error
3511 _ACEOF
3512 if { (ac_try="$ac_cpp conftest.$ac_ext"
3513 case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516 esac
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null && {
3525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 }; then
3528 :
3529 else
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 # Broken: fails on valid input.
3534 continue
3535 fi
3536
3537 rm -f conftest.err conftest.$ac_ext
3538
3539 # OK, works on sane cases. Now check whether nonexistent headers
3540 # can be detected and how.
3541 cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h. */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547 #include <ac_nonexistent.h>
3548 _ACEOF
3549 if { (ac_try="$ac_cpp conftest.$ac_ext"
3550 case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553 esac
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3556 ac_status=$?
3557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } >/dev/null && {
3562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3563 test ! -s conftest.err
3564 }; then
3565 # Broken: success on invalid input.
3566 continue
3567 else
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 # Passes both tests.
3572 ac_preproc_ok=:
3573 break
3574 fi
3575
3576 rm -f conftest.err conftest.$ac_ext
3577
3578 done
3579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3580 rm -f conftest.err conftest.$ac_ext
3581 if $ac_preproc_ok; then
3582 :
3583 else
3584 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3585 See \`config.log' for more details." >&5
3586 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3587 See \`config.log' for more details." >&2;}
3588 { (exit 1); exit 1; }; }
3589 fi
3590
3591 ac_ext=c
3592 ac_cpp='$CPP $CPPFLAGS'
3593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3596
3597
3598 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3599 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3600 if test "${ac_cv_path_GREP+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603 # Extract the first word of "grep ggrep" to use in msg output
3604 if test -z "$GREP"; then
3605 set dummy grep ggrep; ac_prog_name=$2
3606 if test "${ac_cv_path_GREP+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 ac_path_GREP_found=false
3610 # Loop through the user's path and test for each of PROGNAME-LIST
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3613 do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_prog in grep ggrep; do
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3619 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3620 # Check for GNU ac_path_GREP and select it if it is found.
3621 # Check for GNU $ac_path_GREP
3622 case `"$ac_path_GREP" --version 2>&1` in
3623 *GNU*)
3624 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3625 *)
3626 ac_count=0
3627 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3628 while :
3629 do
3630 cat "conftest.in" "conftest.in" >"conftest.tmp"
3631 mv "conftest.tmp" "conftest.in"
3632 cp "conftest.in" "conftest.nl"
3633 echo 'GREP' >> "conftest.nl"
3634 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3636 ac_count=`expr $ac_count + 1`
3637 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3638 # Best one so far, save it but keep looking for a better one
3639 ac_cv_path_GREP="$ac_path_GREP"
3640 ac_path_GREP_max=$ac_count
3641 fi
3642 # 10*(2^10) chars as input seems more than enough
3643 test $ac_count -gt 10 && break
3644 done
3645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3646 esac
3647
3648
3649 $ac_path_GREP_found && break 3
3650 done
3651 done
3652
3653 done
3654 IFS=$as_save_IFS
3655
3656
3657 fi
3658
3659 GREP="$ac_cv_path_GREP"
3660 if test -z "$GREP"; then
3661 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3662 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3663 { (exit 1); exit 1; }; }
3664 fi
3665
3666 else
3667 ac_cv_path_GREP=$GREP
3668 fi
3669
3670
3671 fi
3672 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3673 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3674 GREP="$ac_cv_path_GREP"
3675
3676
3677 { echo "$as_me:$LINENO: checking for egrep" >&5
3678 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3679 if test "${ac_cv_path_EGREP+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3683 then ac_cv_path_EGREP="$GREP -E"
3684 else
3685 # Extract the first word of "egrep" to use in msg output
3686 if test -z "$EGREP"; then
3687 set dummy egrep; ac_prog_name=$2
3688 if test "${ac_cv_path_EGREP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 ac_path_EGREP_found=false
3692 # Loop through the user's path and test for each of PROGNAME-LIST
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3695 do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_prog in egrep; do
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3701 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3702 # Check for GNU ac_path_EGREP and select it if it is found.
3703 # Check for GNU $ac_path_EGREP
3704 case `"$ac_path_EGREP" --version 2>&1` in
3705 *GNU*)
3706 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3707 *)
3708 ac_count=0
3709 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3710 while :
3711 do
3712 cat "conftest.in" "conftest.in" >"conftest.tmp"
3713 mv "conftest.tmp" "conftest.in"
3714 cp "conftest.in" "conftest.nl"
3715 echo 'EGREP' >> "conftest.nl"
3716 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3718 ac_count=`expr $ac_count + 1`
3719 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3720 # Best one so far, save it but keep looking for a better one
3721 ac_cv_path_EGREP="$ac_path_EGREP"
3722 ac_path_EGREP_max=$ac_count
3723 fi
3724 # 10*(2^10) chars as input seems more than enough
3725 test $ac_count -gt 10 && break
3726 done
3727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3728 esac
3729
3730
3731 $ac_path_EGREP_found && break 3
3732 done
3733 done
3734
3735 done
3736 IFS=$as_save_IFS
3737
3738
3739 fi
3740
3741 EGREP="$ac_cv_path_EGREP"
3742 if test -z "$EGREP"; then
3743 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3744 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3745 { (exit 1); exit 1; }; }
3746 fi
3747
3748 else
3749 ac_cv_path_EGREP=$EGREP
3750 fi
3751
3752
3753 fi
3754 fi
3755 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3756 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3757 EGREP="$ac_cv_path_EGREP"
3758
3759
3760 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3761 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3762 if test "${ac_cv_header_stdc+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h. */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771 #include <stdlib.h>
3772 #include <stdarg.h>
3773 #include <string.h>
3774 #include <float.h>
3775
3776 int
3777 main ()
3778 {
3779
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 rm -f conftest.$ac_objext
3785 if { (ac_try="$ac_compile"
3786 case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789 esac
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_compile") 2>conftest.er1
3792 ac_status=$?
3793 grep -v '^ *+' conftest.er1 >conftest.err
3794 rm -f conftest.er1
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } && {
3798 test -z "$ac_c_werror_flag" ||
3799 test ! -s conftest.err
3800 } && test -s conftest.$ac_objext; then
3801 ac_cv_header_stdc=yes
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805
3806 ac_cv_header_stdc=no
3807 fi
3808
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810
3811 if test $ac_cv_header_stdc = yes; then
3812 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h. */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 #include <string.h>
3820
3821 _ACEOF
3822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3823 $EGREP "memchr" >/dev/null 2>&1; then
3824 :
3825 else
3826 ac_cv_header_stdc=no
3827 fi
3828 rm -f -r conftest*
3829
3830 fi
3831
3832 if test $ac_cv_header_stdc = yes; then
3833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3834 cat >conftest.$ac_ext <<_ACEOF
3835 /* confdefs.h. */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3840 #include <stdlib.h>
3841
3842 _ACEOF
3843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844 $EGREP "free" >/dev/null 2>&1; then
3845 :
3846 else
3847 ac_cv_header_stdc=no
3848 fi
3849 rm -f -r conftest*
3850
3851 fi
3852
3853 if test $ac_cv_header_stdc = yes; then
3854 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3855 if test "$cross_compiling" = yes; then
3856 :
3857 else
3858 cat >conftest.$ac_ext <<_ACEOF
3859 /* confdefs.h. */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3864 #include <ctype.h>
3865 #include <stdlib.h>
3866 #if ((' ' & 0x0FF) == 0x020)
3867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3869 #else
3870 # define ISLOWER(c) \
3871 (('a' <= (c) && (c) <= 'i') \
3872 || ('j' <= (c) && (c) <= 'r') \
3873 || ('s' <= (c) && (c) <= 'z'))
3874 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3875 #endif
3876
3877 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3878 int
3879 main ()
3880 {
3881 int i;
3882 for (i = 0; i < 256; i++)
3883 if (XOR (islower (i), ISLOWER (i))
3884 || toupper (i) != TOUPPER (i))
3885 return 2;
3886 return 0;
3887 }
3888 _ACEOF
3889 rm -f conftest$ac_exeext
3890 if { (ac_try="$ac_link"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_link") 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3900 { (case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903 esac
3904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_try") 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 :
3910 else
3911 echo "$as_me: program exited with status $ac_status" >&5
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915 ( exit $ac_status )
3916 ac_cv_header_stdc=no
3917 fi
3918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3919 fi
3920
3921
3922 fi
3923 fi
3924 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3925 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3926 if test $ac_cv_header_stdc = yes; then
3927
3928 cat >>confdefs.h <<\_ACEOF
3929 #define STDC_HEADERS 1
3930 _ACEOF
3931
3932 fi
3933
3934 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3945 inttypes.h stdint.h unistd.h
3946 do
3947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953 cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h. */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 $ac_includes_default
3960
3961 #include <$ac_header>
3962 _ACEOF
3963 rm -f conftest.$ac_objext
3964 if { (ac_try="$ac_compile"
3965 case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_compile") 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } && {
3977 test -z "$ac_c_werror_flag" ||
3978 test ! -s conftest.err
3979 } && test -s conftest.$ac_objext; then
3980 eval "$as_ac_Header=yes"
3981 else
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985 eval "$as_ac_Header=no"
3986 fi
3987
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989 fi
3990 ac_res=`eval echo '${'$as_ac_Header'}'`
3991 { echo "$as_me:$LINENO: result: $ac_res" >&5
3992 echo "${ECHO_T}$ac_res" >&6; }
3993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3994 cat >>confdefs.h <<_ACEOF
3995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3996 _ACEOF
3997
3998 fi
3999
4000 done
4001
4002
4003
4004
4005
4006 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
4007 do
4008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 fi
4015 ac_res=`eval echo '${'$as_ac_Header'}'`
4016 { echo "$as_me:$LINENO: result: $ac_res" >&5
4017 echo "${ECHO_T}$ac_res" >&6; }
4018 else
4019 # Is the header compilable?
4020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4022 cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h. */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4028 $ac_includes_default
4029 #include <$ac_header>
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4033 case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036 esac
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_compile") 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } && {
4045 test -z "$ac_c_werror_flag" ||
4046 test ! -s conftest.err
4047 } && test -s conftest.$ac_objext; then
4048 ac_header_compiler=yes
4049 else
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053 ac_header_compiler=no
4054 fi
4055
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4058 echo "${ECHO_T}$ac_header_compiler" >&6; }
4059
4060 # Is the header present?
4061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4063 cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h. */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 #include <$ac_header>
4070 _ACEOF
4071 if { (ac_try="$ac_cpp conftest.$ac_ext"
4072 case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4075 esac
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4078 ac_status=$?
4079 grep -v '^ *+' conftest.er1 >conftest.err
4080 rm -f conftest.er1
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } >/dev/null && {
4084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4085 test ! -s conftest.err
4086 }; then
4087 ac_header_preproc=yes
4088 else
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092 ac_header_preproc=no
4093 fi
4094
4095 rm -f conftest.err conftest.$ac_ext
4096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4097 echo "${ECHO_T}$ac_header_preproc" >&6; }
4098
4099 # So? What about this header?
4100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4101 yes:no: )
4102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4106 ac_header_preproc=yes
4107 ;;
4108 no:yes:* )
4109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4121
4122 ;;
4123 esac
4124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129 eval "$as_ac_Header=\$ac_header_preproc"
4130 fi
4131 ac_res=`eval echo '${'$as_ac_Header'}'`
4132 { echo "$as_me:$LINENO: result: $ac_res" >&5
4133 echo "${ECHO_T}$ac_res" >&6; }
4134
4135 fi
4136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4137 cat >>confdefs.h <<_ACEOF
4138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4139 _ACEOF
4140
4141 fi
4142
4143 done
4144
4145
4146 for ac_header in net/pfvar.h
4147 do
4148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 #include <sys/types.h>
4161 #include <sys/socket.h>
4162 #include <net/if.h>
4163
4164 #include <$ac_header>
4165 _ACEOF
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4168 case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171 esac
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } && {
4180 test -z "$ac_c_werror_flag" ||
4181 test ! -s conftest.err
4182 } && test -s conftest.$ac_objext; then
4183 eval "$as_ac_Header=yes"
4184 else
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4187
4188 eval "$as_ac_Header=no"
4189 fi
4190
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 fi
4193 ac_res=`eval echo '${'$as_ac_Header'}'`
4194 { echo "$as_me:$LINENO: result: $ac_res" >&5
4195 echo "${ECHO_T}$ac_res" >&6; }
4196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4197 cat >>confdefs.h <<_ACEOF
4198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4199 _ACEOF
4200
4201 fi
4202
4203 done
4204
4205 if test "$ac_cv_header_net_pfvar_h" = yes; then
4206 LOCALSRC="print-pflog.c $LOCALSRC"
4207 fi
4208
4209 for ac_header in netinet/if_ether.h
4210 do
4211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <sys/types.h>
4224 #include <sys/socket.h>
4225
4226 #include <$ac_header>
4227 _ACEOF
4228 rm -f conftest.$ac_objext
4229 if { (ac_try="$ac_compile"
4230 case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233 esac
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_compile") 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } && {
4242 test -z "$ac_c_werror_flag" ||
4243 test ! -s conftest.err
4244 } && test -s conftest.$ac_objext; then
4245 eval "$as_ac_Header=yes"
4246 else
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4249
4250 eval "$as_ac_Header=no"
4251 fi
4252
4253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254 fi
4255 ac_res=`eval echo '${'$as_ac_Header'}'`
4256 { echo "$as_me:$LINENO: result: $ac_res" >&5
4257 echo "${ECHO_T}$ac_res" >&6; }
4258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4259 cat >>confdefs.h <<_ACEOF
4260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4261 _ACEOF
4262
4263 fi
4264
4265 done
4266
4267 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4268 #
4269 # The simple test didn't work.
4270 # Do we need to include <net/if.h> first?
4271 # Unset ac_cv_header_netinet_if_ether_h so we don't
4272 # treat the previous failure as a cached value and
4273 # suppress the next test.
4274 #
4275 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4276 echo "$as_me: Rechecking with some additional includes" >&6;}
4277 unset ac_cv_header_netinet_if_ether_h
4278
4279 for ac_header in netinet/if_ether.h
4280 do
4281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287 cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h. */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 #include <sys/types.h>
4294 #include <sys/socket.h>
4295 #include <netinet/in.h>
4296 struct mbuf;
4297 struct rtentry;
4298 #include <net/if.h>
4299
4300 #include <$ac_header>
4301 _ACEOF
4302 rm -f conftest.$ac_objext
4303 if { (ac_try="$ac_compile"
4304 case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_compile") 2>conftest.er1
4310 ac_status=$?
4311 grep -v '^ *+' conftest.er1 >conftest.err
4312 rm -f conftest.er1
4313 cat conftest.err >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } && {
4316 test -z "$ac_c_werror_flag" ||
4317 test ! -s conftest.err
4318 } && test -s conftest.$ac_objext; then
4319 eval "$as_ac_Header=yes"
4320 else
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 eval "$as_ac_Header=no"
4325 fi
4326
4327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 fi
4329 ac_res=`eval echo '${'$as_ac_Header'}'`
4330 { echo "$as_me:$LINENO: result: $ac_res" >&5
4331 echo "${ECHO_T}$ac_res" >&6; }
4332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4333 cat >>confdefs.h <<_ACEOF
4334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4335 _ACEOF
4336
4337 fi
4338
4339 done
4340
4341 fi
4342
4343 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4344 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4345 if test "${ac_cv_header_time+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348 cat >conftest.$ac_ext <<_ACEOF
4349 /* confdefs.h. */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354 #include <sys/types.h>
4355 #include <sys/time.h>
4356 #include <time.h>
4357
4358 int
4359 main ()
4360 {
4361 if ((struct tm *) 0)
4362 return 0;
4363 ;
4364 return 0;
4365 }
4366 _ACEOF
4367 rm -f conftest.$ac_objext
4368 if { (ac_try="$ac_compile"
4369 case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372 esac
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_compile") 2>conftest.er1
4375 ac_status=$?
4376 grep -v '^ *+' conftest.er1 >conftest.err
4377 rm -f conftest.er1
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } && {
4381 test -z "$ac_c_werror_flag" ||
4382 test ! -s conftest.err
4383 } && test -s conftest.$ac_objext; then
4384 ac_cv_header_time=yes
4385 else
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389 ac_cv_header_time=no
4390 fi
4391
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 fi
4394 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4395 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4396 if test $ac_cv_header_time = yes; then
4397
4398 cat >>confdefs.h <<\_ACEOF
4399 #define TIME_WITH_SYS_TIME 1
4400 _ACEOF
4401
4402 fi
4403
4404
4405 case "$host_os" in
4406
4407 linux*)
4408 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4409 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4410 if test "$cross_compiling" = yes; then
4411 if test "${ac_cv_linux_vers+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414 ac_cv_linux_vers=unknown
4415 fi
4416
4417 else
4418 if test "${ac_cv_linux_vers+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421 ac_cv_linux_vers=`uname -r 2>&1 | \
4422 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4423 fi
4424
4425 fi
4426 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4427 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4428 if test $ac_cv_linux_vers = unknown ; then
4429 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4430 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4431 { (exit 1); exit 1; }; }
4432 fi
4433 if test $ac_cv_linux_vers -lt 2 ; then
4434 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4435 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4436 { (exit 1); exit 1; }; }
4437 fi
4438 ;;
4439
4440 *)
4441 ;;
4442 esac
4443
4444
4445
4446 # Check whether --with-smi was given.
4447 if test "${with_smi+set}" = set; then
4448 withval=$with_smi;
4449 else
4450 with_smi=yes
4451 fi
4452
4453
4454 if test "x$with_smi" != "xno" ; then
4455
4456 for ac_header in smi.h
4457 do
4458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 fi
4465 ac_res=`eval echo '${'$as_ac_Header'}'`
4466 { echo "$as_me:$LINENO: result: $ac_res" >&5
4467 echo "${ECHO_T}$ac_res" >&6; }
4468 else
4469 # Is the header compilable?
4470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4472 cat >conftest.$ac_ext <<_ACEOF
4473 /* confdefs.h. */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 $ac_includes_default
4479 #include <$ac_header>
4480 _ACEOF
4481 rm -f conftest.$ac_objext
4482 if { (ac_try="$ac_compile"
4483 case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_compile") 2>conftest.er1
4489 ac_status=$?
4490 grep -v '^ *+' conftest.er1 >conftest.err
4491 rm -f conftest.er1
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } && {
4495 test -z "$ac_c_werror_flag" ||
4496 test ! -s conftest.err
4497 } && test -s conftest.$ac_objext; then
4498 ac_header_compiler=yes
4499 else
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4502
4503 ac_header_compiler=no
4504 fi
4505
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4508 echo "${ECHO_T}$ac_header_compiler" >&6; }
4509
4510 # Is the header present?
4511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4513 cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h. */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 #include <$ac_header>
4520 _ACEOF
4521 if { (ac_try="$ac_cpp conftest.$ac_ext"
4522 case "(($ac_try" in
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4525 esac
4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4528 ac_status=$?
4529 grep -v '^ *+' conftest.er1 >conftest.err
4530 rm -f conftest.er1
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } >/dev/null && {
4534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4535 test ! -s conftest.err
4536 }; then
4537 ac_header_preproc=yes
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 ac_header_preproc=no
4543 fi
4544
4545 rm -f conftest.err conftest.$ac_ext
4546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4547 echo "${ECHO_T}$ac_header_preproc" >&6; }
4548
4549 # So? What about this header?
4550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4551 yes:no: )
4552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4556 ac_header_preproc=yes
4557 ;;
4558 no:yes:* )
4559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4571
4572 ;;
4573 esac
4574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579 eval "$as_ac_Header=\$ac_header_preproc"
4580 fi
4581 ac_res=`eval echo '${'$as_ac_Header'}'`
4582 { echo "$as_me:$LINENO: result: $ac_res" >&5
4583 echo "${ECHO_T}$ac_res" >&6; }
4584
4585 fi
4586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4587 cat >>confdefs.h <<_ACEOF
4588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4589 _ACEOF
4590
4591 fi
4592
4593 done
4594
4595
4596 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4597 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4598 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601 ac_check_lib_save_LIBS=$LIBS
4602 LIBS="-lsmi $LIBS"
4603 cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h. */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609
4610 /* Override any GCC internal prototype to avoid an error.
4611 Use char because int might match the return type of a GCC
4612 builtin and then its argument prototype would still apply. */
4613 #ifdef __cplusplus
4614 extern "C"
4615 #endif
4616 char smiInit ();
4617 int
4618 main ()
4619 {
4620 return smiInit ();
4621 ;
4622 return 0;
4623 }
4624 _ACEOF
4625 rm -f conftest.$ac_objext conftest$ac_exeext
4626 if { (ac_try="$ac_link"
4627 case "(($ac_try" in
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4630 esac
4631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632 (eval "$ac_link") 2>conftest.er1
4633 ac_status=$?
4634 grep -v '^ *+' conftest.er1 >conftest.err
4635 rm -f conftest.er1
4636 cat conftest.err >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } && {
4639 test -z "$ac_c_werror_flag" ||
4640 test ! -s conftest.err
4641 } && test -s conftest$ac_exeext &&
4642 $as_test_x conftest$ac_exeext; then
4643 ac_cv_lib_smi_smiInit=yes
4644 else
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4647
4648 ac_cv_lib_smi_smiInit=no
4649 fi
4650
4651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4652 conftest$ac_exeext conftest.$ac_ext
4653 LIBS=$ac_check_lib_save_LIBS
4654 fi
4655 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4656 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4657 if test $ac_cv_lib_smi_smiInit = yes; then
4658 cat >>confdefs.h <<_ACEOF
4659 #define HAVE_LIBSMI 1
4660 _ACEOF
4661
4662 LIBS="-lsmi $LIBS"
4663
4664 fi
4665
4666 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4667 then
4668 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4669 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4670 if test "$cross_compiling" = yes; then
4671 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4672 echo "${ECHO_T}not when cross-compiling" >&6; }
4673 libsmi=no
4674
4675 else
4676 cat >conftest.$ac_ext <<_ACEOF
4677 /* confdefs.h. */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 /* libsmi available check */
4683 #include <smi.h>
4684 main()
4685 {
4686 int current, revision, age, n;
4687 const int required = 2;
4688 if (smiInit(""))
4689 exit(1);
4690 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4691 exit(2);
4692 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4693 if (n != 3)
4694 exit(3);
4695 if (required < current - age || required > current)
4696 exit(4);
4697 exit(0);
4698 }
4699
4700 _ACEOF
4701 rm -f conftest$ac_exeext
4702 if { (ac_try="$ac_link"
4703 case "(($ac_try" in
4704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705 *) ac_try_echo=$ac_try;;
4706 esac
4707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4708 (eval "$ac_link") 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4712 { (case "(($ac_try" in
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4715 esac
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_try") 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 { echo "$as_me:$LINENO: result: yes" >&5
4722 echo "${ECHO_T}yes" >&6; }
4723 cat >>confdefs.h <<\_ACEOF
4724 #define LIBSMI 1
4725 _ACEOF
4726
4727 libsmi=yes
4728 else
4729 echo "$as_me: program exited with status $ac_status" >&5
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733 ( exit $ac_status )
4734 case $? in
4735 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4736 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4737 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4738 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4739 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4740 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4741 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4742 echo "${ECHO_T}no - too old" >&6; } ;;
4743 *) { echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6; } ;;
4745 esac
4746 libsmi=no
4747 fi
4748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4749 fi
4750
4751
4752 fi
4753 fi
4754
4755 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4756 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4757 # Check whether --enable-smb was given.
4758 if test "${enable_smb+set}" = set; then
4759 enableval=$enable_smb;
4760 else
4761 enableval=yes
4762 fi
4763
4764 case "$enableval" in
4765 yes) { echo "$as_me:$LINENO: result: yes" >&5
4766 echo "${ECHO_T}yes" >&6; }
4767 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4768 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4769 cat >>confdefs.h <<\_ACEOF
4770 #define TCPDUMP_DO_SMB 1
4771 _ACEOF
4772
4773 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4774 ;;
4775 *) { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4777 ;;
4778 esac
4779
4780
4781 # Check whether --with-user was given.
4782 if test "${with_user+set}" = set; then
4783 withval=$with_user;
4784 fi
4785
4786 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4787 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4788 if test ! -z "$with_user" ; then
4789 cat >>confdefs.h <<_ACEOF
4790 #define WITH_USER "$withval"
4791 _ACEOF
4792
4793 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4794 echo "${ECHO_T}to \"$withval\"" >&6; }
4795 else
4796 { echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6; }
4798 fi
4799
4800
4801 # Check whether --with-chroot was given.
4802 if test "${with_chroot+set}" = set; then
4803 withval=$with_chroot;
4804 fi
4805
4806 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4807 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4808 if test ! -z "$with_chroot" ; then
4809 cat >>confdefs.h <<_ACEOF
4810 #define WITH_CHROOT "$withval"
4811 _ACEOF
4812
4813 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4814 echo "${ECHO_T}to \"$withval\"" >&6; }
4815 else
4816 { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4818 fi
4819
4820 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4821 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4822 # Check whether --enable-ipv6 was given.
4823 if test "${enable_ipv6+set}" = set; then
4824 enableval=$enable_ipv6; case "$enableval" in
4825 yes) { echo "$as_me:$LINENO: result: yes" >&5
4826 echo "${ECHO_T}yes" >&6; }
4827 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 $LOCALSRC"
4828 cat >>confdefs.h <<\_ACEOF
4829 #define INET6 1
4830 _ACEOF
4831
4832 ipv6=yes
4833 ;;
4834 *)
4835 { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4837 ipv6=no
4838 ;;
4839 esac
4840 else
4841 if test "$cross_compiling" = yes; then
4842 { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4844 ipv6=no
4845
4846 else
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 /* AF_INET6 available check */
4854 #include <sys/types.h>
4855 #include <sys/socket.h>
4856 main()
4857 {
4858 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4859 exit(1);
4860 else
4861 exit(0);
4862 }
4863
4864 _ACEOF
4865 rm -f conftest$ac_exeext
4866 if { (ac_try="$ac_link"
4867 case "(($ac_try" in
4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869 *) ac_try_echo=$ac_try;;
4870 esac
4871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4872 (eval "$ac_link") 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4876 { (case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4879 esac
4880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4881 (eval "$ac_try") 2>&5
4882 ac_status=$?
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 { echo "$as_me:$LINENO: result: yes" >&5
4886 echo "${ECHO_T}yes" >&6; }
4887 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 $LOCALSRC"
4888 cat >>confdefs.h <<\_ACEOF
4889 #define INET6 1
4890 _ACEOF
4891
4892 ipv6=yes
4893 else
4894 echo "$as_me: program exited with status $ac_status" >&5
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4897
4898 ( exit $ac_status )
4899 { echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6; }
4901 ipv6=no
4902 fi
4903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4904 fi
4905
4906
4907 fi
4908
4909
4910 ipv6type=unknown
4911 ipv6lib=none
4912 ipv6trylibc=no
4913
4914 if test "$ipv6" = "yes"; then
4915 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4916 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4917 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4918 case $i in
4919 inria)
4920 cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h. */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4926 #include <netinet/in.h>
4927 #ifdef IPV6_INRIA_VERSION
4928 yes
4929 #endif
4930 _ACEOF
4931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4932 $EGREP "yes" >/dev/null 2>&1; then
4933 ipv6type=$i;
4934 CFLAGS="-DINET6 $CFLAGS"
4935 fi
4936 rm -f -r conftest*
4937
4938 ;;
4939 kame)
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h. */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 #include <netinet/in.h>
4947 #ifdef __KAME__
4948 yes
4949 #endif
4950 _ACEOF
4951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4952 $EGREP "yes" >/dev/null 2>&1; then
4953 ipv6type=$i;
4954 ipv6lib=inet6;
4955 ipv6libdir=/usr/local/v6/lib;
4956 ipv6trylibc=yes;
4957 CFLAGS="-DINET6 $CFLAGS"
4958 fi
4959 rm -f -r conftest*
4960
4961 ;;
4962 linux-glibc)
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 #include <features.h>
4970 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4971 yes
4972 #endif
4973 _ACEOF
4974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4975 $EGREP "yes" >/dev/null 2>&1; then
4976 ipv6type=$i;
4977 CFLAGS="-DINET6 $CFLAGS"
4978 fi
4979 rm -f -r conftest*
4980
4981 ;;
4982 linux-libinet6)
4983 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4984 ipv6type=$i
4985 ipv6lib=inet6
4986 ipv6libdir=/usr/inet6/lib
4987 ipv6trylibc=yes;
4988 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4989 fi
4990 ;;
4991 toshiba)
4992 cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h. */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 #include <sys/param.h>
4999 #ifdef _TOSHIBA_INET6
5000 yes
5001 #endif
5002 _ACEOF
5003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5004 $EGREP "yes" >/dev/null 2>&1; then
5005 ipv6type=$i;
5006 ipv6lib=inet6;
5007 ipv6libdir=/usr/local/v6/lib;
5008 CFLAGS="-DINET6 $CFLAGS"
5009 fi
5010 rm -f -r conftest*
5011
5012 ;;
5013 v6d)
5014 cat >conftest.$ac_ext <<_ACEOF
5015 /* confdefs.h. */
5016 _ACEOF
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h. */
5020 #include </usr/local/v6/include/sys/v6config.h>
5021 #ifdef __V6D__
5022 yes
5023 #endif
5024 _ACEOF
5025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5026 $EGREP "yes" >/dev/null 2>&1; then
5027 ipv6type=$i;
5028 ipv6lib=v6;
5029 ipv6libdir=/usr/local/v6/lib;
5030 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5031 fi
5032 rm -f -r conftest*
5033
5034 ;;
5035 zeta)
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #include <sys/param.h>
5043 #ifdef _ZETA_MINAMI_INET6
5044 yes
5045 #endif
5046 _ACEOF
5047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5048 $EGREP "yes" >/dev/null 2>&1; then
5049 ipv6type=$i;
5050 ipv6lib=inet6;
5051 ipv6libdir=/usr/local/v6/lib;
5052 CFLAGS="-DINET6 $CFLAGS"
5053 fi
5054 rm -f -r conftest*
5055
5056 ;;
5057 esac
5058 if test "$ipv6type" != "unknown"; then
5059 break
5060 fi
5061 done
5062 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5063 echo "${ECHO_T}$ipv6type" >&6; }
5064 fi
5065
5066 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5067 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5068 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5069 echo "You have $ipv6lib library, using it"
5070 else
5071 if test "$ipv6trylibc" = "yes"; then
5072 echo "You do not have $ipv6lib library, using libc"
5073 else
5074 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5075 echo "You need to fetch lib$ipv6lib.a from appropriate"
5076 echo 'ipv6 kit and compile beforehand.'
5077 exit 1
5078 fi
5079 fi
5080 fi
5081
5082
5083 if test "$ipv6" = "yes"; then
5084 #
5085 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5086 # function in libc; there are "ngetaddrinfo()" and
5087 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5088 # "getaddrinfo" to be either "ngetaddrinfo" or
5089 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5090 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5091 #
5092 # So this test doesn't work on Tru64 5.1, and possibly
5093 # on other 5.x releases. This causes the configure
5094 # script to become confused, and results in libpcap
5095 # being unbuildable.
5096 #
5097 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5098 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5099 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102 ac_func_search_save_LIBS=$LIBS
5103 cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h. */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109
5110 /* Override any GCC internal prototype to avoid an error.
5111 Use char because int might match the return type of a GCC
5112 builtin and then its argument prototype would still apply. */
5113 #ifdef __cplusplus
5114 extern "C"
5115 #endif
5116 char getaddrinfo ();
5117 int
5118 main ()
5119 {
5120 return getaddrinfo ();
5121 ;
5122 return 0;
5123 }
5124 _ACEOF
5125 for ac_lib in '' socket; do
5126 if test -z "$ac_lib"; then
5127 ac_res="none required"
5128 else
5129 ac_res=-l$ac_lib
5130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5131 fi
5132 rm -f conftest.$ac_objext conftest$ac_exeext
5133 if { (ac_try="$ac_link"
5134 case "(($ac_try" in
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5137 esac
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_link") 2>conftest.er1
5140 ac_status=$?
5141 grep -v '^ *+' conftest.er1 >conftest.err
5142 rm -f conftest.er1
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } && {
5146 test -z "$ac_c_werror_flag" ||
5147 test ! -s conftest.err
5148 } && test -s conftest$ac_exeext &&
5149 $as_test_x conftest$ac_exeext; then
5150 ac_cv_search_getaddrinfo=$ac_res
5151 else
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5154
5155
5156 fi
5157
5158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5159 conftest$ac_exeext
5160 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5161 break
5162 fi
5163 done
5164 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5165 :
5166 else
5167 ac_cv_search_getaddrinfo=no
5168 fi
5169 rm conftest.$ac_ext
5170 LIBS=$ac_func_search_save_LIBS
5171 fi
5172 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5173 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5174 ac_res=$ac_cv_search_getaddrinfo
5175 if test "$ac_res" != no; then
5176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5177 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5178 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5179 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 if test "$cross_compiling" = yes; then
5183 td_cv_buggygetaddrinfo=yes
5184 else
5185 cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h. */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191
5192 #include <sys/types.h>
5193 #include <netdb.h>
5194 #include <string.h>
5195 #include <sys/socket.h>
5196 #include <netinet/in.h>
5197
5198 main()
5199 {
5200 int passive, gaierr, inet4 = 0, inet6 = 0;
5201 struct addrinfo hints, *ai, *aitop;
5202 char straddr[INET6_ADDRSTRLEN], strport[16];
5203
5204 for (passive = 0; passive <= 1; passive++) {
5205 memset(&hints, 0, sizeof(hints));
5206 hints.ai_family = AF_UNSPEC;
5207 hints.ai_flags = passive ? AI_PASSIVE : 0;
5208 hints.ai_socktype = SOCK_STREAM;
5209 hints.ai_protocol = IPPROTO_TCP;
5210 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5211 (void)gai_strerror(gaierr);
5212 goto bad;
5213 }
5214 for (ai = aitop; ai; ai = ai->ai_next) {
5215 if (ai->ai_addr == NULL ||
5216 ai->ai_addrlen == 0 ||
5217 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5218 straddr, sizeof(straddr), strport, sizeof(strport),
5219 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5220 goto bad;
5221 }
5222 switch (ai->ai_family) {
5223 case AF_INET:
5224 if (strcmp(strport, "54321") != 0) {
5225 goto bad;
5226 }
5227 if (passive) {
5228 if (strcmp(straddr, "0.0.0.0") != 0) {
5229 goto bad;
5230 }
5231 } else {
5232 if (strcmp(straddr, "127.0.0.1") != 0) {
5233 goto bad;
5234 }
5235 }
5236 inet4++;
5237 break;
5238 case AF_INET6:
5239 if (strcmp(strport, "54321") != 0) {
5240 goto bad;
5241 }
5242 if (passive) {
5243 if (strcmp(straddr, "::") != 0) {
5244 goto bad;
5245 }
5246 } else {
5247 if (strcmp(straddr, "::1") != 0) {
5248 goto bad;
5249 }
5250 }
5251 inet6++;
5252 break;
5253 case AF_UNSPEC:
5254 goto bad;
5255 break;
5256 #ifdef AF_UNIX
5257 case AF_UNIX:
5258 #else
5259 #ifdef AF_LOCAL
5260 case AF_LOCAL:
5261 #endif
5262 #endif
5263 default:
5264 /* another family support? */
5265 break;
5266 }
5267 }
5268 }
5269
5270 /* supported family should be 2, unsupported family should be 0 */
5271 if (!(inet4 == 0 || inet4 == 2))
5272 goto bad;
5273 if (!(inet6 == 0 || inet6 == 2))
5274 goto bad;
5275
5276 if (aitop)
5277 freeaddrinfo(aitop);
5278 exit(0);
5279
5280 bad:
5281 if (aitop)
5282 freeaddrinfo(aitop);
5283 exit(1);
5284 }
5285
5286 _ACEOF
5287 rm -f conftest$ac_exeext
5288 if { (ac_try="$ac_link"
5289 case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_link") 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5298 { (case "(($ac_try" in
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5301 esac
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_try") 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 td_cv_buggygetaddrinfo=no
5308 else
5309 echo "$as_me: program exited with status $ac_status" >&5
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5312
5313 ( exit $ac_status )
5314 td_cv_buggygetaddrinfo=yes
5315 fi
5316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5317 fi
5318
5319
5320 fi
5321
5322 if test "$td_cv_buggygetaddrinfo" = no; then
5323 { echo "$as_me:$LINENO: result: good" >&5
5324 echo "${ECHO_T}good" >&6; }
5325 else
5326 { echo "$as_me:$LINENO: result: buggy" >&5
5327 echo "${ECHO_T}buggy" >&6; }
5328 fi
5329
5330 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5331 #
5332 # XXX - it doesn't appear that "ipv6type" can ever be
5333 # set to "linux". Should this be testing for
5334 # "linux-glibc", or for that *or* "linux-libinet6"?
5335 # If the latter, note that "linux-libinet6" is also
5336 # the type given to some non-Linux OSes.
5337 #
5338 if test "$ipv6type" != "linux"; then
5339 echo 'Fatal: You must get working getaddrinfo() function.'
5340 echo ' or you can specify "--disable-ipv6"'.
5341 exit 1
5342 else
5343 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5344 echo ' Better upgrade your system library to newest version'
5345 echo ' of GNU C library (aka glibc).'
5346 fi
5347 fi
5348
5349 fi
5350
5351
5352 for ac_func in getnameinfo
5353 do
5354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360 cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h. */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5368 #define $ac_func innocuous_$ac_func
5369
5370 /* System header to define __stub macros and hopefully few prototypes,
5371 which can conflict with char $ac_func (); below.
5372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5373 <limits.h> exists even on freestanding compilers. */
5374
5375 #ifdef __STDC__
5376 # include <limits.h>
5377 #else
5378 # include <assert.h>
5379 #endif
5380
5381 #undef $ac_func
5382
5383 /* Override any GCC internal prototype to avoid an error.
5384 Use char because int might match the return type of a GCC
5385 builtin and then its argument prototype would still apply. */
5386 #ifdef __cplusplus
5387 extern "C"
5388 #endif
5389 char $ac_func ();
5390 /* The GNU C library defines this for functions which it implements
5391 to always fail with ENOSYS. Some functions are actually named
5392 something starting with __ and the normal name is an alias. */
5393 #if defined __stub_$ac_func || defined __stub___$ac_func
5394 choke me
5395 #endif
5396
5397 int
5398 main ()
5399 {
5400 return $ac_func ();
5401 ;
5402 return 0;
5403 }
5404 _ACEOF
5405 rm -f conftest.$ac_objext conftest$ac_exeext
5406 if { (ac_try="$ac_link"
5407 case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410 esac
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_link") 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest$ac_exeext &&
5422 $as_test_x conftest$ac_exeext; then
5423 eval "$as_ac_var=yes"
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 eval "$as_ac_var=no"
5429 fi
5430
5431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5432 conftest$ac_exeext conftest.$ac_ext
5433 fi
5434 ac_res=`eval echo '${'$as_ac_var'}'`
5435 { echo "$as_me:$LINENO: result: $ac_res" >&5
5436 echo "${ECHO_T}$ac_res" >&6; }
5437 if test `eval echo '${'$as_ac_var'}'` = yes; then
5438 cat >>confdefs.h <<_ACEOF
5439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5440 _ACEOF
5441
5442 else
5443 case " $LIBOBJS " in
5444 *" $ac_func.$ac_objext "* ) ;;
5445 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5446 ;;
5447 esac
5448
5449 fi
5450 done
5451
5452
5453 fi
5454
5455 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5456 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5457 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h. */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 #include <netdnet/dnetdb.h>
5467
5468 _ACEOF
5469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5470 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5471 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5472 else
5473 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5474 fi
5475 rm -f -r conftest*
5476
5477 fi
5478 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5479 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5480 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5481 cat >>confdefs.h <<\_ACEOF
5482 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5483 _ACEOF
5484
5485 fi
5486
5487 { echo "$as_me:$LINENO: checking for char" >&5
5488 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5489 if test "${ac_cv_type_char+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 else
5492 cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h. */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 $ac_includes_default
5499 typedef char ac__type_new_;
5500 int
5501 main ()
5502 {
5503 if ((ac__type_new_ *) 0)
5504 return 0;
5505 if (sizeof (ac__type_new_))
5506 return 0;
5507 ;
5508 return 0;
5509 }
5510 _ACEOF
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5513 case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
5528 ac_cv_type_char=yes
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533 ac_cv_type_char=no
5534 fi
5535
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 fi
5538 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5539 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5540
5541 # The cast to long int works around a bug in the HP C Compiler
5542 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5543 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5544 # This bug is HP SR number 8606223364.
5545 { echo "$as_me:$LINENO: checking size of char" >&5
5546 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5547 if test "${ac_cv_sizeof_char+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 if test "$cross_compiling" = yes; then
5551 # Depending upon the size, compute the lo and hi bounds.
5552 cat >conftest.$ac_ext <<_ACEOF
5553 /* confdefs.h. */
5554 _ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 $ac_includes_default
5559 typedef char ac__type_sizeof_;
5560 int
5561 main ()
5562 {
5563 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5564 test_array [0] = 0
5565
5566 ;
5567 return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5572 case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
5587 ac_lo=0 ac_mid=0
5588 while :; do
5589 cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h. */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 $ac_includes_default
5596 typedef char ac__type_sizeof_;
5597 int
5598 main ()
5599 {
5600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5601 test_array [0] = 0
5602
5603 ;
5604 return 0;
5605 }
5606 _ACEOF
5607 rm -f conftest.$ac_objext
5608 if { (ac_try="$ac_compile"
5609 case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612 esac
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.$ac_objext; then
5624 ac_hi=$ac_mid; break
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629 ac_lo=`expr $ac_mid + 1`
5630 if test $ac_lo -le $ac_mid; then
5631 ac_lo= ac_hi=
5632 break
5633 fi
5634 ac_mid=`expr 2 '*' $ac_mid + 1`
5635 fi
5636
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 done
5639 else
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5642
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 $ac_includes_default
5650 typedef char ac__type_sizeof_;
5651 int
5652 main ()
5653 {
5654 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5655 test_array [0] = 0
5656
5657 ;
5658 return 0;
5659 }
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5663 case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666 esac
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_compile") 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } && {
5675 test -z "$ac_c_werror_flag" ||
5676 test ! -s conftest.err
5677 } && test -s conftest.$ac_objext; then
5678 ac_hi=-1 ac_mid=-1
5679 while :; do
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 $ac_includes_default
5687 typedef char ac__type_sizeof_;
5688 int
5689 main ()
5690 {
5691 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5692 test_array [0] = 0
5693
5694 ;
5695 return 0;
5696 }
5697 _ACEOF
5698 rm -f conftest.$ac_objext
5699 if { (ac_try="$ac_compile"
5700 case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5703 esac
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_compile") 2>conftest.er1
5706 ac_status=$?
5707 grep -v '^ *+' conftest.er1 >conftest.err
5708 rm -f conftest.er1
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } && {
5712 test -z "$ac_c_werror_flag" ||
5713 test ! -s conftest.err
5714 } && test -s conftest.$ac_objext; then
5715 ac_lo=$ac_mid; break
5716 else
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720 ac_hi=`expr '(' $ac_mid ')' - 1`
5721 if test $ac_mid -le $ac_hi; then
5722 ac_lo= ac_hi=
5723 break
5724 fi
5725 ac_mid=`expr 2 '*' $ac_mid`
5726 fi
5727
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 done
5730 else
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734 ac_lo= ac_hi=
5735 fi
5736
5737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 fi
5739
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 # Binary search between lo and hi bounds.
5742 while test "x$ac_lo" != "x$ac_hi"; do
5743 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5744 cat >conftest.$ac_ext <<_ACEOF
5745 /* confdefs.h. */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 $ac_includes_default
5751 typedef char ac__type_sizeof_;
5752 int
5753 main ()
5754 {
5755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5756 test_array [0] = 0
5757
5758 ;
5759 return 0;
5760 }
5761 _ACEOF
5762 rm -f conftest.$ac_objext
5763 if { (ac_try="$ac_compile"
5764 case "(($ac_try" in
5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5767 esac
5768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769 (eval "$ac_compile") 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } && {
5776 test -z "$ac_c_werror_flag" ||
5777 test ! -s conftest.err
5778 } && test -s conftest.$ac_objext; then
5779 ac_hi=$ac_mid
5780 else
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5783
5784 ac_lo=`expr '(' $ac_mid ')' + 1`
5785 fi
5786
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 done
5789 case $ac_lo in
5790 ?*) ac_cv_sizeof_char=$ac_lo;;
5791 '') if test "$ac_cv_type_char" = yes; then
5792 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5793 See \`config.log' for more details." >&5
5794 echo "$as_me: error: cannot compute sizeof (char)
5795 See \`config.log' for more details." >&2;}
5796 { (exit 77); exit 77; }; }
5797 else
5798 ac_cv_sizeof_char=0
5799 fi ;;
5800 esac
5801 else
5802 cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h. */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 $ac_includes_default
5809 typedef char ac__type_sizeof_;
5810 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5811 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5812 #include <stdio.h>
5813 #include <stdlib.h>
5814 int
5815 main ()
5816 {
5817
5818 FILE *f = fopen ("conftest.val", "w");
5819 if (! f)
5820 return 1;
5821 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5822 {
5823 long int i = longval ();
5824 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5825 return 1;
5826 fprintf (f, "%ld\n", i);
5827 }
5828 else
5829 {
5830 unsigned long int i = ulongval ();
5831 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5832 return 1;
5833 fprintf (f, "%lu\n", i);
5834 }
5835 return ferror (f) || fclose (f) != 0;
5836
5837 ;
5838 return 0;
5839 }
5840 _ACEOF
5841 rm -f conftest$ac_exeext
5842 if { (ac_try="$ac_link"
5843 case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5846 esac
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_link") 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5852 { (case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855 esac
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_try") 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5861 ac_cv_sizeof_char=`cat conftest.val`
5862 else
5863 echo "$as_me: program exited with status $ac_status" >&5
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5866
5867 ( exit $ac_status )
5868 if test "$ac_cv_type_char" = yes; then
5869 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5870 See \`config.log' for more details." >&5
5871 echo "$as_me: error: cannot compute sizeof (char)
5872 See \`config.log' for more details." >&2;}
5873 { (exit 77); exit 77; }; }
5874 else
5875 ac_cv_sizeof_char=0
5876 fi
5877 fi
5878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5879 fi
5880 rm -f conftest.val
5881 fi
5882 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5883 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5884
5885
5886
5887 cat >>confdefs.h <<_ACEOF
5888 #define SIZEOF_CHAR $ac_cv_sizeof_char
5889 _ACEOF
5890
5891
5892 { echo "$as_me:$LINENO: checking for short" >&5
5893 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5894 if test "${ac_cv_type_short+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897 cat >conftest.$ac_ext <<_ACEOF
5898 /* confdefs.h. */
5899 _ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5903 $ac_includes_default
5904 typedef short ac__type_new_;
5905 int
5906 main ()
5907 {
5908 if ((ac__type_new_ *) 0)
5909 return 0;
5910 if (sizeof (ac__type_new_))
5911 return 0;
5912 ;
5913 return 0;
5914 }
5915 _ACEOF
5916 rm -f conftest.$ac_objext
5917 if { (ac_try="$ac_compile"
5918 case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_compile") 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && {
5930 test -z "$ac_c_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest.$ac_objext; then
5933 ac_cv_type_short=yes
5934 else
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938 ac_cv_type_short=no
5939 fi
5940
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 fi
5943 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5944 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5945
5946 # The cast to long int works around a bug in the HP C Compiler
5947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5949 # This bug is HP SR number 8606223364.
5950 { echo "$as_me:$LINENO: checking size of short" >&5
5951 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5952 if test "${ac_cv_sizeof_short+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955 if test "$cross_compiling" = yes; then
5956 # Depending upon the size, compute the lo and hi bounds.
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h. */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 $ac_includes_default
5964 typedef short ac__type_sizeof_;
5965 int
5966 main ()
5967 {
5968 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5969 test_array [0] = 0
5970
5971 ;
5972 return 0;
5973 }
5974 _ACEOF
5975 rm -f conftest.$ac_objext
5976 if { (ac_try="$ac_compile"
5977 case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest.$ac_objext; then
5992 ac_lo=0 ac_mid=0
5993 while :; do
5994 cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h. */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 $ac_includes_default
6001 typedef short ac__type_sizeof_;
6002 int
6003 main ()
6004 {
6005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6006 test_array [0] = 0
6007
6008 ;
6009 return 0;
6010 }
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (ac_try="$ac_compile"
6014 case "(($ac_try" in
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6017 esac
6018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019 (eval "$ac_compile") 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } && {
6026 test -z "$ac_c_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest.$ac_objext; then
6029 ac_hi=$ac_mid; break
6030 else
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 ac_lo=`expr $ac_mid + 1`
6035 if test $ac_lo -le $ac_mid; then
6036 ac_lo= ac_hi=
6037 break
6038 fi
6039 ac_mid=`expr 2 '*' $ac_mid + 1`
6040 fi
6041
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 done
6044 else
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h. */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 $ac_includes_default
6055 typedef short ac__type_sizeof_;
6056 int
6057 main ()
6058 {
6059 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6060 test_array [0] = 0
6061
6062 ;
6063 return 0;
6064 }
6065 _ACEOF
6066 rm -f conftest.$ac_objext
6067 if { (ac_try="$ac_compile"
6068 case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6071 esac
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_compile") 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } && {
6080 test -z "$ac_c_werror_flag" ||
6081 test ! -s conftest.err
6082 } && test -s conftest.$ac_objext; then
6083 ac_hi=-1 ac_mid=-1
6084 while :; do
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h. */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 $ac_includes_default
6092 typedef short ac__type_sizeof_;
6093 int
6094 main ()
6095 {
6096 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6097 test_array [0] = 0
6098
6099 ;
6100 return 0;
6101 }
6102 _ACEOF
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6105 case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 ac_lo=$ac_mid; break
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 ac_hi=`expr '(' $ac_mid ')' - 1`
6126 if test $ac_mid -le $ac_hi; then
6127 ac_lo= ac_hi=
6128 break
6129 fi
6130 ac_mid=`expr 2 '*' $ac_mid`
6131 fi
6132
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 done
6135 else
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6138
6139 ac_lo= ac_hi=
6140 fi
6141
6142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6143 fi
6144
6145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146 # Binary search between lo and hi bounds.
6147 while test "x$ac_lo" != "x$ac_hi"; do
6148 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 $ac_includes_default
6156 typedef short ac__type_sizeof_;
6157 int
6158 main ()
6159 {
6160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6161 test_array [0] = 0
6162
6163 ;
6164 return 0;
6165 }
6166 _ACEOF
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
6169 case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && {
6181 test -z "$ac_c_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_objext; then
6184 ac_hi=$ac_mid
6185 else
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6188
6189 ac_lo=`expr '(' $ac_mid ')' + 1`
6190 fi
6191
6192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193 done
6194 case $ac_lo in
6195 ?*) ac_cv_sizeof_short=$ac_lo;;
6196 '') if test "$ac_cv_type_short" = yes; then
6197 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6198 See \`config.log' for more details." >&5
6199 echo "$as_me: error: cannot compute sizeof (short)
6200 See \`config.log' for more details." >&2;}
6201 { (exit 77); exit 77; }; }
6202 else
6203 ac_cv_sizeof_short=0
6204 fi ;;
6205 esac
6206 else
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6214 typedef short ac__type_sizeof_;
6215 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6216 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6217 #include <stdio.h>
6218 #include <stdlib.h>
6219 int
6220 main ()
6221 {
6222
6223 FILE *f = fopen ("conftest.val", "w");
6224 if (! f)
6225 return 1;
6226 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6227 {
6228 long int i = longval ();
6229 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6230 return 1;
6231 fprintf (f, "%ld\n", i);
6232 }
6233 else
6234 {
6235 unsigned long int i = ulongval ();
6236 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6237 return 1;
6238 fprintf (f, "%lu\n", i);
6239 }
6240 return ferror (f) || fclose (f) != 0;
6241
6242 ;
6243 return 0;
6244 }
6245 _ACEOF
6246 rm -f conftest$ac_exeext
6247 if { (ac_try="$ac_link"
6248 case "(($ac_try" in
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6251 esac
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_link") 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6257 { (case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260 esac
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_try") 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; }; then
6266 ac_cv_sizeof_short=`cat conftest.val`
6267 else
6268 echo "$as_me: program exited with status $ac_status" >&5
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272 ( exit $ac_status )
6273 if test "$ac_cv_type_short" = yes; then
6274 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6275 See \`config.log' for more details." >&5
6276 echo "$as_me: error: cannot compute sizeof (short)
6277 See \`config.log' for more details." >&2;}
6278 { (exit 77); exit 77; }; }
6279 else
6280 ac_cv_sizeof_short=0
6281 fi
6282 fi
6283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6284 fi
6285 rm -f conftest.val
6286 fi
6287 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6288 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6289
6290
6291
6292 cat >>confdefs.h <<_ACEOF
6293 #define SIZEOF_SHORT $ac_cv_sizeof_short
6294 _ACEOF
6295
6296
6297 { echo "$as_me:$LINENO: checking for int" >&5
6298 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6299 if test "${ac_cv_type_int+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302 cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h. */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308 $ac_includes_default
6309 typedef int ac__type_new_;
6310 int
6311 main ()
6312 {
6313 if ((ac__type_new_ *) 0)
6314 return 0;
6315 if (sizeof (ac__type_new_))
6316 return 0;
6317 ;
6318 return 0;
6319 }
6320 _ACEOF
6321 rm -f conftest.$ac_objext
6322 if { (ac_try="$ac_compile"
6323 case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326 esac
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_compile") 2>conftest.er1
6329 ac_status=$?
6330 grep -v '^ *+' conftest.er1 >conftest.err
6331 rm -f conftest.er1
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } && {
6335 test -z "$ac_c_werror_flag" ||
6336 test ! -s conftest.err
6337 } && test -s conftest.$ac_objext; then
6338 ac_cv_type_int=yes
6339 else
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6342
6343 ac_cv_type_int=no
6344 fi
6345
6346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347 fi
6348 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6349 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6350
6351 # The cast to long int works around a bug in the HP C Compiler
6352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6354 # This bug is HP SR number 8606223364.
6355 { echo "$as_me:$LINENO: checking size of int" >&5
6356 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6357 if test "${ac_cv_sizeof_int+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360 if test "$cross_compiling" = yes; then
6361 # Depending upon the size, compute the lo and hi bounds.
6362 cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h. */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 $ac_includes_default
6369 typedef int ac__type_sizeof_;
6370 int
6371 main ()
6372 {
6373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6374 test_array [0] = 0
6375
6376 ;
6377 return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext
6381 if { (ac_try="$ac_compile"
6382 case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385 esac
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } && {
6394 test -z "$ac_c_werror_flag" ||
6395 test ! -s conftest.err
6396 } && test -s conftest.$ac_objext; then
6397 ac_lo=0 ac_mid=0
6398 while :; do
6399 cat >conftest.$ac_ext <<_ACEOF
6400 /* confdefs.h. */
6401 _ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6405 $ac_includes_default
6406 typedef int ac__type_sizeof_;
6407 int
6408 main ()
6409 {
6410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6411 test_array [0] = 0
6412
6413 ;
6414 return 0;
6415 }
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (ac_try="$ac_compile"
6419 case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } && {
6431 test -z "$ac_c_werror_flag" ||
6432 test ! -s conftest.err
6433 } && test -s conftest.$ac_objext; then
6434 ac_hi=$ac_mid; break
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6438
6439 ac_lo=`expr $ac_mid + 1`
6440 if test $ac_lo -le $ac_mid; then
6441 ac_lo= ac_hi=
6442 break
6443 fi
6444 ac_mid=`expr 2 '*' $ac_mid + 1`
6445 fi
6446
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 done
6449 else
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6452
6453 cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h. */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 $ac_includes_default
6460 typedef int ac__type_sizeof_;
6461 int
6462 main ()
6463 {
6464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6465 test_array [0] = 0
6466
6467 ;
6468 return 0;
6469 }
6470 _ACEOF
6471 rm -f conftest.$ac_objext
6472 if { (ac_try="$ac_compile"
6473 case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476 esac
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_compile") 2>conftest.er1
6479 ac_status=$?
6480 grep -v '^ *+' conftest.er1 >conftest.err
6481 rm -f conftest.er1
6482 cat conftest.err >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && {
6485 test -z "$ac_c_werror_flag" ||
6486 test ! -s conftest.err
6487 } && test -s conftest.$ac_objext; then
6488 ac_hi=-1 ac_mid=-1
6489 while :; do
6490 cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h. */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 $ac_includes_default
6497 typedef int ac__type_sizeof_;
6498 int
6499 main ()
6500 {
6501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6502 test_array [0] = 0
6503
6504 ;
6505 return 0;
6506 }
6507 _ACEOF
6508 rm -f conftest.$ac_objext
6509 if { (ac_try="$ac_compile"
6510 case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513 esac
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_compile") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } && {
6522 test -z "$ac_c_werror_flag" ||
6523 test ! -s conftest.err
6524 } && test -s conftest.$ac_objext; then
6525 ac_lo=$ac_mid; break
6526 else
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6529
6530 ac_hi=`expr '(' $ac_mid ')' - 1`
6531 if test $ac_mid -le $ac_hi; then
6532 ac_lo= ac_hi=
6533 break
6534 fi
6535 ac_mid=`expr 2 '*' $ac_mid`
6536 fi
6537
6538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539 done
6540 else
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6543
6544 ac_lo= ac_hi=
6545 fi
6546
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 fi
6549
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 # Binary search between lo and hi bounds.
6552 while test "x$ac_lo" != "x$ac_hi"; do
6553 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h. */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 $ac_includes_default
6561 typedef int ac__type_sizeof_;
6562 int
6563 main ()
6564 {
6565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6566 test_array [0] = 0
6567
6568 ;
6569 return 0;
6570 }
6571 _ACEOF
6572 rm -f conftest.$ac_objext
6573 if { (ac_try="$ac_compile"
6574 case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577 esac
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_compile") 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } && {
6586 test -z "$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 } && test -s conftest.$ac_objext; then
6589 ac_hi=$ac_mid
6590 else
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ac_lo=`expr '(' $ac_mid ')' + 1`
6595 fi
6596
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 done
6599 case $ac_lo in
6600 ?*) ac_cv_sizeof_int=$ac_lo;;
6601 '') if test "$ac_cv_type_int" = yes; then
6602 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6603 See \`config.log' for more details." >&5
6604 echo "$as_me: error: cannot compute sizeof (int)
6605 See \`config.log' for more details." >&2;}
6606 { (exit 77); exit 77; }; }
6607 else
6608 ac_cv_sizeof_int=0
6609 fi ;;
6610 esac
6611 else
6612 cat >conftest.$ac_ext <<_ACEOF
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 $ac_includes_default
6619 typedef int ac__type_sizeof_;
6620 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6621 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6622 #include <stdio.h>
6623 #include <stdlib.h>
6624 int
6625 main ()
6626 {
6627
6628 FILE *f = fopen ("conftest.val", "w");
6629 if (! f)
6630 return 1;
6631 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6632 {
6633 long int i = longval ();
6634 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6635 return 1;
6636 fprintf (f, "%ld\n", i);
6637 }
6638 else
6639 {
6640 unsigned long int i = ulongval ();
6641 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6642 return 1;
6643 fprintf (f, "%lu\n", i);
6644 }
6645 return ferror (f) || fclose (f) != 0;
6646
6647 ;
6648 return 0;
6649 }
6650 _ACEOF
6651 rm -f conftest$ac_exeext
6652 if { (ac_try="$ac_link"
6653 case "(($ac_try" in
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6656 esac
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_link") 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6662 { (case "(($ac_try" in
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6665 esac
6666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6667 (eval "$ac_try") 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 ac_cv_sizeof_int=`cat conftest.val`
6672 else
6673 echo "$as_me: program exited with status $ac_status" >&5
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6676
6677 ( exit $ac_status )
6678 if test "$ac_cv_type_int" = yes; then
6679 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6680 See \`config.log' for more details." >&5
6681 echo "$as_me: error: cannot compute sizeof (int)
6682 See \`config.log' for more details." >&2;}
6683 { (exit 77); exit 77; }; }
6684 else
6685 ac_cv_sizeof_int=0
6686 fi
6687 fi
6688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6689 fi
6690 rm -f conftest.val
6691 fi
6692 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6693 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6694
6695
6696
6697 cat >>confdefs.h <<_ACEOF
6698 #define SIZEOF_INT $ac_cv_sizeof_int
6699 _ACEOF
6700
6701
6702 { echo "$as_me:$LINENO: checking for long" >&5
6703 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6704 if test "${ac_cv_type_long+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h. */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 $ac_includes_default
6714 typedef long ac__type_new_;
6715 int
6716 main ()
6717 {
6718 if ((ac__type_new_ *) 0)
6719 return 0;
6720 if (sizeof (ac__type_new_))
6721 return 0;
6722 ;
6723 return 0;
6724 }
6725 _ACEOF
6726 rm -f conftest.$ac_objext
6727 if { (ac_try="$ac_compile"
6728 case "(($ac_try" in
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6731 esac
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_compile") 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
6736 rm -f conftest.er1
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && {
6740 test -z "$ac_c_werror_flag" ||
6741 test ! -s conftest.err
6742 } && test -s conftest.$ac_objext; then
6743 ac_cv_type_long=yes
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6747
6748 ac_cv_type_long=no
6749 fi
6750
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752 fi
6753 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6754 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6755
6756 # The cast to long int works around a bug in the HP C Compiler
6757 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6758 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6759 # This bug is HP SR number 8606223364.
6760 { echo "$as_me:$LINENO: checking size of long" >&5
6761 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6762 if test "${ac_cv_sizeof_long+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765 if test "$cross_compiling" = yes; then
6766 # Depending upon the size, compute the lo and hi bounds.
6767 cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 $ac_includes_default
6774 typedef long ac__type_sizeof_;
6775 int
6776 main ()
6777 {
6778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6779 test_array [0] = 0
6780
6781 ;
6782 return 0;
6783 }
6784 _ACEOF
6785 rm -f conftest.$ac_objext
6786 if { (ac_try="$ac_compile"
6787 case "(($ac_try" in
6788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6790 esac
6791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6792 (eval "$ac_compile") 2>conftest.er1
6793 ac_status=$?
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } && {
6799 test -z "$ac_c_werror_flag" ||
6800 test ! -s conftest.err
6801 } && test -s conftest.$ac_objext; then
6802 ac_lo=0 ac_mid=0
6803 while :; do
6804 cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h. */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 $ac_includes_default
6811 typedef long ac__type_sizeof_;
6812 int
6813 main ()
6814 {
6815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6816 test_array [0] = 0
6817
6818 ;
6819 return 0;
6820 }
6821 _ACEOF
6822 rm -f conftest.$ac_objext
6823 if { (ac_try="$ac_compile"
6824 case "(($ac_try" in
6825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6826 *) ac_try_echo=$ac_try;;
6827 esac
6828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6829 (eval "$ac_compile") 2>conftest.er1
6830 ac_status=$?
6831 grep -v '^ *+' conftest.er1 >conftest.err
6832 rm -f conftest.er1
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } && {
6836 test -z "$ac_c_werror_flag" ||
6837 test ! -s conftest.err
6838 } && test -s conftest.$ac_objext; then
6839 ac_hi=$ac_mid; break
6840 else
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6843
6844 ac_lo=`expr $ac_mid + 1`
6845 if test $ac_lo -le $ac_mid; then
6846 ac_lo= ac_hi=
6847 break
6848 fi
6849 ac_mid=`expr 2 '*' $ac_mid + 1`
6850 fi
6851
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853 done
6854 else
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6857
6858 cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h. */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 $ac_includes_default
6865 typedef long ac__type_sizeof_;
6866 int
6867 main ()
6868 {
6869 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6870 test_array [0] = 0
6871
6872 ;
6873 return 0;
6874 }
6875 _ACEOF
6876 rm -f conftest.$ac_objext
6877 if { (ac_try="$ac_compile"
6878 case "(($ac_try" in
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6881 esac
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883 (eval "$ac_compile") 2>conftest.er1
6884 ac_status=$?
6885 grep -v '^ *+' conftest.er1 >conftest.err
6886 rm -f conftest.er1
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } && {
6890 test -z "$ac_c_werror_flag" ||
6891 test ! -s conftest.err
6892 } && test -s conftest.$ac_objext; then
6893 ac_hi=-1 ac_mid=-1
6894 while :; do
6895 cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h. */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 $ac_includes_default
6902 typedef long ac__type_sizeof_;
6903 int
6904 main ()
6905 {
6906 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6907 test_array [0] = 0
6908
6909 ;
6910 return 0;
6911 }
6912 _ACEOF
6913 rm -f conftest.$ac_objext
6914 if { (ac_try="$ac_compile"
6915 case "(($ac_try" in
6916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917 *) ac_try_echo=$ac_try;;
6918 esac
6919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920 (eval "$ac_compile") 2>conftest.er1
6921 ac_status=$?
6922 grep -v '^ *+' conftest.er1 >conftest.err
6923 rm -f conftest.er1
6924 cat conftest.err >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } && {
6927 test -z "$ac_c_werror_flag" ||
6928 test ! -s conftest.err
6929 } && test -s conftest.$ac_objext; then
6930 ac_lo=$ac_mid; break
6931 else
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 ac_hi=`expr '(' $ac_mid ')' - 1`
6936 if test $ac_mid -le $ac_hi; then
6937 ac_lo= ac_hi=
6938 break
6939 fi
6940 ac_mid=`expr 2 '*' $ac_mid`
6941 fi
6942
6943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 done
6945 else
6946 echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6948
6949 ac_lo= ac_hi=
6950 fi
6951
6952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6953 fi
6954
6955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6956 # Binary search between lo and hi bounds.
6957 while test "x$ac_lo" != "x$ac_hi"; do
6958 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6959 cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h. */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 $ac_includes_default
6966 typedef long ac__type_sizeof_;
6967 int
6968 main ()
6969 {
6970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6971 test_array [0] = 0
6972
6973 ;
6974 return 0;
6975 }
6976 _ACEOF
6977 rm -f conftest.$ac_objext
6978 if { (ac_try="$ac_compile"
6979 case "(($ac_try" in
6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6982 esac
6983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984 (eval "$ac_compile") 2>conftest.er1
6985 ac_status=$?
6986 grep -v '^ *+' conftest.er1 >conftest.err
6987 rm -f conftest.er1
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } && {
6991 test -z "$ac_c_werror_flag" ||
6992 test ! -s conftest.err
6993 } && test -s conftest.$ac_objext; then
6994 ac_hi=$ac_mid
6995 else
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6998
6999 ac_lo=`expr '(' $ac_mid ')' + 1`
7000 fi
7001
7002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003 done
7004 case $ac_lo in
7005 ?*) ac_cv_sizeof_long=$ac_lo;;
7006 '') if test "$ac_cv_type_long" = yes; then
7007 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7008 See \`config.log' for more details." >&5
7009 echo "$as_me: error: cannot compute sizeof (long)
7010 See \`config.log' for more details." >&2;}
7011 { (exit 77); exit 77; }; }
7012 else
7013 ac_cv_sizeof_long=0
7014 fi ;;
7015 esac
7016 else
7017 cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h. */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 $ac_includes_default
7024 typedef long ac__type_sizeof_;
7025 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7026 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7027 #include <stdio.h>
7028 #include <stdlib.h>
7029 int
7030 main ()
7031 {
7032
7033 FILE *f = fopen ("conftest.val", "w");
7034 if (! f)
7035 return 1;
7036 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7037 {
7038 long int i = longval ();
7039 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7040 return 1;
7041 fprintf (f, "%ld\n", i);
7042 }
7043 else
7044 {
7045 unsigned long int i = ulongval ();
7046 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7047 return 1;
7048 fprintf (f, "%lu\n", i);
7049 }
7050 return ferror (f) || fclose (f) != 0;
7051
7052 ;
7053 return 0;
7054 }
7055 _ACEOF
7056 rm -f conftest$ac_exeext
7057 if { (ac_try="$ac_link"
7058 case "(($ac_try" in
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7061 esac
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_link") 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7067 { (case "(($ac_try" in
7068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069 *) ac_try_echo=$ac_try;;
7070 esac
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072 (eval "$ac_try") 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_cv_sizeof_long=`cat conftest.val`
7077 else
7078 echo "$as_me: program exited with status $ac_status" >&5
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082 ( exit $ac_status )
7083 if test "$ac_cv_type_long" = yes; then
7084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7085 See \`config.log' for more details." >&5
7086 echo "$as_me: error: cannot compute sizeof (long)
7087 See \`config.log' for more details." >&2;}
7088 { (exit 77); exit 77; }; }
7089 else
7090 ac_cv_sizeof_long=0
7091 fi
7092 fi
7093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7094 fi
7095 rm -f conftest.val
7096 fi
7097 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7098 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7099
7100
7101
7102 cat >>confdefs.h <<_ACEOF
7103 #define SIZEOF_LONG $ac_cv_sizeof_long
7104 _ACEOF
7105
7106
7107 { echo "$as_me:$LINENO: checking for long long" >&5
7108 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7109 if test "${ac_cv_type_long_long+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112 cat >conftest.$ac_ext <<_ACEOF
7113 /* confdefs.h. */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 $ac_includes_default
7119 typedef long long ac__type_new_;
7120 int
7121 main ()
7122 {
7123 if ((ac__type_new_ *) 0)
7124 return 0;
7125 if (sizeof (ac__type_new_))
7126 return 0;
7127 ;
7128 return 0;
7129 }
7130 _ACEOF
7131 rm -f conftest.$ac_objext
7132 if { (ac_try="$ac_compile"
7133 case "(($ac_try" in
7134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7135 *) ac_try_echo=$ac_try;;
7136 esac
7137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7138 (eval "$ac_compile") 2>conftest.er1
7139 ac_status=$?
7140 grep -v '^ *+' conftest.er1 >conftest.err
7141 rm -f conftest.er1
7142 cat conftest.err >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } && {
7145 test -z "$ac_c_werror_flag" ||
7146 test ! -s conftest.err
7147 } && test -s conftest.$ac_objext; then
7148 ac_cv_type_long_long=yes
7149 else
7150 echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7152
7153 ac_cv_type_long_long=no
7154 fi
7155
7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 fi
7158 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7159 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7160
7161 # The cast to long int works around a bug in the HP C Compiler
7162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7164 # This bug is HP SR number 8606223364.
7165 { echo "$as_me:$LINENO: checking size of long long" >&5
7166 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7167 if test "${ac_cv_sizeof_long_long+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170 if test "$cross_compiling" = yes; then
7171 # Depending upon the size, compute the lo and hi bounds.
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 $ac_includes_default
7179 typedef long long ac__type_sizeof_;
7180 int
7181 main ()
7182 {
7183 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7184 test_array [0] = 0
7185
7186 ;
7187 return 0;
7188 }
7189 _ACEOF
7190 rm -f conftest.$ac_objext
7191 if { (ac_try="$ac_compile"
7192 case "(($ac_try" in
7193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7195 esac
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_compile") 2>conftest.er1
7198 ac_status=$?
7199 grep -v '^ *+' conftest.er1 >conftest.err
7200 rm -f conftest.er1
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest.$ac_objext; then
7207 ac_lo=0 ac_mid=0
7208 while :; do
7209 cat >conftest.$ac_ext <<_ACEOF
7210 /* confdefs.h. */
7211 _ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7215 $ac_includes_default
7216 typedef long long ac__type_sizeof_;
7217 int
7218 main ()
7219 {
7220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7221 test_array [0] = 0
7222
7223 ;
7224 return 0;
7225 }
7226 _ACEOF
7227 rm -f conftest.$ac_objext
7228 if { (ac_try="$ac_compile"
7229 case "(($ac_try" in
7230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7231 *) ac_try_echo=$ac_try;;
7232 esac
7233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7234 (eval "$ac_compile") 2>conftest.er1
7235 ac_status=$?
7236 grep -v '^ *+' conftest.er1 >conftest.err
7237 rm -f conftest.er1
7238 cat conftest.err >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } && {
7241 test -z "$ac_c_werror_flag" ||
7242 test ! -s conftest.err
7243 } && test -s conftest.$ac_objext; then
7244 ac_hi=$ac_mid; break
7245 else
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7248
7249 ac_lo=`expr $ac_mid + 1`
7250 if test $ac_lo -le $ac_mid; then
7251 ac_lo= ac_hi=
7252 break
7253 fi
7254 ac_mid=`expr 2 '*' $ac_mid + 1`
7255 fi
7256
7257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258 done
7259 else
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7262
7263 cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h. */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7269 $ac_includes_default
7270 typedef long long ac__type_sizeof_;
7271 int
7272 main ()
7273 {
7274 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7275 test_array [0] = 0
7276
7277 ;
7278 return 0;
7279 }
7280 _ACEOF
7281 rm -f conftest.$ac_objext
7282 if { (ac_try="$ac_compile"
7283 case "(($ac_try" in
7284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285 *) ac_try_echo=$ac_try;;
7286 esac
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_compile") 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } && {
7295 test -z "$ac_c_werror_flag" ||
7296 test ! -s conftest.err
7297 } && test -s conftest.$ac_objext; then
7298 ac_hi=-1 ac_mid=-1
7299 while :; do
7300 cat >conftest.$ac_ext <<_ACEOF
7301 /* confdefs.h. */
7302 _ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 $ac_includes_default
7307 typedef long long ac__type_sizeof_;
7308 int
7309 main ()
7310 {
7311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7312 test_array [0] = 0
7313
7314 ;
7315 return 0;
7316 }
7317 _ACEOF
7318 rm -f conftest.$ac_objext
7319 if { (ac_try="$ac_compile"
7320 case "(($ac_try" in
7321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7323 esac
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325 (eval "$ac_compile") 2>conftest.er1
7326 ac_status=$?
7327 grep -v '^ *+' conftest.er1 >conftest.err
7328 rm -f conftest.er1
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } && {
7332 test -z "$ac_c_werror_flag" ||
7333 test ! -s conftest.err
7334 } && test -s conftest.$ac_objext; then
7335 ac_lo=$ac_mid; break
7336 else
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7339
7340 ac_hi=`expr '(' $ac_mid ')' - 1`
7341 if test $ac_mid -le $ac_hi; then
7342 ac_lo= ac_hi=
7343 break
7344 fi
7345 ac_mid=`expr 2 '*' $ac_mid`
7346 fi
7347
7348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 done
7350 else
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354 ac_lo= ac_hi=
7355 fi
7356
7357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358 fi
7359
7360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7361 # Binary search between lo and hi bounds.
7362 while test "x$ac_lo" != "x$ac_hi"; do
7363 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7364 cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h. */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 $ac_includes_default
7371 typedef long long ac__type_sizeof_;
7372 int
7373 main ()
7374 {
7375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7376 test_array [0] = 0
7377
7378 ;
7379 return 0;
7380 }
7381 _ACEOF
7382 rm -f conftest.$ac_objext
7383 if { (ac_try="$ac_compile"
7384 case "(($ac_try" in
7385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7387 esac
7388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389 (eval "$ac_compile") 2>conftest.er1
7390 ac_status=$?
7391 grep -v '^ *+' conftest.er1 >conftest.err
7392 rm -f conftest.er1
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } && {
7396 test -z "$ac_c_werror_flag" ||
7397 test ! -s conftest.err
7398 } && test -s conftest.$ac_objext; then
7399 ac_hi=$ac_mid
7400 else
7401 echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7403
7404 ac_lo=`expr '(' $ac_mid ')' + 1`
7405 fi
7406
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 done
7409 case $ac_lo in
7410 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7411 '') if test "$ac_cv_type_long_long" = yes; then
7412 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7413 See \`config.log' for more details." >&5
7414 echo "$as_me: error: cannot compute sizeof (long long)
7415 See \`config.log' for more details." >&2;}
7416 { (exit 77); exit 77; }; }
7417 else
7418 ac_cv_sizeof_long_long=0
7419 fi ;;
7420 esac
7421 else
7422 cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7429 typedef long long ac__type_sizeof_;
7430 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7431 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7432 #include <stdio.h>
7433 #include <stdlib.h>
7434 int
7435 main ()
7436 {
7437
7438 FILE *f = fopen ("conftest.val", "w");
7439 if (! f)
7440 return 1;
7441 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7442 {
7443 long int i = longval ();
7444 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7445 return 1;
7446 fprintf (f, "%ld\n", i);
7447 }
7448 else
7449 {
7450 unsigned long int i = ulongval ();
7451 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7452 return 1;
7453 fprintf (f, "%lu\n", i);
7454 }
7455 return ferror (f) || fclose (f) != 0;
7456
7457 ;
7458 return 0;
7459 }
7460 _ACEOF
7461 rm -f conftest$ac_exeext
7462 if { (ac_try="$ac_link"
7463 case "(($ac_try" in
7464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7465 *) ac_try_echo=$ac_try;;
7466 esac
7467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7468 (eval "$ac_link") 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7472 { (case "(($ac_try" in
7473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7475 esac
7476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477 (eval "$ac_try") 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_sizeof_long_long=`cat conftest.val`
7482 else
7483 echo "$as_me: program exited with status $ac_status" >&5
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7486
7487 ( exit $ac_status )
7488 if test "$ac_cv_type_long_long" = yes; then
7489 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7490 See \`config.log' for more details." >&5
7491 echo "$as_me: error: cannot compute sizeof (long long)
7492 See \`config.log' for more details." >&2;}
7493 { (exit 77); exit 77; }; }
7494 else
7495 ac_cv_sizeof_long_long=0
7496 fi
7497 fi
7498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7499 fi
7500 rm -f conftest.val
7501 fi
7502 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7503 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7504
7505
7506
7507 cat >>confdefs.h <<_ACEOF
7508 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7509 _ACEOF
7510
7511
7512
7513
7514 { echo "$as_me:$LINENO: checking for addrinfo" >&5
7515 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7516 if test "${ac_cv_addrinfo+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519 cat >conftest.$ac_ext <<_ACEOF
7520 /* confdefs.h. */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7525
7526 # include <netdb.h>
7527 int
7528 main ()
7529 {
7530 struct addrinfo a
7531 ;
7532 return 0;
7533 }
7534 _ACEOF
7535 rm -f conftest.$ac_objext
7536 if { (ac_try="$ac_compile"
7537 case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540 esac
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_compile") 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } && {
7549 test -z "$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 } && test -s conftest.$ac_objext; then
7552 ac_cv_addrinfo=yes
7553 else
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7556
7557 ac_cv_addrinfo=no
7558 fi
7559
7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 fi
7562
7563 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7564 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7565 if test $ac_cv_addrinfo = yes; then
7566 cat >>confdefs.h <<\_ACEOF
7567 #define HAVE_ADDRINFO 1
7568 _ACEOF
7569
7570 else
7571 cat >>confdefs.h <<\_ACEOF
7572 #define NEED_ADDRINFO_H 1
7573 _ACEOF
7574
7575 fi
7576
7577 if test "$ac_cv_addrinfo" = no; then
7578 missing_includes=yes
7579 fi
7580
7581
7582 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7583 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7584 if test "${ac_cv_maxserv+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 cat >conftest.$ac_ext <<_ACEOF
7588 /* confdefs.h. */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7593 #include <netdb.h>
7594 #ifdef NI_MAXSERV
7595 yes
7596 #endif
7597 _ACEOF
7598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7599 $EGREP "yes" >/dev/null 2>&1; then
7600 ac_cv_maxserv=yes
7601 else
7602 ac_cv_maxserv=no
7603 fi
7604 rm -f -r conftest*
7605
7606 fi
7607
7608 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7609 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7610 if test $ac_cv_maxserv != yes; then
7611 cat >>confdefs.h <<\_ACEOF
7612 #define NEED_ADDRINFO_H 1
7613 _ACEOF
7614
7615 fi
7616
7617 if test "$ac_cv_maxserv" = no; then
7618 missing_includes=yes
7619 fi
7620
7621
7622 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7623 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7624 if test "${ac_cv_namereqd+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h. */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633 #include <netdb.h>
7634 #ifdef NI_NOFQDN
7635 yes
7636 #endif
7637 _ACEOF
7638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7639 $EGREP "yes" >/dev/null 2>&1; then
7640 ac_cv_namereqd=yes
7641 else
7642 ac_cv_namereqd=no
7643 fi
7644 rm -f -r conftest*
7645
7646 fi
7647
7648 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7649 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7650 if test $ac_cv_namereqd != yes; then
7651 cat >>confdefs.h <<\_ACEOF
7652 #define NEED_ADDRINFO_H 1
7653 _ACEOF
7654
7655 fi
7656
7657 if test "$ac_cv_namereqd" = no; then
7658 missing_includes=yes
7659 fi
7660
7661
7662 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7663 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7664 if test "${ac_cv_sa_storage+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667 cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h. */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673
7674 # include <sys/types.h>
7675 # include <sys/socket.h>
7676 int
7677 main ()
7678 {
7679 struct sockaddr_storage s
7680 ;
7681 return 0;
7682 }
7683 _ACEOF
7684 rm -f conftest.$ac_objext
7685 if { (ac_try="$ac_compile"
7686 case "(($ac_try" in
7687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7688 *) ac_try_echo=$ac_try;;
7689 esac
7690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7691 (eval "$ac_compile") 2>conftest.er1
7692 ac_status=$?
7693 grep -v '^ *+' conftest.er1 >conftest.err
7694 rm -f conftest.er1
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } && {
7698 test -z "$ac_c_werror_flag" ||
7699 test ! -s conftest.err
7700 } && test -s conftest.$ac_objext; then
7701 ac_cv_sa_storage=yes
7702 else
7703 echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7705
7706 ac_cv_sa_storage=no
7707 fi
7708
7709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710 fi
7711
7712 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7713 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7714 if test $ac_cv_sa_storage = yes; then
7715 cat >>confdefs.h <<\_ACEOF
7716 #define HAVE_SOCKADDR_STORAGE 1
7717 _ACEOF
7718
7719 fi
7720
7721 if test "$ac_cv_sa_storage" = no; then
7722 missing_includes=yes
7723 fi
7724
7725
7726 ac_cv_addrsz=yes
7727 { echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7728 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
7729 if test "${ac_cv_inaddrsz+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732 cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h. */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7738
7739 # include <arpa/nameser.h>
7740 int
7741 main ()
7742 {
7743 int a = INADDRSZ
7744 ;
7745 return 0;
7746 }
7747 _ACEOF
7748 rm -f conftest.$ac_objext
7749 if { (ac_try="$ac_compile"
7750 case "(($ac_try" in
7751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752 *) ac_try_echo=$ac_try;;
7753 esac
7754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7755 (eval "$ac_compile") 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && {
7762 test -z "$ac_c_werror_flag" ||
7763 test ! -s conftest.err
7764 } && test -s conftest.$ac_objext; then
7765 ac_cv_inaddrsz=yes
7766 else
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7769
7770 ac_cv_inaddrsz=no
7771 fi
7772
7773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774 fi
7775
7776 { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7777 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
7778 if test $ac_cv_inaddrsz = yes; then
7779 cat >>confdefs.h <<\_ACEOF
7780 #define HAVE_INADDRSZ 1
7781 _ACEOF
7782
7783 else
7784 ac_cv_addrsz=no
7785 fi
7786 { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7787 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
7788 if test "${ac_cv_in6addrsz+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791 cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h. */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797
7798 # include <arpa/nameser.h>
7799 int
7800 main ()
7801 {
7802 int a = IN6ADDRSZ
7803 ;
7804 return 0;
7805 }
7806 _ACEOF
7807 rm -f conftest.$ac_objext
7808 if { (ac_try="$ac_compile"
7809 case "(($ac_try" in
7810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811 *) ac_try_echo=$ac_try;;
7812 esac
7813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814 (eval "$ac_compile") 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } && {
7821 test -z "$ac_c_werror_flag" ||
7822 test ! -s conftest.err
7823 } && test -s conftest.$ac_objext; then
7824 ac_cv_in6addrsz=yes
7825 else
7826 echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7828
7829 ac_cv_in6addrsz=no
7830 fi
7831
7832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7833 fi
7834
7835 { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7836 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
7837 if test $ac_cv_in6addrsz = yes; then
7838 cat >>confdefs.h <<\_ACEOF
7839 #define HAVE_IN6ADDRSZ 1
7840 _ACEOF
7841
7842 else
7843 ac_cv_addrsz=no
7844 fi
7845
7846 if test "$ac_cv_addrsz" = no; then
7847 missing_includes=yes
7848 fi
7849
7850
7851 { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7852 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
7853 if test "${ac_cv_res_inet6+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856 cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h. */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862
7863 # include <sys/types.h>
7864 # include <netinet/in.h>
7865 # include <resolv.h>
7866 int
7867 main ()
7868 {
7869 int a = RES_USE_INET6
7870 ;
7871 return 0;
7872 }
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (ac_try="$ac_compile"
7876 case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879 esac
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_compile") 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest.$ac_objext; then
7891 ac_cv_res_inet6=yes
7892 else
7893 echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7895
7896 ac_cv_res_inet6=no
7897 fi
7898
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900 fi
7901
7902 { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7903 echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
7904 if test $ac_cv_res_inet6 = yes; then
7905 cat >>confdefs.h <<\_ACEOF
7906 #define HAVE_RES_USE_INET6 1
7907 _ACEOF
7908
7909 fi
7910
7911 if test "$ac_cv_res_inet6" = no; then
7912 missing_includes=yes
7913 fi
7914
7915
7916 { echo "$as_me:$LINENO: checking for res_state_ext" >&5
7917 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
7918 if test "${ac_cv_res_state_ext+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927
7928 # include <sys/types.h>
7929 # include <netinet/in.h>
7930 # include <netinet6/in6.h>
7931 # include <resolv.h>
7932 int
7933 main ()
7934 {
7935 struct __res_state_ext e
7936 ;
7937 return 0;
7938 }
7939 _ACEOF
7940 rm -f conftest.$ac_objext
7941 if { (ac_try="$ac_compile"
7942 case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7945 esac
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_compile") 2>conftest.er1
7948 ac_status=$?
7949 grep -v '^ *+' conftest.er1 >conftest.err
7950 rm -f conftest.er1
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && {
7954 test -z "$ac_c_werror_flag" ||
7955 test ! -s conftest.err
7956 } && test -s conftest.$ac_objext; then
7957 ac_cv_res_state_ext=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962 ac_cv_res_state_ext=no
7963 fi
7964
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 fi
7967
7968 { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7969 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
7970 if test $ac_cv_res_state_ext = yes; then
7971 cat >>confdefs.h <<\_ACEOF
7972 #define HAVE_RES_STATE_EXT 1
7973 _ACEOF
7974
7975 fi
7976
7977 if test "$ac_cv_res_state_ext" = no; then
7978 missing_includes=yes
7979 fi
7980
7981
7982 { echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7983 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
7984 if test "${ac_cv_res_state+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987 cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h. */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993
7994 # include <sys/types.h>
7995 # include <netinet/in.h>
7996 # include <netinet6/in6.h>
7997 # include <resolv.h>
7998 int
7999 main ()
8000 {
8001 struct __res_state e; e.nsort = 0
8002 ;
8003 return 0;
8004 }
8005 _ACEOF
8006 rm -f conftest.$ac_objext
8007 if { (ac_try="$ac_compile"
8008 case "(($ac_try" in
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_compile") 2>conftest.er1
8014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } && {
8020 test -z "$ac_c_werror_flag" ||
8021 test ! -s conftest.err
8022 } && test -s conftest.$ac_objext; then
8023 ac_cv_res_state=yes
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028 ac_cv_res_state=no
8029 fi
8030
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032 fi
8033
8034 { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
8035 echo "${ECHO_T}$ac_cv_res_state" >&6; }
8036 if test $ac_cv_res_state = yes; then
8037 cat >>confdefs.h <<\_ACEOF
8038 #define HAVE_NEW_RES_STATE 1
8039 _ACEOF
8040
8041 fi
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
8052 do
8053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059 cat >conftest.$ac_ext <<_ACEOF
8060 /* confdefs.h. */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8067 #define $ac_func innocuous_$ac_func
8068
8069 /* System header to define __stub macros and hopefully few prototypes,
8070 which can conflict with char $ac_func (); below.
8071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8072 <limits.h> exists even on freestanding compilers. */
8073
8074 #ifdef __STDC__
8075 # include <limits.h>
8076 #else
8077 # include <assert.h>
8078 #endif
8079
8080 #undef $ac_func
8081
8082 /* Override any GCC internal prototype to avoid an error.
8083 Use char because int might match the return type of a GCC
8084 builtin and then its argument prototype would still apply. */
8085 #ifdef __cplusplus
8086 extern "C"
8087 #endif
8088 char $ac_func ();
8089 /* The GNU C library defines this for functions which it implements
8090 to always fail with ENOSYS. Some functions are actually named
8091 something starting with __ and the normal name is an alias. */
8092 #if defined __stub_$ac_func || defined __stub___$ac_func
8093 choke me
8094 #endif
8095
8096 int
8097 main ()
8098 {
8099 return $ac_func ();
8100 ;
8101 return 0;
8102 }
8103 _ACEOF
8104 rm -f conftest.$ac_objext conftest$ac_exeext
8105 if { (ac_try="$ac_link"
8106 case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8109 esac
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_link") 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest$ac_exeext &&
8121 $as_test_x conftest$ac_exeext; then
8122 eval "$as_ac_var=yes"
8123 else
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8126
8127 eval "$as_ac_var=no"
8128 fi
8129
8130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8131 conftest$ac_exeext conftest.$ac_ext
8132 fi
8133 ac_res=`eval echo '${'$as_ac_var'}'`
8134 { echo "$as_me:$LINENO: result: $ac_res" >&5
8135 echo "${ECHO_T}$ac_res" >&6; }
8136 if test `eval echo '${'$as_ac_var'}'` = yes; then
8137 cat >>confdefs.h <<_ACEOF
8138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8139 _ACEOF
8140
8141 else
8142 case " $LIBOBJS " in
8143 *" $ac_func.$ac_objext "* ) ;;
8144 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8145 ;;
8146 esac
8147
8148 fi
8149 done
8150
8151
8152
8153 for ac_func in strftime
8154 do
8155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 else
8161 cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h. */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8169 #define $ac_func innocuous_$ac_func
8170
8171 /* System header to define __stub macros and hopefully few prototypes,
8172 which can conflict with char $ac_func (); below.
8173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8174 <limits.h> exists even on freestanding compilers. */
8175
8176 #ifdef __STDC__
8177 # include <limits.h>
8178 #else
8179 # include <assert.h>
8180 #endif
8181
8182 #undef $ac_func
8183
8184 /* Override any GCC internal prototype to avoid an error.
8185 Use char because int might match the return type of a GCC
8186 builtin and then its argument prototype would still apply. */
8187 #ifdef __cplusplus
8188 extern "C"
8189 #endif
8190 char $ac_func ();
8191 /* The GNU C library defines this for functions which it implements
8192 to always fail with ENOSYS. Some functions are actually named
8193 something starting with __ and the normal name is an alias. */
8194 #if defined __stub_$ac_func || defined __stub___$ac_func
8195 choke me
8196 #endif
8197
8198 int
8199 main ()
8200 {
8201 return $ac_func ();
8202 ;
8203 return 0;
8204 }
8205 _ACEOF
8206 rm -f conftest.$ac_objext conftest$ac_exeext
8207 if { (ac_try="$ac_link"
8208 case "(($ac_try" in
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8211 esac
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_link") 2>conftest.er1
8214 ac_status=$?
8215 grep -v '^ *+' conftest.er1 >conftest.err
8216 rm -f conftest.er1
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } && {
8220 test -z "$ac_c_werror_flag" ||
8221 test ! -s conftest.err
8222 } && test -s conftest$ac_exeext &&
8223 $as_test_x conftest$ac_exeext; then
8224 eval "$as_ac_var=yes"
8225 else
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8228
8229 eval "$as_ac_var=no"
8230 fi
8231
8232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8233 conftest$ac_exeext conftest.$ac_ext
8234 fi
8235 ac_res=`eval echo '${'$as_ac_var'}'`
8236 { echo "$as_me:$LINENO: result: $ac_res" >&5
8237 echo "${ECHO_T}$ac_res" >&6; }
8238 if test `eval echo '${'$as_ac_var'}'` = yes; then
8239 cat >>confdefs.h <<_ACEOF
8240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8241 _ACEOF
8242
8243 fi
8244 done
8245
8246
8247
8248 for ac_func in setlinebuf alarm
8249 do
8250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8264 #define $ac_func innocuous_$ac_func
8265
8266 /* System header to define __stub macros and hopefully few prototypes,
8267 which can conflict with char $ac_func (); below.
8268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8269 <limits.h> exists even on freestanding compilers. */
8270
8271 #ifdef __STDC__
8272 # include <limits.h>
8273 #else
8274 # include <assert.h>
8275 #endif
8276
8277 #undef $ac_func
8278
8279 /* Override any GCC internal prototype to avoid an error.
8280 Use char because int might match the return type of a GCC
8281 builtin and then its argument prototype would still apply. */
8282 #ifdef __cplusplus
8283 extern "C"
8284 #endif
8285 char $ac_func ();
8286 /* The GNU C library defines this for functions which it implements
8287 to always fail with ENOSYS. Some functions are actually named
8288 something starting with __ and the normal name is an alias. */
8289 #if defined __stub_$ac_func || defined __stub___$ac_func
8290 choke me
8291 #endif
8292
8293 int
8294 main ()
8295 {
8296 return $ac_func ();
8297 ;
8298 return 0;
8299 }
8300 _ACEOF
8301 rm -f conftest.$ac_objext conftest$ac_exeext
8302 if { (ac_try="$ac_link"
8303 case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_link") 2>conftest.er1
8309 ac_status=$?
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 } && test -s conftest$ac_exeext &&
8318 $as_test_x conftest$ac_exeext; then
8319 eval "$as_ac_var=yes"
8320 else
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324 eval "$as_ac_var=no"
8325 fi
8326
8327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8328 conftest$ac_exeext conftest.$ac_ext
8329 fi
8330 ac_res=`eval echo '${'$as_ac_var'}'`
8331 { echo "$as_me:$LINENO: result: $ac_res" >&5
8332 echo "${ECHO_T}$ac_res" >&6; }
8333 if test `eval echo '${'$as_ac_var'}'` = yes; then
8334 cat >>confdefs.h <<_ACEOF
8335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8336 _ACEOF
8337
8338 fi
8339 done
8340
8341
8342 needsnprintf=no
8343
8344
8345 for ac_func in vsnprintf snprintf
8346 do
8347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h. */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8361 #define $ac_func innocuous_$ac_func
8362
8363 /* System header to define __stub macros and hopefully few prototypes,
8364 which can conflict with char $ac_func (); below.
8365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8366 <limits.h> exists even on freestanding compilers. */
8367
8368 #ifdef __STDC__
8369 # include <limits.h>
8370 #else
8371 # include <assert.h>
8372 #endif
8373
8374 #undef $ac_func
8375
8376 /* Override any GCC internal prototype to avoid an error.
8377 Use char because int might match the return type of a GCC
8378 builtin and then its argument prototype would still apply. */
8379 #ifdef __cplusplus
8380 extern "C"
8381 #endif
8382 char $ac_func ();
8383 /* The GNU C library defines this for functions which it implements
8384 to always fail with ENOSYS. Some functions are actually named
8385 something starting with __ and the normal name is an alias. */
8386 #if defined __stub_$ac_func || defined __stub___$ac_func
8387 choke me
8388 #endif
8389
8390 int
8391 main ()
8392 {
8393 return $ac_func ();
8394 ;
8395 return 0;
8396 }
8397 _ACEOF
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (ac_try="$ac_link"
8400 case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_link") 2>conftest.er1
8406 ac_status=$?
8407 grep -v '^ *+' conftest.er1 >conftest.err
8408 rm -f conftest.er1
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } && {
8412 test -z "$ac_c_werror_flag" ||
8413 test ! -s conftest.err
8414 } && test -s conftest$ac_exeext &&
8415 $as_test_x conftest$ac_exeext; then
8416 eval "$as_ac_var=yes"
8417 else
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8420
8421 eval "$as_ac_var=no"
8422 fi
8423
8424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8425 conftest$ac_exeext conftest.$ac_ext
8426 fi
8427 ac_res=`eval echo '${'$as_ac_var'}'`
8428 { echo "$as_me:$LINENO: result: $ac_res" >&5
8429 echo "${ECHO_T}$ac_res" >&6; }
8430 if test `eval echo '${'$as_ac_var'}'` = yes; then
8431 cat >>confdefs.h <<_ACEOF
8432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8433 _ACEOF
8434
8435 else
8436 needsnprintf=yes
8437 fi
8438 done
8439
8440 if test $needsnprintf = yes; then
8441 case " $LIBOBJS " in
8442 *" snprintf.$ac_objext "* ) ;;
8443 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8444 ;;
8445 esac
8446
8447 fi
8448
8449
8450 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8451 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8452 if test "${ac_cv_type_signal+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455 cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h. */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8461 #include <sys/types.h>
8462 #include <signal.h>
8463
8464 int
8465 main ()
8466 {
8467 return *(signal (0, 0)) (0) == 1;
8468 ;
8469 return 0;
8470 }
8471 _ACEOF
8472 rm -f conftest.$ac_objext
8473 if { (ac_try="$ac_compile"
8474 case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_compile") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest.$ac_objext; then
8489 ac_cv_type_signal=int
8490 else
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8493
8494 ac_cv_type_signal=void
8495 fi
8496
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8498 fi
8499 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8500 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8501
8502 cat >>confdefs.h <<_ACEOF
8503 #define RETSIGTYPE $ac_cv_type_signal
8504 _ACEOF
8505
8506
8507 if test "$ac_cv_type_signal" = void ; then
8508
8509 cat >>confdefs.h <<\_ACEOF
8510 #define RETSIGVAL
8511 _ACEOF
8512
8513 else
8514
8515 cat >>confdefs.h <<\_ACEOF
8516 #define RETSIGVAL (0)
8517 _ACEOF
8518
8519 fi
8520 case "$host_os" in
8521
8522 irix*)
8523
8524 cat >>confdefs.h <<\_ACEOF
8525 #define _BSD_SIGNALS 1
8526 _ACEOF
8527
8528 ;;
8529
8530 *)
8531
8532 for ac_func in sigaction
8533 do
8534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h. */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8548 #define $ac_func innocuous_$ac_func
8549
8550 /* System header to define __stub macros and hopefully few prototypes,
8551 which can conflict with char $ac_func (); below.
8552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8553 <limits.h> exists even on freestanding compilers. */
8554
8555 #ifdef __STDC__
8556 # include <limits.h>
8557 #else
8558 # include <assert.h>
8559 #endif
8560
8561 #undef $ac_func
8562
8563 /* Override any GCC internal prototype to avoid an error.
8564 Use char because int might match the return type of a GCC
8565 builtin and then its argument prototype would still apply. */
8566 #ifdef __cplusplus
8567 extern "C"
8568 #endif
8569 char $ac_func ();
8570 /* The GNU C library defines this for functions which it implements
8571 to always fail with ENOSYS. Some functions are actually named
8572 something starting with __ and the normal name is an alias. */
8573 #if defined __stub_$ac_func || defined __stub___$ac_func
8574 choke me
8575 #endif
8576
8577 int
8578 main ()
8579 {
8580 return $ac_func ();
8581 ;
8582 return 0;
8583 }
8584 _ACEOF
8585 rm -f conftest.$ac_objext conftest$ac_exeext
8586 if { (ac_try="$ac_link"
8587 case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590 esac
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_link") 2>conftest.er1
8593 ac_status=$?
8594 grep -v '^ *+' conftest.er1 >conftest.err
8595 rm -f conftest.er1
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } && {
8599 test -z "$ac_c_werror_flag" ||
8600 test ! -s conftest.err
8601 } && test -s conftest$ac_exeext &&
8602 $as_test_x conftest$ac_exeext; then
8603 eval "$as_ac_var=yes"
8604 else
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8607
8608 eval "$as_ac_var=no"
8609 fi
8610
8611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8612 conftest$ac_exeext conftest.$ac_ext
8613 fi
8614 ac_res=`eval echo '${'$as_ac_var'}'`
8615 { echo "$as_me:$LINENO: result: $ac_res" >&5
8616 echo "${ECHO_T}$ac_res" >&6; }
8617 if test `eval echo '${'$as_ac_var'}'` = yes; then
8618 cat >>confdefs.h <<_ACEOF
8619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8620 _ACEOF
8621
8622 fi
8623 done
8624
8625 if test $ac_cv_func_sigaction = no ; then
8626
8627 for ac_func in sigset
8628 do
8629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635 cat >conftest.$ac_ext <<_ACEOF
8636 /* confdefs.h. */
8637 _ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h. */
8641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8643 #define $ac_func innocuous_$ac_func
8644
8645 /* System header to define __stub macros and hopefully few prototypes,
8646 which can conflict with char $ac_func (); below.
8647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8648 <limits.h> exists even on freestanding compilers. */
8649
8650 #ifdef __STDC__
8651 # include <limits.h>
8652 #else
8653 # include <assert.h>
8654 #endif
8655
8656 #undef $ac_func
8657
8658 /* Override any GCC internal prototype to avoid an error.
8659 Use char because int might match the return type of a GCC
8660 builtin and then its argument prototype would still apply. */
8661 #ifdef __cplusplus
8662 extern "C"
8663 #endif
8664 char $ac_func ();
8665 /* The GNU C library defines this for functions which it implements
8666 to always fail with ENOSYS. Some functions are actually named
8667 something starting with __ and the normal name is an alias. */
8668 #if defined __stub_$ac_func || defined __stub___$ac_func
8669 choke me
8670 #endif
8671
8672 int
8673 main ()
8674 {
8675 return $ac_func ();
8676 ;
8677 return 0;
8678 }
8679 _ACEOF
8680 rm -f conftest.$ac_objext conftest$ac_exeext
8681 if { (ac_try="$ac_link"
8682 case "(($ac_try" in
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8685 esac
8686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687 (eval "$ac_link") 2>conftest.er1
8688 ac_status=$?
8689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } && {
8694 test -z "$ac_c_werror_flag" ||
8695 test ! -s conftest.err
8696 } && test -s conftest$ac_exeext &&
8697 $as_test_x conftest$ac_exeext; then
8698 eval "$as_ac_var=yes"
8699 else
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8702
8703 eval "$as_ac_var=no"
8704 fi
8705
8706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8707 conftest$ac_exeext conftest.$ac_ext
8708 fi
8709 ac_res=`eval echo '${'$as_ac_var'}'`
8710 { echo "$as_me:$LINENO: result: $ac_res" >&5
8711 echo "${ECHO_T}$ac_res" >&6; }
8712 if test `eval echo '${'$as_ac_var'}'` = yes; then
8713 cat >>confdefs.h <<_ACEOF
8714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8715 _ACEOF
8716
8717 fi
8718 done
8719
8720 fi
8721 ;;
8722 esac
8723
8724 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8725 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8726 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729 ac_func_search_save_LIBS=$LIBS
8730 cat >conftest.$ac_ext <<_ACEOF
8731 /* confdefs.h. */
8732 _ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h. */
8736
8737 /* Override any GCC internal prototype to avoid an error.
8738 Use char because int might match the return type of a GCC
8739 builtin and then its argument prototype would still apply. */
8740 #ifdef __cplusplus
8741 extern "C"
8742 #endif
8743 char dnet_htoa ();
8744 int
8745 main ()
8746 {
8747 return dnet_htoa ();
8748 ;
8749 return 0;
8750 }
8751 _ACEOF
8752 for ac_lib in '' dnet; do
8753 if test -z "$ac_lib"; then
8754 ac_res="none required"
8755 else
8756 ac_res=-l$ac_lib
8757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8758 fi
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (ac_try="$ac_link"
8761 case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764 esac
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_link") 2>conftest.er1
8767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_c_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest$ac_exeext &&
8776 $as_test_x conftest$ac_exeext; then
8777 ac_cv_search_dnet_htoa=$ac_res
8778 else
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8781
8782
8783 fi
8784
8785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8786 conftest$ac_exeext
8787 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8788 break
8789 fi
8790 done
8791 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8792 :
8793 else
8794 ac_cv_search_dnet_htoa=no
8795 fi
8796 rm conftest.$ac_ext
8797 LIBS=$ac_func_search_save_LIBS
8798 fi
8799 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8800 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8801 ac_res=$ac_cv_search_dnet_htoa
8802 if test "$ac_res" != no; then
8803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8804 cat >>confdefs.h <<\_ACEOF
8805 #define HAVE_DNET_HTOA 1
8806 _ACEOF
8807
8808 fi
8809
8810
8811
8812 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8813 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8814 if test "${ac_cv_lib_rpc_main+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817 ac_check_lib_save_LIBS=$LIBS
8818 LIBS="-lrpc $LIBS"
8819 cat >conftest.$ac_ext <<_ACEOF
8820 /* confdefs.h. */
8821 _ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8825
8826
8827 int
8828 main ()
8829 {
8830 return main ();
8831 ;
8832 return 0;
8833 }
8834 _ACEOF
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (ac_try="$ac_link"
8837 case "(($ac_try" in
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8840 esac
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_link") 2>conftest.er1
8843 ac_status=$?
8844 grep -v '^ *+' conftest.er1 >conftest.err
8845 rm -f conftest.er1
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } && {
8849 test -z "$ac_c_werror_flag" ||
8850 test ! -s conftest.err
8851 } && test -s conftest$ac_exeext &&
8852 $as_test_x conftest$ac_exeext; then
8853 ac_cv_lib_rpc_main=yes
8854 else
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8857
8858 ac_cv_lib_rpc_main=no
8859 fi
8860
8861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8862 conftest$ac_exeext conftest.$ac_ext
8863 LIBS=$ac_check_lib_save_LIBS
8864 fi
8865 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8866 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8867 if test $ac_cv_lib_rpc_main = yes; then
8868 cat >>confdefs.h <<_ACEOF
8869 #define HAVE_LIBRPC 1
8870 _ACEOF
8871
8872 LIBS="-lrpc $LIBS"
8873
8874 fi
8875
8876 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8877 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8878 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881 ac_func_search_save_LIBS=$LIBS
8882 cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h. */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888
8889 /* Override any GCC internal prototype to avoid an error.
8890 Use char because int might match the return type of a GCC
8891 builtin and then its argument prototype would still apply. */
8892 #ifdef __cplusplus
8893 extern "C"
8894 #endif
8895 char getrpcbynumber ();
8896 int
8897 main ()
8898 {
8899 return getrpcbynumber ();
8900 ;
8901 return 0;
8902 }
8903 _ACEOF
8904 for ac_lib in '' nsl; do
8905 if test -z "$ac_lib"; then
8906 ac_res="none required"
8907 else
8908 ac_res=-l$ac_lib
8909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8910 fi
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (ac_try="$ac_link"
8913 case "(($ac_try" in
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8916 esac
8917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918 (eval "$ac_link") 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } && {
8925 test -z "$ac_c_werror_flag" ||
8926 test ! -s conftest.err
8927 } && test -s conftest$ac_exeext &&
8928 $as_test_x conftest$ac_exeext; then
8929 ac_cv_search_getrpcbynumber=$ac_res
8930 else
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8933
8934
8935 fi
8936
8937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8938 conftest$ac_exeext
8939 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8940 break
8941 fi
8942 done
8943 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8944 :
8945 else
8946 ac_cv_search_getrpcbynumber=no
8947 fi
8948 rm conftest.$ac_ext
8949 LIBS=$ac_func_search_save_LIBS
8950 fi
8951 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8952 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8953 ac_res=$ac_cv_search_getrpcbynumber
8954 if test "$ac_res" != no; then
8955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8956 cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_GETRPCBYNUMBER 1
8958 _ACEOF
8959
8960 fi
8961
8962
8963
8964
8965 # Most operating systems have gethostbyname() in the default searched
8966 # libraries (i.e. libc):
8967 # Some OSes (eg. Solaris) place it in libnsl
8968 # Some strange OSes (SINIX) have it in libsocket:
8969 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8970 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8971 if test "${ac_cv_search_gethostbyname+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8973 else
8974 ac_func_search_save_LIBS=$LIBS
8975 cat >conftest.$ac_ext <<_ACEOF
8976 /* confdefs.h. */
8977 _ACEOF
8978 cat confdefs.h >>conftest.$ac_ext
8979 cat >>conftest.$ac_ext <<_ACEOF
8980 /* end confdefs.h. */
8981
8982 /* Override any GCC internal prototype to avoid an error.
8983 Use char because int might match the return type of a GCC
8984 builtin and then its argument prototype would still apply. */
8985 #ifdef __cplusplus
8986 extern "C"
8987 #endif
8988 char gethostbyname ();
8989 int
8990 main ()
8991 {
8992 return gethostbyname ();
8993 ;
8994 return 0;
8995 }
8996 _ACEOF
8997 for ac_lib in '' nsl socket resolv; do
8998 if test -z "$ac_lib"; then
8999 ac_res="none required"
9000 else
9001 ac_res=-l$ac_lib
9002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9003 fi
9004 rm -f conftest.$ac_objext conftest$ac_exeext
9005 if { (ac_try="$ac_link"
9006 case "(($ac_try" in
9007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9008 *) ac_try_echo=$ac_try;;
9009 esac
9010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9011 (eval "$ac_link") 2>conftest.er1
9012 ac_status=$?
9013 grep -v '^ *+' conftest.er1 >conftest.err
9014 rm -f conftest.er1
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } && {
9018 test -z "$ac_c_werror_flag" ||
9019 test ! -s conftest.err
9020 } && test -s conftest$ac_exeext &&
9021 $as_test_x conftest$ac_exeext; then
9022 ac_cv_search_gethostbyname=$ac_res
9023 else
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9026
9027
9028 fi
9029
9030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9031 conftest$ac_exeext
9032 if test "${ac_cv_search_gethostbyname+set}" = set; then
9033 break
9034 fi
9035 done
9036 if test "${ac_cv_search_gethostbyname+set}" = set; then
9037 :
9038 else
9039 ac_cv_search_gethostbyname=no
9040 fi
9041 rm conftest.$ac_ext
9042 LIBS=$ac_func_search_save_LIBS
9043 fi
9044 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9045 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
9046 ac_res=$ac_cv_search_gethostbyname
9047 if test "$ac_res" != no; then
9048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9049
9050 fi
9051
9052 # Unfortunately libsocket sometimes depends on libnsl and
9053 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
9054 if test "$ac_cv_search_gethostbyname" = "no"
9055 then
9056 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
9057 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
9058 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 else
9061 ac_check_lib_save_LIBS=$LIBS
9062 LIBS="-lsocket -lnsl $LIBS"
9063 cat >conftest.$ac_ext <<_ACEOF
9064 /* confdefs.h. */
9065 _ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9069
9070 /* Override any GCC internal prototype to avoid an error.
9071 Use char because int might match the return type of a GCC
9072 builtin and then its argument prototype would still apply. */
9073 #ifdef __cplusplus
9074 extern "C"
9075 #endif
9076 char gethostbyname ();
9077 int
9078 main ()
9079 {
9080 return gethostbyname ();
9081 ;
9082 return 0;
9083 }
9084 _ACEOF
9085 rm -f conftest.$ac_objext conftest$ac_exeext
9086 if { (ac_try="$ac_link"
9087 case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9090 esac
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_link") 2>conftest.er1
9093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } && {
9099 test -z "$ac_c_werror_flag" ||
9100 test ! -s conftest.err
9101 } && test -s conftest$ac_exeext &&
9102 $as_test_x conftest$ac_exeext; then
9103 ac_cv_lib_socket_gethostbyname=yes
9104 else
9105 echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9107
9108 ac_cv_lib_socket_gethostbyname=no
9109 fi
9110
9111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9112 conftest$ac_exeext conftest.$ac_ext
9113 LIBS=$ac_check_lib_save_LIBS
9114 fi
9115 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
9116 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
9117 if test $ac_cv_lib_socket_gethostbyname = yes; then
9118 LIBS="-lsocket -lnsl $LIBS"
9119 fi
9120
9121 fi
9122 { echo "$as_me:$LINENO: checking for library containing socket" >&5
9123 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
9124 if test "${ac_cv_search_socket+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 else
9127 ac_func_search_save_LIBS=$LIBS
9128 cat >conftest.$ac_ext <<_ACEOF
9129 /* confdefs.h. */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9134
9135 /* Override any GCC internal prototype to avoid an error.
9136 Use char because int might match the return type of a GCC
9137 builtin and then its argument prototype would still apply. */
9138 #ifdef __cplusplus
9139 extern "C"
9140 #endif
9141 char socket ();
9142 int
9143 main ()
9144 {
9145 return socket ();
9146 ;
9147 return 0;
9148 }
9149 _ACEOF
9150 for ac_lib in '' socket; do
9151 if test -z "$ac_lib"; then
9152 ac_res="none required"
9153 else
9154 ac_res=-l$ac_lib
9155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9156 fi
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (ac_try="$ac_link"
9159 case "(($ac_try" in
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9162 esac
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_link") 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } && {
9171 test -z "$ac_c_werror_flag" ||
9172 test ! -s conftest.err
9173 } && test -s conftest$ac_exeext &&
9174 $as_test_x conftest$ac_exeext; then
9175 ac_cv_search_socket=$ac_res
9176 else
9177 echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.$ac_ext >&5
9179
9180
9181 fi
9182
9183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9184 conftest$ac_exeext
9185 if test "${ac_cv_search_socket+set}" = set; then
9186 break
9187 fi
9188 done
9189 if test "${ac_cv_search_socket+set}" = set; then
9190 :
9191 else
9192 ac_cv_search_socket=no
9193 fi
9194 rm conftest.$ac_ext
9195 LIBS=$ac_func_search_save_LIBS
9196 fi
9197 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
9198 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
9199 ac_res=$ac_cv_search_socket
9200 if test "$ac_res" != no; then
9201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9202
9203 else
9204 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9205 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9206 if test "${ac_cv_lib_socket_socket+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209 ac_check_lib_save_LIBS=$LIBS
9210 LIBS="-lsocket -lnsl $LIBS"
9211 cat >conftest.$ac_ext <<_ACEOF
9212 /* confdefs.h. */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217
9218 /* Override any GCC internal prototype to avoid an error.
9219 Use char because int might match the return type of a GCC
9220 builtin and then its argument prototype would still apply. */
9221 #ifdef __cplusplus
9222 extern "C"
9223 #endif
9224 char socket ();
9225 int
9226 main ()
9227 {
9228 return socket ();
9229 ;
9230 return 0;
9231 }
9232 _ACEOF
9233 rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (ac_try="$ac_link"
9235 case "(($ac_try" in
9236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237 *) ac_try_echo=$ac_try;;
9238 esac
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240 (eval "$ac_link") 2>conftest.er1
9241 ac_status=$?
9242 grep -v '^ *+' conftest.er1 >conftest.err
9243 rm -f conftest.er1
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } && {
9247 test -z "$ac_c_werror_flag" ||
9248 test ! -s conftest.err
9249 } && test -s conftest$ac_exeext &&
9250 $as_test_x conftest$ac_exeext; then
9251 ac_cv_lib_socket_socket=yes
9252 else
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9255
9256 ac_cv_lib_socket_socket=no
9257 fi
9258
9259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9260 conftest$ac_exeext conftest.$ac_ext
9261 LIBS=$ac_check_lib_save_LIBS
9262 fi
9263 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9264 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9265 if test $ac_cv_lib_socket_socket = yes; then
9266 LIBS="-lsocket -lnsl $LIBS"
9267 fi
9268
9269 fi
9270
9271 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
9272 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
9273 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
9274 if test "${ac_cv_search_putmsg+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277 ac_func_search_save_LIBS=$LIBS
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h. */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9284
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 char putmsg ();
9292 int
9293 main ()
9294 {
9295 return putmsg ();
9296 ;
9297 return 0;
9298 }
9299 _ACEOF
9300 for ac_lib in '' str; do
9301 if test -z "$ac_lib"; then
9302 ac_res="none required"
9303 else
9304 ac_res=-l$ac_lib
9305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9306 fi
9307 rm -f conftest.$ac_objext conftest$ac_exeext
9308 if { (ac_try="$ac_link"
9309 case "(($ac_try" in
9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311 *) ac_try_echo=$ac_try;;
9312 esac
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_link") 2>conftest.er1
9315 ac_status=$?
9316 grep -v '^ *+' conftest.er1 >conftest.err
9317 rm -f conftest.er1
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } && {
9321 test -z "$ac_c_werror_flag" ||
9322 test ! -s conftest.err
9323 } && test -s conftest$ac_exeext &&
9324 $as_test_x conftest$ac_exeext; then
9325 ac_cv_search_putmsg=$ac_res
9326 else
9327 echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9329
9330
9331 fi
9332
9333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9334 conftest$ac_exeext
9335 if test "${ac_cv_search_putmsg+set}" = set; then
9336 break
9337 fi
9338 done
9339 if test "${ac_cv_search_putmsg+set}" = set; then
9340 :
9341 else
9342 ac_cv_search_putmsg=no
9343 fi
9344 rm conftest.$ac_ext
9345 LIBS=$ac_func_search_save_LIBS
9346 fi
9347 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9348 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9349 ac_res=$ac_cv_search_putmsg
9350 if test "$ac_res" != no; then
9351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9352
9353 fi
9354
9355
9356
9357 LBL_LIBS="$LIBS"
9358 pfopen=/usr/examples/packetfilter/pfopen.c
9359 if test -f $pfopen ; then
9360
9361 for ac_func in pfopen
9362 do
9363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9364 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h. */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9377 #define $ac_func innocuous_$ac_func
9378
9379 /* System header to define __stub macros and hopefully few prototypes,
9380 which can conflict with char $ac_func (); below.
9381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9382 <limits.h> exists even on freestanding compilers. */
9383
9384 #ifdef __STDC__
9385 # include <limits.h>
9386 #else
9387 # include <assert.h>
9388 #endif
9389
9390 #undef $ac_func
9391
9392 /* Override any GCC internal prototype to avoid an error.
9393 Use char because int might match the return type of a GCC
9394 builtin and then its argument prototype would still apply. */
9395 #ifdef __cplusplus
9396 extern "C"
9397 #endif
9398 char $ac_func ();
9399 /* The GNU C library defines this for functions which it implements
9400 to always fail with ENOSYS. Some functions are actually named
9401 something starting with __ and the normal name is an alias. */
9402 #if defined __stub_$ac_func || defined __stub___$ac_func
9403 choke me
9404 #endif
9405
9406 int
9407 main ()
9408 {
9409 return $ac_func ();
9410 ;
9411 return 0;
9412 }
9413 _ACEOF
9414 rm -f conftest.$ac_objext conftest$ac_exeext
9415 if { (ac_try="$ac_link"
9416 case "(($ac_try" in
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9419 esac
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_link") 2>conftest.er1
9422 ac_status=$?
9423 grep -v '^ *+' conftest.er1 >conftest.err
9424 rm -f conftest.er1
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } && {
9428 test -z "$ac_c_werror_flag" ||
9429 test ! -s conftest.err
9430 } && test -s conftest$ac_exeext &&
9431 $as_test_x conftest$ac_exeext; then
9432 eval "$as_ac_var=yes"
9433 else
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9436
9437 eval "$as_ac_var=no"
9438 fi
9439
9440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9441 conftest$ac_exeext conftest.$ac_ext
9442 fi
9443 ac_res=`eval echo '${'$as_ac_var'}'`
9444 { echo "$as_me:$LINENO: result: $ac_res" >&5
9445 echo "${ECHO_T}$ac_res" >&6; }
9446 if test `eval echo '${'$as_ac_var'}'` = yes; then
9447 cat >>confdefs.h <<_ACEOF
9448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9449 _ACEOF
9450
9451 fi
9452 done
9453
9454 if test $ac_cv_func_pfopen = "no" ; then
9455 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9456 echo "${ECHO_T}Using $pfopen" >&6; }
9457 LIBS="$LIBS $pfopen"
9458 fi
9459 fi
9460 { echo "$as_me:$LINENO: checking for local pcap library" >&5
9461 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9462 libpcap=FAIL
9463 lastdir=FAIL
9464 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9465 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
9466 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9467 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
9468 sed -e 's/-PRE-GIT$//' `
9469 if test $lastdir = $basedir ; then
9470 continue;
9471 fi
9472 lastdir=$dir
9473 if test -r $dir/libpcap.a ; then
9474 libpcap=$dir/libpcap.a
9475 d=$dir
9476 fi
9477 done
9478 if test $libpcap = FAIL ; then
9479 { echo "$as_me:$LINENO: result: not found" >&5
9480 echo "${ECHO_T}not found" >&6; }
9481
9482 #
9483 # Look for pcap-config.
9484 #
9485 # Extract the first word of "pcap-config", so it can be a program name with args.
9486 set dummy pcap-config; ac_word=$2
9487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9489 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 else
9492 case $PCAP_CONFIG in
9493 [\\/]* | ?:[\\/]*)
9494 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9495 ;;
9496 *)
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 for as_dir in $PATH
9499 do
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9504 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 break 2
9507 fi
9508 done
9509 done
9510 IFS=$as_save_IFS
9511
9512 ;;
9513 esac
9514 fi
9515 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9516 if test -n "$PCAP_CONFIG"; then
9517 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9518 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9519 else
9520 { echo "$as_me:$LINENO: result: no" >&5
9521 echo "${ECHO_T}no" >&6; }
9522 fi
9523
9524
9525 if test -n "$PCAP_CONFIG" ; then
9526 #
9527 # Found - use it to get the include flags for
9528 # libpcap and the flags to link with libpcap.
9529 #
9530 V_INCLS="`\"$PCAP_CONFIG\" --cflags` $V_INCLS"
9531 libpcap="`\"$PCAP_CONFIG\" --libs`"
9532 else
9533 #
9534 # Not found; look for pcap.
9535 #
9536 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9537 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9538 if test "${ac_cv_lib_pcap_main+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541 ac_check_lib_save_LIBS=$LIBS
9542 LIBS="-lpcap $LIBS"
9543 cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h. */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549
9550
9551 int
9552 main ()
9553 {
9554 return main ();
9555 ;
9556 return 0;
9557 }
9558 _ACEOF
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (ac_try="$ac_link"
9561 case "(($ac_try" in
9562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563 *) ac_try_echo=$ac_try;;
9564 esac
9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566 (eval "$ac_link") 2>conftest.er1
9567 ac_status=$?
9568 grep -v '^ *+' conftest.er1 >conftest.err
9569 rm -f conftest.er1
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && {
9573 test -z "$ac_c_werror_flag" ||
9574 test ! -s conftest.err
9575 } && test -s conftest$ac_exeext &&
9576 $as_test_x conftest$ac_exeext; then
9577 ac_cv_lib_pcap_main=yes
9578 else
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9581
9582 ac_cv_lib_pcap_main=no
9583 fi
9584
9585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9586 conftest$ac_exeext conftest.$ac_ext
9587 LIBS=$ac_check_lib_save_LIBS
9588 fi
9589 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9590 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9591 if test $ac_cv_lib_pcap_main = yes; then
9592 libpcap="-lpcap"
9593 fi
9594
9595 if test $libpcap = FAIL ; then
9596 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9597 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9598 { (exit 1); exit 1; }; }
9599 fi
9600 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9601 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9602 if test \( ! -r /usr/local/include/pcap.h \) -a \
9603 \( ! -r /usr/include/pcap.h \); then
9604 if test -r /usr/local/include/pcap/pcap.h; then
9605 d="/usr/local/include/pcap"
9606 elif test -r /usr/include/pcap/pcap.h; then
9607 d="/usr/include/pcap"
9608 fi
9609 fi
9610 if test -z "$d" ; then
9611 { echo "$as_me:$LINENO: result: not found" >&5
9612 echo "${ECHO_T}not found" >&6; }
9613 else
9614 V_INCLS="-I$d $V_INCLS"
9615 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9616 echo "${ECHO_T}found -- -I$d added" >&6; }
9617 fi
9618 fi
9619 else
9620 V_PCAPDEP=$libpcap
9621 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9622 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9623 if test -r $d/pcap.h; then
9624 V_INCLS="-I$d $V_INCLS"
9625 elif test -r $places/pcap.h; then
9626 V_INCLS="-I$places $V_INCLS"
9627 else
9628 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9629 echo "$as_me: error: cannot find pcap.h" >&2;}
9630 { (exit see INSTALL); exit see INSTALL; }; }
9631 fi
9632 { echo "$as_me:$LINENO: result: $libpcap" >&5
9633 echo "${ECHO_T}$libpcap" >&6; }
9634 # Extract the first word of "pcap-config", so it can be a program name with args.
9635 set dummy pcap-config; ac_word=$2
9636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9638 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641 case $PCAP_CONFIG in
9642 [\\/]* | ?:[\\/]*)
9643 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9644 ;;
9645 *)
9646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647 for as_dir in $d
9648 do
9649 IFS=$as_save_IFS
9650 test -z "$as_dir" && as_dir=.
9651 for ac_exec_ext in '' $ac_executable_extensions; do
9652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9653 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9655 break 2
9656 fi
9657 done
9658 done
9659 IFS=$as_save_IFS
9660
9661 ;;
9662 esac
9663 fi
9664 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9665 if test -n "$PCAP_CONFIG"; then
9666 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9667 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9668 else
9669 { echo "$as_me:$LINENO: result: no" >&5
9670 echo "${ECHO_T}no" >&6; }
9671 fi
9672
9673
9674 if test -n "$PCAP_CONFIG"; then
9675 #
9676 # The libpcap directory has a pcap-config script.
9677 # Use it to get any additioal libraries needed
9678 # to link with the libpcap archive library in
9679 # that directory
9680 #
9681 libpcap="$libpcap `\"$PCAP_CONFIG\" --additional-libs --static`"
9682 fi
9683 fi
9684 LIBS="$libpcap $LIBS"
9685 if ! test -n "$PCAP_CONFIG" ; then
9686 #
9687 # We don't have pcap-config; find out any additional link flags
9688 # we need. (If we have pcap-config, we assume it tells us what
9689 # we need.)
9690 #
9691 case "$host_os" in
9692
9693 aix*)
9694 #
9695 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
9696 # present, as we use the STREAMS routines.
9697 #
9698 # (XXX - true only if we're linking with a static libpcap?)
9699 #
9700 pseexe="/lib/pse.exp"
9701 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9702 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9703 if test -f $pseexe ; then
9704 { echo "$as_me:$LINENO: result: yes" >&5
9705 echo "${ECHO_T}yes" >&6; }
9706 LIBS="$LIBS -I:$pseexe"
9707 fi
9708
9709 #
9710 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
9711 # we use them to load the BPF module.
9712 #
9713 # (XXX - true only if we're linking with a static libpcap?)
9714 #
9715 LIBS="$LIBS -lodm -lcfg"
9716 ;;
9717 esac
9718 fi
9719
9720 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9721 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9722 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h. */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9733 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9734
9735 /* System header to define __stub macros and hopefully few prototypes,
9736 which can conflict with char pcap_list_datalinks (); below.
9737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9738 <limits.h> exists even on freestanding compilers. */
9739
9740 #ifdef __STDC__
9741 # include <limits.h>
9742 #else
9743 # include <assert.h>
9744 #endif
9745
9746 #undef pcap_list_datalinks
9747
9748 /* Override any GCC internal prototype to avoid an error.
9749 Use char because int might match the return type of a GCC
9750 builtin and then its argument prototype would still apply. */
9751 #ifdef __cplusplus
9752 extern "C"
9753 #endif
9754 char pcap_list_datalinks ();
9755 /* The GNU C library defines this for functions which it implements
9756 to always fail with ENOSYS. Some functions are actually named
9757 something starting with __ and the normal name is an alias. */
9758 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9759 choke me
9760 #endif
9761
9762 int
9763 main ()
9764 {
9765 return pcap_list_datalinks ();
9766 ;
9767 return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (ac_try="$ac_link"
9772 case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_link") 2>conftest.er1
9778 ac_status=$?
9779 grep -v '^ *+' conftest.er1 >conftest.err
9780 rm -f conftest.er1
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } && {
9784 test -z "$ac_c_werror_flag" ||
9785 test ! -s conftest.err
9786 } && test -s conftest$ac_exeext &&
9787 $as_test_x conftest$ac_exeext; then
9788 ac_cv_func_pcap_list_datalinks=yes
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793 ac_cv_func_pcap_list_datalinks=no
9794 fi
9795
9796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9797 conftest$ac_exeext conftest.$ac_ext
9798 fi
9799 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9800 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9801 if test $ac_cv_func_pcap_list_datalinks = yes; then
9802 cat >>confdefs.h <<\_ACEOF
9803 #define HAVE_PCAP_LIST_DATALINKS 1
9804 _ACEOF
9805
9806 else
9807
9808 case " $LIBOBJS " in
9809 *" datalinks.$ac_objext "* ) ;;
9810 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9811 ;;
9812 esac
9813
9814
9815 fi
9816
9817 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9818 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9819 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822 cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h. */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9828 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9830 #define pcap_set_datalink innocuous_pcap_set_datalink
9831
9832 /* System header to define __stub macros and hopefully few prototypes,
9833 which can conflict with char pcap_set_datalink (); below.
9834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9835 <limits.h> exists even on freestanding compilers. */
9836
9837 #ifdef __STDC__
9838 # include <limits.h>
9839 #else
9840 # include <assert.h>
9841 #endif
9842
9843 #undef pcap_set_datalink
9844
9845 /* Override any GCC internal prototype to avoid an error.
9846 Use char because int might match the return type of a GCC
9847 builtin and then its argument prototype would still apply. */
9848 #ifdef __cplusplus
9849 extern "C"
9850 #endif
9851 char pcap_set_datalink ();
9852 /* The GNU C library defines this for functions which it implements
9853 to always fail with ENOSYS. Some functions are actually named
9854 something starting with __ and the normal name is an alias. */
9855 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9856 choke me
9857 #endif
9858
9859 int
9860 main ()
9861 {
9862 return pcap_set_datalink ();
9863 ;
9864 return 0;
9865 }
9866 _ACEOF
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (ac_try="$ac_link"
9869 case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_link") 2>conftest.er1
9875 ac_status=$?
9876 grep -v '^ *+' conftest.er1 >conftest.err
9877 rm -f conftest.er1
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } && {
9881 test -z "$ac_c_werror_flag" ||
9882 test ! -s conftest.err
9883 } && test -s conftest$ac_exeext &&
9884 $as_test_x conftest$ac_exeext; then
9885 ac_cv_func_pcap_set_datalink=yes
9886 else
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 ac_cv_func_pcap_set_datalink=no
9891 fi
9892
9893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9894 conftest$ac_exeext conftest.$ac_ext
9895 fi
9896 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9897 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9898 if test $ac_cv_func_pcap_set_datalink = yes; then
9899 cat >>confdefs.h <<\_ACEOF
9900 #define HAVE_PCAP_SET_DATALINK 1
9901 _ACEOF
9902
9903 fi
9904
9905 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9906 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9907 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 else
9910 cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h. */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9916 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9918 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9919
9920 /* System header to define __stub macros and hopefully few prototypes,
9921 which can conflict with char pcap_datalink_name_to_val (); below.
9922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9923 <limits.h> exists even on freestanding compilers. */
9924
9925 #ifdef __STDC__
9926 # include <limits.h>
9927 #else
9928 # include <assert.h>
9929 #endif
9930
9931 #undef pcap_datalink_name_to_val
9932
9933 /* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 char pcap_datalink_name_to_val ();
9940 /* The GNU C library defines this for functions which it implements
9941 to always fail with ENOSYS. Some functions are actually named
9942 something starting with __ and the normal name is an alias. */
9943 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9944 choke me
9945 #endif
9946
9947 int
9948 main ()
9949 {
9950 return pcap_datalink_name_to_val ();
9951 ;
9952 return 0;
9953 }
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (ac_try="$ac_link"
9957 case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_link") 2>conftest.er1
9963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest$ac_exeext &&
9972 $as_test_x conftest$ac_exeext; then
9973 ac_cv_func_pcap_datalink_name_to_val=yes
9974 else
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9977
9978 ac_cv_func_pcap_datalink_name_to_val=no
9979 fi
9980
9981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982 conftest$ac_exeext conftest.$ac_ext
9983 fi
9984 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9985 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9986 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9987
9988 cat >>confdefs.h <<\_ACEOF
9989 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9990 _ACEOF
9991
9992 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9993 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9994 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997 cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h. */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
10004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10005 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
10006
10007 /* System header to define __stub macros and hopefully few prototypes,
10008 which can conflict with char pcap_datalink_val_to_description (); below.
10009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10010 <limits.h> exists even on freestanding compilers. */
10011
10012 #ifdef __STDC__
10013 # include <limits.h>
10014 #else
10015 # include <assert.h>
10016 #endif
10017
10018 #undef pcap_datalink_val_to_description
10019
10020 /* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
10023 #ifdef __cplusplus
10024 extern "C"
10025 #endif
10026 char pcap_datalink_val_to_description ();
10027 /* The GNU C library defines this for functions which it implements
10028 to always fail with ENOSYS. Some functions are actually named
10029 something starting with __ and the normal name is an alias. */
10030 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
10031 choke me
10032 #endif
10033
10034 int
10035 main ()
10036 {
10037 return pcap_datalink_val_to_description ();
10038 ;
10039 return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } && {
10056 test -z "$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10058 } && test -s conftest$ac_exeext &&
10059 $as_test_x conftest$ac_exeext; then
10060 ac_cv_func_pcap_datalink_val_to_description=yes
10061 else
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 ac_cv_func_pcap_datalink_val_to_description=no
10066 fi
10067
10068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10069 conftest$ac_exeext conftest.$ac_ext
10070 fi
10071 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
10072 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
10073 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
10074 cat >>confdefs.h <<\_ACEOF
10075 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
10076 _ACEOF
10077
10078 else
10079
10080 case " $LIBOBJS " in
10081 *" dlnames.$ac_objext "* ) ;;
10082 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
10083 ;;
10084 esac
10085
10086
10087 fi
10088
10089
10090 else
10091
10092 case " $LIBOBJS " in
10093 *" dlnames.$ac_objext "* ) ;;
10094 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
10095 ;;
10096 esac
10097
10098
10099 fi
10100
10101
10102
10103 for ac_func in pcap_breakloop
10104 do
10105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 else
10111 cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h. */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10119 #define $ac_func innocuous_$ac_func
10120
10121 /* System header to define __stub macros and hopefully few prototypes,
10122 which can conflict with char $ac_func (); below.
10123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10124 <limits.h> exists even on freestanding compilers. */
10125
10126 #ifdef __STDC__
10127 # include <limits.h>
10128 #else
10129 # include <assert.h>
10130 #endif
10131
10132 #undef $ac_func
10133
10134 /* Override any GCC internal prototype to avoid an error.
10135 Use char because int might match the return type of a GCC
10136 builtin and then its argument prototype would still apply. */
10137 #ifdef __cplusplus
10138 extern "C"
10139 #endif
10140 char $ac_func ();
10141 /* The GNU C library defines this for functions which it implements
10142 to always fail with ENOSYS. Some functions are actually named
10143 something starting with __ and the normal name is an alias. */
10144 #if defined __stub_$ac_func || defined __stub___$ac_func
10145 choke me
10146 #endif
10147
10148 int
10149 main ()
10150 {
10151 return $ac_func ();
10152 ;
10153 return 0;
10154 }
10155 _ACEOF
10156 rm -f conftest.$ac_objext conftest$ac_exeext
10157 if { (ac_try="$ac_link"
10158 case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10161 esac
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_link") 2>conftest.er1
10164 ac_status=$?
10165 grep -v '^ *+' conftest.er1 >conftest.err
10166 rm -f conftest.er1
10167 cat conftest.err >&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } && {
10170 test -z "$ac_c_werror_flag" ||
10171 test ! -s conftest.err
10172 } && test -s conftest$ac_exeext &&
10173 $as_test_x conftest$ac_exeext; then
10174 eval "$as_ac_var=yes"
10175 else
10176 echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10178
10179 eval "$as_ac_var=no"
10180 fi
10181
10182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10183 conftest$ac_exeext conftest.$ac_ext
10184 fi
10185 ac_res=`eval echo '${'$as_ac_var'}'`
10186 { echo "$as_me:$LINENO: result: $ac_res" >&5
10187 echo "${ECHO_T}$ac_res" >&6; }
10188 if test `eval echo '${'$as_ac_var'}'` = yes; then
10189 cat >>confdefs.h <<_ACEOF
10190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10191 _ACEOF
10192
10193 fi
10194 done
10195
10196
10197 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
10198 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
10199 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202 cat >conftest.$ac_ext <<_ACEOF
10203 /* confdefs.h. */
10204 _ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
10209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10210 #define pcap_dump_ftell innocuous_pcap_dump_ftell
10211
10212 /* System header to define __stub macros and hopefully few prototypes,
10213 which can conflict with char pcap_dump_ftell (); below.
10214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10215 <limits.h> exists even on freestanding compilers. */
10216
10217 #ifdef __STDC__
10218 # include <limits.h>
10219 #else
10220 # include <assert.h>
10221 #endif
10222
10223 #undef pcap_dump_ftell
10224
10225 /* Override any GCC internal prototype to avoid an error.
10226 Use char because int might match the return type of a GCC
10227 builtin and then its argument prototype would still apply. */
10228 #ifdef __cplusplus
10229 extern "C"
10230 #endif
10231 char pcap_dump_ftell ();
10232 /* The GNU C library defines this for functions which it implements
10233 to always fail with ENOSYS. Some functions are actually named
10234 something starting with __ and the normal name is an alias. */
10235 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
10236 choke me
10237 #endif
10238
10239 int
10240 main ()
10241 {
10242 return pcap_dump_ftell ();
10243 ;
10244 return 0;
10245 }
10246 _ACEOF
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (ac_try="$ac_link"
10249 case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10252 esac
10253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_link") 2>conftest.er1
10255 ac_status=$?
10256 grep -v '^ *+' conftest.er1 >conftest.err
10257 rm -f conftest.er1
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && {
10261 test -z "$ac_c_werror_flag" ||
10262 test ! -s conftest.err
10263 } && test -s conftest$ac_exeext &&
10264 $as_test_x conftest$ac_exeext; then
10265 ac_cv_func_pcap_dump_ftell=yes
10266 else
10267 echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10269
10270 ac_cv_func_pcap_dump_ftell=no
10271 fi
10272
10273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10274 conftest$ac_exeext conftest.$ac_ext
10275 fi
10276 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
10277 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
10278 if test $ac_cv_func_pcap_dump_ftell = yes; then
10279 cat >>confdefs.h <<\_ACEOF
10280 #define HAVE_PCAP_DUMP_FTELL 1
10281 _ACEOF
10282
10283 else
10284
10285 case " $LIBOBJS " in
10286 *" pcap_dump_ftell.$ac_objext "* ) ;;
10287 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
10288 ;;
10289 esac
10290
10291
10292 fi
10293
10294
10295
10296 #
10297 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
10298 # libraries (e.g., "-lsocket -lnsl" on Solaris).
10299 #
10300 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10301 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
10302 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
10303 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
10304 # it does not ship with a libc symbol "inet_ntop()", it ships with
10305 # "_inet_ntop()", and has a #define macro in one of the system headers
10306 # to rename it.
10307 #
10308 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
10309 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10310 cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h. */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10316 #include <sys/types.h>
10317 #include <sys/socket.h>
10318 #include <netinet/in.h>
10319 #include <arpa/inet.h>
10320 int
10321 main ()
10322 {
10323 char src[4], dst[128];
10324 inet_ntop(AF_INET, src, dst, sizeof(dst));
10325 ;
10326 return 0;
10327 }
10328 _ACEOF
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (ac_try="$ac_link"
10331 case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10334 esac
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_link") 2>conftest.er1
10337 ac_status=$?
10338 grep -v '^ *+' conftest.er1 >conftest.err
10339 rm -f conftest.er1
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } && {
10343 test -z "$ac_c_werror_flag" ||
10344 test ! -s conftest.err
10345 } && test -s conftest$ac_exeext &&
10346 $as_test_x conftest$ac_exeext; then
10347 { echo "$as_me:$LINENO: result: yes" >&5
10348 echo "${ECHO_T}yes" >&6; }
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10352
10353 { echo "$as_me:$LINENO: result: no" >&5
10354 echo "${ECHO_T}no" >&6; }
10355 case " $LIBOBJS " in
10356 *" inet_ntop.$ac_objext "* ) ;;
10357 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10358 ;;
10359 esac
10360
10361 fi
10362
10363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10364 conftest$ac_exeext conftest.$ac_ext
10365 { echo "$as_me:$LINENO: checking for inet_pton" >&5
10366 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h. */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 #include <sys/types.h>
10374 #include <sys/socket.h>
10375 #include <netinet/in.h>
10376 #include <arpa/inet.h>
10377 int
10378 main ()
10379 {
10380 char src[128], dst[4];
10381 inet_pton(AF_INET, src, dst);
10382 ;
10383 return 0;
10384 }
10385 _ACEOF
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest$ac_exeext &&
10403 $as_test_x conftest$ac_exeext; then
10404 { echo "$as_me:$LINENO: result: yes" >&5
10405 echo "${ECHO_T}yes" >&6; }
10406 else
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410 { echo "$as_me:$LINENO: result: no" >&5
10411 echo "${ECHO_T}no" >&6; }
10412 case " $LIBOBJS " in
10413 *" inet_pton.$ac_objext "* ) ;;
10414 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
10415 ;;
10416 esac
10417
10418 fi
10419
10420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10421 conftest$ac_exeext conftest.$ac_ext
10422 { echo "$as_me:$LINENO: checking for inet_aton" >&5
10423 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10424 cat >conftest.$ac_ext <<_ACEOF
10425 /* confdefs.h. */
10426 _ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 #include <sys/types.h>
10431 #include <netinet/in.h>
10432 #include <arpa/inet.h>
10433 int
10434 main ()
10435 {
10436 char src[128];
10437 struct in_addr dst;
10438 inet_aton(src, &dst);
10439 ;
10440 return 0;
10441 }
10442 _ACEOF
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (ac_try="$ac_link"
10445 case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_link") 2>conftest.er1
10451 ac_status=$?
10452 grep -v '^ *+' conftest.er1 >conftest.err
10453 rm -f conftest.er1
10454 cat conftest.err >&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && {
10457 test -z "$ac_c_werror_flag" ||
10458 test ! -s conftest.err
10459 } && test -s conftest$ac_exeext &&
10460 $as_test_x conftest$ac_exeext; then
10461 { echo "$as_me:$LINENO: result: yes" >&5
10462 echo "${ECHO_T}yes" >&6; }
10463 else
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10466
10467 { echo "$as_me:$LINENO: result: no" >&5
10468 echo "${ECHO_T}no" >&6; }
10469 case " $LIBOBJS " in
10470 *" inet_aton.$ac_objext "* ) ;;
10471 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10472 ;;
10473 esac
10474
10475 fi
10476
10477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10478 conftest$ac_exeext conftest.$ac_ext
10479
10480 #
10481 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10482 #
10483 # You are in a twisty little maze of UN*Xes, all different.
10484 # Some might not have ether_ntohost().
10485 # Some might have it, but not declare it in any header file.
10486 # Some might have it, but declare it in <netinet/if_ether.h>.
10487 # Some might have it, but declare it in <netinet/ether.h>
10488 # (And some might have it but document it as something declared in
10489 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10490 #
10491 # Before you is a C compiler.
10492 #
10493
10494 for ac_func in ether_ntohost
10495 do
10496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502 cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h. */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10510 #define $ac_func innocuous_$ac_func
10511
10512 /* System header to define __stub macros and hopefully few prototypes,
10513 which can conflict with char $ac_func (); below.
10514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10515 <limits.h> exists even on freestanding compilers. */
10516
10517 #ifdef __STDC__
10518 # include <limits.h>
10519 #else
10520 # include <assert.h>
10521 #endif
10522
10523 #undef $ac_func
10524
10525 /* Override any GCC internal prototype to avoid an error.
10526 Use char because int might match the return type of a GCC
10527 builtin and then its argument prototype would still apply. */
10528 #ifdef __cplusplus
10529 extern "C"
10530 #endif
10531 char $ac_func ();
10532 /* The GNU C library defines this for functions which it implements
10533 to always fail with ENOSYS. Some functions are actually named
10534 something starting with __ and the normal name is an alias. */
10535 #if defined __stub_$ac_func || defined __stub___$ac_func
10536 choke me
10537 #endif
10538
10539 int
10540 main ()
10541 {
10542 return $ac_func ();
10543 ;
10544 return 0;
10545 }
10546 _ACEOF
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (ac_try="$ac_link"
10549 case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_link") 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest$ac_exeext &&
10564 $as_test_x conftest$ac_exeext; then
10565 eval "$as_ac_var=yes"
10566 else
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10569
10570 eval "$as_ac_var=no"
10571 fi
10572
10573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10574 conftest$ac_exeext conftest.$ac_ext
10575 fi
10576 ac_res=`eval echo '${'$as_ac_var'}'`
10577 { echo "$as_me:$LINENO: result: $ac_res" >&5
10578 echo "${ECHO_T}$ac_res" >&6; }
10579 if test `eval echo '${'$as_ac_var'}'` = yes; then
10580 cat >>confdefs.h <<_ACEOF
10581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10582 _ACEOF
10583
10584 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10585 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10586 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10587 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 else
10589
10590 if test "$cross_compiling" = yes; then
10591 ac_cv_buggy_ether_ntohost="not while cross-compiling"
10592 else
10593 cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h. */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10599
10600 #include <netdb.h>
10601 #include <sys/types.h>
10602 #include <sys/param.h>
10603 #include <sys/socket.h>
10604
10605 int
10606 main(int argc, char **argv)
10607 {
10608 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10609 char name[MAXHOSTNAMELEN];
10610
10611 ether_ntohost(name, (struct ether_addr *)ea);
10612 exit(0);
10613 }
10614
10615 _ACEOF
10616 rm -f conftest$ac_exeext
10617 if { (ac_try="$ac_link"
10618 case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10621 esac
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_link") 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10627 { (case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10630 esac
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_try") 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636 ac_cv_buggy_ether_ntohost=no
10637 else
10638 echo "$as_me: program exited with status $ac_status" >&5
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642 ( exit $ac_status )
10643 ac_cv_buggy_ether_ntohost=yes
10644 fi
10645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10646 fi
10647
10648
10649 fi
10650 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10651 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10652 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10653 cat >>confdefs.h <<\_ACEOF
10654 #define USE_ETHER_NTOHOST 1
10655 _ACEOF
10656
10657 fi
10658
10659 fi
10660 done
10661
10662 if test "$ac_cv_func_ether_ntohost" = yes -a \
10663 "$ac_cv_buggy_ether_ntohost" = "no"; then
10664 #
10665 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10666 #
10667 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10668 #
10669 # Yes. Does it declare ether_ntohost()?
10670 #
10671 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10672 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10673 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 else
10676 cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h. */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682
10683 #include <sys/types.h>
10684 #include <sys/socket.h>
10685 #include <netinet/in.h>
10686 #include <arpa/inet.h>
10687 struct mbuf;
10688 struct rtentry;
10689 #include <net/if.h>
10690 #include <netinet/if_ether.h>
10691
10692
10693 int
10694 main ()
10695 {
10696 #ifndef ether_ntohost
10697 (void) ether_ntohost;
10698 #endif
10699
10700 ;
10701 return 0;
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 ac_cv_have_decl_ether_ntohost=yes
10722 else
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10725
10726 ac_cv_have_decl_ether_ntohost=no
10727 fi
10728
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 fi
10731 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10732 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10733 if test $ac_cv_have_decl_ether_ntohost = yes; then
10734
10735
10736 cat >>confdefs.h <<\_ACEOF
10737 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10738 _ACEOF
10739
10740
10741 fi
10742
10743 fi
10744 #
10745 # Did that succeed?
10746 #
10747 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10748 #
10749 # No, how about <netinet/ether.h>, as on Linux?
10750 #
10751
10752 for ac_header in netinet/ether.h
10753 do
10754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 fi
10761 ac_res=`eval echo '${'$as_ac_Header'}'`
10762 { echo "$as_me:$LINENO: result: $ac_res" >&5
10763 echo "${ECHO_T}$ac_res" >&6; }
10764 else
10765 # Is the header compilable?
10766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10768 cat >conftest.$ac_ext <<_ACEOF
10769 /* confdefs.h. */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10774 $ac_includes_default
10775 #include <$ac_header>
10776 _ACEOF
10777 rm -f conftest.$ac_objext
10778 if { (ac_try="$ac_compile"
10779 case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782 esac
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_compile") 2>conftest.er1
10785 ac_status=$?
10786 grep -v '^ *+' conftest.er1 >conftest.err
10787 rm -f conftest.er1
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } && {
10791 test -z "$ac_c_werror_flag" ||
10792 test ! -s conftest.err
10793 } && test -s conftest.$ac_objext; then
10794 ac_header_compiler=yes
10795 else
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799 ac_header_compiler=no
10800 fi
10801
10802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10804 echo "${ECHO_T}$ac_header_compiler" >&6; }
10805
10806 # Is the header present?
10807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10809 cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h. */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 #include <$ac_header>
10816 _ACEOF
10817 if { (ac_try="$ac_cpp conftest.$ac_ext"
10818 case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10821 esac
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10824 ac_status=$?
10825 grep -v '^ *+' conftest.er1 >conftest.err
10826 rm -f conftest.er1
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } >/dev/null && {
10830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10831 test ! -s conftest.err
10832 }; then
10833 ac_header_preproc=yes
10834 else
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10837
10838 ac_header_preproc=no
10839 fi
10840
10841 rm -f conftest.err conftest.$ac_ext
10842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10843 echo "${ECHO_T}$ac_header_preproc" >&6; }
10844
10845 # So? What about this header?
10846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10847 yes:no: )
10848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10852 ac_header_preproc=yes
10853 ;;
10854 no:yes:* )
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10867
10868 ;;
10869 esac
10870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875 eval "$as_ac_Header=\$ac_header_preproc"
10876 fi
10877 ac_res=`eval echo '${'$as_ac_Header'}'`
10878 { echo "$as_me:$LINENO: result: $ac_res" >&5
10879 echo "${ECHO_T}$ac_res" >&6; }
10880
10881 fi
10882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10883 cat >>confdefs.h <<_ACEOF
10884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10885 _ACEOF
10886
10887 fi
10888
10889 done
10890
10891 if test "$ac_cv_header_netinet_ether_h" = yes; then
10892 #
10893 # We have it - does it declare ether_ntohost()?
10894 # Unset ac_cv_have_decl_ether_ntohost so we don't
10895 # treat the previous failure as a cached value and
10896 # suppress the next test.
10897 #
10898 unset ac_cv_have_decl_ether_ntohost
10899 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10900 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10901 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904 cat >conftest.$ac_ext <<_ACEOF
10905 /* confdefs.h. */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10910
10911 #include <netinet/ether.h>
10912
10913
10914 int
10915 main ()
10916 {
10917 #ifndef ether_ntohost
10918 (void) ether_ntohost;
10919 #endif
10920
10921 ;
10922 return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext
10926 if { (ac_try="$ac_compile"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_compile") 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && {
10939 test -z "$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10941 } && test -s conftest.$ac_objext; then
10942 ac_cv_have_decl_ether_ntohost=yes
10943 else
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10946
10947 ac_cv_have_decl_ether_ntohost=no
10948 fi
10949
10950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10951 fi
10952 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10953 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10954 if test $ac_cv_have_decl_ether_ntohost = yes; then
10955
10956
10957 cat >>confdefs.h <<\_ACEOF
10958 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10959 _ACEOF
10960
10961
10962 fi
10963
10964 fi
10965 fi
10966 #
10967 # Is ether_ntohost() declared?
10968 #
10969 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10970 #
10971 # No, we'll have to declare it ourselves.
10972 # Do we have "struct ether_addr"?
10973 #
10974 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10975 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10976 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979 cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h. */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10985
10986 #include <sys/types.h>
10987 #include <sys/socket.h>
10988 #include <netinet/in.h>
10989 #include <arpa/inet.h>
10990 struct mbuf;
10991 struct rtentry;
10992 #include <net/if.h>
10993 #include <netinet/if_ether.h>
10994
10995
10996 typedef struct ether_addr ac__type_new_;
10997 int
10998 main ()
10999 {
11000 if ((ac__type_new_ *) 0)
11001 return 0;
11002 if (sizeof (ac__type_new_))
11003 return 0;
11004 ;
11005 return 0;
11006 }
11007 _ACEOF
11008 rm -f conftest.$ac_objext
11009 if { (ac_try="$ac_compile"
11010 case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_compile") 2>conftest.er1
11016 ac_status=$?
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } && {
11022 test -z "$ac_c_werror_flag" ||
11023 test ! -s conftest.err
11024 } && test -s conftest.$ac_objext; then
11025 ac_cv_type_struct_ether_addr=yes
11026 else
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11029
11030 ac_cv_type_struct_ether_addr=no
11031 fi
11032
11033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 fi
11035 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
11036 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
11037 if test $ac_cv_type_struct_ether_addr = yes; then
11038
11039 cat >>confdefs.h <<_ACEOF
11040 #define HAVE_STRUCT_ETHER_ADDR 1
11041 _ACEOF
11042
11043
11044 fi
11045
11046
11047 cat >>confdefs.h <<\_ACEOF
11048 #define HAVE_DECL_ETHER_NTOHOST 0
11049 _ACEOF
11050
11051 else
11052
11053 cat >>confdefs.h <<\_ACEOF
11054 #define HAVE_DECL_ETHER_NTOHOST 1
11055 _ACEOF
11056
11057 fi
11058 fi
11059
11060 # libdlpi is needed for Solaris 11 and later.
11061 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
11062 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
11063 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 else
11066 ac_check_lib_save_LIBS=$LIBS
11067 LIBS="-ldlpi -L/lib $LIBS"
11068 cat >conftest.$ac_ext <<_ACEOF
11069 /* confdefs.h. */
11070 _ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h. */
11074
11075 /* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11078 #ifdef __cplusplus
11079 extern "C"
11080 #endif
11081 char dlpi_walk ();
11082 int
11083 main ()
11084 {
11085 return dlpi_walk ();
11086 ;
11087 return 0;
11088 }
11089 _ACEOF
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (ac_try="$ac_link"
11092 case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11095 esac
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_link") 2>conftest.er1
11098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && {
11104 test -z "$ac_c_werror_flag" ||
11105 test ! -s conftest.err
11106 } && test -s conftest$ac_exeext &&
11107 $as_test_x conftest$ac_exeext; then
11108 ac_cv_lib_dlpi_dlpi_walk=yes
11109 else
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113 ac_cv_lib_dlpi_dlpi_walk=no
11114 fi
11115
11116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11117 conftest$ac_exeext conftest.$ac_ext
11118 LIBS=$ac_check_lib_save_LIBS
11119 fi
11120 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
11121 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
11122 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
11123 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
11124 fi
11125
11126
11127
11128 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11129 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
11130 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133 cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h. */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139
11140 # include <sys/types.h>
11141 # include <sys/socket.h>
11142 int
11143 main ()
11144 {
11145 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11146 ;
11147 return 0;
11148 }
11149 _ACEOF
11150 rm -f conftest.$ac_objext
11151 if { (ac_try="$ac_compile"
11152 case "(($ac_try" in
11153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154 *) ac_try_echo=$ac_try;;
11155 esac
11156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157 (eval "$ac_compile") 2>conftest.er1
11158 ac_status=$?
11159 grep -v '^ *+' conftest.er1 >conftest.err
11160 rm -f conftest.er1
11161 cat conftest.err >&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } && {
11164 test -z "$ac_c_werror_flag" ||
11165 test ! -s conftest.err
11166 } && test -s conftest.$ac_objext; then
11167 ac_cv_sockaddr_has_sa_len=yes
11168 else
11169 echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11171
11172 ac_cv_sockaddr_has_sa_len=no
11173 fi
11174
11175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11176 fi
11177
11178 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
11179 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
11180 if test $ac_cv_sockaddr_has_sa_len = yes ; then
11181 cat >>confdefs.h <<\_ACEOF
11182 #define HAVE_SOCKADDR_SA_LEN 1
11183 _ACEOF
11184
11185 fi
11186
11187 if test "$ac_cv_sockaddr_has_sa_len" = no; then
11188 missing_includes=yes
11189 fi
11190
11191 #
11192 # Do we have the new open API? Check for pcap_create, and assume that,
11193 # if we do, we also have pcap_activate() and the other new routines.
11194
11195 for ac_func in pcap_create
11196 do
11197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203 cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h. */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11211 #define $ac_func innocuous_$ac_func
11212
11213 /* System header to define __stub macros and hopefully few prototypes,
11214 which can conflict with char $ac_func (); below.
11215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11216 <limits.h> exists even on freestanding compilers. */
11217
11218 #ifdef __STDC__
11219 # include <limits.h>
11220 #else
11221 # include <assert.h>
11222 #endif
11223
11224 #undef $ac_func
11225
11226 /* Override any GCC internal prototype to avoid an error.
11227 Use char because int might match the return type of a GCC
11228 builtin and then its argument prototype would still apply. */
11229 #ifdef __cplusplus
11230 extern "C"
11231 #endif
11232 char $ac_func ();
11233 /* The GNU C library defines this for functions which it implements
11234 to always fail with ENOSYS. Some functions are actually named
11235 something starting with __ and the normal name is an alias. */
11236 #if defined __stub_$ac_func || defined __stub___$ac_func
11237 choke me
11238 #endif
11239
11240 int
11241 main ()
11242 {
11243 return $ac_func ();
11244 ;
11245 return 0;
11246 }
11247 _ACEOF
11248 rm -f conftest.$ac_objext conftest$ac_exeext
11249 if { (ac_try="$ac_link"
11250 case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11253 esac
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_link") 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } && {
11262 test -z "$ac_c_werror_flag" ||
11263 test ! -s conftest.err
11264 } && test -s conftest$ac_exeext &&
11265 $as_test_x conftest$ac_exeext; then
11266 eval "$as_ac_var=yes"
11267 else
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11270
11271 eval "$as_ac_var=no"
11272 fi
11273
11274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11275 conftest$ac_exeext conftest.$ac_ext
11276 fi
11277 ac_res=`eval echo '${'$as_ac_var'}'`
11278 { echo "$as_me:$LINENO: result: $ac_res" >&5
11279 echo "${ECHO_T}$ac_res" >&6; }
11280 if test `eval echo '${'$as_ac_var'}'` = yes; then
11281 cat >>confdefs.h <<_ACEOF
11282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11283 _ACEOF
11284
11285 fi
11286 done
11287
11288
11289
11290
11291
11292 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
11293 do
11294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300 cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h. */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11308 #define $ac_func innocuous_$ac_func
11309
11310 /* System header to define __stub macros and hopefully few prototypes,
11311 which can conflict with char $ac_func (); below.
11312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11313 <limits.h> exists even on freestanding compilers. */
11314
11315 #ifdef __STDC__
11316 # include <limits.h>
11317 #else
11318 # include <assert.h>
11319 #endif
11320
11321 #undef $ac_func
11322
11323 /* Override any GCC internal prototype to avoid an error.
11324 Use char because int might match the return type of a GCC
11325 builtin and then its argument prototype would still apply. */
11326 #ifdef __cplusplus
11327 extern "C"
11328 #endif
11329 char $ac_func ();
11330 /* The GNU C library defines this for functions which it implements
11331 to always fail with ENOSYS. Some functions are actually named
11332 something starting with __ and the normal name is an alias. */
11333 #if defined __stub_$ac_func || defined __stub___$ac_func
11334 choke me
11335 #endif
11336
11337 int
11338 main ()
11339 {
11340 return $ac_func ();
11341 ;
11342 return 0;
11343 }
11344 _ACEOF
11345 rm -f conftest.$ac_objext conftest$ac_exeext
11346 if { (ac_try="$ac_link"
11347 case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11350 esac
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_link") 2>conftest.er1
11353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } && {
11359 test -z "$ac_c_werror_flag" ||
11360 test ! -s conftest.err
11361 } && test -s conftest$ac_exeext &&
11362 $as_test_x conftest$ac_exeext; then
11363 eval "$as_ac_var=yes"
11364 else
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11367
11368 eval "$as_ac_var=no"
11369 fi
11370
11371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11372 conftest$ac_exeext conftest.$ac_ext
11373 fi
11374 ac_res=`eval echo '${'$as_ac_var'}'`
11375 { echo "$as_me:$LINENO: result: $ac_res" >&5
11376 echo "${ECHO_T}$ac_res" >&6; }
11377 if test `eval echo '${'$as_ac_var'}'` = yes; then
11378 cat >>confdefs.h <<_ACEOF
11379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11380 _ACEOF
11381
11382 fi
11383 done
11384
11385 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11386 savedppflags="$CPPLAGS"
11387 CPPFLAGS="$CPPFLAGS $V_INCLS"
11388 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11389 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
11390 if test "${ac_cv_type_pcap_if_t+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393 cat >conftest.$ac_ext <<_ACEOF
11394 /* confdefs.h. */
11395 _ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11399 #include <pcap.h>
11400
11401 typedef pcap_if_t ac__type_new_;
11402 int
11403 main ()
11404 {
11405 if ((ac__type_new_ *) 0)
11406 return 0;
11407 if (sizeof (ac__type_new_))
11408 return 0;
11409 ;
11410 return 0;
11411 }
11412 _ACEOF
11413 rm -f conftest.$ac_objext
11414 if { (ac_try="$ac_compile"
11415 case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11418 esac
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_compile") 2>conftest.er1
11421 ac_status=$?
11422 grep -v '^ *+' conftest.er1 >conftest.err
11423 rm -f conftest.er1
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } && {
11427 test -z "$ac_c_werror_flag" ||
11428 test ! -s conftest.err
11429 } && test -s conftest.$ac_objext; then
11430 ac_cv_type_pcap_if_t=yes
11431 else
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11434
11435 ac_cv_type_pcap_if_t=no
11436 fi
11437
11438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439 fi
11440 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11441 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
11442 if test $ac_cv_type_pcap_if_t = yes; then
11443
11444 cat >>confdefs.h <<_ACEOF
11445 #define HAVE_PCAP_IF_T 1
11446 _ACEOF
11447
11448
11449 fi
11450
11451 CPPFLAGS="$savedcppflags"
11452 fi
11453
11454 if test $ac_cv_func_pcap_lib_version = "no" ; then
11455 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11456 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
11457 cat >conftest.$ac_ext <<_ACEOF
11458 /* confdefs.h. */
11459 _ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11463
11464 int
11465 main ()
11466 {
11467
11468 extern char pcap_version[];
11469
11470 return (int)pcap_version;
11471
11472 ;
11473 return 0;
11474 }
11475 _ACEOF
11476 rm -f conftest.$ac_objext conftest$ac_exeext
11477 if { (ac_try="$ac_link"
11478 case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11481 esac
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_link") 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } && {
11490 test -z "$ac_c_werror_flag" ||
11491 test ! -s conftest.err
11492 } && test -s conftest$ac_exeext &&
11493 $as_test_x conftest$ac_exeext; then
11494 ac_lbl_cv_pcap_version_defined=yes
11495 else
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11498
11499 ac_lbl_cv_pcap_version_defined=no
11500 fi
11501
11502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11503 conftest$ac_exeext conftest.$ac_ext
11504 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11505 { echo "$as_me:$LINENO: result: yes" >&5
11506 echo "${ECHO_T}yes" >&6; }
11507 cat >>confdefs.h <<\_ACEOF
11508 #define HAVE_PCAP_VERSION 1
11509 _ACEOF
11510
11511 else
11512 { echo "$as_me:$LINENO: result: no" >&5
11513 echo "${ECHO_T}no" >&6; }
11514 fi
11515 fi
11516 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11517 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h. */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524
11525 int
11526 main ()
11527 {
11528
11529 extern int pcap_debug;
11530
11531 return pcap_debug;
11532
11533 ;
11534 return 0;
11535 }
11536 _ACEOF
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (ac_try="$ac_link"
11539 case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11542 esac
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_link") 2>conftest.er1
11545 ac_status=$?
11546 grep -v '^ *+' conftest.er1 >conftest.err
11547 rm -f conftest.er1
11548 cat conftest.err >&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } && {
11551 test -z "$ac_c_werror_flag" ||
11552 test ! -s conftest.err
11553 } && test -s conftest$ac_exeext &&
11554 $as_test_x conftest$ac_exeext; then
11555 ac_lbl_cv_pcap_debug_defined=yes
11556 else
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 ac_lbl_cv_pcap_debug_defined=no
11561 fi
11562
11563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11564 conftest$ac_exeext conftest.$ac_ext
11565 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11566 { echo "$as_me:$LINENO: result: yes" >&5
11567 echo "${ECHO_T}yes" >&6; }
11568 cat >>confdefs.h <<\_ACEOF
11569 #define HAVE_PCAP_DEBUG 1
11570 _ACEOF
11571
11572 else
11573 { echo "$as_me:$LINENO: result: no" >&5
11574 echo "${ECHO_T}no" >&6; }
11575 #
11576 # OK, what about "yydebug"?
11577 #
11578 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11579 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11580 cat >conftest.$ac_ext <<_ACEOF
11581 /* confdefs.h. */
11582 _ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11586
11587 int
11588 main ()
11589 {
11590
11591 extern int yydebug;
11592
11593 return yydebug;
11594
11595 ;
11596 return 0;
11597 }
11598 _ACEOF
11599 rm -f conftest.$ac_objext conftest$ac_exeext
11600 if { (ac_try="$ac_link"
11601 case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11604 esac
11605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_link") 2>conftest.er1
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } && {
11613 test -z "$ac_c_werror_flag" ||
11614 test ! -s conftest.err
11615 } && test -s conftest$ac_exeext &&
11616 $as_test_x conftest$ac_exeext; then
11617 ac_lbl_cv_yydebug_defined=yes
11618 else
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622 ac_lbl_cv_yydebug_defined=no
11623 fi
11624
11625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11626 conftest$ac_exeext conftest.$ac_ext
11627 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11628 { echo "$as_me:$LINENO: result: yes" >&5
11629 echo "${ECHO_T}yes" >&6; }
11630 cat >>confdefs.h <<\_ACEOF
11631 #define HAVE_YYDEBUG 1
11632 _ACEOF
11633
11634 else
11635 { echo "$as_me:$LINENO: result: no" >&5
11636 echo "${ECHO_T}no" >&6; }
11637 fi
11638 fi
11639
11640 for ac_func in bpf_dump
11641 do
11642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 else
11648 cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h. */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11656 #define $ac_func innocuous_$ac_func
11657
11658 /* System header to define __stub macros and hopefully few prototypes,
11659 which can conflict with char $ac_func (); below.
11660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11661 <limits.h> exists even on freestanding compilers. */
11662
11663 #ifdef __STDC__
11664 # include <limits.h>
11665 #else
11666 # include <assert.h>
11667 #endif
11668
11669 #undef $ac_func
11670
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 char $ac_func ();
11678 /* The GNU C library defines this for functions which it implements
11679 to always fail with ENOSYS. Some functions are actually named
11680 something starting with __ and the normal name is an alias. */
11681 #if defined __stub_$ac_func || defined __stub___$ac_func
11682 choke me
11683 #endif
11684
11685 int
11686 main ()
11687 {
11688 return $ac_func ();
11689 ;
11690 return 0;
11691 }
11692 _ACEOF
11693 rm -f conftest.$ac_objext conftest$ac_exeext
11694 if { (ac_try="$ac_link"
11695 case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698 esac
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_link") 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } && {
11707 test -z "$ac_c_werror_flag" ||
11708 test ! -s conftest.err
11709 } && test -s conftest$ac_exeext &&
11710 $as_test_x conftest$ac_exeext; then
11711 eval "$as_ac_var=yes"
11712 else
11713 echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11715
11716 eval "$as_ac_var=no"
11717 fi
11718
11719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11720 conftest$ac_exeext conftest.$ac_ext
11721 fi
11722 ac_res=`eval echo '${'$as_ac_var'}'`
11723 { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_var'}'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11728 _ACEOF
11729
11730 else
11731 case " $LIBOBJS " in
11732 *" $ac_func.$ac_objext "* ) ;;
11733 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11734 ;;
11735 esac
11736
11737 fi
11738 done
11739
11740
11741 V_GROUP=0
11742 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11743 V_GROUP=wheel
11744 fi
11745 #
11746 # Assume V7/BSD convention for man pages (file formats in section 5,
11747 # miscellaneous info in section 7).
11748 #
11749 MAN_FILE_FORMATS=5
11750 MAN_MISC_INFO=7
11751 case "$host_os" in
11752
11753 aix*)
11754 cat >>confdefs.h <<\_ACEOF
11755 #define _SUN 1
11756 _ACEOF
11757
11758 ;;
11759
11760 hpux*)
11761 #
11762 # Use System V conventions for man pages.
11763 #
11764 MAN_FILE_FORMATS=4
11765 MAN_MISC_INFO=5
11766 ;;
11767
11768 irix*)
11769 V_GROUP=sys
11770
11771 #
11772 # Use System V conventions for man pages.
11773 #
11774 MAN_FILE_FORMATS=4
11775 MAN_MISC_INFO=5
11776 ;;
11777
11778 osf*)
11779 V_GROUP=system
11780
11781 #
11782 # Use System V conventions for man pages.
11783 #
11784 MAN_FILE_FORMATS=4
11785 MAN_MISC_INFO=5
11786 ;;
11787
11788 solaris*)
11789 V_GROUP=sys
11790
11791 #
11792 # Use System V conventions for man pages.
11793 #
11794 MAN_FILE_FORMATS=4
11795 MAN_MISC_INFO=5
11796 ;;
11797 esac
11798
11799 if test -f /dev/bpf0 ; then
11800 V_GROUP=bpf
11801 fi
11802
11803 #
11804 # Check for some headers introduced in later versions of libpcap
11805 # and used by some printers.
11806 #
11807 savedcppflags="$CPPFLAGS"
11808 CPPFLAGS="$CPPFLAGS $V_INCLS"
11809
11810 for ac_header in pcap/bluetooth.h
11811 do
11812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 fi
11819 ac_res=`eval echo '${'$as_ac_Header'}'`
11820 { echo "$as_me:$LINENO: result: $ac_res" >&5
11821 echo "${ECHO_T}$ac_res" >&6; }
11822 else
11823 # Is the header compilable?
11824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11826 cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h. */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 $ac_includes_default
11833 #include <$ac_header>
11834 _ACEOF
11835 rm -f conftest.$ac_objext
11836 if { (ac_try="$ac_compile"
11837 case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11840 esac
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_compile") 2>conftest.er1
11843 ac_status=$?
11844 grep -v '^ *+' conftest.er1 >conftest.err
11845 rm -f conftest.er1
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } && {
11849 test -z "$ac_c_werror_flag" ||
11850 test ! -s conftest.err
11851 } && test -s conftest.$ac_objext; then
11852 ac_header_compiler=yes
11853 else
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11856
11857 ac_header_compiler=no
11858 fi
11859
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11862 echo "${ECHO_T}$ac_header_compiler" >&6; }
11863
11864 # Is the header present?
11865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11867 cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h. */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 #include <$ac_header>
11874 _ACEOF
11875 if { (ac_try="$ac_cpp conftest.$ac_ext"
11876 case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11879 esac
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } >/dev/null && {
11888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11889 test ! -s conftest.err
11890 }; then
11891 ac_header_preproc=yes
11892 else
11893 echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11895
11896 ac_header_preproc=no
11897 fi
11898
11899 rm -f conftest.err conftest.$ac_ext
11900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11901 echo "${ECHO_T}$ac_header_preproc" >&6; }
11902
11903 # So? What about this header?
11904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11905 yes:no: )
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11910 ac_header_preproc=yes
11911 ;;
11912 no:yes:* )
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11925
11926 ;;
11927 esac
11928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 else
11933 eval "$as_ac_Header=\$ac_header_preproc"
11934 fi
11935 ac_res=`eval echo '${'$as_ac_Header'}'`
11936 { echo "$as_me:$LINENO: result: $ac_res" >&5
11937 echo "${ECHO_T}$ac_res" >&6; }
11938
11939 fi
11940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11941 cat >>confdefs.h <<_ACEOF
11942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11943 _ACEOF
11944
11945 fi
11946
11947 done
11948
11949
11950 for ac_header in pcap/usb.h
11951 do
11952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 fi
11959 ac_res=`eval echo '${'$as_ac_Header'}'`
11960 { echo "$as_me:$LINENO: result: $ac_res" >&5
11961 echo "${ECHO_T}$ac_res" >&6; }
11962 else
11963 # Is the header compilable?
11964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11966 cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h. */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972 $ac_includes_default
11973 #include <$ac_header>
11974 _ACEOF
11975 rm -f conftest.$ac_objext
11976 if { (ac_try="$ac_compile"
11977 case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11980 esac
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982 (eval "$ac_compile") 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } && {
11989 test -z "$ac_c_werror_flag" ||
11990 test ! -s conftest.err
11991 } && test -s conftest.$ac_objext; then
11992 ac_header_compiler=yes
11993 else
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11996
11997 ac_header_compiler=no
11998 fi
11999
12000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12002 echo "${ECHO_T}$ac_header_compiler" >&6; }
12003
12004 # Is the header present?
12005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12007 cat >conftest.$ac_ext <<_ACEOF
12008 /* confdefs.h. */
12009 _ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h. */
12013 #include <$ac_header>
12014 _ACEOF
12015 if { (ac_try="$ac_cpp conftest.$ac_ext"
12016 case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12019 esac
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } >/dev/null && {
12028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12029 test ! -s conftest.err
12030 }; then
12031 ac_header_preproc=yes
12032 else
12033 echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12035
12036 ac_header_preproc=no
12037 fi
12038
12039 rm -f conftest.err conftest.$ac_ext
12040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12041 echo "${ECHO_T}$ac_header_preproc" >&6; }
12042
12043 # So? What about this header?
12044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12045 yes:no: )
12046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12050 ac_header_preproc=yes
12051 ;;
12052 no:yes:* )
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12065
12066 ;;
12067 esac
12068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12073 eval "$as_ac_Header=\$ac_header_preproc"
12074 fi
12075 ac_res=`eval echo '${'$as_ac_Header'}'`
12076 { echo "$as_me:$LINENO: result: $ac_res" >&5
12077 echo "${ECHO_T}$ac_res" >&6; }
12078
12079 fi
12080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12081 cat >>confdefs.h <<_ACEOF
12082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12083 _ACEOF
12084
12085 fi
12086
12087 done
12088
12089 CPPFLAGS="$savedcppflags"
12090
12091
12092 for ac_header in sys/bitypes.h
12093 do
12094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 fi
12101 ac_res=`eval echo '${'$as_ac_Header'}'`
12102 { echo "$as_me:$LINENO: result: $ac_res" >&5
12103 echo "${ECHO_T}$ac_res" >&6; }
12104 else
12105 # Is the header compilable?
12106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h. */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 $ac_includes_default
12115 #include <$ac_header>
12116 _ACEOF
12117 rm -f conftest.$ac_objext
12118 if { (ac_try="$ac_compile"
12119 case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12122 esac
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_compile") 2>conftest.er1
12125 ac_status=$?
12126 grep -v '^ *+' conftest.er1 >conftest.err
12127 rm -f conftest.er1
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } && {
12131 test -z "$ac_c_werror_flag" ||
12132 test ! -s conftest.err
12133 } && test -s conftest.$ac_objext; then
12134 ac_header_compiler=yes
12135 else
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139 ac_header_compiler=no
12140 fi
12141
12142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12144 echo "${ECHO_T}$ac_header_compiler" >&6; }
12145
12146 # Is the header present?
12147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12149 cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h. */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 #include <$ac_header>
12156 _ACEOF
12157 if { (ac_try="$ac_cpp conftest.$ac_ext"
12158 case "(($ac_try" in
12159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160 *) ac_try_echo=$ac_try;;
12161 esac
12162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12164 ac_status=$?
12165 grep -v '^ *+' conftest.er1 >conftest.err
12166 rm -f conftest.er1
12167 cat conftest.err >&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } >/dev/null && {
12170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12171 test ! -s conftest.err
12172 }; then
12173 ac_header_preproc=yes
12174 else
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12177
12178 ac_header_preproc=no
12179 fi
12180
12181 rm -f conftest.err conftest.$ac_ext
12182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12183 echo "${ECHO_T}$ac_header_preproc" >&6; }
12184
12185 # So? What about this header?
12186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12187 yes:no: )
12188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12192 ac_header_preproc=yes
12193 ;;
12194 no:yes:* )
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12207
12208 ;;
12209 esac
12210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215 eval "$as_ac_Header=\$ac_header_preproc"
12216 fi
12217 ac_res=`eval echo '${'$as_ac_Header'}'`
12218 { echo "$as_me:$LINENO: result: $ac_res" >&5
12219 echo "${ECHO_T}$ac_res" >&6; }
12220
12221 fi
12222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12223 cat >>confdefs.h <<_ACEOF
12224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12225 _ACEOF
12226
12227 fi
12228
12229 done
12230
12231
12232 { echo "$as_me:$LINENO: checking for int8_t" >&5
12233 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
12234 if test "${ac_cv_type_int8_t+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 else
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h. */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 $ac_includes_default
12244 #ifdef HAVE_SYS_BITYPES_H
12245 #include <sys/bitypes.h>
12246 #endif
12247
12248 typedef int8_t ac__type_new_;
12249 int
12250 main ()
12251 {
12252 if ((ac__type_new_ *) 0)
12253 return 0;
12254 if (sizeof (ac__type_new_))
12255 return 0;
12256 ;
12257 return 0;
12258 }
12259 _ACEOF
12260 rm -f conftest.$ac_objext
12261 if { (ac_try="$ac_compile"
12262 case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12265 esac
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267 (eval "$ac_compile") 2>conftest.er1
12268 ac_status=$?
12269 grep -v '^ *+' conftest.er1 >conftest.err
12270 rm -f conftest.er1
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } && {
12274 test -z "$ac_c_werror_flag" ||
12275 test ! -s conftest.err
12276 } && test -s conftest.$ac_objext; then
12277 ac_cv_type_int8_t=yes
12278 else
12279 echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12281
12282 ac_cv_type_int8_t=no
12283 fi
12284
12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12286 fi
12287 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
12288 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
12289 if test $ac_cv_type_int8_t = yes; then
12290 :
12291 else
12292
12293 cat >>confdefs.h <<\_ACEOF
12294 #define int8_t signed char
12295 _ACEOF
12296
12297 fi
12298
12299 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
12300 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
12301 if test "${ac_cv_type_u_int8_t+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 else
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h. */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 $ac_includes_default
12311 #ifdef HAVE_SYS_BITYPES_H
12312 #include <sys/bitypes.h>
12313 #endif
12314
12315 typedef u_int8_t ac__type_new_;
12316 int
12317 main ()
12318 {
12319 if ((ac__type_new_ *) 0)
12320 return 0;
12321 if (sizeof (ac__type_new_))
12322 return 0;
12323 ;
12324 return 0;
12325 }
12326 _ACEOF
12327 rm -f conftest.$ac_objext
12328 if { (ac_try="$ac_compile"
12329 case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12332 esac
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_compile") 2>conftest.er1
12335 ac_status=$?
12336 grep -v '^ *+' conftest.er1 >conftest.err
12337 rm -f conftest.er1
12338 cat conftest.err >&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } && {
12341 test -z "$ac_c_werror_flag" ||
12342 test ! -s conftest.err
12343 } && test -s conftest.$ac_objext; then
12344 ac_cv_type_u_int8_t=yes
12345 else
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349 ac_cv_type_u_int8_t=no
12350 fi
12351
12352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353 fi
12354 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
12355 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
12356 if test $ac_cv_type_u_int8_t = yes; then
12357 :
12358 else
12359
12360 cat >>confdefs.h <<\_ACEOF
12361 #define u_int8_t unsigned char
12362 _ACEOF
12363
12364 fi
12365
12366 { echo "$as_me:$LINENO: checking for int16_t" >&5
12367 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
12368 if test "${ac_cv_type_int16_t+set}" = set; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 else
12371 cat >conftest.$ac_ext <<_ACEOF
12372 /* confdefs.h. */
12373 _ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h. */
12377 $ac_includes_default
12378 typedef int16_t ac__type_new_;
12379 int
12380 main ()
12381 {
12382 if ((ac__type_new_ *) 0)
12383 return 0;
12384 if (sizeof (ac__type_new_))
12385 return 0;
12386 ;
12387 return 0;
12388 }
12389 _ACEOF
12390 rm -f conftest.$ac_objext
12391 if { (ac_try="$ac_compile"
12392 case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12395 esac
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_compile") 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } && {
12404 test -z "$ac_c_werror_flag" ||
12405 test ! -s conftest.err
12406 } && test -s conftest.$ac_objext; then
12407 ac_cv_type_int16_t=yes
12408 else
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12411
12412 ac_cv_type_int16_t=no
12413 fi
12414
12415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416 fi
12417 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
12418 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
12419 if test $ac_cv_type_int16_t = yes; then
12420 :
12421 else
12422
12423 cat >>confdefs.h <<\_ACEOF
12424 #define int16_t short
12425 _ACEOF
12426
12427 $ac_includes_default
12428 #ifdef HAVE_SYS_BITYPES_H
12429 #include <sys/bitypes.h>
12430 #endif
12431 fi
12432
12433 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
12434 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
12435 if test "${ac_cv_type_u_int16_t+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12437 else
12438 cat >conftest.$ac_ext <<_ACEOF
12439 /* confdefs.h. */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12444 $ac_includes_default
12445 #ifdef HAVE_SYS_BITYPES_H
12446 #include <sys/bitypes.h>
12447 #endif
12448
12449 typedef u_int16_t ac__type_new_;
12450 int
12451 main ()
12452 {
12453 if ((ac__type_new_ *) 0)
12454 return 0;
12455 if (sizeof (ac__type_new_))
12456 return 0;
12457 ;
12458 return 0;
12459 }
12460 _ACEOF
12461 rm -f conftest.$ac_objext
12462 if { (ac_try="$ac_compile"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466 esac
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_compile") 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } && {
12475 test -z "$ac_c_werror_flag" ||
12476 test ! -s conftest.err
12477 } && test -s conftest.$ac_objext; then
12478 ac_cv_type_u_int16_t=yes
12479 else
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12482
12483 ac_cv_type_u_int16_t=no
12484 fi
12485
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 fi
12488 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
12489 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
12490 if test $ac_cv_type_u_int16_t = yes; then
12491 :
12492 else
12493
12494 cat >>confdefs.h <<\_ACEOF
12495 #define u_int16_t unsigned short
12496 _ACEOF
12497
12498 fi
12499
12500 { echo "$as_me:$LINENO: checking for int32_t" >&5
12501 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
12502 if test "${ac_cv_type_int32_t+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h. */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12511 $ac_includes_default
12512 #ifdef HAVE_SYS_BITYPES_H
12513 #include <sys/bitypes.h>
12514 #endif
12515
12516 typedef int32_t ac__type_new_;
12517 int
12518 main ()
12519 {
12520 if ((ac__type_new_ *) 0)
12521 return 0;
12522 if (sizeof (ac__type_new_))
12523 return 0;
12524 ;
12525 return 0;
12526 }
12527 _ACEOF
12528 rm -f conftest.$ac_objext
12529 if { (ac_try="$ac_compile"
12530 case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12533 esac
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_compile") 2>conftest.er1
12536 ac_status=$?
12537 grep -v '^ *+' conftest.er1 >conftest.err
12538 rm -f conftest.er1
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } && {
12542 test -z "$ac_c_werror_flag" ||
12543 test ! -s conftest.err
12544 } && test -s conftest.$ac_objext; then
12545 ac_cv_type_int32_t=yes
12546 else
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12549
12550 ac_cv_type_int32_t=no
12551 fi
12552
12553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12554 fi
12555 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12556 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
12557 if test $ac_cv_type_int32_t = yes; then
12558 :
12559 else
12560
12561 cat >>confdefs.h <<\_ACEOF
12562 #define int32_t int
12563 _ACEOF
12564
12565 fi
12566
12567 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
12568 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
12569 if test "${ac_cv_type_u_int32_t+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 else
12572 cat >conftest.$ac_ext <<_ACEOF
12573 /* confdefs.h. */
12574 _ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12578 $ac_includes_default
12579 #ifdef HAVE_SYS_BITYPES_H
12580 #include <sys/bitypes.h>
12581 #endif
12582
12583 typedef u_int32_t ac__type_new_;
12584 int
12585 main ()
12586 {
12587 if ((ac__type_new_ *) 0)
12588 return 0;
12589 if (sizeof (ac__type_new_))
12590 return 0;
12591 ;
12592 return 0;
12593 }
12594 _ACEOF
12595 rm -f conftest.$ac_objext
12596 if { (ac_try="$ac_compile"
12597 case "(($ac_try" in
12598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599 *) ac_try_echo=$ac_try;;
12600 esac
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602 (eval "$ac_compile") 2>conftest.er1
12603 ac_status=$?
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && {
12609 test -z "$ac_c_werror_flag" ||
12610 test ! -s conftest.err
12611 } && test -s conftest.$ac_objext; then
12612 ac_cv_type_u_int32_t=yes
12613 else
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12616
12617 ac_cv_type_u_int32_t=no
12618 fi
12619
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 fi
12622 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12623 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
12624 if test $ac_cv_type_u_int32_t = yes; then
12625 :
12626 else
12627
12628 cat >>confdefs.h <<\_ACEOF
12629 #define u_int32_t unsigned int
12630 _ACEOF
12631
12632 fi
12633
12634 { echo "$as_me:$LINENO: checking for int64_t" >&5
12635 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12636 if test "${ac_cv_type_int64_t+set}" = set; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 else
12639 cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h. */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12645 $ac_includes_default
12646 #ifdef HAVE_SYS_BITYPES_H
12647 #include <sys/bitypes.h>
12648 #endif
12649
12650 typedef int64_t ac__type_new_;
12651 int
12652 main ()
12653 {
12654 if ((ac__type_new_ *) 0)
12655 return 0;
12656 if (sizeof (ac__type_new_))
12657 return 0;
12658 ;
12659 return 0;
12660 }
12661 _ACEOF
12662 rm -f conftest.$ac_objext
12663 if { (ac_try="$ac_compile"
12664 case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667 esac
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_compile") 2>conftest.er1
12670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } && {
12676 test -z "$ac_c_werror_flag" ||
12677 test ! -s conftest.err
12678 } && test -s conftest.$ac_objext; then
12679 ac_cv_type_int64_t=yes
12680 else
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12683
12684 ac_cv_type_int64_t=no
12685 fi
12686
12687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688 fi
12689 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12690 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12691 if test $ac_cv_type_int64_t = yes; then
12692 :
12693 else
12694
12695 cat >>confdefs.h <<\_ACEOF
12696 #define int64_t long long
12697 _ACEOF
12698
12699 fi
12700
12701 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
12702 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
12703 if test "${ac_cv_type_u_int64_t+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12705 else
12706 cat >conftest.$ac_ext <<_ACEOF
12707 /* confdefs.h. */
12708 _ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12712 $ac_includes_default
12713 #ifdef HAVE_SYS_BITYPES_H
12714 #include <sys/bitypes.h>
12715 #endif
12716
12717 typedef u_int64_t ac__type_new_;
12718 int
12719 main ()
12720 {
12721 if ((ac__type_new_ *) 0)
12722 return 0;
12723 if (sizeof (ac__type_new_))
12724 return 0;
12725 ;
12726 return 0;
12727 }
12728 _ACEOF
12729 rm -f conftest.$ac_objext
12730 if { (ac_try="$ac_compile"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12734 esac
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_compile") 2>conftest.er1
12737 ac_status=$?
12738 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1
12740 cat conftest.err >&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } && {
12743 test -z "$ac_c_werror_flag" ||
12744 test ! -s conftest.err
12745 } && test -s conftest.$ac_objext; then
12746 ac_cv_type_u_int64_t=yes
12747 else
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12750
12751 ac_cv_type_u_int64_t=no
12752 fi
12753
12754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12755 fi
12756 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12757 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
12758 if test $ac_cv_type_u_int64_t = yes; then
12759 :
12760 else
12761
12762 cat >>confdefs.h <<\_ACEOF
12763 #define u_int64_t unsigned long long
12764 _ACEOF
12765
12766 fi
12767
12768
12769 #
12770 # We can't just check for <inttypes.h> - some systems have one that
12771 # doesn't define all the PRI[doxu]64 macros.
12772 #
12773
12774 for ac_header in inttypes.h
12775 do
12776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 fi
12783 ac_res=`eval echo '${'$as_ac_Header'}'`
12784 { echo "$as_me:$LINENO: result: $ac_res" >&5
12785 echo "${ECHO_T}$ac_res" >&6; }
12786 else
12787 # Is the header compilable?
12788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12790 cat >conftest.$ac_ext <<_ACEOF
12791 /* confdefs.h. */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796 $ac_includes_default
12797 #include <$ac_header>
12798 _ACEOF
12799 rm -f conftest.$ac_objext
12800 if { (ac_try="$ac_compile"
12801 case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12804 esac
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_compile") 2>conftest.er1
12807 ac_status=$?
12808 grep -v '^ *+' conftest.er1 >conftest.err
12809 rm -f conftest.er1
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } && {
12813 test -z "$ac_c_werror_flag" ||
12814 test ! -s conftest.err
12815 } && test -s conftest.$ac_objext; then
12816 ac_header_compiler=yes
12817 else
12818 echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.$ac_ext >&5
12820
12821 ac_header_compiler=no
12822 fi
12823
12824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12826 echo "${ECHO_T}$ac_header_compiler" >&6; }
12827
12828 # Is the header present?
12829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12831 cat >conftest.$ac_ext <<_ACEOF
12832 /* confdefs.h. */
12833 _ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12837 #include <$ac_header>
12838 _ACEOF
12839 if { (ac_try="$ac_cpp conftest.$ac_ext"
12840 case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12843 esac
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } >/dev/null && {
12852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12853 test ! -s conftest.err
12854 }; then
12855 ac_header_preproc=yes
12856 else
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860 ac_header_preproc=no
12861 fi
12862
12863 rm -f conftest.err conftest.$ac_ext
12864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12865 echo "${ECHO_T}$ac_header_preproc" >&6; }
12866
12867 # So? What about this header?
12868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12869 yes:no: )
12870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12874 ac_header_preproc=yes
12875 ;;
12876 no:yes:* )
12877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12889
12890 ;;
12891 esac
12892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12896 else
12897 eval "$as_ac_Header=\$ac_header_preproc"
12898 fi
12899 ac_res=`eval echo '${'$as_ac_Header'}'`
12900 { echo "$as_me:$LINENO: result: $ac_res" >&5
12901 echo "${ECHO_T}$ac_res" >&6; }
12902
12903 fi
12904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12905 cat >>confdefs.h <<_ACEOF
12906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12907 _ACEOF
12908
12909 #
12910 # OK, we have inttypes.h, but does it define those macros?
12911 #
12912 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12913 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
12914 cat >conftest.$ac_ext <<_ACEOF
12915
12916 /* confdefs.h. */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12921
12922 #include <inttypes.h>
12923 #include <stdio.h>
12924 #include <sys/types.h>
12925 #ifdef HAVE_SYS_BITYPES_H
12926 #include <sys/bitypes.h>
12927 #endif
12928
12929 main()
12930 {
12931 printf("%" PRId64 "\n", (u_int64_t)1);
12932 printf("%" PRIo64 "\n", (u_int64_t)1);
12933 printf("%" PRIx64 "\n", (u_int64_t)1);
12934 printf("%" PRIu64 "\n", (u_int64_t)1);
12935 }
12936
12937
12938 _ACEOF
12939 rm -f conftest.$ac_objext
12940 if { (ac_try="$ac_compile"
12941 case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12944 esac
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_compile") 2>conftest.er1
12947 ac_status=$?
12948 grep -v '^ *+' conftest.er1 >conftest.err
12949 rm -f conftest.er1
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } && {
12953 test -z "$ac_c_werror_flag" ||
12954 test ! -s conftest.err
12955 } && test -s conftest.$ac_objext; then
12956
12957 { echo "$as_me:$LINENO: result: yes" >&5
12958 echo "${ECHO_T}yes" >&6; }
12959 ac_lbl_inttypes_h_defines_formats=yes
12960
12961 else
12962 echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12964
12965
12966 { echo "$as_me:$LINENO: result: no" >&5
12967 echo "${ECHO_T}no" >&6; }
12968 ac_lbl_inttypes_h_defines_formats=no
12969
12970 fi
12971
12972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12973
12974 else
12975
12976 #
12977 # We don't have inttypes.h, so it obviously can't define those
12978 # macros.
12979 #
12980 ac_lbl_inttypes_h_defines_formats=no
12981
12982 fi
12983
12984 done
12985
12986 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12987
12988 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12989 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12990 if test "$cross_compiling" = yes; then
12991 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12992 See \`config.log' for more details." >&5
12993 echo "$as_me: error: cannot run test program while cross compiling
12994 See \`config.log' for more details." >&2;}
12995 { (exit 1); exit 1; }; }
12996 else
12997 cat >conftest.$ac_ext <<_ACEOF
12998
12999 /* confdefs.h. */
13000 _ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13004
13005 # ifdef HAVE_INTTYPES_H
13006 #include <inttypes.h>
13007 # endif
13008 # ifdef HAVE_SYS_BITYPES_H
13009 #include <sys/bitypes.h>
13010 # endif
13011 #include <stdio.h>
13012 #include <sys/types.h>
13013
13014 main()
13015 {
13016 u_int64_t t = 1;
13017 char strbuf[16+1];
13018 sprintf(strbuf, "%016lx", t << 32);
13019 if (strcmp(strbuf, "0000000100000000") == 0)
13020 exit(0);
13021 else
13022 exit(1);
13023 }
13024
13025
13026 _ACEOF
13027 rm -f conftest$ac_exeext
13028 if { (ac_try="$ac_link"
13029 case "(($ac_try" in
13030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031 *) ac_try_echo=$ac_try;;
13032 esac
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034 (eval "$ac_link") 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13038 { (case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13041 esac
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_try") 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047
13048 cat >>confdefs.h <<\_ACEOF
13049 #define PRId64 "ld"
13050 _ACEOF
13051
13052 cat >>confdefs.h <<\_ACEOF
13053 #define PRIo64 "lo"
13054 _ACEOF
13055
13056 cat >>confdefs.h <<\_ACEOF
13057 #define PRIx64 "lx"
13058 _ACEOF
13059
13060 cat >>confdefs.h <<\_ACEOF
13061 #define PRIu64 "lu"
13062 _ACEOF
13063
13064 { echo "$as_me:$LINENO: result: yes" >&5
13065 echo "${ECHO_T}yes" >&6; }
13066
13067 else
13068 echo "$as_me: program exited with status $ac_status" >&5
13069 echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13071
13072 ( exit $ac_status )
13073
13074 { echo "$as_me:$LINENO: result: no" >&5
13075 echo "${ECHO_T}no" >&6; }
13076
13077
13078 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
13079 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
13080 if test "$cross_compiling" = yes; then
13081 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13082 See \`config.log' for more details." >&5
13083 echo "$as_me: error: cannot run test program while cross compiling
13084 See \`config.log' for more details." >&2;}
13085 { (exit 1); exit 1; }; }
13086 else
13087 cat >conftest.$ac_ext <<_ACEOF
13088
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094
13095 # ifdef HAVE_INTTYPES_H
13096 #include <inttypes.h>
13097 # endif
13098 # ifdef HAVE_SYS_BITYPES_H
13099 #include <sys/bitypes.h>
13100 # endif
13101 #include <stdio.h>
13102 #include <sys/types.h>
13103
13104 main()
13105 {
13106 u_int64_t t = 1;
13107 char strbuf[16+1];
13108 sprintf(strbuf, "%016llx", t << 32);
13109 if (strcmp(strbuf, "0000000100000000") == 0)
13110 exit(0);
13111 else
13112 exit(1);
13113 }
13114
13115
13116 _ACEOF
13117 rm -f conftest$ac_exeext
13118 if { (ac_try="$ac_link"
13119 case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122 esac
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_link") 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13128 { (case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131 esac
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_try") 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; }; then
13137
13138 cat >>confdefs.h <<\_ACEOF
13139 #define PRId64 "lld"
13140 _ACEOF
13141
13142 cat >>confdefs.h <<\_ACEOF
13143 #define PRIo64 "llo"
13144 _ACEOF
13145
13146 cat >>confdefs.h <<\_ACEOF
13147 #define PRIx64 "llx"
13148 _ACEOF
13149
13150 cat >>confdefs.h <<\_ACEOF
13151 #define PRIu64 "llu"
13152 _ACEOF
13153
13154 { echo "$as_me:$LINENO: result: yes" >&5
13155 echo "${ECHO_T}yes" >&6; }
13156
13157 else
13158 echo "$as_me: program exited with status $ac_status" >&5
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162 ( exit $ac_status )
13163
13164 { echo "$as_me:$LINENO: result: no" >&5
13165 echo "${ECHO_T}no" >&6; }
13166
13167
13168 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
13169 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
13170 if test "$cross_compiling" = yes; then
13171 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13172 See \`config.log' for more details." >&5
13173 echo "$as_me: error: cannot run test program while cross compiling
13174 See \`config.log' for more details." >&2;}
13175 { (exit 1); exit 1; }; }
13176 else
13177 cat >conftest.$ac_ext <<_ACEOF
13178
13179 /* confdefs.h. */
13180 _ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13184
13185 # ifdef HAVE_INTTYPES_H
13186 #include <inttypes.h>
13187 # endif
13188 # ifdef HAVE_SYS_BITYPES_H
13189 #include <sys/bitypes.h>
13190 # endif
13191 #include <stdio.h>
13192 #include <sys/types.h>
13193
13194 main()
13195 {
13196 u_int64_t t = 1;
13197 char strbuf[16+1];
13198 sprintf(strbuf, "%016Lx", t << 32);
13199 if (strcmp(strbuf, "0000000100000000") == 0)
13200 exit(0);
13201 else
13202 exit(1);
13203 }
13204
13205
13206 _ACEOF
13207 rm -f conftest$ac_exeext
13208 if { (ac_try="$ac_link"
13209 case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13212 esac
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_link") 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13218 { (case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13221 esac
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_try") 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227
13228 cat >>confdefs.h <<\_ACEOF
13229 #define PRId64 "Ld"
13230 _ACEOF
13231
13232 cat >>confdefs.h <<\_ACEOF
13233 #define PRIo64 "Lo"
13234 _ACEOF
13235
13236 cat >>confdefs.h <<\_ACEOF
13237 #define PRIx64 "Lx"
13238 _ACEOF
13239
13240 cat >>confdefs.h <<\_ACEOF
13241 #define PRIu64 "Lu"
13242 _ACEOF
13243
13244 { echo "$as_me:$LINENO: result: yes" >&5
13245 echo "${ECHO_T}yes" >&6; }
13246
13247 else
13248 echo "$as_me: program exited with status $ac_status" >&5
13249 echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13251
13252 ( exit $ac_status )
13253
13254 { echo "$as_me:$LINENO: result: no" >&5
13255 echo "${ECHO_T}no" >&6; }
13256
13257
13258 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
13259 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
13260 if test "$cross_compiling" = yes; then
13261 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13262 See \`config.log' for more details." >&5
13263 echo "$as_me: error: cannot run test program while cross compiling
13264 See \`config.log' for more details." >&2;}
13265 { (exit 1); exit 1; }; }
13266 else
13267 cat >conftest.$ac_ext <<_ACEOF
13268
13269 /* confdefs.h. */
13270 _ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274
13275 # ifdef HAVE_INTTYPES_H
13276 #include <inttypes.h>
13277 # endif
13278 # ifdef HAVE_SYS_BITYPES_H
13279 #include <sys/bitypes.h>
13280 # endif
13281 #include <stdio.h>
13282 #include <sys/types.h>
13283
13284 main()
13285 {
13286 u_int64_t t = 1;
13287 char strbuf[16+1];
13288 sprintf(strbuf, "%016qx", t << 32);
13289 if (strcmp(strbuf, "0000000100000000") == 0)
13290 exit(0);
13291 else
13292 exit(1);
13293 }
13294
13295
13296 _ACEOF
13297 rm -f conftest$ac_exeext
13298 if { (ac_try="$ac_link"
13299 case "(($ac_try" in
13300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13301 *) ac_try_echo=$ac_try;;
13302 esac
13303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13304 (eval "$ac_link") 2>&5
13305 ac_status=$?
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13308 { (case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13311 esac
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_try") 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13317
13318 cat >>confdefs.h <<\_ACEOF
13319 #define PRId64 "qd"
13320 _ACEOF
13321
13322 cat >>confdefs.h <<\_ACEOF
13323 #define PRIo64 "qo"
13324 _ACEOF
13325
13326 cat >>confdefs.h <<\_ACEOF
13327 #define PRIx64 "qx"
13328 _ACEOF
13329
13330 cat >>confdefs.h <<\_ACEOF
13331 #define PRIu64 "qu"
13332 _ACEOF
13333
13334 { echo "$as_me:$LINENO: result: yes" >&5
13335 echo "${ECHO_T}yes" >&6; }
13336
13337 else
13338 echo "$as_me: program exited with status $ac_status" >&5
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13341
13342 ( exit $ac_status )
13343
13344 { echo "$as_me:$LINENO: result: no" >&5
13345 echo "${ECHO_T}no" >&6; }
13346
13347 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
13348 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
13349 { (exit 1); exit 1; }; }
13350
13351
13352 fi
13353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13354 fi
13355
13356
13357
13358
13359
13360 fi
13361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13362 fi
13363
13364
13365
13366
13367
13368 fi
13369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13370 fi
13371
13372
13373
13374
13375
13376 fi
13377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13378 fi
13379
13380
13381
13382 fi
13383
13384 if test -n "$ac_tool_prefix"; then
13385 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13386 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13389 if test "${ac_cv_prog_RANLIB+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 else
13392 if test -n "$RANLIB"; then
13393 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13394 else
13395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396 for as_dir in $PATH
13397 do
13398 IFS=$as_save_IFS
13399 test -z "$as_dir" && as_dir=.
13400 for ac_exec_ext in '' $ac_executable_extensions; do
13401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13402 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13404 break 2
13405 fi
13406 done
13407 done
13408 IFS=$as_save_IFS
13409
13410 fi
13411 fi
13412 RANLIB=$ac_cv_prog_RANLIB
13413 if test -n "$RANLIB"; then
13414 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13415 echo "${ECHO_T}$RANLIB" >&6; }
13416 else
13417 { echo "$as_me:$LINENO: result: no" >&5
13418 echo "${ECHO_T}no" >&6; }
13419 fi
13420
13421
13422 fi
13423 if test -z "$ac_cv_prog_RANLIB"; then
13424 ac_ct_RANLIB=$RANLIB
13425 # Extract the first word of "ranlib", so it can be a program name with args.
13426 set dummy ranlib; ac_word=$2
13427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13429 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13432 if test -n "$ac_ct_RANLIB"; then
13433 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13434 else
13435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436 for as_dir in $PATH
13437 do
13438 IFS=$as_save_IFS
13439 test -z "$as_dir" && as_dir=.
13440 for ac_exec_ext in '' $ac_executable_extensions; do
13441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13442 ac_cv_prog_ac_ct_RANLIB="ranlib"
13443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13444 break 2
13445 fi
13446 done
13447 done
13448 IFS=$as_save_IFS
13449
13450 fi
13451 fi
13452 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13453 if test -n "$ac_ct_RANLIB"; then
13454 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13455 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13456 else
13457 { echo "$as_me:$LINENO: result: no" >&5
13458 echo "${ECHO_T}no" >&6; }
13459 fi
13460
13461 if test "x$ac_ct_RANLIB" = x; then
13462 RANLIB=":"
13463 else
13464 case $cross_compiling:$ac_tool_warned in
13465 yes:)
13466 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13467 whose name does not start with the host triplet. If you think this
13468 configuration is useful to you, please write to autoconf@gnu.org." >&5
13469 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13470 whose name does not start with the host triplet. If you think this
13471 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13472 ac_tool_warned=yes ;;
13473 esac
13474 RANLIB=$ac_ct_RANLIB
13475 fi
13476 else
13477 RANLIB="$ac_cv_prog_RANLIB"
13478 fi
13479
13480
13481 rm -f os-proto.h
13482 if test "${LBL_CFLAGS+set}" = set; then
13483 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
13484 fi
13485 if test -f .devel ; then
13486 if test "$GCC" = yes ; then
13487 if test "${LBL_CFLAGS+set}" != set; then
13488 if test "$ac_cv_prog_cc_g" = yes ; then
13489 V_CCOPT="-g $V_CCOPT"
13490 fi
13491 V_CCOPT="$V_CCOPT -Wall"
13492 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
13493 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
13494 fi
13495 fi
13496 else
13497 case "$host_os" in
13498
13499 irix6*)
13500 V_CCOPT="$V_CCOPT -n32"
13501 ;;
13502
13503 *)
13504 ;;
13505 esac
13506 fi
13507 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
13508 name="lbl/os-$os.h"
13509 if test -f $name ; then
13510 ln -s $name os-proto.h
13511
13512 cat >>confdefs.h <<\_ACEOF
13513 #define HAVE_OS_PROTO_H 1
13514 _ACEOF
13515
13516 else
13517 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
13518 echo "$as_me: WARNING: can't find $name" >&2;}
13519 fi
13520 fi
13521
13522 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
13523 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
13524 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527 cat >conftest.$ac_ext <<_ACEOF
13528 /* confdefs.h. */
13529 _ACEOF
13530 cat confdefs.h >>conftest.$ac_ext
13531 cat >>conftest.$ac_ext <<_ACEOF
13532 /* end confdefs.h. */
13533
13534 # include <sys/types.h>
13535 # include <sys/socket.h>
13536 int
13537 main ()
13538 {
13539 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
13540 ;
13541 return 0;
13542 }
13543 _ACEOF
13544 rm -f conftest.$ac_objext
13545 if { (ac_try="$ac_compile"
13546 case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13549 esac
13550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_compile") 2>conftest.er1
13552 ac_status=$?
13553 grep -v '^ *+' conftest.er1 >conftest.err
13554 rm -f conftest.er1
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } && {
13558 test -z "$ac_c_werror_flag" ||
13559 test ! -s conftest.err
13560 } && test -s conftest.$ac_objext; then
13561 ac_cv_lbl_sockaddr_has_sa_len=yes
13562 else
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13565
13566 ac_cv_lbl_sockaddr_has_sa_len=no
13567 fi
13568
13569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570 fi
13571
13572 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
13573 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
13574 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
13575
13576 cat >>confdefs.h <<\_ACEOF
13577 #define HAVE_SOCKADDR_SA_LEN 1
13578 _ACEOF
13579
13580 fi
13581
13582 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
13583 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
13584 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587 case "$host_cpu" in
13588
13589 #
13590 # These are CPU types where:
13591 #
13592 # the CPU faults on an unaligned access, but at least some
13593 # OSes that support that CPU catch the fault and simulate
13594 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
13595 # the simulation is slow, so we don't want to use it;
13596 #
13597 # the CPU, I infer (from the old
13598 #
13599 # XXX: should also check that they don't do weird things (like on arm)
13600 #
13601 # comment) doesn't fault on unaligned accesses, but doesn't
13602 # do a normal unaligned fetch, either (e.g., presumably, ARM);
13603 #
13604 # for whatever reason, the test program doesn't work
13605 # (this has been claimed to be the case for several of those
13606 # CPUs - I don't know what the problem is; the problem
13607 # was reported as "the test program dumps core" for SuperH,
13608 # but that's what the test program is *supposed* to do -
13609 # it dumps core before it writes anything, so the test
13610 # for an empty output file should find an empty output
13611 # file and conclude that unaligned accesses don't work).
13612 #
13613 # This run-time test won't work if you're cross-compiling, so
13614 # in order to support cross-compiling for a particular CPU,
13615 # we have to wire in the list of CPU types anyway, as far as
13616 # I know, so perhaps we should just have a set of CPUs on
13617 # which we know it doesn't work, a set of CPUs on which we
13618 # know it does work, and have the script just fail on other
13619 # cpu types and update it when such a failure occurs.
13620 #
13621 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13622 ac_cv_lbl_unaligned_fail=yes
13623 ;;
13624
13625 *)
13626 cat >conftest.c <<EOF
13627 # include <sys/types.h>
13628 # include <sys/wait.h>
13629 # include <stdio.h>
13630 unsigned char a[5] = { 1, 2, 3, 4, 5 };
13631 main() {
13632 unsigned int i;
13633 pid_t pid;
13634 int status;
13635 /* avoid "core dumped" message */
13636 pid = fork();
13637 if (pid < 0)
13638 exit(2);
13639 if (pid > 0) {
13640 /* parent */
13641 pid = waitpid(pid, &status, 0);
13642 if (pid < 0)
13643 exit(3);
13644 exit(!WIFEXITED(status));
13645 }
13646 /* child */
13647 i = *(unsigned int *)&a[1];
13648 printf("%d\n", i);
13649 exit(0);
13650 }
13651 EOF
13652 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13653 conftest.c $LIBS >/dev/null 2>&1
13654 if test ! -x conftest ; then
13655 ac_cv_lbl_unaligned_fail=yes
13656 else
13657 ./conftest >conftest.out
13658 if test ! -s conftest.out ; then
13659 ac_cv_lbl_unaligned_fail=yes
13660 else
13661 ac_cv_lbl_unaligned_fail=no
13662 fi
13663 fi
13664 rm -f -r conftest* core core.conftest
13665 ;;
13666 esac
13667 fi
13668
13669 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
13670 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
13671 if test $ac_cv_lbl_unaligned_fail = yes ; then
13672
13673 cat >>confdefs.h <<\_ACEOF
13674 #define LBL_ALIGN 1
13675 _ACEOF
13676
13677 fi
13678
13679
13680 { echo "$as_me:$LINENO: checking for h_errno" >&5
13681 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
13682 if test "${ac_cv_var_h_errno+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 else
13685 cat >conftest.$ac_ext <<_ACEOF
13686 /* confdefs.h. */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13691
13692 # include <sys/types.h>
13693 # include <netdb.h>
13694 int
13695 main ()
13696 {
13697 int foo = h_errno;
13698 ;
13699 return 0;
13700 }
13701 _ACEOF
13702 rm -f conftest.$ac_objext
13703 if { (ac_try="$ac_compile"
13704 case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_compile") 2>conftest.er1
13710 ac_status=$?
13711 grep -v '^ *+' conftest.er1 >conftest.err
13712 rm -f conftest.er1
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } && {
13716 test -z "$ac_c_werror_flag" ||
13717 test ! -s conftest.err
13718 } && test -s conftest.$ac_objext; then
13719 ac_cv_var_h_errno=yes
13720 else
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13723
13724 ac_cv_var_h_errno=no
13725 fi
13726
13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728 fi
13729
13730 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
13731 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
13732 if test "$ac_cv_var_h_errno" = "yes"; then
13733 cat >>confdefs.h <<\_ACEOF
13734 #define HAVE_H_ERRNO 1
13735 _ACEOF
13736
13737 fi
13738
13739
13740 # Check for SSLeay
13741 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
13742 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
13743 # Specify location for both includes and libraries.
13744 want_libcrypto=youmama
13745
13746 # Check whether --with-crypto was given.
13747 if test "${with_crypto+set}" = set; then
13748 withval=$with_crypto;
13749 if test $withval = no
13750 then
13751 want_libcrypto=no
13752 { echo "$as_me:$LINENO: result: no" >&5
13753 echo "${ECHO_T}no" >&6; }
13754 elif test $withval = yes
13755 then
13756 want_libcrypto=yes
13757 { echo "$as_me:$LINENO: result: yes" >&5
13758 echo "${ECHO_T}yes" >&6; }
13759 else
13760 want_libcrypto=yes
13761 { echo "$as_me:$LINENO: result: yes" >&5
13762 echo "${ECHO_T}yes" >&6; }
13763 crypto_dir=$withval
13764 fi
13765
13766 else
13767
13768 #
13769 # Use libcrypto if it's present, otherwise don't.
13770 #
13771 want_libcrypto=ifavailable
13772 { echo "$as_me:$LINENO: result: yes, if available" >&5
13773 echo "${ECHO_T}yes, if available" >&6; }
13774
13775 fi
13776
13777 if test "$want_libcrypto" != "no"; then
13778 ac_cv_ssleay_path=no
13779 incdir=no
13780 if test "x$crypto_dir" = x; then
13781 #
13782 # Location not specified; check the default locations.
13783 #
13784 { echo "$as_me:$LINENO: checking where SSLeay is located" >&5
13785 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
13786 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
13787 if test "x${host_alias}" != x; then
13788 dirs="/usr/${host_alias} $dirs"
13789 fi
13790 for dir in $dirs; do
13791
13792 #
13793 # Find the last component of $libdir; it's not necessarily
13794 # "lib" - it might be "lib64" on, for example, x86-64
13795 # Linux systems.
13796 #
13797 # We assume the directory in which we're looking for
13798 # libcrypto has a subdirectory with that as its name.
13799 #
13800 tmplib=`echo "$libdir" | sed 's,.*/,,'`
13801
13802 #
13803 # XXX - is there a better way to check if a given library is
13804 # in a given directory than checking each of the possible
13805 # shared library suffixes?
13806 #
13807 # Are there any other suffixes we need to look for? Do we
13808 # have to worry about ".so.{version}"?
13809 #
13810 # Or should we just look for "libcrypto.*"?
13811 #
13812 if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a" -o \
13813 -f "$dir/$tmplib/libcrypto.so" -o \
13814 -f "$dir/$tmplib/libcrypto.sl" -o \
13815 -f "$dir/$tmplib/libcrypto.dylib" \); then
13816 ac_cv_ssleay_path="$dir"
13817 fi
13818
13819 #
13820 # Make sure we have the headers as well.
13821 #
13822 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
13823 incdir="-I$dir/include"
13824 fi
13825
13826
13827 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
13828 break;
13829 else
13830 ac_cv_ssleay_path=no
13831 incdir=no
13832 fi
13833 done
13834 if test "$ac_cv_ssleay_path" != no; then
13835 { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
13836 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
13837 fi
13838 else
13839 { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
13840 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
13841
13842 #
13843 # Find the last component of $libdir; it's not necessarily
13844 # "lib" - it might be "lib64" on, for example, x86-64
13845 # Linux systems.
13846 #
13847 # We assume the directory in which we're looking for
13848 # libcrypto has a subdirectory with that as its name.
13849 #
13850 tmplib=`echo "$libdir" | sed 's,.*/,,'`
13851
13852 #
13853 # XXX - is there a better way to check if a given library is
13854 # in a given directory than checking each of the possible
13855 # shared library suffixes?
13856 #
13857 # Are there any other suffixes we need to look for? Do we
13858 # have to worry about ".so.{version}"?
13859 #
13860 # Or should we just look for "libcrypto.*"?
13861 #
13862 if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
13863 -f "$crypto_dir/$tmplib/libcrypto.so" -o \
13864 -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
13865 -f "$crypto_dir/$tmplib/libcrypto.dylib" \); then
13866 ac_cv_ssleay_path="$crypto_dir"
13867 fi
13868
13869 #
13870 # Make sure we have the headers as well.
13871 #
13872 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
13873 incdir="-I$crypto_dir/include"
13874 fi
13875
13876 if test "$ac_cv_ssleay_path" != no; then
13877 { echo "$as_me:$LINENO: result: found" >&5
13878 echo "${ECHO_T}found" >&6; }
13879 fi
13880 fi
13881 if test "$ac_cv_ssleay_path" != no; then
13882 V_INCLS="$V_INCLS $incdir"
13883 if test "$dir" != "/usr"; then
13884 LDFLAGS="-L$dir/lib $LDFLAGS"
13885 fi
13886 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
13887 LIBS="$LIBS -lRSAglue"
13888 fi
13889 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
13890 LIBS="$LIBS -lrsaref"
13891 fi
13892
13893 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
13894 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
13895 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 else
13898 ac_check_lib_save_LIBS=$LIBS
13899 LIBS="-lcrypto $LIBS"
13900 cat >conftest.$ac_ext <<_ACEOF
13901 /* confdefs.h. */
13902 _ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13906
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13910 #ifdef __cplusplus
13911 extern "C"
13912 #endif
13913 char DES_cbc_encrypt ();
13914 int
13915 main ()
13916 {
13917 return DES_cbc_encrypt ();
13918 ;
13919 return 0;
13920 }
13921 _ACEOF
13922 rm -f conftest.$ac_objext conftest$ac_exeext
13923 if { (ac_try="$ac_link"
13924 case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13927 esac
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_link") 2>conftest.er1
13930 ac_status=$?
13931 grep -v '^ *+' conftest.er1 >conftest.err
13932 rm -f conftest.er1
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } && {
13936 test -z "$ac_c_werror_flag" ||
13937 test ! -s conftest.err
13938 } && test -s conftest$ac_exeext &&
13939 $as_test_x conftest$ac_exeext; then
13940 ac_cv_lib_crypto_DES_cbc_encrypt=yes
13941 else
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13944
13945 ac_cv_lib_crypto_DES_cbc_encrypt=no
13946 fi
13947
13948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13949 conftest$ac_exeext conftest.$ac_ext
13950 LIBS=$ac_check_lib_save_LIBS
13951 fi
13952 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13953 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13954 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13955 cat >>confdefs.h <<_ACEOF
13956 #define HAVE_LIBCRYPTO 1
13957 _ACEOF
13958
13959 LIBS="-lcrypto $LIBS"
13960
13961 fi
13962
13963
13964 CPPFLAGS="$CPPFLAGS $V_INCLS"
13965
13966 for ac_header in openssl/evp.h
13967 do
13968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13974 fi
13975 ac_res=`eval echo '${'$as_ac_Header'}'`
13976 { echo "$as_me:$LINENO: result: $ac_res" >&5
13977 echo "${ECHO_T}$ac_res" >&6; }
13978 else
13979 # Is the header compilable?
13980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 $ac_includes_default
13989 #include <$ac_header>
13990 _ACEOF
13991 rm -f conftest.$ac_objext
13992 if { (ac_try="$ac_compile"
13993 case "(($ac_try" in
13994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995 *) ac_try_echo=$ac_try;;
13996 esac
13997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13998 (eval "$ac_compile") 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } && {
14005 test -z "$ac_c_werror_flag" ||
14006 test ! -s conftest.err
14007 } && test -s conftest.$ac_objext; then
14008 ac_header_compiler=yes
14009 else
14010 echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14012
14013 ac_header_compiler=no
14014 fi
14015
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14018 echo "${ECHO_T}$ac_header_compiler" >&6; }
14019
14020 # Is the header present?
14021 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14023 cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h. */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14029 #include <$ac_header>
14030 _ACEOF
14031 if { (ac_try="$ac_cpp conftest.$ac_ext"
14032 case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14035 esac
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14038 ac_status=$?
14039 grep -v '^ *+' conftest.er1 >conftest.err
14040 rm -f conftest.er1
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } >/dev/null && {
14044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14045 test ! -s conftest.err
14046 }; then
14047 ac_header_preproc=yes
14048 else
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14051
14052 ac_header_preproc=no
14053 fi
14054
14055 rm -f conftest.err conftest.$ac_ext
14056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14057 echo "${ECHO_T}$ac_header_preproc" >&6; }
14058
14059 # So? What about this header?
14060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14061 yes:no: )
14062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14066 ac_header_preproc=yes
14067 ;;
14068 no:yes:* )
14069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14081
14082 ;;
14083 esac
14084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 else
14089 eval "$as_ac_Header=\$ac_header_preproc"
14090 fi
14091 ac_res=`eval echo '${'$as_ac_Header'}'`
14092 { echo "$as_me:$LINENO: result: $ac_res" >&5
14093 echo "${ECHO_T}$ac_res" >&6; }
14094
14095 fi
14096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14097 cat >>confdefs.h <<_ACEOF
14098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14099 _ACEOF
14100
14101 fi
14102
14103 done
14104
14105 else
14106 #
14107 # Not found. Did the user explicitly ask for it?
14108 #
14109 { echo "$as_me:$LINENO: result: not found" >&5
14110 echo "${ECHO_T}not found" >&6; }
14111 if test "$want_libcrypto" = yes; then
14112 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
14113 echo "$as_me: error: SSLeay not found" >&2;}
14114 { (exit 1); exit 1; }; }
14115 fi
14116 fi
14117 fi
14118
14119 if test "$missing_includes" = "yes"; then
14120 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
14121 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
14122 fi
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133 # Find a good install program. We prefer a C program (faster),
14134 # so one script is as good as another. But avoid the broken or
14135 # incompatible versions:
14136 # SysV /etc/install, /usr/sbin/install
14137 # SunOS /usr/etc/install
14138 # IRIX /sbin/install
14139 # AIX /bin/install
14140 # AmigaOS /C/install, which installs bootblocks on floppy discs
14141 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14142 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14144 # OS/2's system install, which has a completely different semantic
14145 # ./install, which can be erroneously created by make from ./install.sh.
14146 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14147 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
14148 if test -z "$INSTALL"; then
14149 if test "${ac_cv_path_install+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14154 do
14155 IFS=$as_save_IFS
14156 test -z "$as_dir" && as_dir=.
14157 # Account for people who put trailing slashes in PATH elements.
14158 case $as_dir/ in
14159 ./ | .// | /cC/* | \
14160 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14161 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14162 /usr/ucb/* ) ;;
14163 *)
14164 # OSF1 and SCO ODT 3.0 have their own names for install.
14165 # Don't use installbsd from OSF since it installs stuff as root
14166 # by default.
14167 for ac_prog in ginstall scoinst install; do
14168 for ac_exec_ext in '' $ac_executable_extensions; do
14169 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14170 if test $ac_prog = install &&
14171 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14172 # AIX install. It has an incompatible calling convention.
14173 :
14174 elif test $ac_prog = install &&
14175 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14176 # program-specific install script used by HP pwplus--don't use.
14177 :
14178 else
14179 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14180 break 3
14181 fi
14182 fi
14183 done
14184 done
14185 ;;
14186 esac
14187 done
14188 IFS=$as_save_IFS
14189
14190
14191 fi
14192 if test "${ac_cv_path_install+set}" = set; then
14193 INSTALL=$ac_cv_path_install
14194 else
14195 # As a last resort, use the slow shell script. Don't cache a
14196 # value for INSTALL within a source directory, because that will
14197 # break other packages using the cache if that directory is
14198 # removed, or if the value is a relative name.
14199 INSTALL=$ac_install_sh
14200 fi
14201 fi
14202 { echo "$as_me:$LINENO: result: $INSTALL" >&5
14203 echo "${ECHO_T}$INSTALL" >&6; }
14204
14205 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14206 # It thinks the first close brace ends the variable substitution.
14207 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14208
14209 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14210
14211 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14212
14213
14214 ac_config_headers="$ac_config_headers config.h"
14215
14216
14217 ac_config_commands="$ac_config_commands default-1"
14218
14219 ac_config_files="$ac_config_files Makefile tcpdump.1"
14220
14221 cat >confcache <<\_ACEOF
14222 # This file is a shell script that caches the results of configure
14223 # tests run on this system so they can be shared between configure
14224 # scripts and configure runs, see configure's option --config-cache.
14225 # It is not useful on other systems. If it contains results you don't
14226 # want to keep, you may remove or edit it.
14227 #
14228 # config.status only pays attention to the cache file if you give it
14229 # the --recheck option to rerun configure.
14230 #
14231 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14232 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14233 # following values.
14234
14235 _ACEOF
14236
14237 # The following way of writing the cache mishandles newlines in values,
14238 # but we know of no workaround that is simple, portable, and efficient.
14239 # So, we kill variables containing newlines.
14240 # Ultrix sh set writes to stderr and can't be redirected directly,
14241 # and sets the high bit in the cache file unless we assign to the vars.
14242 (
14243 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14244 eval ac_val=\$$ac_var
14245 case $ac_val in #(
14246 *${as_nl}*)
14247 case $ac_var in #(
14248 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14249 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14250 esac
14251 case $ac_var in #(
14252 _ | IFS | as_nl) ;; #(
14253 *) $as_unset $ac_var ;;
14254 esac ;;
14255 esac
14256 done
14257
14258 (set) 2>&1 |
14259 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14260 *${as_nl}ac_space=\ *)
14261 # `set' does not quote correctly, so add quotes (double-quote
14262 # substitution turns \\\\ into \\, and sed turns \\ into \).
14263 sed -n \
14264 "s/'/'\\\\''/g;
14265 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14266 ;; #(
14267 *)
14268 # `set' quotes correctly as required by POSIX, so do not add quotes.
14269 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14270 ;;
14271 esac |
14272 sort
14273 ) |
14274 sed '
14275 /^ac_cv_env_/b end
14276 t clear
14277 :clear
14278 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14279 t end
14280 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14281 :end' >>confcache
14282 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14283 if test -w "$cache_file"; then
14284 test "x$cache_file" != "x/dev/null" &&
14285 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14286 echo "$as_me: updating cache $cache_file" >&6;}
14287 cat confcache >$cache_file
14288 else
14289 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14290 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14291 fi
14292 fi
14293 rm -f confcache
14294
14295 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14296 # Let make expand exec_prefix.
14297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14298
14299 DEFS=-DHAVE_CONFIG_H
14300
14301 ac_libobjs=
14302 ac_ltlibobjs=
14303 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14304 # 1. Remove the extension, and $U if already installed.
14305 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14306 ac_i=`echo "$ac_i" | sed "$ac_script"`
14307 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14308 # will be set to the directory where LIBOBJS objects are built.
14309 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14310 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14311 done
14312 LIBOBJS=$ac_libobjs
14313
14314 LTLIBOBJS=$ac_ltlibobjs
14315
14316
14317
14318 : ${CONFIG_STATUS=./config.status}
14319 ac_clean_files_save=$ac_clean_files
14320 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14321 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14322 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14323 cat >$CONFIG_STATUS <<_ACEOF
14324 #! $SHELL
14325 # Generated by $as_me.
14326 # Run this file to recreate the current configuration.
14327 # Compiler output produced by configure, useful for debugging
14328 # configure, is in config.log if it exists.
14329
14330 debug=false
14331 ac_cs_recheck=false
14332 ac_cs_silent=false
14333 SHELL=\${CONFIG_SHELL-$SHELL}
14334 _ACEOF
14335
14336 cat >>$CONFIG_STATUS <<\_ACEOF
14337 ## --------------------- ##
14338 ## M4sh Initialization. ##
14339 ## --------------------- ##
14340
14341 # Be more Bourne compatible
14342 DUALCASE=1; export DUALCASE # for MKS sh
14343 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14344 emulate sh
14345 NULLCMD=:
14346 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14347 # is contrary to our usage. Disable this feature.
14348 alias -g '${1+"$@"}'='"$@"'
14349 setopt NO_GLOB_SUBST
14350 else
14351 case `(set -o) 2>/dev/null` in
14352 *posix*) set -o posix ;;
14353 esac
14354
14355 fi
14356
14357
14358
14359
14360 # PATH needs CR
14361 # Avoid depending upon Character Ranges.
14362 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14363 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14364 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14365 as_cr_digits='0123456789'
14366 as_cr_alnum=$as_cr_Letters$as_cr_digits
14367
14368 # The user is always right.
14369 if test "${PATH_SEPARATOR+set}" != set; then
14370 echo "#! /bin/sh" >conf$$.sh
14371 echo "exit 0" >>conf$$.sh
14372 chmod +x conf$$.sh
14373 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14374 PATH_SEPARATOR=';'
14375 else
14376 PATH_SEPARATOR=:
14377 fi
14378 rm -f conf$$.sh
14379 fi
14380
14381 # Support unset when possible.
14382 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14383 as_unset=unset
14384 else
14385 as_unset=false
14386 fi
14387
14388
14389 # IFS
14390 # We need space, tab and new line, in precisely that order. Quoting is
14391 # there to prevent editors from complaining about space-tab.
14392 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14393 # splitting by setting IFS to empty value.)
14394 as_nl='
14395 '
14396 IFS=" "" $as_nl"
14397
14398 # Find who we are. Look in the path if we contain no directory separator.
14399 case $0 in
14400 *[\\/]* ) as_myself=$0 ;;
14401 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14402 for as_dir in $PATH
14403 do
14404 IFS=$as_save_IFS
14405 test -z "$as_dir" && as_dir=.
14406 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14407 done
14408 IFS=$as_save_IFS
14409
14410 ;;
14411 esac
14412 # We did not find ourselves, most probably we were run as `sh COMMAND'
14413 # in which case we are not to be found in the path.
14414 if test "x$as_myself" = x; then
14415 as_myself=$0
14416 fi
14417 if test ! -f "$as_myself"; then
14418 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14419 { (exit 1); exit 1; }
14420 fi
14421
14422 # Work around bugs in pre-3.0 UWIN ksh.
14423 for as_var in ENV MAIL MAILPATH
14424 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14425 done
14426 PS1='$ '
14427 PS2='> '
14428 PS4='+ '
14429
14430 # NLS nuisances.
14431 for as_var in \
14432 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14433 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14434 LC_TELEPHONE LC_TIME
14435 do
14436 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14437 eval $as_var=C; export $as_var
14438 else
14439 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14440 fi
14441 done
14442
14443 # Required to use basename.
14444 if expr a : '\(a\)' >/dev/null 2>&1 &&
14445 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14446 as_expr=expr
14447 else
14448 as_expr=false
14449 fi
14450
14451 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14452 as_basename=basename
14453 else
14454 as_basename=false
14455 fi
14456
14457
14458 # Name of the executable.
14459 as_me=`$as_basename -- "$0" ||
14460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14461 X"$0" : 'X\(//\)$' \| \
14462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14463 echo X/"$0" |
14464 sed '/^.*\/\([^/][^/]*\)\/*$/{
14465 s//\1/
14466 q
14467 }
14468 /^X\/\(\/\/\)$/{
14469 s//\1/
14470 q
14471 }
14472 /^X\/\(\/\).*/{
14473 s//\1/
14474 q
14475 }
14476 s/.*/./; q'`
14477
14478 # CDPATH.
14479 $as_unset CDPATH
14480
14481
14482
14483 as_lineno_1=$LINENO
14484 as_lineno_2=$LINENO
14485 test "x$as_lineno_1" != "x$as_lineno_2" &&
14486 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14487
14488 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14489 # uniformly replaced by the line number. The first 'sed' inserts a
14490 # line-number line after each line using $LINENO; the second 'sed'
14491 # does the real work. The second script uses 'N' to pair each
14492 # line-number line with the line containing $LINENO, and appends
14493 # trailing '-' during substitution so that $LINENO is not a special
14494 # case at line end.
14495 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14496 # scripts with optimization help from Paolo Bonzini. Blame Lee
14497 # E. McMahon (1931-1989) for sed's syntax. :-)
14498 sed -n '
14499 p
14500 /[$]LINENO/=
14501 ' <$as_myself |
14502 sed '
14503 s/[$]LINENO.*/&-/
14504 t lineno
14505 b
14506 :lineno
14507 N
14508 :loop
14509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14510 t loop
14511 s/-\n.*//
14512 ' >$as_me.lineno &&
14513 chmod +x "$as_me.lineno" ||
14514 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14515 { (exit 1); exit 1; }; }
14516
14517 # Don't try to exec as it changes $[0], causing all sort of problems
14518 # (the dirname of $[0] is not the place where we might find the
14519 # original and so on. Autoconf is especially sensitive to this).
14520 . "./$as_me.lineno"
14521 # Exit status is that of the last command.
14522 exit
14523 }
14524
14525
14526 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14527 as_dirname=dirname
14528 else
14529 as_dirname=false
14530 fi
14531
14532 ECHO_C= ECHO_N= ECHO_T=
14533 case `echo -n x` in
14534 -n*)
14535 case `echo 'x\c'` in
14536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14537 *) ECHO_C='\c';;
14538 esac;;
14539 *)
14540 ECHO_N='-n';;
14541 esac
14542
14543 if expr a : '\(a\)' >/dev/null 2>&1 &&
14544 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14545 as_expr=expr
14546 else
14547 as_expr=false
14548 fi
14549
14550 rm -f conf$$ conf$$.exe conf$$.file
14551 if test -d conf$$.dir; then
14552 rm -f conf$$.dir/conf$$.file
14553 else
14554 rm -f conf$$.dir
14555 mkdir conf$$.dir
14556 fi
14557 echo >conf$$.file
14558 if ln -s conf$$.file conf$$ 2>/dev/null; then
14559 as_ln_s='ln -s'
14560 # ... but there are two gotchas:
14561 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14562 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14563 # In both cases, we have to default to `cp -p'.
14564 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14565 as_ln_s='cp -p'
14566 elif ln conf$$.file conf$$ 2>/dev/null; then
14567 as_ln_s=ln
14568 else
14569 as_ln_s='cp -p'
14570 fi
14571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14572 rmdir conf$$.dir 2>/dev/null
14573
14574 if mkdir -p . 2>/dev/null; then
14575 as_mkdir_p=:
14576 else
14577 test -d ./-p && rmdir ./-p
14578 as_mkdir_p=false
14579 fi
14580
14581 if test -x / >/dev/null 2>&1; then
14582 as_test_x='test -x'
14583 else
14584 if ls -dL / >/dev/null 2>&1; then
14585 as_ls_L_option=L
14586 else
14587 as_ls_L_option=
14588 fi
14589 as_test_x='
14590 eval sh -c '\''
14591 if test -d "$1"; then
14592 test -d "$1/.";
14593 else
14594 case $1 in
14595 -*)set "./$1";;
14596 esac;
14597 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14598 ???[sx]*):;;*)false;;esac;fi
14599 '\'' sh
14600 '
14601 fi
14602 as_executable_p=$as_test_x
14603
14604 # Sed expression to map a string onto a valid CPP name.
14605 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14606
14607 # Sed expression to map a string onto a valid variable name.
14608 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14609
14610
14611 exec 6>&1
14612
14613 # Save the log message, to keep $[0] and so on meaningful, and to
14614 # report actual input values of CONFIG_FILES etc. instead of their
14615 # values after options handling.
14616 ac_log="
14617 This file was extended by $as_me, which was
14618 generated by GNU Autoconf 2.61. Invocation command line was
14619
14620 CONFIG_FILES = $CONFIG_FILES
14621 CONFIG_HEADERS = $CONFIG_HEADERS
14622 CONFIG_LINKS = $CONFIG_LINKS
14623 CONFIG_COMMANDS = $CONFIG_COMMANDS
14624 $ $0 $@
14625
14626 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14627 "
14628
14629 _ACEOF
14630
14631 cat >>$CONFIG_STATUS <<_ACEOF
14632 # Files that config.status was made for.
14633 config_files="$ac_config_files"
14634 config_headers="$ac_config_headers"
14635 config_commands="$ac_config_commands"
14636
14637 _ACEOF
14638
14639 cat >>$CONFIG_STATUS <<\_ACEOF
14640 ac_cs_usage="\
14641 \`$as_me' instantiates files from templates according to the
14642 current configuration.
14643
14644 Usage: $0 [OPTIONS] [FILE]...
14645
14646 -h, --help print this help, then exit
14647 -V, --version print version number and configuration settings, then exit
14648 -q, --quiet do not print progress messages
14649 -d, --debug don't remove temporary files
14650 --recheck update $as_me by reconfiguring in the same conditions
14651 --file=FILE[:TEMPLATE]
14652 instantiate the configuration file FILE
14653 --header=FILE[:TEMPLATE]
14654 instantiate the configuration header FILE
14655
14656 Configuration files:
14657 $config_files
14658
14659 Configuration headers:
14660 $config_headers
14661
14662 Configuration commands:
14663 $config_commands
14664
14665 Report bugs to <bug-autoconf@gnu.org>."
14666
14667 _ACEOF
14668 cat >>$CONFIG_STATUS <<_ACEOF
14669 ac_cs_version="\\
14670 config.status
14671 configured by $0, generated by GNU Autoconf 2.61,
14672 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14673
14674 Copyright (C) 2006 Free Software Foundation, Inc.
14675 This config.status script is free software; the Free Software Foundation
14676 gives unlimited permission to copy, distribute and modify it."
14677
14678 ac_pwd='$ac_pwd'
14679 srcdir='$srcdir'
14680 INSTALL='$INSTALL'
14681 _ACEOF
14682
14683 cat >>$CONFIG_STATUS <<\_ACEOF
14684 # If no file are specified by the user, then we need to provide default
14685 # value. By we need to know if files were specified by the user.
14686 ac_need_defaults=:
14687 while test $# != 0
14688 do
14689 case $1 in
14690 --*=*)
14691 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14692 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14693 ac_shift=:
14694 ;;
14695 *)
14696 ac_option=$1
14697 ac_optarg=$2
14698 ac_shift=shift
14699 ;;
14700 esac
14701
14702 case $ac_option in
14703 # Handling of the options.
14704 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14705 ac_cs_recheck=: ;;
14706 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14707 echo "$ac_cs_version"; exit ;;
14708 --debug | --debu | --deb | --de | --d | -d )
14709 debug=: ;;
14710 --file | --fil | --fi | --f )
14711 $ac_shift
14712 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14713 ac_need_defaults=false;;
14714 --header | --heade | --head | --hea )
14715 $ac_shift
14716 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14717 ac_need_defaults=false;;
14718 --he | --h)
14719 # Conflict between --help and --header
14720 { echo "$as_me: error: ambiguous option: $1
14721 Try \`$0 --help' for more information." >&2
14722 { (exit 1); exit 1; }; };;
14723 --help | --hel | -h )
14724 echo "$ac_cs_usage"; exit ;;
14725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14726 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14727 ac_cs_silent=: ;;
14728
14729 # This is an error.
14730 -*) { echo "$as_me: error: unrecognized option: $1
14731 Try \`$0 --help' for more information." >&2
14732 { (exit 1); exit 1; }; } ;;
14733
14734 *) ac_config_targets="$ac_config_targets $1"
14735 ac_need_defaults=false ;;
14736
14737 esac
14738 shift
14739 done
14740
14741 ac_configure_extra_args=
14742
14743 if $ac_cs_silent; then
14744 exec 6>/dev/null
14745 ac_configure_extra_args="$ac_configure_extra_args --silent"
14746 fi
14747
14748 _ACEOF
14749 cat >>$CONFIG_STATUS <<_ACEOF
14750 if \$ac_cs_recheck; then
14751 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14752 CONFIG_SHELL=$SHELL
14753 export CONFIG_SHELL
14754 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14755 fi
14756
14757 _ACEOF
14758 cat >>$CONFIG_STATUS <<\_ACEOF
14759 exec 5>>config.log
14760 {
14761 echo
14762 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14763 ## Running $as_me. ##
14764 _ASBOX
14765 echo "$ac_log"
14766 } >&5
14767
14768 _ACEOF
14769 cat >>$CONFIG_STATUS <<_ACEOF
14770 #
14771 # INIT-COMMANDS
14772 #
14773
14774
14775 _ACEOF
14776
14777 cat >>$CONFIG_STATUS <<\_ACEOF
14778
14779 # Handling of arguments.
14780 for ac_config_target in $ac_config_targets
14781 do
14782 case $ac_config_target in
14783 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14784 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14785 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14786 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
14787
14788 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14789 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14790 { (exit 1); exit 1; }; };;
14791 esac
14792 done
14793
14794
14795 # If the user did not use the arguments to specify the items to instantiate,
14796 # then the envvar interface is used. Set only those that are not.
14797 # We use the long form for the default assignment because of an extremely
14798 # bizarre bug on SunOS 4.1.3.
14799 if $ac_need_defaults; then
14800 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14801 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14802 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14803 fi
14804
14805 # Have a temporary directory for convenience. Make it in the build tree
14806 # simply because there is no reason against having it here, and in addition,
14807 # creating and moving files from /tmp can sometimes cause problems.
14808 # Hook for its removal unless debugging.
14809 # Note that there is a small window in which the directory will not be cleaned:
14810 # after its creation but before its name has been assigned to `$tmp'.
14811 $debug ||
14812 {
14813 tmp=
14814 trap 'exit_status=$?
14815 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14816 ' 0
14817 trap '{ (exit 1); exit 1; }' 1 2 13 15
14818 }
14819 # Create a (secure) tmp directory for tmp files.
14820
14821 {
14822 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14823 test -n "$tmp" && test -d "$tmp"
14824 } ||
14825 {
14826 tmp=./conf$$-$RANDOM
14827 (umask 077 && mkdir "$tmp")
14828 } ||
14829 {
14830 echo "$me: cannot create a temporary directory in ." >&2
14831 { (exit 1); exit 1; }
14832 }
14833
14834 #
14835 # Set up the sed scripts for CONFIG_FILES section.
14836 #
14837
14838 # No need to generate the scripts if there are no CONFIG_FILES.
14839 # This happens for instance when ./config.status config.h
14840 if test -n "$CONFIG_FILES"; then
14841
14842 _ACEOF
14843
14844
14845
14846 ac_delim='%!_!# '
14847 for ac_last_try in false false false false false :; do
14848 cat >conf$$subs.sed <<_ACEOF
14849 SHELL!$SHELL$ac_delim
14850 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14851 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14852 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14853 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14854 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14855 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14856 exec_prefix!$exec_prefix$ac_delim
14857 prefix!$prefix$ac_delim
14858 program_transform_name!$program_transform_name$ac_delim
14859 bindir!$bindir$ac_delim
14860 sbindir!$sbindir$ac_delim
14861 libexecdir!$libexecdir$ac_delim
14862 datarootdir!$datarootdir$ac_delim
14863 datadir!$datadir$ac_delim
14864 sysconfdir!$sysconfdir$ac_delim
14865 sharedstatedir!$sharedstatedir$ac_delim
14866 localstatedir!$localstatedir$ac_delim
14867 includedir!$includedir$ac_delim
14868 oldincludedir!$oldincludedir$ac_delim
14869 docdir!$docdir$ac_delim
14870 infodir!$infodir$ac_delim
14871 htmldir!$htmldir$ac_delim
14872 dvidir!$dvidir$ac_delim
14873 pdfdir!$pdfdir$ac_delim
14874 psdir!$psdir$ac_delim
14875 libdir!$libdir$ac_delim
14876 localedir!$localedir$ac_delim
14877 mandir!$mandir$ac_delim
14878 DEFS!$DEFS$ac_delim
14879 ECHO_C!$ECHO_C$ac_delim
14880 ECHO_N!$ECHO_N$ac_delim
14881 ECHO_T!$ECHO_T$ac_delim
14882 LIBS!$LIBS$ac_delim
14883 build_alias!$build_alias$ac_delim
14884 host_alias!$host_alias$ac_delim
14885 target_alias!$target_alias$ac_delim
14886 build!$build$ac_delim
14887 build_cpu!$build_cpu$ac_delim
14888 build_vendor!$build_vendor$ac_delim
14889 build_os!$build_os$ac_delim
14890 host!$host$ac_delim
14891 host_cpu!$host_cpu$ac_delim
14892 host_vendor!$host_vendor$ac_delim
14893 host_os!$host_os$ac_delim
14894 SHLICC2!$SHLICC2$ac_delim
14895 CC!$CC$ac_delim
14896 CFLAGS!$CFLAGS$ac_delim
14897 LDFLAGS!$LDFLAGS$ac_delim
14898 CPPFLAGS!$CPPFLAGS$ac_delim
14899 ac_ct_CC!$ac_ct_CC$ac_delim
14900 EXEEXT!$EXEEXT$ac_delim
14901 OBJEXT!$OBJEXT$ac_delim
14902 ARCHFLAGS!$ARCHFLAGS$ac_delim
14903 CPP!$CPP$ac_delim
14904 GREP!$GREP$ac_delim
14905 EGREP!$EGREP$ac_delim
14906 LIBOBJS!$LIBOBJS$ac_delim
14907 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
14908 RANLIB!$RANLIB$ac_delim
14909 V_CCOPT!$V_CCOPT$ac_delim
14910 V_DEFS!$V_DEFS$ac_delim
14911 V_GROUP!$V_GROUP$ac_delim
14912 V_INCLS!$V_INCLS$ac_delim
14913 V_PCAPDEP!$V_PCAPDEP$ac_delim
14914 LOCALSRC!$LOCALSRC$ac_delim
14915 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
14916 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
14917 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14918 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14919 INSTALL_DATA!$INSTALL_DATA$ac_delim
14920 LTLIBOBJS!$LTLIBOBJS$ac_delim
14921 _ACEOF
14922
14923 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 72; then
14924 break
14925 elif $ac_last_try; then
14926 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14927 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14928 { (exit 1); exit 1; }; }
14929 else
14930 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14931 fi
14932 done
14933
14934 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14935 if test -n "$ac_eof"; then
14936 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14937 ac_eof=`expr $ac_eof + 1`
14938 fi
14939
14940 cat >>$CONFIG_STATUS <<_ACEOF
14941 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14943 _ACEOF
14944 sed '
14945 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14946 s/^/s,@/; s/!/@,|#_!!_#|/
14947 :n
14948 t n
14949 s/'"$ac_delim"'$/,g/; t
14950 s/$/\\/; p
14951 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14952 ' >>$CONFIG_STATUS <conf$$subs.sed
14953 rm -f conf$$subs.sed
14954 cat >>$CONFIG_STATUS <<_ACEOF
14955 :end
14956 s/|#_!!_#|//g
14957 CEOF$ac_eof
14958 _ACEOF
14959
14960
14961 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14962 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14963 # trailing colons and then remove the whole line if VPATH becomes empty
14964 # (actually we leave an empty line to preserve line numbers).
14965 if test "x$srcdir" = x.; then
14966 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14967 s/:*\$(srcdir):*/:/
14968 s/:*\${srcdir}:*/:/
14969 s/:*@srcdir@:*/:/
14970 s/^\([^=]*=[ ]*\):*/\1/
14971 s/:*$//
14972 s/^[^=]*=[ ]*$//
14973 }'
14974 fi
14975
14976 cat >>$CONFIG_STATUS <<\_ACEOF
14977 fi # test -n "$CONFIG_FILES"
14978
14979
14980 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14981 do
14982 case $ac_tag in
14983 :[FHLC]) ac_mode=$ac_tag; continue;;
14984 esac
14985 case $ac_mode$ac_tag in
14986 :[FHL]*:*);;
14987 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14988 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14989 { (exit 1); exit 1; }; };;
14990 :[FH]-) ac_tag=-:-;;
14991 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14992 esac
14993 ac_save_IFS=$IFS
14994 IFS=:
14995 set x $ac_tag
14996 IFS=$ac_save_IFS
14997 shift
14998 ac_file=$1
14999 shift
15000
15001 case $ac_mode in
15002 :L) ac_source=$1;;
15003 :[FH])
15004 ac_file_inputs=
15005 for ac_f
15006 do
15007 case $ac_f in
15008 -) ac_f="$tmp/stdin";;
15009 *) # Look for the file first in the build tree, then in the source tree
15010 # (if the path is not absolute). The absolute path cannot be DOS-style,
15011 # because $ac_f cannot contain `:'.
15012 test -f "$ac_f" ||
15013 case $ac_f in
15014 [\\/$]*) false;;
15015 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15016 esac ||
15017 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15018 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15019 { (exit 1); exit 1; }; };;
15020 esac
15021 ac_file_inputs="$ac_file_inputs $ac_f"
15022 done
15023
15024 # Let's still pretend it is `configure' which instantiates (i.e., don't
15025 # use $as_me), people would be surprised to read:
15026 # /* config.h. Generated by config.status. */
15027 configure_input="Generated from "`IFS=:
15028 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15029 if test x"$ac_file" != x-; then
15030 configure_input="$ac_file. $configure_input"
15031 { echo "$as_me:$LINENO: creating $ac_file" >&5
15032 echo "$as_me: creating $ac_file" >&6;}
15033 fi
15034
15035 case $ac_tag in
15036 *:-:* | *:-) cat >"$tmp/stdin";;
15037 esac
15038 ;;
15039 esac
15040
15041 ac_dir=`$as_dirname -- "$ac_file" ||
15042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15043 X"$ac_file" : 'X\(//\)[^/]' \| \
15044 X"$ac_file" : 'X\(//\)$' \| \
15045 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15046 echo X"$ac_file" |
15047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15048 s//\1/
15049 q
15050 }
15051 /^X\(\/\/\)[^/].*/{
15052 s//\1/
15053 q
15054 }
15055 /^X\(\/\/\)$/{
15056 s//\1/
15057 q
15058 }
15059 /^X\(\/\).*/{
15060 s//\1/
15061 q
15062 }
15063 s/.*/./; q'`
15064 { as_dir="$ac_dir"
15065 case $as_dir in #(
15066 -*) as_dir=./$as_dir;;
15067 esac
15068 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15069 as_dirs=
15070 while :; do
15071 case $as_dir in #(
15072 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15073 *) as_qdir=$as_dir;;
15074 esac
15075 as_dirs="'$as_qdir' $as_dirs"
15076 as_dir=`$as_dirname -- "$as_dir" ||
15077 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15078 X"$as_dir" : 'X\(//\)[^/]' \| \
15079 X"$as_dir" : 'X\(//\)$' \| \
15080 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15081 echo X"$as_dir" |
15082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15083 s//\1/
15084 q
15085 }
15086 /^X\(\/\/\)[^/].*/{
15087 s//\1/
15088 q
15089 }
15090 /^X\(\/\/\)$/{
15091 s//\1/
15092 q
15093 }
15094 /^X\(\/\).*/{
15095 s//\1/
15096 q
15097 }
15098 s/.*/./; q'`
15099 test -d "$as_dir" && break
15100 done
15101 test -z "$as_dirs" || eval "mkdir $as_dirs"
15102 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15103 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15104 { (exit 1); exit 1; }; }; }
15105 ac_builddir=.
15106
15107 case "$ac_dir" in
15108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15109 *)
15110 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15111 # A ".." for each directory in $ac_dir_suffix.
15112 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15113 case $ac_top_builddir_sub in
15114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15116 esac ;;
15117 esac
15118 ac_abs_top_builddir=$ac_pwd
15119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15120 # for backward compatibility:
15121 ac_top_builddir=$ac_top_build_prefix
15122
15123 case $srcdir in
15124 .) # We are building in place.
15125 ac_srcdir=.
15126 ac_top_srcdir=$ac_top_builddir_sub
15127 ac_abs_top_srcdir=$ac_pwd ;;
15128 [\\/]* | ?:[\\/]* ) # Absolute name.
15129 ac_srcdir=$srcdir$ac_dir_suffix;
15130 ac_top_srcdir=$srcdir
15131 ac_abs_top_srcdir=$srcdir ;;
15132 *) # Relative name.
15133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15134 ac_top_srcdir=$ac_top_build_prefix$srcdir
15135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15136 esac
15137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15138
15139
15140 case $ac_mode in
15141 :F)
15142 #
15143 # CONFIG_FILE
15144 #
15145
15146 case $INSTALL in
15147 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15148 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15149 esac
15150 _ACEOF
15151
15152 cat >>$CONFIG_STATUS <<\_ACEOF
15153 # If the template does not know about datarootdir, expand it.
15154 # FIXME: This hack should be removed a few years after 2.60.
15155 ac_datarootdir_hack=; ac_datarootdir_seen=
15156
15157 case `sed -n '/datarootdir/ {
15158 p
15159 q
15160 }
15161 /@datadir@/p
15162 /@docdir@/p
15163 /@infodir@/p
15164 /@localedir@/p
15165 /@mandir@/p
15166 ' $ac_file_inputs` in
15167 *datarootdir*) ac_datarootdir_seen=yes;;
15168 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15169 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15170 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15171 _ACEOF
15172 cat >>$CONFIG_STATUS <<_ACEOF
15173 ac_datarootdir_hack='
15174 s&@datadir@&$datadir&g
15175 s&@docdir@&$docdir&g
15176 s&@infodir@&$infodir&g
15177 s&@localedir@&$localedir&g
15178 s&@mandir@&$mandir&g
15179 s&\\\${datarootdir}&$datarootdir&g' ;;
15180 esac
15181 _ACEOF
15182
15183 # Neutralize VPATH when `$srcdir' = `.'.
15184 # Shell code in configure.ac might set extrasub.
15185 # FIXME: do we really want to maintain this feature?
15186 cat >>$CONFIG_STATUS <<_ACEOF
15187 sed "$ac_vpsub
15188 $extrasub
15189 _ACEOF
15190 cat >>$CONFIG_STATUS <<\_ACEOF
15191 :t
15192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15193 s&@configure_input@&$configure_input&;t t
15194 s&@top_builddir@&$ac_top_builddir_sub&;t t
15195 s&@srcdir@&$ac_srcdir&;t t
15196 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15197 s&@top_srcdir@&$ac_top_srcdir&;t t
15198 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15199 s&@builddir@&$ac_builddir&;t t
15200 s&@abs_builddir@&$ac_abs_builddir&;t t
15201 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15202 s&@INSTALL@&$ac_INSTALL&;t t
15203 $ac_datarootdir_hack
15204 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
15205
15206 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15207 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15208 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15209 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15210 which seems to be undefined. Please make sure it is defined." >&5
15211 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15212 which seems to be undefined. Please make sure it is defined." >&2;}
15213
15214 rm -f "$tmp/stdin"
15215 case $ac_file in
15216 -) cat "$tmp/out"; rm -f "$tmp/out";;
15217 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15218 esac
15219 ;;
15220 :H)
15221 #
15222 # CONFIG_HEADER
15223 #
15224 _ACEOF
15225
15226 # Transform confdefs.h into a sed script `conftest.defines', that
15227 # substitutes the proper values into config.h.in to produce config.h.
15228 rm -f conftest.defines conftest.tail
15229 # First, append a space to every undef/define line, to ease matching.
15230 echo 's/$/ /' >conftest.defines
15231 # Then, protect against being on the right side of a sed subst, or in
15232 # an unquoted here document, in config.status. If some macros were
15233 # called several times there might be several #defines for the same
15234 # symbol, which is useless. But do not sort them, since the last
15235 # AC_DEFINE must be honored.
15236 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15237 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15238 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15239 # PARAMS is the parameter list in the macro definition--in most cases, it's
15240 # just an empty string.
15241 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15242 ac_dB='\\)[ (].*,\\1define\\2'
15243 ac_dC=' '
15244 ac_dD=' ,'
15245
15246 uniq confdefs.h |
15247 sed -n '
15248 t rset
15249 :rset
15250 s/^[ ]*#[ ]*define[ ][ ]*//
15251 t ok
15252 d
15253 :ok
15254 s/[\\&,]/\\&/g
15255 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15256 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15257 ' >>conftest.defines
15258
15259 # Remove the space that was appended to ease matching.
15260 # Then replace #undef with comments. This is necessary, for
15261 # example, in the case of _POSIX_SOURCE, which is predefined and required
15262 # on some systems where configure will not decide to define it.
15263 # (The regexp can be short, since the line contains either #define or #undef.)
15264 echo 's/ $//
15265 s,^[ #]*u.*,/* & */,' >>conftest.defines
15266
15267 # Break up conftest.defines:
15268 ac_max_sed_lines=50
15269
15270 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15271 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15272 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15273 # et cetera.
15274 ac_in='$ac_file_inputs'
15275 ac_out='"$tmp/out1"'
15276 ac_nxt='"$tmp/out2"'
15277
15278 while :
15279 do
15280 # Write a here document:
15281 cat >>$CONFIG_STATUS <<_ACEOF
15282 # First, check the format of the line:
15283 cat >"\$tmp/defines.sed" <<\\CEOF
15284 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15285 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15286 b
15287 :def
15288 _ACEOF
15289 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15290 echo 'CEOF
15291 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15292 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15293 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15294 grep . conftest.tail >/dev/null || break
15295 rm -f conftest.defines
15296 mv conftest.tail conftest.defines
15297 done
15298 rm -f conftest.defines conftest.tail
15299
15300 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15301 cat >>$CONFIG_STATUS <<\_ACEOF
15302 if test x"$ac_file" != x-; then
15303 echo "/* $configure_input */" >"$tmp/config.h"
15304 cat "$ac_result" >>"$tmp/config.h"
15305 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15306 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15307 echo "$as_me: $ac_file is unchanged" >&6;}
15308 else
15309 rm -f $ac_file
15310 mv "$tmp/config.h" $ac_file
15311 fi
15312 else
15313 echo "/* $configure_input */"
15314 cat "$ac_result"
15315 fi
15316 rm -f "$tmp/out12"
15317 ;;
15318
15319 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15320 echo "$as_me: executing $ac_file commands" >&6;}
15321 ;;
15322 esac
15323
15324
15325 case $ac_file$ac_mode in
15326 "default-1":C) if test -f .devel; then
15327 echo timestamp > stamp-h
15328 cat Makefile-devel-adds >> Makefile
15329 make depend
15330 fi ;;
15331
15332 esac
15333 done # for ac_tag
15334
15335
15336 { (exit 0); exit 0; }
15337 _ACEOF
15338 chmod +x $CONFIG_STATUS
15339 ac_clean_files=$ac_clean_files_save
15340
15341
15342 # configure is writing to config.log, and then calls config.status.
15343 # config.status does its own redirection, appending to config.log.
15344 # Unfortunately, on DOS this fails, as config.log is still kept open
15345 # by configure, so config.status won't be able to write to it; its
15346 # output is simply discarded. So we exec the FD to /dev/null,
15347 # effectively closing config.log, so it can be properly (re)opened and
15348 # appended to by config.status. When coming back to configure, we
15349 # need to make the FD available again.
15350 if test "$no_create" != yes; then
15351 ac_cs_success=:
15352 ac_config_status_args=
15353 test "$silent" = yes &&
15354 ac_config_status_args="$ac_config_status_args --quiet"
15355 exec 5>/dev/null
15356 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15357 exec 5>>config.log
15358 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15359 # would make configure fail if this is the last instruction.
15360 $ac_cs_success || { (exit 1); exit 1; }
15361 fi
15362
15363 exit 0