]> The Tcpdump Group git mirrors - tcpdump/blob - configure
From Marc Binderberger: check whether XXX is null before checking
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.204 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
50 fi
51 rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 as_unset=unset
57 else
58 as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" "" $as_nl"
70
71 # Find who we are. Look in the path if we contain no directory separator.
72 case $0 in
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77 IFS=$as_save_IFS
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83 ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88 as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 LC_TELEPHONE LC_TIME
108 do
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
111 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 as_expr=expr
120 else
121 as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125 as_basename=basename
126 else
127 as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
138 s//\1/
139 q
140 }
141 /^X\/\(\/\/\)$/{
142 s//\1/
143 q
144 }
145 /^X\/\(\/\).*/{
146 s//\1/
147 q
148 }
149 s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
157 as_have_required=yes
158 else
159 as_have_required=no
160 fi
161
162 if test $as_have_required = yes && (eval ":
163 (as_func_return () {
164 (exit \$1)
165 }
166 as_func_success () {
167 as_func_return 0
168 }
169 as_func_failure () {
170 as_func_return 1
171 }
172 as_func_ret_success () {
173 return 0
174 }
175 as_func_ret_failure () {
176 return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181 :
182 else
183 exitcode=1
184 echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188 exitcode=1
189 echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193 :
194 else
195 exitcode=1
196 echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200 exitcode=1
201 echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 :
206 else
207 exitcode=1
208 echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214 as_lineno_1=\$LINENO
215 as_lineno_2=\$LINENO
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219 :
220 else
221 as_candidate_shells=
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 case $as_dir in
228 /*)
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 done;;
232 esac
233 done
234 IFS=$as_save_IFS
235
236
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259 CONFIG_SHELL=$as_shell
260 as_have_required=yes
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279 (exit $1)
280 }
281 as_func_success () {
282 as_func_return 0
283 }
284 as_func_failure () {
285 as_func_return 1
286 }
287 as_func_ret_success () {
288 return 0
289 }
290 as_func_ret_failure () {
291 return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296 :
297 else
298 exitcode=1
299 echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303 exitcode=1
304 echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308 :
309 else
310 exitcode=1
311 echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315 exitcode=1
316 echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 :
321 else
322 exitcode=1
323 echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329 as_lineno_1=$LINENO
330 as_lineno_2=$LINENO
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336 break
337 fi
338
339 fi
340
341 done
342
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346 done
347 export CONFIG_SHELL
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368 (exit \$1)
369 }
370 as_func_success () {
371 as_func_return 0
372 }
373 as_func_failure () {
374 as_func_return 1
375 }
376 as_func_ret_success () {
377 return 0
378 }
379 as_func_ret_failure () {
380 return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385 :
386 else
387 exitcode=1
388 echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392 exitcode=1
393 echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397 :
398 else
399 exitcode=1
400 echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404 exitcode=1
405 echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 :
410 else
411 exitcode=1
412 echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
419 echo message
420 }
421
422
423
424 as_lineno_1=$LINENO
425 as_lineno_2=$LINENO
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
435 # case at line end.
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
439 sed -n '
440 p
441 /[$]LINENO/=
442 ' <$as_myself |
443 sed '
444 s/[$]LINENO.*/&-/
445 t lineno
446 b
447 :lineno
448 N
449 :loop
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 t loop
452 s/-\n.*//
453 ' >$as_me.lineno &&
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
457
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
461 . "./$as_me.lineno"
462 # Exit status is that of the last command.
463 exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_dirname=dirname
469 else
470 as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476 case `echo 'x\c'` in
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) ECHO_C='\c';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 as_expr=expr
487 else
488 as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
494 else
495 rm -f conf$$.dir
496 mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s='ln -s'
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508 as_ln_s=ln
509 else
510 as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516 as_mkdir_p=:
517 else
518 test -d ./-p && rmdir ./-p
519 as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523 as_test_x='test -x'
524 else
525 if ls -dL / >/dev/null 2>&1; then
526 as_ls_L_option=L
527 else
528 as_ls_L_option=
529 fi
530 as_test_x='
531 eval sh -c '\''
532 if test -d "$1"; then
533 test -d "$1/.";
534 else
535 case $1 in
536 -*)set "./$1";;
537 esac;
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
540 '\'' sh
541 '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 7<&0 </dev/null 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="tcpdump.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 SHLICC2
663 CC
664 CFLAGS
665 LDFLAGS
666 CPPFLAGS
667 ac_ct_CC
668 EXEEXT
669 OBJEXT
670 CPP
671 GREP
672 EGREP
673 LIBOBJS
674 RANLIB
675 V_CCOPT
676 V_DEFS
677 V_GROUP
678 V_INCLS
679 V_PCAPDEP
680 LOCALSRC
681 MAN_FILE_FORMATS
682 MAN_MISC_INFO
683 INSTALL_PROGRAM
684 INSTALL_SCRIPT
685 INSTALL_DATA
686 LTLIBOBJS'
687 ac_subst_files=''
688 ac_precious_vars='build_alias
689 host_alias
690 target_alias
691 CC
692 CFLAGS
693 LDFLAGS
694 LIBS
695 CPPFLAGS
696 CPP'
697
698
699 # Initialize some variables set by options.
700 ac_init_help=
701 ac_init_version=false
702 # The variables have the same names as the options, with
703 # dashes changed to underlines.
704 cache_file=/dev/null
705 exec_prefix=NONE
706 no_create=
707 no_recursion=
708 prefix=NONE
709 program_prefix=NONE
710 program_suffix=NONE
711 program_transform_name=s,x,x,
712 silent=
713 site=
714 srcdir=
715 verbose=
716 x_includes=NONE
717 x_libraries=NONE
718
719 # Installation directory options.
720 # These are left unexpanded so users can "make install exec_prefix=/foo"
721 # and all the variables that are supposed to be based on exec_prefix
722 # by default will actually change.
723 # Use braces instead of parens because sh, perl, etc. also accept them.
724 # (The list follows the same order as the GNU Coding Standards.)
725 bindir='${exec_prefix}/bin'
726 sbindir='${exec_prefix}/sbin'
727 libexecdir='${exec_prefix}/libexec'
728 datarootdir='${prefix}/share'
729 datadir='${datarootdir}'
730 sysconfdir='${prefix}/etc'
731 sharedstatedir='${prefix}/com'
732 localstatedir='${prefix}/var'
733 includedir='${prefix}/include'
734 oldincludedir='/usr/include'
735 docdir='${datarootdir}/doc/${PACKAGE}'
736 infodir='${datarootdir}/info'
737 htmldir='${docdir}'
738 dvidir='${docdir}'
739 pdfdir='${docdir}'
740 psdir='${docdir}'
741 libdir='${exec_prefix}/lib'
742 localedir='${datarootdir}/locale'
743 mandir='${datarootdir}/man'
744
745 ac_prev=
746 ac_dashdash=
747 for ac_option
748 do
749 # If the previous option needs an argument, assign it.
750 if test -n "$ac_prev"; then
751 eval $ac_prev=\$ac_option
752 ac_prev=
753 continue
754 fi
755
756 case $ac_option in
757 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
758 *) ac_optarg=yes ;;
759 esac
760
761 # Accept the important Cygnus configure options, so we can diagnose typos.
762
763 case $ac_dashdash$ac_option in
764 --)
765 ac_dashdash=yes ;;
766
767 -bindir | --bindir | --bindi | --bind | --bin | --bi)
768 ac_prev=bindir ;;
769 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
770 bindir=$ac_optarg ;;
771
772 -build | --build | --buil | --bui | --bu)
773 ac_prev=build_alias ;;
774 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
775 build_alias=$ac_optarg ;;
776
777 -cache-file | --cache-file | --cache-fil | --cache-fi \
778 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
779 ac_prev=cache_file ;;
780 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
781 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
782 cache_file=$ac_optarg ;;
783
784 --config-cache | -C)
785 cache_file=config.cache ;;
786
787 -datadir | --datadir | --datadi | --datad)
788 ac_prev=datadir ;;
789 -datadir=* | --datadir=* | --datadi=* | --datad=*)
790 datadir=$ac_optarg ;;
791
792 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
793 | --dataroo | --dataro | --datar)
794 ac_prev=datarootdir ;;
795 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
796 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
797 datarootdir=$ac_optarg ;;
798
799 -disable-* | --disable-*)
800 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
804 { (exit 1); exit 1; }; }
805 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
806 eval enable_$ac_feature=no ;;
807
808 -docdir | --docdir | --docdi | --doc | --do)
809 ac_prev=docdir ;;
810 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
811 docdir=$ac_optarg ;;
812
813 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
814 ac_prev=dvidir ;;
815 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
816 dvidir=$ac_optarg ;;
817
818 -enable-* | --enable-*)
819 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
820 # Reject names that are not valid shell variable names.
821 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
822 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
823 { (exit 1); exit 1; }; }
824 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
825 eval enable_$ac_feature=\$ac_optarg ;;
826
827 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
828 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
829 | --exec | --exe | --ex)
830 ac_prev=exec_prefix ;;
831 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
832 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
833 | --exec=* | --exe=* | --ex=*)
834 exec_prefix=$ac_optarg ;;
835
836 -gas | --gas | --ga | --g)
837 # Obsolete; use --with-gas.
838 with_gas=yes ;;
839
840 -help | --help | --hel | --he | -h)
841 ac_init_help=long ;;
842 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
843 ac_init_help=recursive ;;
844 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
845 ac_init_help=short ;;
846
847 -host | --host | --hos | --ho)
848 ac_prev=host_alias ;;
849 -host=* | --host=* | --hos=* | --ho=*)
850 host_alias=$ac_optarg ;;
851
852 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
853 ac_prev=htmldir ;;
854 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
855 | --ht=*)
856 htmldir=$ac_optarg ;;
857
858 -includedir | --includedir | --includedi | --included | --include \
859 | --includ | --inclu | --incl | --inc)
860 ac_prev=includedir ;;
861 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
862 | --includ=* | --inclu=* | --incl=* | --inc=*)
863 includedir=$ac_optarg ;;
864
865 -infodir | --infodir | --infodi | --infod | --info | --inf)
866 ac_prev=infodir ;;
867 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
868 infodir=$ac_optarg ;;
869
870 -libdir | --libdir | --libdi | --libd)
871 ac_prev=libdir ;;
872 -libdir=* | --libdir=* | --libdi=* | --libd=*)
873 libdir=$ac_optarg ;;
874
875 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
876 | --libexe | --libex | --libe)
877 ac_prev=libexecdir ;;
878 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
879 | --libexe=* | --libex=* | --libe=*)
880 libexecdir=$ac_optarg ;;
881
882 -localedir | --localedir | --localedi | --localed | --locale)
883 ac_prev=localedir ;;
884 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
885 localedir=$ac_optarg ;;
886
887 -localstatedir | --localstatedir | --localstatedi | --localstated \
888 | --localstate | --localstat | --localsta | --localst | --locals)
889 ac_prev=localstatedir ;;
890 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
891 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
892 localstatedir=$ac_optarg ;;
893
894 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
895 ac_prev=mandir ;;
896 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
897 mandir=$ac_optarg ;;
898
899 -nfp | --nfp | --nf)
900 # Obsolete; use --without-fp.
901 with_fp=no ;;
902
903 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
904 | --no-cr | --no-c | -n)
905 no_create=yes ;;
906
907 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
908 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
909 no_recursion=yes ;;
910
911 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
912 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
913 | --oldin | --oldi | --old | --ol | --o)
914 ac_prev=oldincludedir ;;
915 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
916 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
917 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
918 oldincludedir=$ac_optarg ;;
919
920 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
921 ac_prev=prefix ;;
922 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
923 prefix=$ac_optarg ;;
924
925 -program-prefix | --program-prefix | --program-prefi | --program-pref \
926 | --program-pre | --program-pr | --program-p)
927 ac_prev=program_prefix ;;
928 -program-prefix=* | --program-prefix=* | --program-prefi=* \
929 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
930 program_prefix=$ac_optarg ;;
931
932 -program-suffix | --program-suffix | --program-suffi | --program-suff \
933 | --program-suf | --program-su | --program-s)
934 ac_prev=program_suffix ;;
935 -program-suffix=* | --program-suffix=* | --program-suffi=* \
936 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
937 program_suffix=$ac_optarg ;;
938
939 -program-transform-name | --program-transform-name \
940 | --program-transform-nam | --program-transform-na \
941 | --program-transform-n | --program-transform- \
942 | --program-transform | --program-transfor \
943 | --program-transfo | --program-transf \
944 | --program-trans | --program-tran \
945 | --progr-tra | --program-tr | --program-t)
946 ac_prev=program_transform_name ;;
947 -program-transform-name=* | --program-transform-name=* \
948 | --program-transform-nam=* | --program-transform-na=* \
949 | --program-transform-n=* | --program-transform-=* \
950 | --program-transform=* | --program-transfor=* \
951 | --program-transfo=* | --program-transf=* \
952 | --program-trans=* | --program-tran=* \
953 | --progr-tra=* | --program-tr=* | --program-t=*)
954 program_transform_name=$ac_optarg ;;
955
956 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
957 ac_prev=pdfdir ;;
958 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
959 pdfdir=$ac_optarg ;;
960
961 -psdir | --psdir | --psdi | --psd | --ps)
962 ac_prev=psdir ;;
963 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
964 psdir=$ac_optarg ;;
965
966 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
967 | -silent | --silent | --silen | --sile | --sil)
968 silent=yes ;;
969
970 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
971 ac_prev=sbindir ;;
972 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
973 | --sbi=* | --sb=*)
974 sbindir=$ac_optarg ;;
975
976 -sharedstatedir | --sharedstatedir | --sharedstatedi \
977 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
978 | --sharedst | --shareds | --shared | --share | --shar \
979 | --sha | --sh)
980 ac_prev=sharedstatedir ;;
981 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
982 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
983 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
984 | --sha=* | --sh=*)
985 sharedstatedir=$ac_optarg ;;
986
987 -site | --site | --sit)
988 ac_prev=site ;;
989 -site=* | --site=* | --sit=*)
990 site=$ac_optarg ;;
991
992 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
993 ac_prev=srcdir ;;
994 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
995 srcdir=$ac_optarg ;;
996
997 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
998 | --syscon | --sysco | --sysc | --sys | --sy)
999 ac_prev=sysconfdir ;;
1000 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1001 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1002 sysconfdir=$ac_optarg ;;
1003
1004 -target | --target | --targe | --targ | --tar | --ta | --t)
1005 ac_prev=target_alias ;;
1006 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1007 target_alias=$ac_optarg ;;
1008
1009 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1010 verbose=yes ;;
1011
1012 -version | --version | --versio | --versi | --vers | -V)
1013 ac_init_version=: ;;
1014
1015 -with-* | --with-*)
1016 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid package name: $ac_package" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1022 eval with_$ac_package=\$ac_optarg ;;
1023
1024 -without-* | --without-*)
1025 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028 { echo "$as_me: error: invalid package name: $ac_package" >&2
1029 { (exit 1); exit 1; }; }
1030 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1031 eval with_$ac_package=no ;;
1032
1033 --x)
1034 # Obsolete; use --with-x.
1035 with_x=yes ;;
1036
1037 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1038 | --x-incl | --x-inc | --x-in | --x-i)
1039 ac_prev=x_includes ;;
1040 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1041 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1042 x_includes=$ac_optarg ;;
1043
1044 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1045 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1046 ac_prev=x_libraries ;;
1047 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1048 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1049 x_libraries=$ac_optarg ;;
1050
1051 -*) { echo "$as_me: error: unrecognized option: $ac_option
1052 Try \`$0 --help' for more information." >&2
1053 { (exit 1); exit 1; }; }
1054 ;;
1055
1056 *=*)
1057 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1061 { (exit 1); exit 1; }; }
1062 eval $ac_envvar=\$ac_optarg
1063 export $ac_envvar ;;
1064
1065 *)
1066 # FIXME: should be removed in autoconf 3.0.
1067 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1068 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1070 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1071 ;;
1072
1073 esac
1074 done
1075
1076 if test -n "$ac_prev"; then
1077 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1078 { echo "$as_me: error: missing argument to $ac_option" >&2
1079 { (exit 1); exit 1; }; }
1080 fi
1081
1082 # Be sure to have absolute directory names.
1083 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1084 datadir sysconfdir sharedstatedir localstatedir includedir \
1085 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1086 libdir localedir mandir
1087 do
1088 eval ac_val=\$$ac_var
1089 case $ac_val in
1090 [\\/$]* | ?:[\\/]* ) continue;;
1091 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1092 esac
1093 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1094 { (exit 1); exit 1; }; }
1095 done
1096
1097 # There might be people who depend on the old broken behavior: `$host'
1098 # used to hold the argument of --host etc.
1099 # FIXME: To remove some day.
1100 build=$build_alias
1101 host=$host_alias
1102 target=$target_alias
1103
1104 # FIXME: To remove some day.
1105 if test "x$host_alias" != x; then
1106 if test "x$build_alias" = x; then
1107 cross_compiling=maybe
1108 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1109 If a cross compiler is detected then cross compile mode will be used." >&2
1110 elif test "x$build_alias" != "x$host_alias"; then
1111 cross_compiling=yes
1112 fi
1113 fi
1114
1115 ac_tool_prefix=
1116 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1117
1118 test "$silent" = yes && exec 6>/dev/null
1119
1120
1121 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1122 ac_ls_di=`ls -di .` &&
1123 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1124 { echo "$as_me: error: Working directory cannot be determined" >&2
1125 { (exit 1); exit 1; }; }
1126 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1127 { echo "$as_me: error: pwd does not report name of working directory" >&2
1128 { (exit 1); exit 1; }; }
1129
1130
1131 # Find the source files, if location was not specified.
1132 if test -z "$srcdir"; then
1133 ac_srcdir_defaulted=yes
1134 # Try the directory containing this script, then the parent directory.
1135 ac_confdir=`$as_dirname -- "$0" ||
1136 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1137 X"$0" : 'X\(//\)[^/]' \| \
1138 X"$0" : 'X\(//\)$' \| \
1139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1140 echo X"$0" |
1141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1142 s//\1/
1143 q
1144 }
1145 /^X\(\/\/\)[^/].*/{
1146 s//\1/
1147 q
1148 }
1149 /^X\(\/\/\)$/{
1150 s//\1/
1151 q
1152 }
1153 /^X\(\/\).*/{
1154 s//\1/
1155 q
1156 }
1157 s/.*/./; q'`
1158 srcdir=$ac_confdir
1159 if test ! -r "$srcdir/$ac_unique_file"; then
1160 srcdir=..
1161 fi
1162 else
1163 ac_srcdir_defaulted=no
1164 fi
1165 if test ! -r "$srcdir/$ac_unique_file"; then
1166 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1167 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1168 { (exit 1); exit 1; }; }
1169 fi
1170 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1171 ac_abs_confdir=`(
1172 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1173 { (exit 1); exit 1; }; }
1174 pwd)`
1175 # When building in place, set srcdir=.
1176 if test "$ac_abs_confdir" = "$ac_pwd"; then
1177 srcdir=.
1178 fi
1179 # Remove unnecessary trailing slashes from srcdir.
1180 # Double slashes in file names in object file debugging info
1181 # mess up M-x gdb in Emacs.
1182 case $srcdir in
1183 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1184 esac
1185 for ac_var in $ac_precious_vars; do
1186 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1187 eval ac_env_${ac_var}_value=\$${ac_var}
1188 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1189 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1190 done
1191
1192 #
1193 # Report the --help message.
1194 #
1195 if test "$ac_init_help" = "long"; then
1196 # Omit some internal or obsolete options to make the list less imposing.
1197 # This message is too long to be a string in the A/UX 3.1 sh.
1198 cat <<_ACEOF
1199 \`configure' configures this package to adapt to many kinds of systems.
1200
1201 Usage: $0 [OPTION]... [VAR=VALUE]...
1202
1203 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1204 VAR=VALUE. See below for descriptions of some of the useful variables.
1205
1206 Defaults for the options are specified in brackets.
1207
1208 Configuration:
1209 -h, --help display this help and exit
1210 --help=short display options specific to this package
1211 --help=recursive display the short help of all the included packages
1212 -V, --version display version information and exit
1213 -q, --quiet, --silent do not print \`checking...' messages
1214 --cache-file=FILE cache test results in FILE [disabled]
1215 -C, --config-cache alias for \`--cache-file=config.cache'
1216 -n, --no-create do not create output files
1217 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1218
1219 Installation directories:
1220 --prefix=PREFIX install architecture-independent files in PREFIX
1221 [$ac_default_prefix]
1222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1223 [PREFIX]
1224
1225 By default, \`make install' will install all the files in
1226 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1227 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1228 for instance \`--prefix=\$HOME'.
1229
1230 For better control, use the options below.
1231
1232 Fine tuning of the installation directories:
1233 --bindir=DIR user executables [EPREFIX/bin]
1234 --sbindir=DIR system admin executables [EPREFIX/sbin]
1235 --libexecdir=DIR program executables [EPREFIX/libexec]
1236 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1237 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1238 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1239 --libdir=DIR object code libraries [EPREFIX/lib]
1240 --includedir=DIR C header files [PREFIX/include]
1241 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1242 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1243 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1244 --infodir=DIR info documentation [DATAROOTDIR/info]
1245 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1246 --mandir=DIR man documentation [DATAROOTDIR/man]
1247 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1248 --htmldir=DIR html documentation [DOCDIR]
1249 --dvidir=DIR dvi documentation [DOCDIR]
1250 --pdfdir=DIR pdf documentation [DOCDIR]
1251 --psdir=DIR ps documentation [DOCDIR]
1252 _ACEOF
1253
1254 cat <<\_ACEOF
1255
1256 System types:
1257 --build=BUILD configure for building on BUILD [guessed]
1258 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1259 _ACEOF
1260 fi
1261
1262 if test -n "$ac_init_help"; then
1263
1264 cat <<\_ACEOF
1265
1266 Optional Features:
1267 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1268 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1269 --enable-smb enable possibly-buggy SMB printer default=yes
1270 --disable-smb disable possibly-buggy SMB printer
1271 --enable-ipv6 enable ipv6 (with ipv4) support
1272 --disable-ipv6 disable ipv6 support
1273
1274 Optional Packages:
1275 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1276 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1277 --without-gcc don't use gcc
1278 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1279 --without-smi don't link with libsmi
1280 --with-user=USERNAME drop privileges by default to USERNAME
1281 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1282 --with-crypto[=PATH] use SSLeay libcrypto (located in directory PATH, if
1283 supplied). [default=yes, if available]
1284
1285 Some influential environment variables:
1286 CC C compiler command
1287 CFLAGS C compiler flags
1288 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1289 nonstandard directory <lib dir>
1290 LIBS libraries to pass to the linker, e.g. -l<library>
1291 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1292 you have headers in a nonstandard directory <include dir>
1293 CPP C preprocessor
1294
1295 Use these variables to override the choices made by `configure' or to help
1296 it to find libraries and programs with nonstandard names/locations.
1297
1298 _ACEOF
1299 ac_status=$?
1300 fi
1301
1302 if test "$ac_init_help" = "recursive"; then
1303 # If there are subdirs, report their specific --help.
1304 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1305 test -d "$ac_dir" || continue
1306 ac_builddir=.
1307
1308 case "$ac_dir" in
1309 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1310 *)
1311 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1312 # A ".." for each directory in $ac_dir_suffix.
1313 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1314 case $ac_top_builddir_sub in
1315 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1316 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1317 esac ;;
1318 esac
1319 ac_abs_top_builddir=$ac_pwd
1320 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1321 # for backward compatibility:
1322 ac_top_builddir=$ac_top_build_prefix
1323
1324 case $srcdir in
1325 .) # We are building in place.
1326 ac_srcdir=.
1327 ac_top_srcdir=$ac_top_builddir_sub
1328 ac_abs_top_srcdir=$ac_pwd ;;
1329 [\\/]* | ?:[\\/]* ) # Absolute name.
1330 ac_srcdir=$srcdir$ac_dir_suffix;
1331 ac_top_srcdir=$srcdir
1332 ac_abs_top_srcdir=$srcdir ;;
1333 *) # Relative name.
1334 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1335 ac_top_srcdir=$ac_top_build_prefix$srcdir
1336 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1337 esac
1338 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1339
1340 cd "$ac_dir" || { ac_status=$?; continue; }
1341 # Check for guested configure.
1342 if test -f "$ac_srcdir/configure.gnu"; then
1343 echo &&
1344 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1345 elif test -f "$ac_srcdir/configure"; then
1346 echo &&
1347 $SHELL "$ac_srcdir/configure" --help=recursive
1348 else
1349 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1350 fi || ac_status=$?
1351 cd "$ac_pwd" || { ac_status=$?; break; }
1352 done
1353 fi
1354
1355 test -n "$ac_init_help" && exit $ac_status
1356 if $ac_init_version; then
1357 cat <<\_ACEOF
1358 configure
1359 generated by GNU Autoconf 2.61
1360
1361 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1362 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1363 This configure script is free software; the Free Software Foundation
1364 gives unlimited permission to copy, distribute and modify it.
1365 _ACEOF
1366 exit
1367 fi
1368 cat >config.log <<_ACEOF
1369 This file contains any messages produced by compilers while
1370 running configure, to aid debugging if configure makes a mistake.
1371
1372 It was created by $as_me, which was
1373 generated by GNU Autoconf 2.61. Invocation command line was
1374
1375 $ $0 $@
1376
1377 _ACEOF
1378 exec 5>>config.log
1379 {
1380 cat <<_ASUNAME
1381 ## --------- ##
1382 ## Platform. ##
1383 ## --------- ##
1384
1385 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1386 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1387 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1388 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1389 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1390
1391 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1392 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1393
1394 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1395 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1396 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1397 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1398 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1399 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1400 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1401
1402 _ASUNAME
1403
1404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1405 for as_dir in $PATH
1406 do
1407 IFS=$as_save_IFS
1408 test -z "$as_dir" && as_dir=.
1409 echo "PATH: $as_dir"
1410 done
1411 IFS=$as_save_IFS
1412
1413 } >&5
1414
1415 cat >&5 <<_ACEOF
1416
1417
1418 ## ----------- ##
1419 ## Core tests. ##
1420 ## ----------- ##
1421
1422 _ACEOF
1423
1424
1425 # Keep a trace of the command line.
1426 # Strip out --no-create and --no-recursion so they do not pile up.
1427 # Strip out --silent because we don't want to record it for future runs.
1428 # Also quote any args containing shell meta-characters.
1429 # Make two passes to allow for proper duplicate-argument suppression.
1430 ac_configure_args=
1431 ac_configure_args0=
1432 ac_configure_args1=
1433 ac_must_keep_next=false
1434 for ac_pass in 1 2
1435 do
1436 for ac_arg
1437 do
1438 case $ac_arg in
1439 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1441 | -silent | --silent | --silen | --sile | --sil)
1442 continue ;;
1443 *\'*)
1444 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1445 esac
1446 case $ac_pass in
1447 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1448 2)
1449 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1450 if test $ac_must_keep_next = true; then
1451 ac_must_keep_next=false # Got value, back to normal.
1452 else
1453 case $ac_arg in
1454 *=* | --config-cache | -C | -disable-* | --disable-* \
1455 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1456 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1457 | -with-* | --with-* | -without-* | --without-* | --x)
1458 case "$ac_configure_args0 " in
1459 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1460 esac
1461 ;;
1462 -* ) ac_must_keep_next=true ;;
1463 esac
1464 fi
1465 ac_configure_args="$ac_configure_args '$ac_arg'"
1466 ;;
1467 esac
1468 done
1469 done
1470 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1471 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1472
1473 # When interrupted or exit'd, cleanup temporary files, and complete
1474 # config.log. We remove comments because anyway the quotes in there
1475 # would cause problems or look ugly.
1476 # WARNING: Use '\'' to represent an apostrophe within the trap.
1477 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1478 trap 'exit_status=$?
1479 # Save into config.log some information that might help in debugging.
1480 {
1481 echo
1482
1483 cat <<\_ASBOX
1484 ## ---------------- ##
1485 ## Cache variables. ##
1486 ## ---------------- ##
1487 _ASBOX
1488 echo
1489 # The following way of writing the cache mishandles newlines in values,
1490 (
1491 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1492 eval ac_val=\$$ac_var
1493 case $ac_val in #(
1494 *${as_nl}*)
1495 case $ac_var in #(
1496 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1497 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1498 esac
1499 case $ac_var in #(
1500 _ | IFS | as_nl) ;; #(
1501 *) $as_unset $ac_var ;;
1502 esac ;;
1503 esac
1504 done
1505 (set) 2>&1 |
1506 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1507 *${as_nl}ac_space=\ *)
1508 sed -n \
1509 "s/'\''/'\''\\\\'\'''\''/g;
1510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1511 ;; #(
1512 *)
1513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1514 ;;
1515 esac |
1516 sort
1517 )
1518 echo
1519
1520 cat <<\_ASBOX
1521 ## ----------------- ##
1522 ## Output variables. ##
1523 ## ----------------- ##
1524 _ASBOX
1525 echo
1526 for ac_var in $ac_subst_vars
1527 do
1528 eval ac_val=\$$ac_var
1529 case $ac_val in
1530 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1531 esac
1532 echo "$ac_var='\''$ac_val'\''"
1533 done | sort
1534 echo
1535
1536 if test -n "$ac_subst_files"; then
1537 cat <<\_ASBOX
1538 ## ------------------- ##
1539 ## File substitutions. ##
1540 ## ------------------- ##
1541 _ASBOX
1542 echo
1543 for ac_var in $ac_subst_files
1544 do
1545 eval ac_val=\$$ac_var
1546 case $ac_val in
1547 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1548 esac
1549 echo "$ac_var='\''$ac_val'\''"
1550 done | sort
1551 echo
1552 fi
1553
1554 if test -s confdefs.h; then
1555 cat <<\_ASBOX
1556 ## ----------- ##
1557 ## confdefs.h. ##
1558 ## ----------- ##
1559 _ASBOX
1560 echo
1561 cat confdefs.h
1562 echo
1563 fi
1564 test "$ac_signal" != 0 &&
1565 echo "$as_me: caught signal $ac_signal"
1566 echo "$as_me: exit $exit_status"
1567 } >&5
1568 rm -f core *.core core.conftest.* &&
1569 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1570 exit $exit_status
1571 ' 0
1572 for ac_signal in 1 2 13 15; do
1573 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1574 done
1575 ac_signal=0
1576
1577 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1578 rm -f -r conftest* confdefs.h
1579
1580 # Predefined preprocessor variables.
1581
1582 cat >>confdefs.h <<_ACEOF
1583 #define PACKAGE_NAME "$PACKAGE_NAME"
1584 _ACEOF
1585
1586
1587 cat >>confdefs.h <<_ACEOF
1588 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1589 _ACEOF
1590
1591
1592 cat >>confdefs.h <<_ACEOF
1593 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1594 _ACEOF
1595
1596
1597 cat >>confdefs.h <<_ACEOF
1598 #define PACKAGE_STRING "$PACKAGE_STRING"
1599 _ACEOF
1600
1601
1602 cat >>confdefs.h <<_ACEOF
1603 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1604 _ACEOF
1605
1606
1607 # Let the site file select an alternate cache file if it wants to.
1608 # Prefer explicitly selected file to automatically selected ones.
1609 if test -n "$CONFIG_SITE"; then
1610 set x "$CONFIG_SITE"
1611 elif test "x$prefix" != xNONE; then
1612 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1613 else
1614 set x "$ac_default_prefix/share/config.site" \
1615 "$ac_default_prefix/etc/config.site"
1616 fi
1617 shift
1618 for ac_site_file
1619 do
1620 if test -r "$ac_site_file"; then
1621 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1622 echo "$as_me: loading site script $ac_site_file" >&6;}
1623 sed 's/^/| /' "$ac_site_file" >&5
1624 . "$ac_site_file"
1625 fi
1626 done
1627
1628 if test -r "$cache_file"; then
1629 # Some versions of bash will fail to source /dev/null (special
1630 # files actually), so we avoid doing that.
1631 if test -f "$cache_file"; then
1632 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1633 echo "$as_me: loading cache $cache_file" >&6;}
1634 case $cache_file in
1635 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1636 *) . "./$cache_file";;
1637 esac
1638 fi
1639 else
1640 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1641 echo "$as_me: creating cache $cache_file" >&6;}
1642 >$cache_file
1643 fi
1644
1645 # Check that the precious variables saved in the cache have kept the same
1646 # value.
1647 ac_cache_corrupted=false
1648 for ac_var in $ac_precious_vars; do
1649 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1650 eval ac_new_set=\$ac_env_${ac_var}_set
1651 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1652 eval ac_new_val=\$ac_env_${ac_var}_value
1653 case $ac_old_set,$ac_new_set in
1654 set,)
1655 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1656 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1657 ac_cache_corrupted=: ;;
1658 ,set)
1659 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1660 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1661 ac_cache_corrupted=: ;;
1662 ,);;
1663 *)
1664 if test "x$ac_old_val" != "x$ac_new_val"; then
1665 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1666 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1667 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1668 echo "$as_me: former value: $ac_old_val" >&2;}
1669 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1670 echo "$as_me: current value: $ac_new_val" >&2;}
1671 ac_cache_corrupted=:
1672 fi;;
1673 esac
1674 # Pass precious variables to config.status.
1675 if test "$ac_new_set" = set; then
1676 case $ac_new_val in
1677 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1678 *) ac_arg=$ac_var=$ac_new_val ;;
1679 esac
1680 case " $ac_configure_args " in
1681 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1682 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1683 esac
1684 fi
1685 done
1686 if $ac_cache_corrupted; then
1687 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1688 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1689 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1690 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1691 { (exit 1); exit 1; }; }
1692 fi
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710 ac_ext=c
1711 ac_cpp='$CPP $CPPFLAGS'
1712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1715
1716
1717
1718 ac_aux_dir=
1719 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1720 if test -f "$ac_dir/install-sh"; then
1721 ac_aux_dir=$ac_dir
1722 ac_install_sh="$ac_aux_dir/install-sh -c"
1723 break
1724 elif test -f "$ac_dir/install.sh"; then
1725 ac_aux_dir=$ac_dir
1726 ac_install_sh="$ac_aux_dir/install.sh -c"
1727 break
1728 elif test -f "$ac_dir/shtool"; then
1729 ac_aux_dir=$ac_dir
1730 ac_install_sh="$ac_aux_dir/shtool install -c"
1731 break
1732 fi
1733 done
1734 if test -z "$ac_aux_dir"; then
1735 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1736 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1737 { (exit 1); exit 1; }; }
1738 fi
1739
1740 # These three variables are undocumented and unsupported,
1741 # and are intended to be withdrawn in a future Autoconf release.
1742 # They can cause serious problems if a builder's source tree is in a directory
1743 # whose full name contains unusual characters.
1744 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1745 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1746 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1747
1748
1749 # Make sure we can run config.sub.
1750 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1751 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1752 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1753 { (exit 1); exit 1; }; }
1754
1755 { echo "$as_me:$LINENO: checking build system type" >&5
1756 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1757 if test "${ac_cv_build+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760 ac_build_alias=$build_alias
1761 test "x$ac_build_alias" = x &&
1762 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1763 test "x$ac_build_alias" = x &&
1764 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1765 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1766 { (exit 1); exit 1; }; }
1767 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1768 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1769 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1770 { (exit 1); exit 1; }; }
1771
1772 fi
1773 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1774 echo "${ECHO_T}$ac_cv_build" >&6; }
1775 case $ac_cv_build in
1776 *-*-*) ;;
1777 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1778 echo "$as_me: error: invalid value of canonical build" >&2;}
1779 { (exit 1); exit 1; }; };;
1780 esac
1781 build=$ac_cv_build
1782 ac_save_IFS=$IFS; IFS='-'
1783 set x $ac_cv_build
1784 shift
1785 build_cpu=$1
1786 build_vendor=$2
1787 shift; shift
1788 # Remember, the first character of IFS is used to create $*,
1789 # except with old shells:
1790 build_os=$*
1791 IFS=$ac_save_IFS
1792 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1793
1794
1795 { echo "$as_me:$LINENO: checking host system type" >&5
1796 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1797 if test "${ac_cv_host+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800 if test "x$host_alias" = x; then
1801 ac_cv_host=$ac_cv_build
1802 else
1803 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1804 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1805 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1806 { (exit 1); exit 1; }; }
1807 fi
1808
1809 fi
1810 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1811 echo "${ECHO_T}$ac_cv_host" >&6; }
1812 case $ac_cv_host in
1813 *-*-*) ;;
1814 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1815 echo "$as_me: error: invalid value of canonical host" >&2;}
1816 { (exit 1); exit 1; }; };;
1817 esac
1818 host=$ac_cv_host
1819 ac_save_IFS=$IFS; IFS='-'
1820 set x $ac_cv_host
1821 shift
1822 host_cpu=$1
1823 host_vendor=$2
1824 shift; shift
1825 # Remember, the first character of IFS is used to create $*,
1826 # except with old shells:
1827 host_os=$*
1828 IFS=$ac_save_IFS
1829 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1830
1831
1832
1833
1834
1835
1836
1837
1838 # Check whether --with-gcc was given.
1839 if test "${with_gcc+set}" = set; then
1840 withval=$with_gcc;
1841 fi
1842
1843 V_CCOPT="-O"
1844 V_INCLS=""
1845 if test "${srcdir}" != "." ; then
1846 V_INCLS="-I\$(srcdir)"
1847 fi
1848 if test "${CFLAGS+set}" = set; then
1849 LBL_CFLAGS="$CFLAGS"
1850 fi
1851 if test -z "$CC" ; then
1852 case "$host_os" in
1853
1854 bsdi*)
1855 # Extract the first word of "shlicc2", so it can be a program name with args.
1856 set dummy shlicc2; ac_word=$2
1857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1859 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862 if test -n "$SHLICC2"; then
1863 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1864 else
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1867 do
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1872 ac_cv_prog_SHLICC2="yes"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 break 2
1875 fi
1876 done
1877 done
1878 IFS=$as_save_IFS
1879
1880 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1881 fi
1882 fi
1883 SHLICC2=$ac_cv_prog_SHLICC2
1884 if test -n "$SHLICC2"; then
1885 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1886 echo "${ECHO_T}$SHLICC2" >&6; }
1887 else
1888 { echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6; }
1890 fi
1891
1892
1893 if test $SHLICC2 = yes ; then
1894 CC=shlicc2
1895 export CC
1896 fi
1897 ;;
1898 esac
1899 fi
1900 if test -z "$CC" -a "$with_gcc" = no ; then
1901 CC=cc
1902 export CC
1903 fi
1904 ac_ext=c
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1909 if test -n "$ac_tool_prefix"; then
1910 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1911 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1914 if test "${ac_cv_prog_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 if test -n "$CC"; then
1918 ac_cv_prog_CC="$CC" # Let the user override the test.
1919 else
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1922 do
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 break 2
1930 fi
1931 done
1932 done
1933 IFS=$as_save_IFS
1934
1935 fi
1936 fi
1937 CC=$ac_cv_prog_CC
1938 if test -n "$CC"; then
1939 { echo "$as_me:$LINENO: result: $CC" >&5
1940 echo "${ECHO_T}$CC" >&6; }
1941 else
1942 { echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6; }
1944 fi
1945
1946
1947 fi
1948 if test -z "$ac_cv_prog_CC"; then
1949 ac_ct_CC=$CC
1950 # Extract the first word of "gcc", so it can be a program name with args.
1951 set dummy gcc; ac_word=$2
1952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957 if test -n "$ac_ct_CC"; then
1958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1959 else
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1962 do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1967 ac_cv_prog_ac_ct_CC="gcc"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 break 2
1970 fi
1971 done
1972 done
1973 IFS=$as_save_IFS
1974
1975 fi
1976 fi
1977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1978 if test -n "$ac_ct_CC"; then
1979 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1980 echo "${ECHO_T}$ac_ct_CC" >&6; }
1981 else
1982 { echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6; }
1984 fi
1985
1986 if test "x$ac_ct_CC" = x; then
1987 CC=""
1988 else
1989 case $cross_compiling:$ac_tool_warned in
1990 yes:)
1991 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1992 whose name does not start with the host triplet. If you think this
1993 configuration is useful to you, please write to autoconf@gnu.org." >&5
1994 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1995 whose name does not start with the host triplet. If you think this
1996 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1997 ac_tool_warned=yes ;;
1998 esac
1999 CC=$ac_ct_CC
2000 fi
2001 else
2002 CC="$ac_cv_prog_CC"
2003 fi
2004
2005 if test -z "$CC"; then
2006 if test -n "$ac_tool_prefix"; then
2007 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2008 set dummy ${ac_tool_prefix}cc; ac_word=$2
2009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2024 ac_cv_prog_CC="${ac_tool_prefix}cc"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 break 2
2027 fi
2028 done
2029 done
2030 IFS=$as_save_IFS
2031
2032 fi
2033 fi
2034 CC=$ac_cv_prog_CC
2035 if test -n "$CC"; then
2036 { echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6; }
2038 else
2039 { echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6; }
2041 fi
2042
2043
2044 fi
2045 fi
2046 if test -z "$CC"; then
2047 # Extract the first word of "cc", so it can be a program name with args.
2048 set dummy cc; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_prog_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054 if test -n "$CC"; then
2055 ac_cv_prog_CC="$CC" # Let the user override the test.
2056 else
2057 ac_prog_rejected=no
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2060 do
2061 IFS=$as_save_IFS
2062 test -z "$as_dir" && as_dir=.
2063 for ac_exec_ext in '' $ac_executable_extensions; do
2064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2065 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2066 ac_prog_rejected=yes
2067 continue
2068 fi
2069 ac_cv_prog_CC="cc"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 break 2
2072 fi
2073 done
2074 done
2075 IFS=$as_save_IFS
2076
2077 if test $ac_prog_rejected = yes; then
2078 # We found a bogon in the path, so make sure we never use it.
2079 set dummy $ac_cv_prog_CC
2080 shift
2081 if test $# != 0; then
2082 # We chose a different compiler from the bogus one.
2083 # However, it has the same basename, so the bogon will be chosen
2084 # first if we set CC to just the basename; use the full file name.
2085 shift
2086 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2087 fi
2088 fi
2089 fi
2090 fi
2091 CC=$ac_cv_prog_CC
2092 if test -n "$CC"; then
2093 { echo "$as_me:$LINENO: result: $CC" >&5
2094 echo "${ECHO_T}$CC" >&6; }
2095 else
2096 { echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6; }
2098 fi
2099
2100
2101 fi
2102 if test -z "$CC"; then
2103 if test -n "$ac_tool_prefix"; then
2104 for ac_prog in cl.exe
2105 do
2106 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2110 if test "${ac_cv_prog_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 if test -n "$CC"; then
2114 ac_cv_prog_CC="$CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2123 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2126 fi
2127 done
2128 done
2129 IFS=$as_save_IFS
2130
2131 fi
2132 fi
2133 CC=$ac_cv_prog_CC
2134 if test -n "$CC"; then
2135 { echo "$as_me:$LINENO: result: $CC" >&5
2136 echo "${ECHO_T}$CC" >&6; }
2137 else
2138 { echo "$as_me:$LINENO: result: no" >&5
2139 echo "${ECHO_T}no" >&6; }
2140 fi
2141
2142
2143 test -n "$CC" && break
2144 done
2145 fi
2146 if test -z "$CC"; then
2147 ac_ct_CC=$CC
2148 for ac_prog in cl.exe
2149 do
2150 # Extract the first word of "$ac_prog", so it can be a program name with args.
2151 set dummy $ac_prog; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157 if test -n "$ac_ct_CC"; then
2158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163 IFS=$as_save_IFS
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167 ac_cv_prog_ac_ct_CC="$ac_prog"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 break 2
2170 fi
2171 done
2172 done
2173 IFS=$as_save_IFS
2174
2175 fi
2176 fi
2177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2178 if test -n "$ac_ct_CC"; then
2179 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2180 echo "${ECHO_T}$ac_ct_CC" >&6; }
2181 else
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2184 fi
2185
2186
2187 test -n "$ac_ct_CC" && break
2188 done
2189
2190 if test "x$ac_ct_CC" = x; then
2191 CC=""
2192 else
2193 case $cross_compiling:$ac_tool_warned in
2194 yes:)
2195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2196 whose name does not start with the host triplet. If you think this
2197 configuration is useful to you, please write to autoconf@gnu.org." >&5
2198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2199 whose name does not start with the host triplet. If you think this
2200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2201 ac_tool_warned=yes ;;
2202 esac
2203 CC=$ac_ct_CC
2204 fi
2205 fi
2206
2207 fi
2208
2209
2210 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2211 See \`config.log' for more details." >&5
2212 echo "$as_me: error: no acceptable C compiler found in \$PATH
2213 See \`config.log' for more details." >&2;}
2214 { (exit 1); exit 1; }; }
2215
2216 # Provide some information about the compiler.
2217 echo "$as_me:$LINENO: checking for C compiler version" >&5
2218 ac_compiler=`set X $ac_compile; echo $2`
2219 { (ac_try="$ac_compiler --version >&5"
2220 case "(($ac_try" in
2221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222 *) ac_try_echo=$ac_try;;
2223 esac
2224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2225 (eval "$ac_compiler --version >&5") 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }
2229 { (ac_try="$ac_compiler -v >&5"
2230 case "(($ac_try" in
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2233 esac
2234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2235 (eval "$ac_compiler -v >&5") 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }
2239 { (ac_try="$ac_compiler -V >&5"
2240 case "(($ac_try" in
2241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242 *) ac_try_echo=$ac_try;;
2243 esac
2244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2245 (eval "$ac_compiler -V >&5") 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }
2249
2250 cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h. */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2256
2257 int
2258 main ()
2259 {
2260
2261 ;
2262 return 0;
2263 }
2264 _ACEOF
2265 ac_clean_files_save=$ac_clean_files
2266 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2267 # Try to create an executable without -o first, disregard a.out.
2268 # It will help us diagnose broken compilers, and finding out an intuition
2269 # of exeext.
2270 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2271 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2272 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2273 #
2274 # List of possible output files, starting from the most likely.
2275 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2276 # only as a last resort. b.out is created by i960 compilers.
2277 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2278 #
2279 # The IRIX 6 linker writes into existing files which may not be
2280 # executable, retaining their permissions. Remove them first so a
2281 # subsequent execution test works.
2282 ac_rmfiles=
2283 for ac_file in $ac_files
2284 do
2285 case $ac_file in
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2287 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2288 esac
2289 done
2290 rm -f $ac_rmfiles
2291
2292 if { (ac_try="$ac_link_default"
2293 case "(($ac_try" in
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2296 esac
2297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2298 (eval "$ac_link_default") 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; then
2302 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2303 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2304 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2305 # so that the user can short-circuit this test for compilers unknown to
2306 # Autoconf.
2307 for ac_file in $ac_files ''
2308 do
2309 test -f "$ac_file" || continue
2310 case $ac_file in
2311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2312 ;;
2313 [ab].out )
2314 # We found the default executable, but exeext='' is most
2315 # certainly right.
2316 break;;
2317 *.* )
2318 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2319 then :; else
2320 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2321 fi
2322 # We set ac_cv_exeext here because the later test for it is not
2323 # safe: cross compilers may not add the suffix if given an `-o'
2324 # argument, so we may need to know it at that point already.
2325 # Even if this section looks crufty: it has the advantage of
2326 # actually working.
2327 break;;
2328 * )
2329 break;;
2330 esac
2331 done
2332 test "$ac_cv_exeext" = no && ac_cv_exeext=
2333
2334 else
2335 ac_file=''
2336 fi
2337
2338 { echo "$as_me:$LINENO: result: $ac_file" >&5
2339 echo "${ECHO_T}$ac_file" >&6; }
2340 if test -z "$ac_file"; then
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2345 See \`config.log' for more details." >&5
2346 echo "$as_me: error: C compiler cannot create executables
2347 See \`config.log' for more details." >&2;}
2348 { (exit 77); exit 77; }; }
2349 fi
2350
2351 ac_exeext=$ac_cv_exeext
2352
2353 # Check that the compiler produces executables we can run. If not, either
2354 # the compiler is broken, or we cross compile.
2355 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2356 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2357 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2358 # If not cross compiling, check that we can run a simple program.
2359 if test "$cross_compiling" != yes; then
2360 if { ac_try='./$ac_file'
2361 { (case "(($ac_try" in
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2364 esac
2365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2366 (eval "$ac_try") 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2370 cross_compiling=no
2371 else
2372 if test "$cross_compiling" = maybe; then
2373 cross_compiling=yes
2374 else
2375 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2376 If you meant to cross compile, use \`--host'.
2377 See \`config.log' for more details." >&5
2378 echo "$as_me: error: cannot run C compiled programs.
2379 If you meant to cross compile, use \`--host'.
2380 See \`config.log' for more details." >&2;}
2381 { (exit 1); exit 1; }; }
2382 fi
2383 fi
2384 fi
2385 { echo "$as_me:$LINENO: result: yes" >&5
2386 echo "${ECHO_T}yes" >&6; }
2387
2388 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2389 ac_clean_files=$ac_clean_files_save
2390 # Check that the compiler produces executables we can run. If not, either
2391 # the compiler is broken, or we cross compile.
2392 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2393 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2394 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2395 echo "${ECHO_T}$cross_compiling" >&6; }
2396
2397 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2398 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2399 if { (ac_try="$ac_link"
2400 case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2403 esac
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_link") 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; then
2409 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2410 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2411 # work properly (i.e., refer to `conftest.exe'), while it won't with
2412 # `rm'.
2413 for ac_file in conftest.exe conftest conftest.*; do
2414 test -f "$ac_file" || continue
2415 case $ac_file in
2416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2417 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2418 break;;
2419 * ) break;;
2420 esac
2421 done
2422 else
2423 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2424 See \`config.log' for more details." >&5
2425 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2426 See \`config.log' for more details." >&2;}
2427 { (exit 1); exit 1; }; }
2428 fi
2429
2430 rm -f conftest$ac_cv_exeext
2431 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2432 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2433
2434 rm -f conftest.$ac_ext
2435 EXEEXT=$ac_cv_exeext
2436 ac_exeext=$EXEEXT
2437 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2438 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2439 if test "${ac_cv_objext+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442 cat >conftest.$ac_ext <<_ACEOF
2443 /* confdefs.h. */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2448
2449 int
2450 main ()
2451 {
2452
2453 ;
2454 return 0;
2455 }
2456 _ACEOF
2457 rm -f conftest.o conftest.obj
2458 if { (ac_try="$ac_compile"
2459 case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2462 esac
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; then
2468 for ac_file in conftest.o conftest.obj conftest.*; do
2469 test -f "$ac_file" || continue;
2470 case $ac_file in
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2472 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2473 break;;
2474 esac
2475 done
2476 else
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479
2480 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2481 See \`config.log' for more details." >&5
2482 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2483 See \`config.log' for more details." >&2;}
2484 { (exit 1); exit 1; }; }
2485 fi
2486
2487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2488 fi
2489 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2490 echo "${ECHO_T}$ac_cv_objext" >&6; }
2491 OBJEXT=$ac_cv_objext
2492 ac_objext=$OBJEXT
2493 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2495 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h. */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2504
2505 int
2506 main ()
2507 {
2508 #ifndef __GNUC__
2509 choke me
2510 #endif
2511
2512 ;
2513 return 0;
2514 }
2515 _ACEOF
2516 rm -f conftest.$ac_objext
2517 if { (ac_try="$ac_compile"
2518 case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_compile") 2>conftest.er1
2524 ac_status=$?
2525 grep -v '^ *+' conftest.er1 >conftest.err
2526 rm -f conftest.er1
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } && {
2530 test -z "$ac_c_werror_flag" ||
2531 test ! -s conftest.err
2532 } && test -s conftest.$ac_objext; then
2533 ac_compiler_gnu=yes
2534 else
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 ac_compiler_gnu=no
2539 fi
2540
2541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2543
2544 fi
2545 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2546 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2547 GCC=`test $ac_compiler_gnu = yes && echo yes`
2548 ac_test_CFLAGS=${CFLAGS+set}
2549 ac_save_CFLAGS=$CFLAGS
2550 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2551 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2552 if test "${ac_cv_prog_cc_g+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555 ac_save_c_werror_flag=$ac_c_werror_flag
2556 ac_c_werror_flag=yes
2557 ac_cv_prog_cc_g=no
2558 CFLAGS="-g"
2559 cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h. */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2565
2566 int
2567 main ()
2568 {
2569
2570 ;
2571 return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2576 case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } && {
2588 test -z "$ac_c_werror_flag" ||
2589 test ! -s conftest.err
2590 } && test -s conftest.$ac_objext; then
2591 ac_cv_prog_cc_g=yes
2592 else
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 CFLAGS=""
2597 cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h. */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2603
2604 int
2605 main ()
2606 {
2607
2608 ;
2609 return 0;
2610 }
2611 _ACEOF
2612 rm -f conftest.$ac_objext
2613 if { (ac_try="$ac_compile"
2614 case "(($ac_try" in
2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2617 esac
2618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619 (eval "$ac_compile") 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } && {
2626 test -z "$ac_c_werror_flag" ||
2627 test ! -s conftest.err
2628 } && test -s conftest.$ac_objext; then
2629 :
2630 else
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634 ac_c_werror_flag=$ac_save_c_werror_flag
2635 CFLAGS="-g"
2636 cat >conftest.$ac_ext <<_ACEOF
2637 /* confdefs.h. */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2642
2643 int
2644 main ()
2645 {
2646
2647 ;
2648 return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext
2652 if { (ac_try="$ac_compile"
2653 case "(($ac_try" in
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2656 esac
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compile") 2>conftest.er1
2659 ac_status=$?
2660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } && {
2665 test -z "$ac_c_werror_flag" ||
2666 test ! -s conftest.err
2667 } && test -s conftest.$ac_objext; then
2668 ac_cv_prog_cc_g=yes
2669 else
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673
2674 fi
2675
2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677 fi
2678
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 fi
2681
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 ac_c_werror_flag=$ac_save_c_werror_flag
2684 fi
2685 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2686 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2687 if test "$ac_test_CFLAGS" = set; then
2688 CFLAGS=$ac_save_CFLAGS
2689 elif test $ac_cv_prog_cc_g = yes; then
2690 if test "$GCC" = yes; then
2691 CFLAGS="-g -O2"
2692 else
2693 CFLAGS="-g"
2694 fi
2695 else
2696 if test "$GCC" = yes; then
2697 CFLAGS="-O2"
2698 else
2699 CFLAGS=
2700 fi
2701 fi
2702 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2703 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2704 if test "${ac_cv_prog_cc_c89+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707 ac_cv_prog_cc_c89=no
2708 ac_save_CC=$CC
2709 cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h. */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2715 #include <stdarg.h>
2716 #include <stdio.h>
2717 #include <sys/types.h>
2718 #include <sys/stat.h>
2719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2720 struct buf { int x; };
2721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2722 static char *e (p, i)
2723 char **p;
2724 int i;
2725 {
2726 return p[i];
2727 }
2728 static char *f (char * (*g) (char **, int), char **p, ...)
2729 {
2730 char *s;
2731 va_list v;
2732 va_start (v,p);
2733 s = g (p, va_arg (v,int));
2734 va_end (v);
2735 return s;
2736 }
2737
2738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2739 function prototypes and stuff, but not '\xHH' hex character constants.
2740 These don't provoke an error unfortunately, instead are silently treated
2741 as 'x'. The following induces an error, until -std is added to get
2742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2743 array size at least. It's necessary to write '\x00'==0 to get something
2744 that's true only with -std. */
2745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2746
2747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2748 inside strings and character constants. */
2749 #define FOO(x) 'x'
2750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2751
2752 int test (int i, double x);
2753 struct s1 {int (*f) (int a);};
2754 struct s2 {int (*f) (double a);};
2755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2756 int argc;
2757 char **argv;
2758 int
2759 main ()
2760 {
2761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2762 ;
2763 return 0;
2764 }
2765 _ACEOF
2766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2768 do
2769 CC="$ac_save_CC $ac_arg"
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2772 case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775 esac
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compile") 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } && {
2784 test -z "$ac_c_werror_flag" ||
2785 test ! -s conftest.err
2786 } && test -s conftest.$ac_objext; then
2787 ac_cv_prog_cc_c89=$ac_arg
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792
2793 fi
2794
2795 rm -f core conftest.err conftest.$ac_objext
2796 test "x$ac_cv_prog_cc_c89" != "xno" && break
2797 done
2798 rm -f conftest.$ac_ext
2799 CC=$ac_save_CC
2800
2801 fi
2802 # AC_CACHE_VAL
2803 case "x$ac_cv_prog_cc_c89" in
2804 x)
2805 { echo "$as_me:$LINENO: result: none needed" >&5
2806 echo "${ECHO_T}none needed" >&6; } ;;
2807 xno)
2808 { echo "$as_me:$LINENO: result: unsupported" >&5
2809 echo "${ECHO_T}unsupported" >&6; } ;;
2810 *)
2811 CC="$CC $ac_cv_prog_cc_c89"
2812 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2813 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2814 esac
2815
2816
2817 ac_ext=c
2818 ac_cpp='$CPP $CPPFLAGS'
2819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822
2823 if test "$GCC" = yes ; then
2824 if test "$SHLICC2" = yes ; then
2825 ac_cv_lbl_gcc_vers=2
2826 V_CCOPT="-O2"
2827 else
2828 { echo "$as_me:$LINENO: checking gcc version" >&5
2829 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2830 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2834 sed -e '/^gcc version /!d' \
2835 -e 's/^gcc version //' \
2836 -e 's/ .*//' -e 's/^[^0-9]*//' \
2837 -e 's/\..*//'`
2838 fi
2839
2840 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2841 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2842 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2843 V_CCOPT="-O2"
2844 fi
2845 fi
2846 else
2847 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2848 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2849 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852
2853 cat >conftest.$ac_ext <<_ACEOF
2854 /* confdefs.h. */
2855 _ACEOF
2856 cat confdefs.h >>conftest.$ac_ext
2857 cat >>conftest.$ac_ext <<_ACEOF
2858 /* end confdefs.h. */
2859 #include <sys/types.h>
2860 int
2861 main ()
2862 {
2863 int frob(int, char *)
2864 ;
2865 return 0;
2866 }
2867 _ACEOF
2868 rm -f conftest.$ac_objext
2869 if { (ac_try="$ac_compile"
2870 case "(($ac_try" in
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2873 esac
2874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2875 (eval "$ac_compile") 2>conftest.er1
2876 ac_status=$?
2877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } && {
2882 test -z "$ac_c_werror_flag" ||
2883 test ! -s conftest.err
2884 } && test -s conftest.$ac_objext; then
2885 ac_cv_lbl_cc_ansi_prototypes=yes
2886 else
2887 echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2889
2890 ac_cv_lbl_cc_ansi_prototypes=no
2891 fi
2892
2893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2894 fi
2895
2896 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2897 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2898 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2899 case "$host_os" in
2900
2901 hpux*)
2902 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2903 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2904 savedcflags="$CFLAGS"
2905 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2906 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909 cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h. */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2915 #include <sys/types.h>
2916 int
2917 main ()
2918 {
2919 int frob(int, char *)
2920 ;
2921 return 0;
2922 }
2923 _ACEOF
2924 rm -f conftest.$ac_objext
2925 if { (ac_try="$ac_compile"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compile") 2>conftest.er1
2932 ac_status=$?
2933 grep -v '^ *+' conftest.er1 >conftest.err
2934 rm -f conftest.er1
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } && {
2938 test -z "$ac_c_werror_flag" ||
2939 test ! -s conftest.err
2940 } && test -s conftest.$ac_objext; then
2941 ac_cv_lbl_cc_hpux_cc_aa=yes
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 ac_cv_lbl_cc_hpux_cc_aa=no
2947 fi
2948
2949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2950 fi
2951
2952 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2953 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2954 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2955 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2956 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2957 { (exit 1); exit 1; }; }
2958 fi
2959 CFLAGS="$savedcflags"
2960 V_CCOPT="-Aa $V_CCOPT"
2961 cat >>confdefs.h <<\_ACEOF
2962 #define _HPUX_SOURCE 1
2963 _ACEOF
2964
2965 ;;
2966
2967 *)
2968 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2969 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2970 { (exit 1); exit 1; }; }
2971 ;;
2972 esac
2973 fi
2974 V_INCLS="$V_INCLS -I/usr/local/include"
2975 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2976
2977 case "$host_os" in
2978
2979 irix*)
2980 V_CCOPT="$V_CCOPT -xansi -signed -O"
2981 ;;
2982
2983 osf*)
2984 V_CCOPT="$V_CCOPT -std1 -O"
2985 ;;
2986
2987 ultrix*)
2988 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2989 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
2990 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993 cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h. */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
2999 #include <sys/types.h>
3000 int
3001 main ()
3002 {
3003 struct a { int b; };
3004 void c(const struct a *)
3005 ;
3006 return 0;
3007 }
3008 _ACEOF
3009 rm -f conftest.$ac_objext
3010 if { (ac_try="$ac_compile"
3011 case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014 esac
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_compile") 2>conftest.er1
3017 ac_status=$?
3018 grep -v '^ *+' conftest.er1 >conftest.err
3019 rm -f conftest.er1
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } && {
3023 test -z "$ac_c_werror_flag" ||
3024 test ! -s conftest.err
3025 } && test -s conftest.$ac_objext; then
3026 ac_cv_lbl_cc_const_proto=yes
3027 else
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3030
3031 ac_cv_lbl_cc_const_proto=no
3032 fi
3033
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 fi
3036
3037 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3038 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3039 if test $ac_cv_lbl_cc_const_proto = no ; then
3040 cat >>confdefs.h <<\_ACEOF
3041 #define const
3042 _ACEOF
3043
3044 fi
3045 ;;
3046 esac
3047 fi
3048
3049 { echo "$as_me:$LINENO: checking for inline" >&5
3050 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3051 if test "${ac_cv_lbl_inline+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 else
3054
3055 ac_cv_lbl_inline=""
3056 ac_lbl_cc_inline=no
3057 for ac_lbl_inline in inline __inline__ __inline
3058 do
3059 cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h. */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3065 #define inline $ac_lbl_inline
3066 static inline struct iltest *foo(void);
3067 struct iltest {
3068 int iltest1;
3069 int iltest2;
3070 };
3071
3072 static inline struct iltest *
3073 foo()
3074 {
3075 static struct iltest xxx;
3076
3077 return &xxx;
3078 }
3079 int
3080 main ()
3081 {
3082
3083 ;
3084 return 0;
3085 }
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3104 ac_lbl_cc_inline=yes
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109
3110 fi
3111
3112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113 if test "$ac_lbl_cc_inline" = yes ; then
3114 break;
3115 fi
3116 done
3117 if test "$ac_lbl_cc_inline" = yes ; then
3118 ac_cv_lbl_inline=$ac_lbl_inline
3119 fi
3120 fi
3121
3122 if test ! -z "$ac_cv_lbl_inline" ; then
3123 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3124 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3125 else
3126 { echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6; }
3128 fi
3129
3130 cat >>confdefs.h <<_ACEOF
3131 #define inline $ac_cv_lbl_inline
3132 _ACEOF
3133
3134
3135 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3136 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3137 if test "${ac_cv___attribute__+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h. */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3147
3148 #include <stdlib.h>
3149
3150 static void foo(void) __attribute__ ((noreturn));
3151
3152 static void
3153 foo(void)
3154 {
3155 exit(1);
3156 }
3157
3158 int
3159 main(int argc, char **argv)
3160 {
3161 foo();
3162 }
3163
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } && {
3179 test -z "$ac_c_werror_flag" ||
3180 test ! -s conftest.err
3181 } && test -s conftest.$ac_objext; then
3182 ac_cv___attribute__=yes
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187 ac_cv___attribute__=no
3188 fi
3189
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 fi
3192
3193 if test "$ac_cv___attribute__" = "yes"; then
3194
3195 cat >>confdefs.h <<\_ACEOF
3196 #define HAVE___ATTRIBUTE__ 1
3197 _ACEOF
3198
3199 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3200 else
3201 V_DEFS="$V_DEFS -D_U_=\"\""
3202 fi
3203 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3204 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3205
3206 ac_ext=c
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3215 CPP=
3216 fi
3217 if test -z "$CPP"; then
3218 if test "${ac_cv_prog_CPP+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3223 do
3224 ac_preproc_ok=false
3225 for ac_c_preproc_warn_flag in '' yes
3226 do
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h. */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3239 #ifdef __STDC__
3240 # include <limits.h>
3241 #else
3242 # include <assert.h>
3243 #endif
3244 Syntax error
3245 _ACEOF
3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253 ac_status=$?
3254 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null && {
3259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3260 test ! -s conftest.err
3261 }; then
3262 :
3263 else
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267 # Broken: fails on valid input.
3268 continue
3269 fi
3270
3271 rm -f conftest.err conftest.$ac_ext
3272
3273 # OK, works on sane cases. Now check whether nonexistent headers
3274 # can be detected and how.
3275 cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h. */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281 #include <ac_nonexistent.h>
3282 _ACEOF
3283 if { (ac_try="$ac_cpp conftest.$ac_ext"
3284 case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287 esac
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } >/dev/null && {
3296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3297 test ! -s conftest.err
3298 }; then
3299 # Broken: success on invalid input.
3300 continue
3301 else
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 # Passes both tests.
3306 ac_preproc_ok=:
3307 break
3308 fi
3309
3310 rm -f conftest.err conftest.$ac_ext
3311
3312 done
3313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3314 rm -f conftest.err conftest.$ac_ext
3315 if $ac_preproc_ok; then
3316 break
3317 fi
3318
3319 done
3320 ac_cv_prog_CPP=$CPP
3321
3322 fi
3323 CPP=$ac_cv_prog_CPP
3324 else
3325 ac_cv_prog_CPP=$CPP
3326 fi
3327 { echo "$as_me:$LINENO: result: $CPP" >&5
3328 echo "${ECHO_T}$CPP" >&6; }
3329 ac_preproc_ok=false
3330 for ac_c_preproc_warn_flag in '' yes
3331 do
3332 # Use a header file that comes with gcc, so configuring glibc
3333 # with a fresh cross-compiler works.
3334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3335 # <limits.h> exists even on freestanding compilers.
3336 # On the NeXT, cc -E runs the code through the compiler's parser,
3337 # not just through cpp. "Syntax error" is here to catch this case.
3338 cat >conftest.$ac_ext <<_ACEOF
3339 /* confdefs.h. */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344 #ifdef __STDC__
3345 # include <limits.h>
3346 #else
3347 # include <assert.h>
3348 #endif
3349 Syntax error
3350 _ACEOF
3351 if { (ac_try="$ac_cpp conftest.$ac_ext"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3358 ac_status=$?
3359 grep -v '^ *+' conftest.er1 >conftest.err
3360 rm -f conftest.er1
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } >/dev/null && {
3364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3365 test ! -s conftest.err
3366 }; then
3367 :
3368 else
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372 # Broken: fails on valid input.
3373 continue
3374 fi
3375
3376 rm -f conftest.err conftest.$ac_ext
3377
3378 # OK, works on sane cases. Now check whether nonexistent headers
3379 # can be detected and how.
3380 cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 #include <ac_nonexistent.h>
3387 _ACEOF
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3389 case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null && {
3401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3402 test ! -s conftest.err
3403 }; then
3404 # Broken: success on invalid input.
3405 continue
3406 else
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410 # Passes both tests.
3411 ac_preproc_ok=:
3412 break
3413 fi
3414
3415 rm -f conftest.err conftest.$ac_ext
3416
3417 done
3418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3419 rm -f conftest.err conftest.$ac_ext
3420 if $ac_preproc_ok; then
3421 :
3422 else
3423 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3424 See \`config.log' for more details." >&5
3425 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3426 See \`config.log' for more details." >&2;}
3427 { (exit 1); exit 1; }; }
3428 fi
3429
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435
3436
3437 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3438 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3439 if test "${ac_cv_path_GREP+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 # Extract the first word of "grep ggrep" to use in msg output
3443 if test -z "$GREP"; then
3444 set dummy grep ggrep; ac_prog_name=$2
3445 if test "${ac_cv_path_GREP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448 ac_path_GREP_found=false
3449 # Loop through the user's path and test for each of PROGNAME-LIST
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3452 do
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 for ac_prog in grep ggrep; do
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3458 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3459 # Check for GNU ac_path_GREP and select it if it is found.
3460 # Check for GNU $ac_path_GREP
3461 case `"$ac_path_GREP" --version 2>&1` in
3462 *GNU*)
3463 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3464 *)
3465 ac_count=0
3466 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3467 while :
3468 do
3469 cat "conftest.in" "conftest.in" >"conftest.tmp"
3470 mv "conftest.tmp" "conftest.in"
3471 cp "conftest.in" "conftest.nl"
3472 echo 'GREP' >> "conftest.nl"
3473 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3475 ac_count=`expr $ac_count + 1`
3476 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3477 # Best one so far, save it but keep looking for a better one
3478 ac_cv_path_GREP="$ac_path_GREP"
3479 ac_path_GREP_max=$ac_count
3480 fi
3481 # 10*(2^10) chars as input seems more than enough
3482 test $ac_count -gt 10 && break
3483 done
3484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3485 esac
3486
3487
3488 $ac_path_GREP_found && break 3
3489 done
3490 done
3491
3492 done
3493 IFS=$as_save_IFS
3494
3495
3496 fi
3497
3498 GREP="$ac_cv_path_GREP"
3499 if test -z "$GREP"; then
3500 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3501 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3502 { (exit 1); exit 1; }; }
3503 fi
3504
3505 else
3506 ac_cv_path_GREP=$GREP
3507 fi
3508
3509
3510 fi
3511 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3512 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3513 GREP="$ac_cv_path_GREP"
3514
3515
3516 { echo "$as_me:$LINENO: checking for egrep" >&5
3517 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3518 if test "${ac_cv_path_EGREP+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3522 then ac_cv_path_EGREP="$GREP -E"
3523 else
3524 # Extract the first word of "egrep" to use in msg output
3525 if test -z "$EGREP"; then
3526 set dummy egrep; ac_prog_name=$2
3527 if test "${ac_cv_path_EGREP+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530 ac_path_EGREP_found=false
3531 # Loop through the user's path and test for each of PROGNAME-LIST
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3534 do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_prog in egrep; do
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3540 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3541 # Check for GNU ac_path_EGREP and select it if it is found.
3542 # Check for GNU $ac_path_EGREP
3543 case `"$ac_path_EGREP" --version 2>&1` in
3544 *GNU*)
3545 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3546 *)
3547 ac_count=0
3548 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3549 while :
3550 do
3551 cat "conftest.in" "conftest.in" >"conftest.tmp"
3552 mv "conftest.tmp" "conftest.in"
3553 cp "conftest.in" "conftest.nl"
3554 echo 'EGREP' >> "conftest.nl"
3555 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3557 ac_count=`expr $ac_count + 1`
3558 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3559 # Best one so far, save it but keep looking for a better one
3560 ac_cv_path_EGREP="$ac_path_EGREP"
3561 ac_path_EGREP_max=$ac_count
3562 fi
3563 # 10*(2^10) chars as input seems more than enough
3564 test $ac_count -gt 10 && break
3565 done
3566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3567 esac
3568
3569
3570 $ac_path_EGREP_found && break 3
3571 done
3572 done
3573
3574 done
3575 IFS=$as_save_IFS
3576
3577
3578 fi
3579
3580 EGREP="$ac_cv_path_EGREP"
3581 if test -z "$EGREP"; then
3582 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3583 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3584 { (exit 1); exit 1; }; }
3585 fi
3586
3587 else
3588 ac_cv_path_EGREP=$EGREP
3589 fi
3590
3591
3592 fi
3593 fi
3594 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3595 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3596 EGREP="$ac_cv_path_EGREP"
3597
3598
3599 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3600 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3601 if test "${ac_cv_header_stdc+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604 cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h. */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610 #include <stdlib.h>
3611 #include <stdarg.h>
3612 #include <string.h>
3613 #include <float.h>
3614
3615 int
3616 main ()
3617 {
3618
3619 ;
3620 return 0;
3621 }
3622 _ACEOF
3623 rm -f conftest.$ac_objext
3624 if { (ac_try="$ac_compile"
3625 case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_compile") 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3640 ac_cv_header_stdc=yes
3641 else
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3644
3645 ac_cv_header_stdc=no
3646 fi
3647
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649
3650 if test $ac_cv_header_stdc = yes; then
3651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 #include <string.h>
3659
3660 _ACEOF
3661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3662 $EGREP "memchr" >/dev/null 2>&1; then
3663 :
3664 else
3665 ac_cv_header_stdc=no
3666 fi
3667 rm -f conftest*
3668
3669 fi
3670
3671 if test $ac_cv_header_stdc = yes; then
3672 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3673 cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h. */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3679 #include <stdlib.h>
3680
3681 _ACEOF
3682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3683 $EGREP "free" >/dev/null 2>&1; then
3684 :
3685 else
3686 ac_cv_header_stdc=no
3687 fi
3688 rm -f conftest*
3689
3690 fi
3691
3692 if test $ac_cv_header_stdc = yes; then
3693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3694 if test "$cross_compiling" = yes; then
3695 :
3696 else
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 #include <ctype.h>
3704 #include <stdlib.h>
3705 #if ((' ' & 0x0FF) == 0x020)
3706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3708 #else
3709 # define ISLOWER(c) \
3710 (('a' <= (c) && (c) <= 'i') \
3711 || ('j' <= (c) && (c) <= 'r') \
3712 || ('s' <= (c) && (c) <= 'z'))
3713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3714 #endif
3715
3716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3717 int
3718 main ()
3719 {
3720 int i;
3721 for (i = 0; i < 256; i++)
3722 if (XOR (islower (i), ISLOWER (i))
3723 || toupper (i) != TOUPPER (i))
3724 return 2;
3725 return 0;
3726 }
3727 _ACEOF
3728 rm -f conftest$ac_exeext
3729 if { (ac_try="$ac_link"
3730 case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733 esac
3734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3735 (eval "$ac_link") 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3739 { (case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3742 esac
3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744 (eval "$ac_try") 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 :
3749 else
3750 echo "$as_me: program exited with status $ac_status" >&5
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3753
3754 ( exit $ac_status )
3755 ac_cv_header_stdc=no
3756 fi
3757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3758 fi
3759
3760
3761 fi
3762 fi
3763 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3764 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3765 if test $ac_cv_header_stdc = yes; then
3766
3767 cat >>confdefs.h <<\_ACEOF
3768 #define STDC_HEADERS 1
3769 _ACEOF
3770
3771 fi
3772
3773 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3784 inttypes.h stdint.h unistd.h
3785 do
3786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792 cat >conftest.$ac_ext <<_ACEOF
3793 /* confdefs.h. */
3794 _ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h. */
3798 $ac_includes_default
3799
3800 #include <$ac_header>
3801 _ACEOF
3802 rm -f conftest.$ac_objext
3803 if { (ac_try="$ac_compile"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_compile") 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } && {
3816 test -z "$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3818 } && test -s conftest.$ac_objext; then
3819 eval "$as_ac_Header=yes"
3820 else
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 eval "$as_ac_Header=no"
3825 fi
3826
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 fi
3829 ac_res=`eval echo '${'$as_ac_Header'}'`
3830 { echo "$as_me:$LINENO: result: $ac_res" >&5
3831 echo "${ECHO_T}$ac_res" >&6; }
3832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3833 cat >>confdefs.h <<_ACEOF
3834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3835 _ACEOF
3836
3837 fi
3838
3839 done
3840
3841
3842
3843
3844
3845 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3846 do
3847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 fi
3854 ac_res=`eval echo '${'$as_ac_Header'}'`
3855 { echo "$as_me:$LINENO: result: $ac_res" >&5
3856 echo "${ECHO_T}$ac_res" >&6; }
3857 else
3858 # Is the header compilable?
3859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h. */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3867 $ac_includes_default
3868 #include <$ac_header>
3869 _ACEOF
3870 rm -f conftest.$ac_objext
3871 if { (ac_try="$ac_compile"
3872 case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3875 esac
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_compile") 2>conftest.er1
3878 ac_status=$?
3879 grep -v '^ *+' conftest.er1 >conftest.err
3880 rm -f conftest.er1
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && {
3884 test -z "$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3886 } && test -s conftest.$ac_objext; then
3887 ac_header_compiler=yes
3888 else
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892 ac_header_compiler=no
3893 fi
3894
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3897 echo "${ECHO_T}$ac_header_compiler" >&6; }
3898
3899 # Is the header present?
3900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3902 cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h. */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3908 #include <$ac_header>
3909 _ACEOF
3910 if { (ac_try="$ac_cpp conftest.$ac_ext"
3911 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev/null && {
3923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 }; then
3926 ac_header_preproc=yes
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 ac_header_preproc=no
3932 fi
3933
3934 rm -f conftest.err conftest.$ac_ext
3935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3936 echo "${ECHO_T}$ac_header_preproc" >&6; }
3937
3938 # So? What about this header?
3939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3940 yes:no: )
3941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3945 ac_header_preproc=yes
3946 ;;
3947 no:yes:* )
3948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3960
3961 ;;
3962 esac
3963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 eval "$as_ac_Header=\$ac_header_preproc"
3969 fi
3970 ac_res=`eval echo '${'$as_ac_Header'}'`
3971 { echo "$as_me:$LINENO: result: $ac_res" >&5
3972 echo "${ECHO_T}$ac_res" >&6; }
3973
3974 fi
3975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3976 cat >>confdefs.h <<_ACEOF
3977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3978 _ACEOF
3979
3980 fi
3981
3982 done
3983
3984
3985 for ac_header in net/pfvar.h
3986 do
3987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h. */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 #include <sys/types.h>
4000 #include <sys/socket.h>
4001 #include <net/if.h>
4002
4003 #include <$ac_header>
4004 _ACEOF
4005 rm -f conftest.$ac_objext
4006 if { (ac_try="$ac_compile"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4012 (eval "$ac_compile") 2>conftest.er1
4013 ac_status=$?
4014 grep -v '^ *+' conftest.er1 >conftest.err
4015 rm -f conftest.er1
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } && {
4019 test -z "$ac_c_werror_flag" ||
4020 test ! -s conftest.err
4021 } && test -s conftest.$ac_objext; then
4022 eval "$as_ac_Header=yes"
4023 else
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027 eval "$as_ac_Header=no"
4028 fi
4029
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 fi
4032 ac_res=`eval echo '${'$as_ac_Header'}'`
4033 { echo "$as_me:$LINENO: result: $ac_res" >&5
4034 echo "${ECHO_T}$ac_res" >&6; }
4035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4036 cat >>confdefs.h <<_ACEOF
4037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4038 _ACEOF
4039
4040 fi
4041
4042 done
4043
4044 if test "$ac_cv_header_net_pfvar_h" = yes; then
4045 LOCALSRC="print-pflog.c $LOCALSRC"
4046 fi
4047
4048 for ac_header in netinet/if_ether.h
4049 do
4050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056 cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h. */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 #include <sys/types.h>
4063 #include <sys/socket.h>
4064
4065 #include <$ac_header>
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4069 case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072 esac
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4075 ac_status=$?
4076 grep -v '^ *+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } && {
4081 test -z "$ac_c_werror_flag" ||
4082 test ! -s conftest.err
4083 } && test -s conftest.$ac_objext; then
4084 eval "$as_ac_Header=yes"
4085 else
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089 eval "$as_ac_Header=no"
4090 fi
4091
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 fi
4094 ac_res=`eval echo '${'$as_ac_Header'}'`
4095 { echo "$as_me:$LINENO: result: $ac_res" >&5
4096 echo "${ECHO_T}$ac_res" >&6; }
4097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4098 cat >>confdefs.h <<_ACEOF
4099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4100 _ACEOF
4101
4102 fi
4103
4104 done
4105
4106 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4107 #
4108 # The simple test didn't work.
4109 # Do we need to include <net/if.h> first?
4110 # Unset ac_cv_header_netinet_if_ether_h so we don't
4111 # treat the previous failure as a cached value and
4112 # suppress the next test.
4113 #
4114 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4115 echo "$as_me: Rechecking with some additional includes" >&6;}
4116 unset ac_cv_header_netinet_if_ether_h
4117
4118 for ac_header in netinet/if_ether.h
4119 do
4120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126 cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h. */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4132 #include <sys/types.h>
4133 #include <sys/socket.h>
4134 #include <netinet/in.h>
4135 struct mbuf;
4136 struct rtentry;
4137 #include <net/if.h>
4138
4139 #include <$ac_header>
4140 _ACEOF
4141 rm -f conftest.$ac_objext
4142 if { (ac_try="$ac_compile"
4143 case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146 esac
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_compile") 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && {
4155 test -z "$ac_c_werror_flag" ||
4156 test ! -s conftest.err
4157 } && test -s conftest.$ac_objext; then
4158 eval "$as_ac_Header=yes"
4159 else
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4162
4163 eval "$as_ac_Header=no"
4164 fi
4165
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 fi
4168 ac_res=`eval echo '${'$as_ac_Header'}'`
4169 { echo "$as_me:$LINENO: result: $ac_res" >&5
4170 echo "${ECHO_T}$ac_res" >&6; }
4171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4172 cat >>confdefs.h <<_ACEOF
4173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4174 _ACEOF
4175
4176 fi
4177
4178 done
4179
4180 fi
4181
4182 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4183 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4184 if test "${ac_cv_header_time+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 #include <sys/types.h>
4194 #include <sys/time.h>
4195 #include <time.h>
4196
4197 int
4198 main ()
4199 {
4200 if ((struct tm *) 0)
4201 return 0;
4202 ;
4203 return 0;
4204 }
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (ac_try="$ac_compile"
4208 case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_compile") 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && {
4220 test -z "$ac_c_werror_flag" ||
4221 test ! -s conftest.err
4222 } && test -s conftest.$ac_objext; then
4223 ac_cv_header_time=yes
4224 else
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228 ac_cv_header_time=no
4229 fi
4230
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 fi
4233 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4234 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4235 if test $ac_cv_header_time = yes; then
4236
4237 cat >>confdefs.h <<\_ACEOF
4238 #define TIME_WITH_SYS_TIME 1
4239 _ACEOF
4240
4241 fi
4242
4243
4244 case "$host_os" in
4245
4246 linux*)
4247 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4248 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4249 if test "$cross_compiling" = yes; then
4250 if test "${ac_cv_linux_vers+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253 ac_cv_linux_vers=unknown
4254 fi
4255
4256 else
4257 if test "${ac_cv_linux_vers+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260 ac_cv_linux_vers=`uname -r 2>&1 | \
4261 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4262 fi
4263
4264 fi
4265 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4266 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4267 if test $ac_cv_linux_vers = unknown ; then
4268 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4269 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4270 { (exit 1); exit 1; }; }
4271 fi
4272 if test $ac_cv_linux_vers -lt 2 ; then
4273 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4274 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4275 { (exit 1); exit 1; }; }
4276 fi
4277 ;;
4278
4279 *)
4280 ;;
4281 esac
4282
4283
4284
4285 # Check whether --with-smi was given.
4286 if test "${with_smi+set}" = set; then
4287 withval=$with_smi;
4288 else
4289 with_smi=yes
4290 fi
4291
4292
4293 if test "x$with_smi" != "xno" ; then
4294
4295 for ac_header in smi.h
4296 do
4297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 fi
4304 ac_res=`eval echo '${'$as_ac_Header'}'`
4305 { echo "$as_me:$LINENO: result: $ac_res" >&5
4306 echo "${ECHO_T}$ac_res" >&6; }
4307 else
4308 # Is the header compilable?
4309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h. */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 $ac_includes_default
4318 #include <$ac_header>
4319 _ACEOF
4320 rm -f conftest.$ac_objext
4321 if { (ac_try="$ac_compile"
4322 case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_compile") 2>conftest.er1
4328 ac_status=$?
4329 grep -v '^ *+' conftest.er1 >conftest.err
4330 rm -f conftest.er1
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && {
4334 test -z "$ac_c_werror_flag" ||
4335 test ! -s conftest.err
4336 } && test -s conftest.$ac_objext; then
4337 ac_header_compiler=yes
4338 else
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 ac_header_compiler=no
4343 fi
4344
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4347 echo "${ECHO_T}$ac_header_compiler" >&6; }
4348
4349 # Is the header present?
4350 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h. */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358 #include <$ac_header>
4359 _ACEOF
4360 if { (ac_try="$ac_cpp conftest.$ac_ext"
4361 case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364 esac
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } >/dev/null && {
4373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4374 test ! -s conftest.err
4375 }; then
4376 ac_header_preproc=yes
4377 else
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4380
4381 ac_header_preproc=no
4382 fi
4383
4384 rm -f conftest.err conftest.$ac_ext
4385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4386 echo "${ECHO_T}$ac_header_preproc" >&6; }
4387
4388 # So? What about this header?
4389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4390 yes:no: )
4391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4395 ac_header_preproc=yes
4396 ;;
4397 no:yes:* )
4398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4410
4411 ;;
4412 esac
4413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 eval "$as_ac_Header=\$ac_header_preproc"
4419 fi
4420 ac_res=`eval echo '${'$as_ac_Header'}'`
4421 { echo "$as_me:$LINENO: result: $ac_res" >&5
4422 echo "${ECHO_T}$ac_res" >&6; }
4423
4424 fi
4425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4426 cat >>confdefs.h <<_ACEOF
4427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4428 _ACEOF
4429
4430 fi
4431
4432 done
4433
4434
4435 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4436 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4437 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440 ac_check_lib_save_LIBS=$LIBS
4441 LIBS="-lsmi $LIBS"
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h. */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4448
4449 /* Override any GCC internal prototype to avoid an error.
4450 Use char because int might match the return type of a GCC
4451 builtin and then its argument prototype would still apply. */
4452 #ifdef __cplusplus
4453 extern "C"
4454 #endif
4455 char smiInit ();
4456 int
4457 main ()
4458 {
4459 return smiInit ();
4460 ;
4461 return 0;
4462 }
4463 _ACEOF
4464 rm -f conftest.$ac_objext conftest$ac_exeext
4465 if { (ac_try="$ac_link"
4466 case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4469 esac
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_link") 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } && {
4478 test -z "$ac_c_werror_flag" ||
4479 test ! -s conftest.err
4480 } && test -s conftest$ac_exeext &&
4481 $as_test_x conftest$ac_exeext; then
4482 ac_cv_lib_smi_smiInit=yes
4483 else
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487 ac_cv_lib_smi_smiInit=no
4488 fi
4489
4490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4491 conftest$ac_exeext conftest.$ac_ext
4492 LIBS=$ac_check_lib_save_LIBS
4493 fi
4494 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4495 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4496 if test $ac_cv_lib_smi_smiInit = yes; then
4497 cat >>confdefs.h <<_ACEOF
4498 #define HAVE_LIBSMI 1
4499 _ACEOF
4500
4501 LIBS="-lsmi $LIBS"
4502
4503 fi
4504
4505 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4506 then
4507 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4508 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4509 if test "$cross_compiling" = yes; then
4510 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4511 echo "${ECHO_T}not when cross-compiling" >&6; }
4512 libsmi=no
4513
4514 else
4515 cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h. */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 /* libsmi available check */
4522 #include <smi.h>
4523 main()
4524 {
4525 int current, revision, age, n;
4526 const int required = 2;
4527 if (smiInit(""))
4528 exit(1);
4529 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4530 exit(2);
4531 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4532 if (n != 3)
4533 exit(3);
4534 if (required < current - age || required > current)
4535 exit(4);
4536 exit(0);
4537 }
4538
4539 _ACEOF
4540 rm -f conftest$ac_exeext
4541 if { (ac_try="$ac_link"
4542 case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545 esac
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547 (eval "$ac_link") 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4551 { (case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554 esac
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_try") 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 { echo "$as_me:$LINENO: result: yes" >&5
4561 echo "${ECHO_T}yes" >&6; }
4562 cat >>confdefs.h <<\_ACEOF
4563 #define LIBSMI 1
4564 _ACEOF
4565
4566 libsmi=yes
4567 else
4568 echo "$as_me: program exited with status $ac_status" >&5
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572 ( exit $ac_status )
4573 case $? in
4574 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4575 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4576 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4577 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4578 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4579 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4580 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4581 echo "${ECHO_T}no - too old" >&6; } ;;
4582 *) { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; } ;;
4584 esac
4585 libsmi=no
4586 fi
4587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4588 fi
4589
4590
4591 fi
4592 fi
4593
4594 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4595 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4596 # Check whether --enable-smb was given.
4597 if test "${enable_smb+set}" = set; then
4598 enableval=$enable_smb;
4599 else
4600 enableval=yes
4601 fi
4602
4603 case "$enableval" in
4604 yes) { echo "$as_me:$LINENO: result: yes" >&5
4605 echo "${ECHO_T}yes" >&6; }
4606 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4607 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4608 cat >>confdefs.h <<\_ACEOF
4609 #define TCPDUMP_DO_SMB 1
4610 _ACEOF
4611
4612 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4613 ;;
4614 *) { echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6; }
4616 ;;
4617 esac
4618
4619
4620 # Check whether --with-user was given.
4621 if test "${with_user+set}" = set; then
4622 withval=$with_user;
4623 fi
4624
4625 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4626 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4627 if test ! -z "$with_user" ; then
4628 cat >>confdefs.h <<_ACEOF
4629 #define WITH_USER "$withval"
4630 _ACEOF
4631
4632 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4633 echo "${ECHO_T}to \"$withval\"" >&6; }
4634 else
4635 { echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6; }
4637 fi
4638
4639
4640 # Check whether --with-chroot was given.
4641 if test "${with_chroot+set}" = set; then
4642 withval=$with_chroot;
4643 fi
4644
4645 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4646 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4647 if test ! -z "$with_chroot" ; then
4648 cat >>confdefs.h <<_ACEOF
4649 #define WITH_CHROOT "$withval"
4650 _ACEOF
4651
4652 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4653 echo "${ECHO_T}to \"$withval\"" >&6; }
4654 else
4655 { echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6; }
4657 fi
4658
4659 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4660 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4661 # Check whether --enable-ipv6 was given.
4662 if test "${enable_ipv6+set}" = set; then
4663 enableval=$enable_ipv6; case "$enableval" in
4664 yes) { echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6; }
4666 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"
4667 cat >>confdefs.h <<\_ACEOF
4668 #define INET6 1
4669 _ACEOF
4670
4671 ipv6=yes
4672 ;;
4673 *)
4674 { echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6; }
4676 ipv6=no
4677 ;;
4678 esac
4679 else
4680 if test "$cross_compiling" = yes; then
4681 { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4683 ipv6=no
4684
4685 else
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 /* AF_INET6 available check */
4693 #include <sys/types.h>
4694 #include <sys/socket.h>
4695 main()
4696 {
4697 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4698 exit(1);
4699 else
4700 exit(0);
4701 }
4702
4703 _ACEOF
4704 rm -f conftest$ac_exeext
4705 if { (ac_try="$ac_link"
4706 case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709 esac
4710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711 (eval "$ac_link") 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4715 { (case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4718 esac
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_try") 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; }; then
4724 { echo "$as_me:$LINENO: result: yes" >&5
4725 echo "${ECHO_T}yes" >&6; }
4726 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"
4727 cat >>confdefs.h <<\_ACEOF
4728 #define INET6 1
4729 _ACEOF
4730
4731 ipv6=yes
4732 else
4733 echo "$as_me: program exited with status $ac_status" >&5
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 ( exit $ac_status )
4738 { echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6; }
4740 ipv6=no
4741 fi
4742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4743 fi
4744
4745
4746 fi
4747
4748
4749 ipv6type=unknown
4750 ipv6lib=none
4751 ipv6trylibc=no
4752
4753 if test "$ipv6" = "yes"; then
4754 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4755 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4756 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4757 case $i in
4758 inria)
4759 cat >conftest.$ac_ext <<_ACEOF
4760 /* confdefs.h. */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4765 #include <netinet/in.h>
4766 #ifdef IPV6_INRIA_VERSION
4767 yes
4768 #endif
4769 _ACEOF
4770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4771 $EGREP "yes" >/dev/null 2>&1; then
4772 ipv6type=$i;
4773 CFLAGS="-DINET6 $CFLAGS"
4774 fi
4775 rm -f conftest*
4776
4777 ;;
4778 kame)
4779 cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h. */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 #include <netinet/in.h>
4786 #ifdef __KAME__
4787 yes
4788 #endif
4789 _ACEOF
4790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4791 $EGREP "yes" >/dev/null 2>&1; then
4792 ipv6type=$i;
4793 ipv6lib=inet6;
4794 ipv6libdir=/usr/local/v6/lib;
4795 ipv6trylibc=yes;
4796 CFLAGS="-DINET6 $CFLAGS"
4797 fi
4798 rm -f conftest*
4799
4800 ;;
4801 linux-glibc)
4802 cat >conftest.$ac_ext <<_ACEOF
4803 /* confdefs.h. */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 #include <features.h>
4809 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4810 yes
4811 #endif
4812 _ACEOF
4813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4814 $EGREP "yes" >/dev/null 2>&1; then
4815 ipv6type=$i;
4816 CFLAGS="-DINET6 $CFLAGS"
4817 fi
4818 rm -f conftest*
4819
4820 ;;
4821 linux-libinet6)
4822 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4823 ipv6type=$i
4824 ipv6lib=inet6
4825 ipv6libdir=/usr/inet6/lib
4826 ipv6trylibc=yes;
4827 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4828 fi
4829 ;;
4830 toshiba)
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #include <sys/param.h>
4838 #ifdef _TOSHIBA_INET6
4839 yes
4840 #endif
4841 _ACEOF
4842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4843 $EGREP "yes" >/dev/null 2>&1; then
4844 ipv6type=$i;
4845 ipv6lib=inet6;
4846 ipv6libdir=/usr/local/v6/lib;
4847 CFLAGS="-DINET6 $CFLAGS"
4848 fi
4849 rm -f conftest*
4850
4851 ;;
4852 v6d)
4853 cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 #include </usr/local/v6/include/sys/v6config.h>
4860 #ifdef __V6D__
4861 yes
4862 #endif
4863 _ACEOF
4864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865 $EGREP "yes" >/dev/null 2>&1; then
4866 ipv6type=$i;
4867 ipv6lib=v6;
4868 ipv6libdir=/usr/local/v6/lib;
4869 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4870 fi
4871 rm -f conftest*
4872
4873 ;;
4874 zeta)
4875 cat >conftest.$ac_ext <<_ACEOF
4876 /* confdefs.h. */
4877 _ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4881 #include <sys/param.h>
4882 #ifdef _ZETA_MINAMI_INET6
4883 yes
4884 #endif
4885 _ACEOF
4886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4887 $EGREP "yes" >/dev/null 2>&1; then
4888 ipv6type=$i;
4889 ipv6lib=inet6;
4890 ipv6libdir=/usr/local/v6/lib;
4891 CFLAGS="-DINET6 $CFLAGS"
4892 fi
4893 rm -f conftest*
4894
4895 ;;
4896 esac
4897 if test "$ipv6type" != "unknown"; then
4898 break
4899 fi
4900 done
4901 { echo "$as_me:$LINENO: result: $ipv6type" >&5
4902 echo "${ECHO_T}$ipv6type" >&6; }
4903 fi
4904
4905 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4906 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4907 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4908 echo "You have $ipv6lib library, using it"
4909 else
4910 if test "$ipv6trylibc" = "yes"; then
4911 echo "You do not have $ipv6lib library, using libc"
4912 else
4913 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4914 echo "You need to fetch lib$ipv6lib.a from appropriate"
4915 echo 'ipv6 kit and compile beforehand.'
4916 exit 1
4917 fi
4918 fi
4919 fi
4920
4921
4922 if test "$ipv6" = "yes"; then
4923 #
4924 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4925 # function in libc; there are "ngetaddrinfo()" and
4926 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4927 # "getaddrinfo" to be either "ngetaddrinfo" or
4928 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4929 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4930 #
4931 # So this test doesn't work on Tru64 5.1, and possibly
4932 # on other 5.x releases. This causes the configure
4933 # script to become confused, and results in libpcap
4934 # being unbuildable.
4935 #
4936 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4937 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
4938 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 ac_func_search_save_LIBS=$LIBS
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948
4949 /* Override any GCC internal prototype to avoid an error.
4950 Use char because int might match the return type of a GCC
4951 builtin and then its argument prototype would still apply. */
4952 #ifdef __cplusplus
4953 extern "C"
4954 #endif
4955 char getaddrinfo ();
4956 int
4957 main ()
4958 {
4959 return getaddrinfo ();
4960 ;
4961 return 0;
4962 }
4963 _ACEOF
4964 for ac_lib in '' socket; do
4965 if test -z "$ac_lib"; then
4966 ac_res="none required"
4967 else
4968 ac_res=-l$ac_lib
4969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4970 fi
4971 rm -f conftest.$ac_objext conftest$ac_exeext
4972 if { (ac_try="$ac_link"
4973 case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976 esac
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_link") 2>conftest.er1
4979 ac_status=$?
4980 grep -v '^ *+' conftest.er1 >conftest.err
4981 rm -f conftest.er1
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } && {
4985 test -z "$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4987 } && test -s conftest$ac_exeext &&
4988 $as_test_x conftest$ac_exeext; then
4989 ac_cv_search_getaddrinfo=$ac_res
4990 else
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994
4995 fi
4996
4997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4998 conftest$ac_exeext
4999 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5000 break
5001 fi
5002 done
5003 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5004 :
5005 else
5006 ac_cv_search_getaddrinfo=no
5007 fi
5008 rm conftest.$ac_ext
5009 LIBS=$ac_func_search_save_LIBS
5010 fi
5011 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5012 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5013 ac_res=$ac_cv_search_getaddrinfo
5014 if test "$ac_res" != no; then
5015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5016 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5017 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5018 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021 if test "$cross_compiling" = yes; then
5022 td_cv_buggygetaddrinfo=yes
5023 else
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h. */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030
5031 #include <sys/types.h>
5032 #include <netdb.h>
5033 #include <string.h>
5034 #include <sys/socket.h>
5035 #include <netinet/in.h>
5036
5037 main()
5038 {
5039 int passive, gaierr, inet4 = 0, inet6 = 0;
5040 struct addrinfo hints, *ai, *aitop;
5041 char straddr[INET6_ADDRSTRLEN], strport[16];
5042
5043 for (passive = 0; passive <= 1; passive++) {
5044 memset(&hints, 0, sizeof(hints));
5045 hints.ai_family = AF_UNSPEC;
5046 hints.ai_flags = passive ? AI_PASSIVE : 0;
5047 hints.ai_socktype = SOCK_STREAM;
5048 hints.ai_protocol = IPPROTO_TCP;
5049 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5050 (void)gai_strerror(gaierr);
5051 goto bad;
5052 }
5053 for (ai = aitop; ai; ai = ai->ai_next) {
5054 if (ai->ai_addr == NULL ||
5055 ai->ai_addrlen == 0 ||
5056 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5057 straddr, sizeof(straddr), strport, sizeof(strport),
5058 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5059 goto bad;
5060 }
5061 switch (ai->ai_family) {
5062 case AF_INET:
5063 if (strcmp(strport, "54321") != 0) {
5064 goto bad;
5065 }
5066 if (passive) {
5067 if (strcmp(straddr, "0.0.0.0") != 0) {
5068 goto bad;
5069 }
5070 } else {
5071 if (strcmp(straddr, "127.0.0.1") != 0) {
5072 goto bad;
5073 }
5074 }
5075 inet4++;
5076 break;
5077 case AF_INET6:
5078 if (strcmp(strport, "54321") != 0) {
5079 goto bad;
5080 }
5081 if (passive) {
5082 if (strcmp(straddr, "::") != 0) {
5083 goto bad;
5084 }
5085 } else {
5086 if (strcmp(straddr, "::1") != 0) {
5087 goto bad;
5088 }
5089 }
5090 inet6++;
5091 break;
5092 case AF_UNSPEC:
5093 goto bad;
5094 break;
5095 #ifdef AF_UNIX
5096 case AF_UNIX:
5097 #else
5098 #ifdef AF_LOCAL
5099 case AF_LOCAL:
5100 #endif
5101 #endif
5102 default:
5103 /* another family support? */
5104 break;
5105 }
5106 }
5107 }
5108
5109 /* supported family should be 2, unsupported family should be 0 */
5110 if (!(inet4 == 0 || inet4 == 2))
5111 goto bad;
5112 if (!(inet6 == 0 || inet6 == 2))
5113 goto bad;
5114
5115 if (aitop)
5116 freeaddrinfo(aitop);
5117 exit(0);
5118
5119 bad:
5120 if (aitop)
5121 freeaddrinfo(aitop);
5122 exit(1);
5123 }
5124
5125 _ACEOF
5126 rm -f conftest$ac_exeext
5127 if { (ac_try="$ac_link"
5128 case "(($ac_try" in
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_link") 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5137 { (case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140 esac
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_try") 2>&5
5143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 td_cv_buggygetaddrinfo=no
5147 else
5148 echo "$as_me: program exited with status $ac_status" >&5
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 ( exit $ac_status )
5153 td_cv_buggygetaddrinfo=yes
5154 fi
5155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5156 fi
5157
5158
5159 fi
5160
5161 if test "$td_cv_buggygetaddrinfo" = no; then
5162 { echo "$as_me:$LINENO: result: good" >&5
5163 echo "${ECHO_T}good" >&6; }
5164 else
5165 { echo "$as_me:$LINENO: result: buggy" >&5
5166 echo "${ECHO_T}buggy" >&6; }
5167 fi
5168
5169 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5170 #
5171 # XXX - it doesn't appear that "ipv6type" can ever be
5172 # set to "linux". Should this be testing for
5173 # "linux-glibc", or for that *or* "linux-libinet6"?
5174 # If the latter, note that "linux-libinet6" is also
5175 # the type given to some non-Linux OSes.
5176 #
5177 if test "$ipv6type" != "linux"; then
5178 echo 'Fatal: You must get working getaddrinfo() function.'
5179 echo ' or you can specify "--disable-ipv6"'.
5180 exit 1
5181 else
5182 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5183 echo ' Better upgrade your system library to newest version'
5184 echo ' of GNU C library (aka glibc).'
5185 fi
5186 fi
5187
5188 fi
5189
5190
5191
5192 for ac_func in getaddrinfo getnameinfo
5193 do
5194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5195 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h. */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5208 #define $ac_func innocuous_$ac_func
5209
5210 /* System header to define __stub macros and hopefully few prototypes,
5211 which can conflict with char $ac_func (); below.
5212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5213 <limits.h> exists even on freestanding compilers. */
5214
5215 #ifdef __STDC__
5216 # include <limits.h>
5217 #else
5218 # include <assert.h>
5219 #endif
5220
5221 #undef $ac_func
5222
5223 /* Override any GCC internal prototype to avoid an error.
5224 Use char because int might match the return type of a GCC
5225 builtin and then its argument prototype would still apply. */
5226 #ifdef __cplusplus
5227 extern "C"
5228 #endif
5229 char $ac_func ();
5230 /* The GNU C library defines this for functions which it implements
5231 to always fail with ENOSYS. Some functions are actually named
5232 something starting with __ and the normal name is an alias. */
5233 #if defined __stub_$ac_func || defined __stub___$ac_func
5234 choke me
5235 #endif
5236
5237 int
5238 main ()
5239 {
5240 return $ac_func ();
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext conftest$ac_exeext
5246 if { (ac_try="$ac_link"
5247 case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250 esac
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_link") 2>conftest.er1
5253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest$ac_exeext &&
5262 $as_test_x conftest$ac_exeext; then
5263 eval "$as_ac_var=yes"
5264 else
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5267
5268 eval "$as_ac_var=no"
5269 fi
5270
5271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5272 conftest$ac_exeext conftest.$ac_ext
5273 fi
5274 ac_res=`eval echo '${'$as_ac_var'}'`
5275 { echo "$as_me:$LINENO: result: $ac_res" >&5
5276 echo "${ECHO_T}$ac_res" >&6; }
5277 if test `eval echo '${'$as_ac_var'}'` = yes; then
5278 cat >>confdefs.h <<_ACEOF
5279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5280 _ACEOF
5281
5282 else
5283 case " $LIBOBJS " in
5284 *" $ac_func.$ac_objext "* ) ;;
5285 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5286 ;;
5287 esac
5288
5289 fi
5290 done
5291
5292
5293 fi
5294
5295 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5296 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5297 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300 cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h. */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 #include <netdnet/dnetdb.h>
5307
5308 _ACEOF
5309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5310 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5311 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5312 else
5313 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5314 fi
5315 rm -f conftest*
5316
5317 fi
5318 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5319 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5320 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5321 cat >>confdefs.h <<\_ACEOF
5322 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5323 _ACEOF
5324
5325 fi
5326
5327 { echo "$as_me:$LINENO: checking for char" >&5
5328 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5329 if test "${ac_cv_type_char+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h. */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 $ac_includes_default
5339 typedef char ac__type_new_;
5340 int
5341 main ()
5342 {
5343 if ((ac__type_new_ *) 0)
5344 return 0;
5345 if (sizeof (ac__type_new_))
5346 return 0;
5347 ;
5348 return 0;
5349 }
5350 _ACEOF
5351 rm -f conftest.$ac_objext
5352 if { (ac_try="$ac_compile"
5353 case "(($ac_try" in
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5356 esac
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5359 ac_status=$?
5360 grep -v '^ *+' conftest.er1 >conftest.err
5361 rm -f conftest.er1
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && {
5365 test -z "$ac_c_werror_flag" ||
5366 test ! -s conftest.err
5367 } && test -s conftest.$ac_objext; then
5368 ac_cv_type_char=yes
5369 else
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373 ac_cv_type_char=no
5374 fi
5375
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 fi
5378 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5379 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5380
5381 # The cast to long int works around a bug in the HP C Compiler
5382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5384 # This bug is HP SR number 8606223364.
5385 { echo "$as_me:$LINENO: checking size of char" >&5
5386 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5387 if test "${ac_cv_sizeof_char+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390 if test "$cross_compiling" = yes; then
5391 # Depending upon the size, compute the lo and hi bounds.
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 $ac_includes_default
5399 typedef char ac__type_sizeof_;
5400 int
5401 main ()
5402 {
5403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5404 test_array [0] = 0
5405
5406 ;
5407 return 0;
5408 }
5409 _ACEOF
5410 rm -f conftest.$ac_objext
5411 if { (ac_try="$ac_compile"
5412 case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415 esac
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_compile") 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } && {
5424 test -z "$ac_c_werror_flag" ||
5425 test ! -s conftest.err
5426 } && test -s conftest.$ac_objext; then
5427 ac_lo=0 ac_mid=0
5428 while :; do
5429 cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h. */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 $ac_includes_default
5436 typedef char ac__type_sizeof_;
5437 int
5438 main ()
5439 {
5440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5441 test_array [0] = 0
5442
5443 ;
5444 return 0;
5445 }
5446 _ACEOF
5447 rm -f conftest.$ac_objext
5448 if { (ac_try="$ac_compile"
5449 case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452 esac
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_compile") 2>conftest.er1
5455 ac_status=$?
5456 grep -v '^ *+' conftest.er1 >conftest.err
5457 rm -f conftest.er1
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } && {
5461 test -z "$ac_c_werror_flag" ||
5462 test ! -s conftest.err
5463 } && test -s conftest.$ac_objext; then
5464 ac_hi=$ac_mid; break
5465 else
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469 ac_lo=`expr $ac_mid + 1`
5470 if test $ac_lo -le $ac_mid; then
5471 ac_lo= ac_hi=
5472 break
5473 fi
5474 ac_mid=`expr 2 '*' $ac_mid + 1`
5475 fi
5476
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 done
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483 cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h. */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5490 typedef char ac__type_sizeof_;
5491 int
5492 main ()
5493 {
5494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5495 test_array [0] = 0
5496
5497 ;
5498 return 0;
5499 }
5500 _ACEOF
5501 rm -f conftest.$ac_objext
5502 if { (ac_try="$ac_compile"
5503 case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
5518 ac_hi=-1 ac_mid=-1
5519 while :; do
5520 cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h. */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 $ac_includes_default
5527 typedef char ac__type_sizeof_;
5528 int
5529 main ()
5530 {
5531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5532 test_array [0] = 0
5533
5534 ;
5535 return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (ac_try="$ac_compile"
5540 case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5543 esac
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_compile") 2>conftest.er1
5546 ac_status=$?
5547 grep -v '^ *+' conftest.er1 >conftest.err
5548 rm -f conftest.er1
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && {
5552 test -z "$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.$ac_objext; then
5555 ac_lo=$ac_mid; break
5556 else
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560 ac_hi=`expr '(' $ac_mid ')' - 1`
5561 if test $ac_mid -le $ac_hi; then
5562 ac_lo= ac_hi=
5563 break
5564 fi
5565 ac_mid=`expr 2 '*' $ac_mid`
5566 fi
5567
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 done
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5573
5574 ac_lo= ac_hi=
5575 fi
5576
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 fi
5579
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 # Binary search between lo and hi bounds.
5582 while test "x$ac_lo" != "x$ac_hi"; do
5583 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5584 cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h. */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 $ac_includes_default
5591 typedef char ac__type_sizeof_;
5592 int
5593 main ()
5594 {
5595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5596 test_array [0] = 0
5597
5598 ;
5599 return 0;
5600 }
5601 _ACEOF
5602 rm -f conftest.$ac_objext
5603 if { (ac_try="$ac_compile"
5604 case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607 esac
5608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_compile") 2>conftest.er1
5610 ac_status=$?
5611 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && {
5616 test -z "$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5618 } && test -s conftest.$ac_objext; then
5619 ac_hi=$ac_mid
5620 else
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5623
5624 ac_lo=`expr '(' $ac_mid ')' + 1`
5625 fi
5626
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 done
5629 case $ac_lo in
5630 ?*) ac_cv_sizeof_char=$ac_lo;;
5631 '') if test "$ac_cv_type_char" = yes; then
5632 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5633 See \`config.log' for more details." >&5
5634 echo "$as_me: error: cannot compute sizeof (char)
5635 See \`config.log' for more details." >&2;}
5636 { (exit 77); exit 77; }; }
5637 else
5638 ac_cv_sizeof_char=0
5639 fi ;;
5640 esac
5641 else
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5649 typedef char ac__type_sizeof_;
5650 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5651 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5652 #include <stdio.h>
5653 #include <stdlib.h>
5654 int
5655 main ()
5656 {
5657
5658 FILE *f = fopen ("conftest.val", "w");
5659 if (! f)
5660 return 1;
5661 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5662 {
5663 long int i = longval ();
5664 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5665 return 1;
5666 fprintf (f, "%ld\n", i);
5667 }
5668 else
5669 {
5670 unsigned long int i = ulongval ();
5671 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5672 return 1;
5673 fprintf (f, "%lu\n", i);
5674 }
5675 return ferror (f) || fclose (f) != 0;
5676
5677 ;
5678 return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest$ac_exeext
5682 if { (ac_try="$ac_link"
5683 case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_link") 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5692 { (case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_try") 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5701 ac_cv_sizeof_char=`cat conftest.val`
5702 else
5703 echo "$as_me: program exited with status $ac_status" >&5
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5706
5707 ( exit $ac_status )
5708 if test "$ac_cv_type_char" = yes; then
5709 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5710 See \`config.log' for more details." >&5
5711 echo "$as_me: error: cannot compute sizeof (char)
5712 See \`config.log' for more details." >&2;}
5713 { (exit 77); exit 77; }; }
5714 else
5715 ac_cv_sizeof_char=0
5716 fi
5717 fi
5718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5719 fi
5720 rm -f conftest.val
5721 fi
5722 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5723 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5724
5725
5726
5727 cat >>confdefs.h <<_ACEOF
5728 #define SIZEOF_CHAR $ac_cv_sizeof_char
5729 _ACEOF
5730
5731
5732 { echo "$as_me:$LINENO: checking for short" >&5
5733 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5734 if test "${ac_cv_type_short+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h. */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 $ac_includes_default
5744 typedef short ac__type_new_;
5745 int
5746 main ()
5747 {
5748 if ((ac__type_new_ *) 0)
5749 return 0;
5750 if (sizeof (ac__type_new_))
5751 return 0;
5752 ;
5753 return 0;
5754 }
5755 _ACEOF
5756 rm -f conftest.$ac_objext
5757 if { (ac_try="$ac_compile"
5758 case "(($ac_try" in
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5761 esac
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_compile") 2>conftest.er1
5764 ac_status=$?
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && {
5770 test -z "$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5772 } && test -s conftest.$ac_objext; then
5773 ac_cv_type_short=yes
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778 ac_cv_type_short=no
5779 fi
5780
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 fi
5783 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5784 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5785
5786 # The cast to long int works around a bug in the HP C Compiler
5787 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5788 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5789 # This bug is HP SR number 8606223364.
5790 { echo "$as_me:$LINENO: checking size of short" >&5
5791 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5792 if test "${ac_cv_sizeof_short+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795 if test "$cross_compiling" = yes; then
5796 # Depending upon the size, compute the lo and hi bounds.
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 $ac_includes_default
5804 typedef short ac__type_sizeof_;
5805 int
5806 main ()
5807 {
5808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5809 test_array [0] = 0
5810
5811 ;
5812 return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5817 case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820 esac
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && {
5829 test -z "$ac_c_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest.$ac_objext; then
5832 ac_lo=0 ac_mid=0
5833 while :; do
5834 cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h. */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 $ac_includes_default
5841 typedef short ac__type_sizeof_;
5842 int
5843 main ()
5844 {
5845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5846 test_array [0] = 0
5847
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 rm -f conftest.$ac_objext
5853 if { (ac_try="$ac_compile"
5854 case "(($ac_try" in
5855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856 *) ac_try_echo=$ac_try;;
5857 esac
5858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859 (eval "$ac_compile") 2>conftest.er1
5860 ac_status=$?
5861 grep -v '^ *+' conftest.er1 >conftest.err
5862 rm -f conftest.er1
5863 cat conftest.err >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } && {
5866 test -z "$ac_c_werror_flag" ||
5867 test ! -s conftest.err
5868 } && test -s conftest.$ac_objext; then
5869 ac_hi=$ac_mid; break
5870 else
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 ac_lo=`expr $ac_mid + 1`
5875 if test $ac_lo -le $ac_mid; then
5876 ac_lo= ac_hi=
5877 break
5878 fi
5879 ac_mid=`expr 2 '*' $ac_mid + 1`
5880 fi
5881
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 done
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5887
5888 cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h. */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 $ac_includes_default
5895 typedef short ac__type_sizeof_;
5896 int
5897 main ()
5898 {
5899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5900 test_array [0] = 0
5901
5902 ;
5903 return 0;
5904 }
5905 _ACEOF
5906 rm -f conftest.$ac_objext
5907 if { (ac_try="$ac_compile"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_compile") 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest.$ac_objext; then
5923 ac_hi=-1 ac_mid=-1
5924 while :; do
5925 cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h. */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 $ac_includes_default
5932 typedef short ac__type_sizeof_;
5933 int
5934 main ()
5935 {
5936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5937 test_array [0] = 0
5938
5939 ;
5940 return 0;
5941 }
5942 _ACEOF
5943 rm -f conftest.$ac_objext
5944 if { (ac_try="$ac_compile"
5945 case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948 esac
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_c_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest.$ac_objext; then
5960 ac_lo=$ac_mid; break
5961 else
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5964
5965 ac_hi=`expr '(' $ac_mid ')' - 1`
5966 if test $ac_mid -le $ac_hi; then
5967 ac_lo= ac_hi=
5968 break
5969 fi
5970 ac_mid=`expr 2 '*' $ac_mid`
5971 fi
5972
5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 done
5975 else
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5978
5979 ac_lo= ac_hi=
5980 fi
5981
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 fi
5984
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 # Binary search between lo and hi bounds.
5987 while test "x$ac_lo" != "x$ac_hi"; do
5988 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5989 cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h. */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 $ac_includes_default
5996 typedef short ac__type_sizeof_;
5997 int
5998 main ()
5999 {
6000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6001 test_array [0] = 0
6002
6003 ;
6004 return 0;
6005 }
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (ac_try="$ac_compile"
6009 case "(($ac_try" in
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6012 esac
6013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
6024 ac_hi=$ac_mid
6025 else
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029 ac_lo=`expr '(' $ac_mid ')' + 1`
6030 fi
6031
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 done
6034 case $ac_lo in
6035 ?*) ac_cv_sizeof_short=$ac_lo;;
6036 '') if test "$ac_cv_type_short" = yes; then
6037 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6038 See \`config.log' for more details." >&5
6039 echo "$as_me: error: cannot compute sizeof (short)
6040 See \`config.log' for more details." >&2;}
6041 { (exit 77); exit 77; }; }
6042 else
6043 ac_cv_sizeof_short=0
6044 fi ;;
6045 esac
6046 else
6047 cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h. */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 $ac_includes_default
6054 typedef short ac__type_sizeof_;
6055 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6056 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6057 #include <stdio.h>
6058 #include <stdlib.h>
6059 int
6060 main ()
6061 {
6062
6063 FILE *f = fopen ("conftest.val", "w");
6064 if (! f)
6065 return 1;
6066 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6067 {
6068 long int i = longval ();
6069 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6070 return 1;
6071 fprintf (f, "%ld\n", i);
6072 }
6073 else
6074 {
6075 unsigned long int i = ulongval ();
6076 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6077 return 1;
6078 fprintf (f, "%lu\n", i);
6079 }
6080 return ferror (f) || fclose (f) != 0;
6081
6082 ;
6083 return 0;
6084 }
6085 _ACEOF
6086 rm -f conftest$ac_exeext
6087 if { (ac_try="$ac_link"
6088 case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_link") 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6097 { (case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100 esac
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_try") 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6106 ac_cv_sizeof_short=`cat conftest.val`
6107 else
6108 echo "$as_me: program exited with status $ac_status" >&5
6109 echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6111
6112 ( exit $ac_status )
6113 if test "$ac_cv_type_short" = yes; then
6114 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6115 See \`config.log' for more details." >&5
6116 echo "$as_me: error: cannot compute sizeof (short)
6117 See \`config.log' for more details." >&2;}
6118 { (exit 77); exit 77; }; }
6119 else
6120 ac_cv_sizeof_short=0
6121 fi
6122 fi
6123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6124 fi
6125 rm -f conftest.val
6126 fi
6127 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6128 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6129
6130
6131
6132 cat >>confdefs.h <<_ACEOF
6133 #define SIZEOF_SHORT $ac_cv_sizeof_short
6134 _ACEOF
6135
6136
6137 { echo "$as_me:$LINENO: checking for int" >&5
6138 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6139 if test "${ac_cv_type_int+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142 cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h. */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148 $ac_includes_default
6149 typedef int ac__type_new_;
6150 int
6151 main ()
6152 {
6153 if ((ac__type_new_ *) 0)
6154 return 0;
6155 if (sizeof (ac__type_new_))
6156 return 0;
6157 ;
6158 return 0;
6159 }
6160 _ACEOF
6161 rm -f conftest.$ac_objext
6162 if { (ac_try="$ac_compile"
6163 case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166 esac
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
6178 ac_cv_type_int=yes
6179 else
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183 ac_cv_type_int=no
6184 fi
6185
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 fi
6188 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6189 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6190
6191 # The cast to long int works around a bug in the HP C Compiler
6192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6194 # This bug is HP SR number 8606223364.
6195 { echo "$as_me:$LINENO: checking size of int" >&5
6196 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6197 if test "${ac_cv_sizeof_int+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200 if test "$cross_compiling" = yes; then
6201 # Depending upon the size, compute the lo and hi bounds.
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 $ac_includes_default
6209 typedef int ac__type_sizeof_;
6210 int
6211 main ()
6212 {
6213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6214 test_array [0] = 0
6215
6216 ;
6217 return 0;
6218 }
6219 _ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (ac_try="$ac_compile"
6222 case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225 esac
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_compile") 2>conftest.er1
6228 ac_status=$?
6229 grep -v '^ *+' conftest.er1 >conftest.err
6230 rm -f conftest.er1
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } && {
6234 test -z "$ac_c_werror_flag" ||
6235 test ! -s conftest.err
6236 } && test -s conftest.$ac_objext; then
6237 ac_lo=0 ac_mid=0
6238 while :; do
6239 cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h. */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6245 $ac_includes_default
6246 typedef int ac__type_sizeof_;
6247 int
6248 main ()
6249 {
6250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6251 test_array [0] = 0
6252
6253 ;
6254 return 0;
6255 }
6256 _ACEOF
6257 rm -f conftest.$ac_objext
6258 if { (ac_try="$ac_compile"
6259 case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_compile") 2>conftest.er1
6265 ac_status=$?
6266 grep -v '^ *+' conftest.er1 >conftest.err
6267 rm -f conftest.er1
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_c_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest.$ac_objext; then
6274 ac_hi=$ac_mid; break
6275 else
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6278
6279 ac_lo=`expr $ac_mid + 1`
6280 if test $ac_lo -le $ac_mid; then
6281 ac_lo= ac_hi=
6282 break
6283 fi
6284 ac_mid=`expr 2 '*' $ac_mid + 1`
6285 fi
6286
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 done
6289 else
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6292
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 $ac_includes_default
6300 typedef int ac__type_sizeof_;
6301 int
6302 main ()
6303 {
6304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6305 test_array [0] = 0
6306
6307 ;
6308 return 0;
6309 }
6310 _ACEOF
6311 rm -f conftest.$ac_objext
6312 if { (ac_try="$ac_compile"
6313 case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316 esac
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_compile") 2>conftest.er1
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest.$ac_objext; then
6328 ac_hi=-1 ac_mid=-1
6329 while :; do
6330 cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h. */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6336 $ac_includes_default
6337 typedef int ac__type_sizeof_;
6338 int
6339 main ()
6340 {
6341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6342 test_array [0] = 0
6343
6344 ;
6345 return 0;
6346 }
6347 _ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (ac_try="$ac_compile"
6350 case "(($ac_try" in
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6353 esac
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_compile") 2>conftest.er1
6356 ac_status=$?
6357 grep -v '^ *+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } && {
6362 test -z "$ac_c_werror_flag" ||
6363 test ! -s conftest.err
6364 } && test -s conftest.$ac_objext; then
6365 ac_lo=$ac_mid; break
6366 else
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6369
6370 ac_hi=`expr '(' $ac_mid ')' - 1`
6371 if test $ac_mid -le $ac_hi; then
6372 ac_lo= ac_hi=
6373 break
6374 fi
6375 ac_mid=`expr 2 '*' $ac_mid`
6376 fi
6377
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379 done
6380 else
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6383
6384 ac_lo= ac_hi=
6385 fi
6386
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 fi
6389
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 # Binary search between lo and hi bounds.
6392 while test "x$ac_lo" != "x$ac_hi"; do
6393 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6394 cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h. */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 $ac_includes_default
6401 typedef int ac__type_sizeof_;
6402 int
6403 main ()
6404 {
6405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6406 test_array [0] = 0
6407
6408 ;
6409 return 0;
6410 }
6411 _ACEOF
6412 rm -f conftest.$ac_objext
6413 if { (ac_try="$ac_compile"
6414 case "(($ac_try" in
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6417 esac
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_compile") 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } && {
6426 test -z "$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6428 } && test -s conftest.$ac_objext; then
6429 ac_hi=$ac_mid
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 ac_lo=`expr '(' $ac_mid ')' + 1`
6435 fi
6436
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 done
6439 case $ac_lo in
6440 ?*) ac_cv_sizeof_int=$ac_lo;;
6441 '') if test "$ac_cv_type_int" = yes; then
6442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6443 See \`config.log' for more details." >&5
6444 echo "$as_me: error: cannot compute sizeof (int)
6445 See \`config.log' for more details." >&2;}
6446 { (exit 77); exit 77; }; }
6447 else
6448 ac_cv_sizeof_int=0
6449 fi ;;
6450 esac
6451 else
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h. */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 $ac_includes_default
6459 typedef int ac__type_sizeof_;
6460 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6461 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6462 #include <stdio.h>
6463 #include <stdlib.h>
6464 int
6465 main ()
6466 {
6467
6468 FILE *f = fopen ("conftest.val", "w");
6469 if (! f)
6470 return 1;
6471 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6472 {
6473 long int i = longval ();
6474 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6475 return 1;
6476 fprintf (f, "%ld\n", i);
6477 }
6478 else
6479 {
6480 unsigned long int i = ulongval ();
6481 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6482 return 1;
6483 fprintf (f, "%lu\n", i);
6484 }
6485 return ferror (f) || fclose (f) != 0;
6486
6487 ;
6488 return 0;
6489 }
6490 _ACEOF
6491 rm -f conftest$ac_exeext
6492 if { (ac_try="$ac_link"
6493 case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496 esac
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_link") 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6502 { (case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505 esac
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_try") 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 ac_cv_sizeof_int=`cat conftest.val`
6512 else
6513 echo "$as_me: program exited with status $ac_status" >&5
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6516
6517 ( exit $ac_status )
6518 if test "$ac_cv_type_int" = yes; then
6519 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6520 See \`config.log' for more details." >&5
6521 echo "$as_me: error: cannot compute sizeof (int)
6522 See \`config.log' for more details." >&2;}
6523 { (exit 77); exit 77; }; }
6524 else
6525 ac_cv_sizeof_int=0
6526 fi
6527 fi
6528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6529 fi
6530 rm -f conftest.val
6531 fi
6532 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6533 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6534
6535
6536
6537 cat >>confdefs.h <<_ACEOF
6538 #define SIZEOF_INT $ac_cv_sizeof_int
6539 _ACEOF
6540
6541
6542 { echo "$as_me:$LINENO: checking for long" >&5
6543 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6544 if test "${ac_cv_type_long+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547 cat >conftest.$ac_ext <<_ACEOF
6548 /* confdefs.h. */
6549 _ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 $ac_includes_default
6554 typedef long ac__type_new_;
6555 int
6556 main ()
6557 {
6558 if ((ac__type_new_ *) 0)
6559 return 0;
6560 if (sizeof (ac__type_new_))
6561 return 0;
6562 ;
6563 return 0;
6564 }
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (ac_try="$ac_compile"
6568 case "(($ac_try" in
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6571 esac
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_compile") 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } && {
6580 test -z "$ac_c_werror_flag" ||
6581 test ! -s conftest.err
6582 } && test -s conftest.$ac_objext; then
6583 ac_cv_type_long=yes
6584 else
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6587
6588 ac_cv_type_long=no
6589 fi
6590
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 fi
6593 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6594 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6595
6596 # The cast to long int works around a bug in the HP C Compiler
6597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6599 # This bug is HP SR number 8606223364.
6600 { echo "$as_me:$LINENO: checking size of long" >&5
6601 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6602 if test "${ac_cv_sizeof_long+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605 if test "$cross_compiling" = yes; then
6606 # Depending upon the size, compute the lo and hi bounds.
6607 cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h. */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 $ac_includes_default
6614 typedef long ac__type_sizeof_;
6615 int
6616 main ()
6617 {
6618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6619 test_array [0] = 0
6620
6621 ;
6622 return 0;
6623 }
6624 _ACEOF
6625 rm -f conftest.$ac_objext
6626 if { (ac_try="$ac_compile"
6627 case "(($ac_try" in
6628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6630 esac
6631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6632 (eval "$ac_compile") 2>conftest.er1
6633 ac_status=$?
6634 grep -v '^ *+' conftest.er1 >conftest.err
6635 rm -f conftest.er1
6636 cat conftest.err >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && {
6639 test -z "$ac_c_werror_flag" ||
6640 test ! -s conftest.err
6641 } && test -s conftest.$ac_objext; then
6642 ac_lo=0 ac_mid=0
6643 while :; do
6644 cat >conftest.$ac_ext <<_ACEOF
6645 /* confdefs.h. */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 $ac_includes_default
6651 typedef long ac__type_sizeof_;
6652 int
6653 main ()
6654 {
6655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6656 test_array [0] = 0
6657
6658 ;
6659 return 0;
6660 }
6661 _ACEOF
6662 rm -f conftest.$ac_objext
6663 if { (ac_try="$ac_compile"
6664 case "(($ac_try" in
6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6667 esac
6668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669 (eval "$ac_compile") 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && {
6676 test -z "$ac_c_werror_flag" ||
6677 test ! -s conftest.err
6678 } && test -s conftest.$ac_objext; then
6679 ac_hi=$ac_mid; break
6680 else
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684 ac_lo=`expr $ac_mid + 1`
6685 if test $ac_lo -le $ac_mid; then
6686 ac_lo= ac_hi=
6687 break
6688 fi
6689 ac_mid=`expr 2 '*' $ac_mid + 1`
6690 fi
6691
6692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693 done
6694 else
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6697
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h. */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6705 typedef long ac__type_sizeof_;
6706 int
6707 main ()
6708 {
6709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6710 test_array [0] = 0
6711
6712 ;
6713 return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext
6717 if { (ac_try="$ac_compile"
6718 case "(($ac_try" in
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6721 esac
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_compile") 2>conftest.er1
6724 ac_status=$?
6725 grep -v '^ *+' conftest.er1 >conftest.err
6726 rm -f conftest.er1
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest.$ac_objext; then
6733 ac_hi=-1 ac_mid=-1
6734 while :; do
6735 cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h. */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 $ac_includes_default
6742 typedef long ac__type_sizeof_;
6743 int
6744 main ()
6745 {
6746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6747 test_array [0] = 0
6748
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 rm -f conftest.$ac_objext
6754 if { (ac_try="$ac_compile"
6755 case "(($ac_try" in
6756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757 *) ac_try_echo=$ac_try;;
6758 esac
6759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6760 (eval "$ac_compile") 2>conftest.er1
6761 ac_status=$?
6762 grep -v '^ *+' conftest.er1 >conftest.err
6763 rm -f conftest.er1
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && {
6767 test -z "$ac_c_werror_flag" ||
6768 test ! -s conftest.err
6769 } && test -s conftest.$ac_objext; then
6770 ac_lo=$ac_mid; break
6771 else
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6774
6775 ac_hi=`expr '(' $ac_mid ')' - 1`
6776 if test $ac_mid -le $ac_hi; then
6777 ac_lo= ac_hi=
6778 break
6779 fi
6780 ac_mid=`expr 2 '*' $ac_mid`
6781 fi
6782
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 done
6785 else
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6788
6789 ac_lo= ac_hi=
6790 fi
6791
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 fi
6794
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 # Binary search between lo and hi bounds.
6797 while test "x$ac_lo" != "x$ac_hi"; do
6798 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 $ac_includes_default
6806 typedef long ac__type_sizeof_;
6807 int
6808 main ()
6809 {
6810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6811 test_array [0] = 0
6812
6813 ;
6814 return 0;
6815 }
6816 _ACEOF
6817 rm -f conftest.$ac_objext
6818 if { (ac_try="$ac_compile"
6819 case "(($ac_try" in
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6822 esac
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824 (eval "$ac_compile") 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest.$ac_objext; then
6834 ac_hi=$ac_mid
6835 else
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6838
6839 ac_lo=`expr '(' $ac_mid ')' + 1`
6840 fi
6841
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843 done
6844 case $ac_lo in
6845 ?*) ac_cv_sizeof_long=$ac_lo;;
6846 '') if test "$ac_cv_type_long" = yes; then
6847 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6848 See \`config.log' for more details." >&5
6849 echo "$as_me: error: cannot compute sizeof (long)
6850 See \`config.log' for more details." >&2;}
6851 { (exit 77); exit 77; }; }
6852 else
6853 ac_cv_sizeof_long=0
6854 fi ;;
6855 esac
6856 else
6857 cat >conftest.$ac_ext <<_ACEOF
6858 /* confdefs.h. */
6859 _ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6863 $ac_includes_default
6864 typedef long ac__type_sizeof_;
6865 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6866 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6867 #include <stdio.h>
6868 #include <stdlib.h>
6869 int
6870 main ()
6871 {
6872
6873 FILE *f = fopen ("conftest.val", "w");
6874 if (! f)
6875 return 1;
6876 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6877 {
6878 long int i = longval ();
6879 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6880 return 1;
6881 fprintf (f, "%ld\n", i);
6882 }
6883 else
6884 {
6885 unsigned long int i = ulongval ();
6886 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6887 return 1;
6888 fprintf (f, "%lu\n", i);
6889 }
6890 return ferror (f) || fclose (f) != 0;
6891
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 rm -f conftest$ac_exeext
6897 if { (ac_try="$ac_link"
6898 case "(($ac_try" in
6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6901 esac
6902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903 (eval "$ac_link") 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6907 { (case "(($ac_try" in
6908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6910 esac
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_try") 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6916 ac_cv_sizeof_long=`cat conftest.val`
6917 else
6918 echo "$as_me: program exited with status $ac_status" >&5
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6921
6922 ( exit $ac_status )
6923 if test "$ac_cv_type_long" = yes; then
6924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6925 See \`config.log' for more details." >&5
6926 echo "$as_me: error: cannot compute sizeof (long)
6927 See \`config.log' for more details." >&2;}
6928 { (exit 77); exit 77; }; }
6929 else
6930 ac_cv_sizeof_long=0
6931 fi
6932 fi
6933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6934 fi
6935 rm -f conftest.val
6936 fi
6937 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6938 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6939
6940
6941
6942 cat >>confdefs.h <<_ACEOF
6943 #define SIZEOF_LONG $ac_cv_sizeof_long
6944 _ACEOF
6945
6946
6947 { echo "$as_me:$LINENO: checking for long long" >&5
6948 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6949 if test "${ac_cv_type_long_long+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 $ac_includes_default
6959 typedef long long ac__type_new_;
6960 int
6961 main ()
6962 {
6963 if ((ac__type_new_ *) 0)
6964 return 0;
6965 if (sizeof (ac__type_new_))
6966 return 0;
6967 ;
6968 return 0;
6969 }
6970 _ACEOF
6971 rm -f conftest.$ac_objext
6972 if { (ac_try="$ac_compile"
6973 case "(($ac_try" in
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6976 esac
6977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978 (eval "$ac_compile") 2>conftest.er1
6979 ac_status=$?
6980 grep -v '^ *+' conftest.er1 >conftest.err
6981 rm -f conftest.er1
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } && {
6985 test -z "$ac_c_werror_flag" ||
6986 test ! -s conftest.err
6987 } && test -s conftest.$ac_objext; then
6988 ac_cv_type_long_long=yes
6989 else
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6992
6993 ac_cv_type_long_long=no
6994 fi
6995
6996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 fi
6998 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6999 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7000
7001 # The cast to long int works around a bug in the HP C Compiler
7002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7004 # This bug is HP SR number 8606223364.
7005 { echo "$as_me:$LINENO: checking size of long long" >&5
7006 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7007 if test "${ac_cv_sizeof_long_long+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010 if test "$cross_compiling" = yes; then
7011 # Depending upon the size, compute the lo and hi bounds.
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h. */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7019 typedef long long ac__type_sizeof_;
7020 int
7021 main ()
7022 {
7023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7024 test_array [0] = 0
7025
7026 ;
7027 return 0;
7028 }
7029 _ACEOF
7030 rm -f conftest.$ac_objext
7031 if { (ac_try="$ac_compile"
7032 case "(($ac_try" in
7033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034 *) ac_try_echo=$ac_try;;
7035 esac
7036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7037 (eval "$ac_compile") 2>conftest.er1
7038 ac_status=$?
7039 grep -v '^ *+' conftest.er1 >conftest.err
7040 rm -f conftest.er1
7041 cat conftest.err >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } && {
7044 test -z "$ac_c_werror_flag" ||
7045 test ! -s conftest.err
7046 } && test -s conftest.$ac_objext; then
7047 ac_lo=0 ac_mid=0
7048 while :; do
7049 cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h. */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 $ac_includes_default
7056 typedef long long ac__type_sizeof_;
7057 int
7058 main ()
7059 {
7060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7061 test_array [0] = 0
7062
7063 ;
7064 return 0;
7065 }
7066 _ACEOF
7067 rm -f conftest.$ac_objext
7068 if { (ac_try="$ac_compile"
7069 case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072 esac
7073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
7084 ac_hi=$ac_mid; break
7085 else
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 ac_lo=`expr $ac_mid + 1`
7090 if test $ac_lo -le $ac_mid; then
7091 ac_lo= ac_hi=
7092 break
7093 fi
7094 ac_mid=`expr 2 '*' $ac_mid + 1`
7095 fi
7096
7097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7098 done
7099 else
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7102
7103 cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h. */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7109 $ac_includes_default
7110 typedef long long ac__type_sizeof_;
7111 int
7112 main ()
7113 {
7114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7115 test_array [0] = 0
7116
7117 ;
7118 return 0;
7119 }
7120 _ACEOF
7121 rm -f conftest.$ac_objext
7122 if { (ac_try="$ac_compile"
7123 case "(($ac_try" in
7124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7125 *) ac_try_echo=$ac_try;;
7126 esac
7127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7128 (eval "$ac_compile") 2>conftest.er1
7129 ac_status=$?
7130 grep -v '^ *+' conftest.er1 >conftest.err
7131 rm -f conftest.er1
7132 cat conftest.err >&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } && {
7135 test -z "$ac_c_werror_flag" ||
7136 test ! -s conftest.err
7137 } && test -s conftest.$ac_objext; then
7138 ac_hi=-1 ac_mid=-1
7139 while :; do
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h. */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 $ac_includes_default
7147 typedef long long ac__type_sizeof_;
7148 int
7149 main ()
7150 {
7151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7152 test_array [0] = 0
7153
7154 ;
7155 return 0;
7156 }
7157 _ACEOF
7158 rm -f conftest.$ac_objext
7159 if { (ac_try="$ac_compile"
7160 case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163 esac
7164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165 (eval "$ac_compile") 2>conftest.er1
7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && {
7172 test -z "$ac_c_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest.$ac_objext; then
7175 ac_lo=$ac_mid; break
7176 else
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7179
7180 ac_hi=`expr '(' $ac_mid ')' - 1`
7181 if test $ac_mid -le $ac_hi; then
7182 ac_lo= ac_hi=
7183 break
7184 fi
7185 ac_mid=`expr 2 '*' $ac_mid`
7186 fi
7187
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189 done
7190 else
7191 echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7193
7194 ac_lo= ac_hi=
7195 fi
7196
7197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 fi
7199
7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 # Binary search between lo and hi bounds.
7202 while test "x$ac_lo" != "x$ac_hi"; do
7203 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7204 cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h. */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210 $ac_includes_default
7211 typedef long long ac__type_sizeof_;
7212 int
7213 main ()
7214 {
7215 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7216 test_array [0] = 0
7217
7218 ;
7219 return 0;
7220 }
7221 _ACEOF
7222 rm -f conftest.$ac_objext
7223 if { (ac_try="$ac_compile"
7224 case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7227 esac
7228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7229 (eval "$ac_compile") 2>conftest.er1
7230 ac_status=$?
7231 grep -v '^ *+' conftest.er1 >conftest.err
7232 rm -f conftest.er1
7233 cat conftest.err >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } && {
7236 test -z "$ac_c_werror_flag" ||
7237 test ! -s conftest.err
7238 } && test -s conftest.$ac_objext; then
7239 ac_hi=$ac_mid
7240 else
7241 echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7243
7244 ac_lo=`expr '(' $ac_mid ')' + 1`
7245 fi
7246
7247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 done
7249 case $ac_lo in
7250 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7251 '') if test "$ac_cv_type_long_long" = yes; then
7252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7253 See \`config.log' for more details." >&5
7254 echo "$as_me: error: cannot compute sizeof (long long)
7255 See \`config.log' for more details." >&2;}
7256 { (exit 77); exit 77; }; }
7257 else
7258 ac_cv_sizeof_long_long=0
7259 fi ;;
7260 esac
7261 else
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h. */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7269 typedef long long ac__type_sizeof_;
7270 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7271 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7272 #include <stdio.h>
7273 #include <stdlib.h>
7274 int
7275 main ()
7276 {
7277
7278 FILE *f = fopen ("conftest.val", "w");
7279 if (! f)
7280 return 1;
7281 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7282 {
7283 long int i = longval ();
7284 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7285 return 1;
7286 fprintf (f, "%ld\n", i);
7287 }
7288 else
7289 {
7290 unsigned long int i = ulongval ();
7291 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7292 return 1;
7293 fprintf (f, "%lu\n", i);
7294 }
7295 return ferror (f) || fclose (f) != 0;
7296
7297 ;
7298 return 0;
7299 }
7300 _ACEOF
7301 rm -f conftest$ac_exeext
7302 if { (ac_try="$ac_link"
7303 case "(($ac_try" in
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7306 esac
7307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7308 (eval "$ac_link") 2>&5
7309 ac_status=$?
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7312 { (case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7315 esac
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_try") 2>&5
7318 ac_status=$?
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
7321 ac_cv_sizeof_long_long=`cat conftest.val`
7322 else
7323 echo "$as_me: program exited with status $ac_status" >&5
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7326
7327 ( exit $ac_status )
7328 if test "$ac_cv_type_long_long" = yes; then
7329 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7330 See \`config.log' for more details." >&5
7331 echo "$as_me: error: cannot compute sizeof (long long)
7332 See \`config.log' for more details." >&2;}
7333 { (exit 77); exit 77; }; }
7334 else
7335 ac_cv_sizeof_long_long=0
7336 fi
7337 fi
7338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7339 fi
7340 rm -f conftest.val
7341 fi
7342 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7343 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7344
7345
7346
7347 cat >>confdefs.h <<_ACEOF
7348 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7349 _ACEOF
7350
7351
7352
7353
7354
7355 { echo "$as_me:$LINENO: checking for addrinfo" >&5
7356 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7357 if test "${ac_cv_addrinfo+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360 cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h. */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366
7367 # include <netdb.h>
7368 int
7369 main ()
7370 {
7371 struct addrinfo a
7372 ;
7373 return 0;
7374 }
7375 _ACEOF
7376 rm -f conftest.$ac_objext
7377 if { (ac_try="$ac_compile"
7378 case "(($ac_try" in
7379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7381 esac
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.$ac_objext; then
7393 ac_cv_addrinfo=yes
7394 else
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7397
7398 ac_cv_addrinfo=no
7399 fi
7400
7401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402 fi
7403
7404 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7405 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7406 if test $ac_cv_addrinfo = yes; then
7407 cat >>confdefs.h <<\_ACEOF
7408 #define HAVE_ADDRINFO 1
7409 _ACEOF
7410
7411 else
7412 cat >>confdefs.h <<\_ACEOF
7413 #define NEED_ADDRINFO_H 1
7414 _ACEOF
7415
7416 fi
7417
7418 if test "$ac_cv_addrinfo" = no; then
7419 missing_includes=yes
7420 fi
7421
7422
7423 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7424 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7425 if test "${ac_cv_maxserv+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428 cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h. */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 #include <netdb.h>
7435 #ifdef NI_MAXSERV
7436 yes
7437 #endif
7438 _ACEOF
7439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7440 $EGREP "yes" >/dev/null 2>&1; then
7441 ac_cv_maxserv=yes
7442 else
7443 ac_cv_maxserv=no
7444 fi
7445 rm -f conftest*
7446
7447 fi
7448
7449 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7450 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7451 if test $ac_cv_maxserv != yes; then
7452 cat >>confdefs.h <<\_ACEOF
7453 #define NEED_ADDRINFO_H 1
7454 _ACEOF
7455
7456 fi
7457
7458 if test "$ac_cv_maxserv" = no; then
7459 missing_includes=yes
7460 fi
7461
7462
7463 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7464 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7465 if test "${ac_cv_namereqd+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h. */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 #include <netdb.h>
7475 #ifdef NI_NOFQDN
7476 yes
7477 #endif
7478 _ACEOF
7479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7480 $EGREP "yes" >/dev/null 2>&1; then
7481 ac_cv_namereqd=yes
7482 else
7483 ac_cv_namereqd=no
7484 fi
7485 rm -f conftest*
7486
7487 fi
7488
7489 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7490 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7491 if test $ac_cv_namereqd != yes; then
7492 cat >>confdefs.h <<\_ACEOF
7493 #define NEED_ADDRINFO_H 1
7494 _ACEOF
7495
7496 fi
7497
7498 if test "$ac_cv_namereqd" = no; then
7499 missing_includes=yes
7500 fi
7501
7502
7503 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7504 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7505 if test "${ac_cv_sa_storage+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508 cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h. */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514
7515 # include <sys/types.h>
7516 # include <sys/socket.h>
7517 int
7518 main ()
7519 {
7520 struct sockaddr_storage s
7521 ;
7522 return 0;
7523 }
7524 _ACEOF
7525 rm -f conftest.$ac_objext
7526 if { (ac_try="$ac_compile"
7527 case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7530 esac
7531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7532 (eval "$ac_compile") 2>conftest.er1
7533 ac_status=$?
7534 grep -v '^ *+' conftest.er1 >conftest.err
7535 rm -f conftest.er1
7536 cat conftest.err >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } && {
7539 test -z "$ac_c_werror_flag" ||
7540 test ! -s conftest.err
7541 } && test -s conftest.$ac_objext; then
7542 ac_cv_sa_storage=yes
7543 else
7544 echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.$ac_ext >&5
7546
7547 ac_cv_sa_storage=no
7548 fi
7549
7550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551 fi
7552
7553 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7554 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7555 if test $ac_cv_sa_storage = yes; then
7556 cat >>confdefs.h <<\_ACEOF
7557 #define HAVE_SOCKADDR_STORAGE 1
7558 _ACEOF
7559
7560 fi
7561
7562 if test "$ac_cv_sa_storage" = no; then
7563 missing_includes=yes
7564 fi
7565
7566
7567 ac_cv_addrsz=yes
7568 { echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7569 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
7570 if test "${ac_cv_inaddrsz+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573 cat >conftest.$ac_ext <<_ACEOF
7574 /* confdefs.h. */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579
7580 # include <arpa/nameser.h>
7581 int
7582 main ()
7583 {
7584 int a = INADDRSZ
7585 ;
7586 return 0;
7587 }
7588 _ACEOF
7589 rm -f conftest.$ac_objext
7590 if { (ac_try="$ac_compile"
7591 case "(($ac_try" in
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7594 esac
7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_compile") 2>conftest.er1
7597 ac_status=$?
7598 grep -v '^ *+' conftest.er1 >conftest.err
7599 rm -f conftest.er1
7600 cat conftest.err >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } && {
7603 test -z "$ac_c_werror_flag" ||
7604 test ! -s conftest.err
7605 } && test -s conftest.$ac_objext; then
7606 ac_cv_inaddrsz=yes
7607 else
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7610
7611 ac_cv_inaddrsz=no
7612 fi
7613
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615 fi
7616
7617 { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7618 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
7619 if test $ac_cv_inaddrsz = yes; then
7620 cat >>confdefs.h <<\_ACEOF
7621 #define HAVE_INADDRSZ 1
7622 _ACEOF
7623
7624 else
7625 ac_cv_addrsz=no
7626 fi
7627 { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7628 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
7629 if test "${ac_cv_in6addrsz+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632 cat >conftest.$ac_ext <<_ACEOF
7633 /* confdefs.h. */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7638
7639 # include <arpa/nameser.h>
7640 int
7641 main ()
7642 {
7643 int a = IN6ADDRSZ
7644 ;
7645 return 0;
7646 }
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7650 case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653 esac
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7665 ac_cv_in6addrsz=yes
7666 else
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7669
7670 ac_cv_in6addrsz=no
7671 fi
7672
7673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 fi
7675
7676 { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7677 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
7678 if test $ac_cv_in6addrsz = yes; then
7679 cat >>confdefs.h <<\_ACEOF
7680 #define HAVE_IN6ADDRSZ 1
7681 _ACEOF
7682
7683 else
7684 ac_cv_addrsz=no
7685 fi
7686
7687 if test "$ac_cv_addrsz" = no; then
7688 missing_includes=yes
7689 fi
7690
7691
7692 { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7693 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
7694 if test "${ac_cv_res_inet6+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697 cat >conftest.$ac_ext <<_ACEOF
7698 /* confdefs.h. */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703
7704 # include <sys/types.h>
7705 # include <netinet/in.h>
7706 # include <resolv.h>
7707 int
7708 main ()
7709 {
7710 int a = RES_USE_INET6
7711 ;
7712 return 0;
7713 }
7714 _ACEOF
7715 rm -f conftest.$ac_objext
7716 if { (ac_try="$ac_compile"
7717 case "(($ac_try" in
7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719 *) ac_try_echo=$ac_try;;
7720 esac
7721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7722 (eval "$ac_compile") 2>conftest.er1
7723 ac_status=$?
7724 grep -v '^ *+' conftest.er1 >conftest.err
7725 rm -f conftest.er1
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } && {
7729 test -z "$ac_c_werror_flag" ||
7730 test ! -s conftest.err
7731 } && test -s conftest.$ac_objext; then
7732 ac_cv_res_inet6=yes
7733 else
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7736
7737 ac_cv_res_inet6=no
7738 fi
7739
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741 fi
7742
7743 { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7744 echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
7745 if test $ac_cv_res_inet6 = yes; then
7746 cat >>confdefs.h <<\_ACEOF
7747 #define HAVE_RES_USE_INET6 1
7748 _ACEOF
7749
7750 fi
7751
7752 if test "$ac_cv_res_inet6" = no; then
7753 missing_includes=yes
7754 fi
7755
7756
7757 { echo "$as_me:$LINENO: checking for res_state_ext" >&5
7758 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
7759 if test "${ac_cv_res_state_ext+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762 cat >conftest.$ac_ext <<_ACEOF
7763 /* confdefs.h. */
7764 _ACEOF
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h. */
7768
7769 # include <sys/types.h>
7770 # include <netinet/in.h>
7771 # include <netinet6/in6.h>
7772 # include <resolv.h>
7773 int
7774 main ()
7775 {
7776 struct __res_state_ext e
7777 ;
7778 return 0;
7779 }
7780 _ACEOF
7781 rm -f conftest.$ac_objext
7782 if { (ac_try="$ac_compile"
7783 case "(($ac_try" in
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7786 esac
7787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_compile") 2>conftest.er1
7789 ac_status=$?
7790 grep -v '^ *+' conftest.er1 >conftest.err
7791 rm -f conftest.er1
7792 cat conftest.err >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } && {
7795 test -z "$ac_c_werror_flag" ||
7796 test ! -s conftest.err
7797 } && test -s conftest.$ac_objext; then
7798 ac_cv_res_state_ext=yes
7799 else
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7802
7803 ac_cv_res_state_ext=no
7804 fi
7805
7806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807 fi
7808
7809 { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7810 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
7811 if test $ac_cv_res_state_ext = yes; then
7812 cat >>confdefs.h <<\_ACEOF
7813 #define HAVE_RES_STATE_EXT 1
7814 _ACEOF
7815
7816 fi
7817
7818 if test "$ac_cv_res_state_ext" = no; then
7819 missing_includes=yes
7820 fi
7821
7822
7823 { echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7824 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
7825 if test "${ac_cv_res_state+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828 cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h. */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834
7835 # include <sys/types.h>
7836 # include <netinet/in.h>
7837 # include <netinet6/in6.h>
7838 # include <resolv.h>
7839 int
7840 main ()
7841 {
7842 struct __res_state e; e.nsort = 0
7843 ;
7844 return 0;
7845 }
7846 _ACEOF
7847 rm -f conftest.$ac_objext
7848 if { (ac_try="$ac_compile"
7849 case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852 esac
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_compile") 2>conftest.er1
7855 ac_status=$?
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && {
7861 test -z "$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 } && test -s conftest.$ac_objext; then
7864 ac_cv_res_state=yes
7865 else
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7868
7869 ac_cv_res_state=no
7870 fi
7871
7872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873 fi
7874
7875 { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
7876 echo "${ECHO_T}$ac_cv_res_state" >&6; }
7877 if test $ac_cv_res_state = yes; then
7878 cat >>confdefs.h <<\_ACEOF
7879 #define HAVE_NEW_RES_STATE 1
7880 _ACEOF
7881
7882 fi
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
7893 do
7894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900 cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h. */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7908 #define $ac_func innocuous_$ac_func
7909
7910 /* System header to define __stub macros and hopefully few prototypes,
7911 which can conflict with char $ac_func (); below.
7912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7913 <limits.h> exists even on freestanding compilers. */
7914
7915 #ifdef __STDC__
7916 # include <limits.h>
7917 #else
7918 # include <assert.h>
7919 #endif
7920
7921 #undef $ac_func
7922
7923 /* Override any GCC internal prototype to avoid an error.
7924 Use char because int might match the return type of a GCC
7925 builtin and then its argument prototype would still apply. */
7926 #ifdef __cplusplus
7927 extern "C"
7928 #endif
7929 char $ac_func ();
7930 /* The GNU C library defines this for functions which it implements
7931 to always fail with ENOSYS. Some functions are actually named
7932 something starting with __ and the normal name is an alias. */
7933 #if defined __stub_$ac_func || defined __stub___$ac_func
7934 choke me
7935 #endif
7936
7937 int
7938 main ()
7939 {
7940 return $ac_func ();
7941 ;
7942 return 0;
7943 }
7944 _ACEOF
7945 rm -f conftest.$ac_objext conftest$ac_exeext
7946 if { (ac_try="$ac_link"
7947 case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7950 esac
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_link") 2>conftest.er1
7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } && {
7959 test -z "$ac_c_werror_flag" ||
7960 test ! -s conftest.err
7961 } && test -s conftest$ac_exeext &&
7962 $as_test_x conftest$ac_exeext; then
7963 eval "$as_ac_var=yes"
7964 else
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7967
7968 eval "$as_ac_var=no"
7969 fi
7970
7971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7972 conftest$ac_exeext conftest.$ac_ext
7973 fi
7974 ac_res=`eval echo '${'$as_ac_var'}'`
7975 { echo "$as_me:$LINENO: result: $ac_res" >&5
7976 echo "${ECHO_T}$ac_res" >&6; }
7977 if test `eval echo '${'$as_ac_var'}'` = yes; then
7978 cat >>confdefs.h <<_ACEOF
7979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7980 _ACEOF
7981
7982 else
7983 case " $LIBOBJS " in
7984 *" $ac_func.$ac_objext "* ) ;;
7985 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7986 ;;
7987 esac
7988
7989 fi
7990 done
7991
7992
7993
7994 for ac_func in strftime
7995 do
7996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h. */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8010 #define $ac_func innocuous_$ac_func
8011
8012 /* System header to define __stub macros and hopefully few prototypes,
8013 which can conflict with char $ac_func (); below.
8014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8015 <limits.h> exists even on freestanding compilers. */
8016
8017 #ifdef __STDC__
8018 # include <limits.h>
8019 #else
8020 # include <assert.h>
8021 #endif
8022
8023 #undef $ac_func
8024
8025 /* Override any GCC internal prototype to avoid an error.
8026 Use char because int might match the return type of a GCC
8027 builtin and then its argument prototype would still apply. */
8028 #ifdef __cplusplus
8029 extern "C"
8030 #endif
8031 char $ac_func ();
8032 /* The GNU C library defines this for functions which it implements
8033 to always fail with ENOSYS. Some functions are actually named
8034 something starting with __ and the normal name is an alias. */
8035 #if defined __stub_$ac_func || defined __stub___$ac_func
8036 choke me
8037 #endif
8038
8039 int
8040 main ()
8041 {
8042 return $ac_func ();
8043 ;
8044 return 0;
8045 }
8046 _ACEOF
8047 rm -f conftest.$ac_objext conftest$ac_exeext
8048 if { (ac_try="$ac_link"
8049 case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8052 esac
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_link") 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest$ac_exeext &&
8064 $as_test_x conftest$ac_exeext; then
8065 eval "$as_ac_var=yes"
8066 else
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8069
8070 eval "$as_ac_var=no"
8071 fi
8072
8073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8074 conftest$ac_exeext conftest.$ac_ext
8075 fi
8076 ac_res=`eval echo '${'$as_ac_var'}'`
8077 { echo "$as_me:$LINENO: result: $ac_res" >&5
8078 echo "${ECHO_T}$ac_res" >&6; }
8079 if test `eval echo '${'$as_ac_var'}'` = yes; then
8080 cat >>confdefs.h <<_ACEOF
8081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8082 _ACEOF
8083
8084 fi
8085 done
8086
8087
8088
8089 for ac_func in setlinebuf alarm
8090 do
8091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097 cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h. */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8105 #define $ac_func innocuous_$ac_func
8106
8107 /* System header to define __stub macros and hopefully few prototypes,
8108 which can conflict with char $ac_func (); below.
8109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8110 <limits.h> exists even on freestanding compilers. */
8111
8112 #ifdef __STDC__
8113 # include <limits.h>
8114 #else
8115 # include <assert.h>
8116 #endif
8117
8118 #undef $ac_func
8119
8120 /* Override any GCC internal prototype to avoid an error.
8121 Use char because int might match the return type of a GCC
8122 builtin and then its argument prototype would still apply. */
8123 #ifdef __cplusplus
8124 extern "C"
8125 #endif
8126 char $ac_func ();
8127 /* The GNU C library defines this for functions which it implements
8128 to always fail with ENOSYS. Some functions are actually named
8129 something starting with __ and the normal name is an alias. */
8130 #if defined __stub_$ac_func || defined __stub___$ac_func
8131 choke me
8132 #endif
8133
8134 int
8135 main ()
8136 {
8137 return $ac_func ();
8138 ;
8139 return 0;
8140 }
8141 _ACEOF
8142 rm -f conftest.$ac_objext conftest$ac_exeext
8143 if { (ac_try="$ac_link"
8144 case "(($ac_try" in
8145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146 *) ac_try_echo=$ac_try;;
8147 esac
8148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149 (eval "$ac_link") 2>conftest.er1
8150 ac_status=$?
8151 grep -v '^ *+' conftest.er1 >conftest.err
8152 rm -f conftest.er1
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } && {
8156 test -z "$ac_c_werror_flag" ||
8157 test ! -s conftest.err
8158 } && test -s conftest$ac_exeext &&
8159 $as_test_x conftest$ac_exeext; then
8160 eval "$as_ac_var=yes"
8161 else
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8164
8165 eval "$as_ac_var=no"
8166 fi
8167
8168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8169 conftest$ac_exeext conftest.$ac_ext
8170 fi
8171 ac_res=`eval echo '${'$as_ac_var'}'`
8172 { echo "$as_me:$LINENO: result: $ac_res" >&5
8173 echo "${ECHO_T}$ac_res" >&6; }
8174 if test `eval echo '${'$as_ac_var'}'` = yes; then
8175 cat >>confdefs.h <<_ACEOF
8176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8177 _ACEOF
8178
8179 fi
8180 done
8181
8182
8183 needsnprintf=no
8184
8185
8186 for ac_func in vsnprintf snprintf
8187 do
8188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h. */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8202 #define $ac_func innocuous_$ac_func
8203
8204 /* System header to define __stub macros and hopefully few prototypes,
8205 which can conflict with char $ac_func (); below.
8206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8207 <limits.h> exists even on freestanding compilers. */
8208
8209 #ifdef __STDC__
8210 # include <limits.h>
8211 #else
8212 # include <assert.h>
8213 #endif
8214
8215 #undef $ac_func
8216
8217 /* Override any GCC internal prototype to avoid an error.
8218 Use char because int might match the return type of a GCC
8219 builtin and then its argument prototype would still apply. */
8220 #ifdef __cplusplus
8221 extern "C"
8222 #endif
8223 char $ac_func ();
8224 /* The GNU C library defines this for functions which it implements
8225 to always fail with ENOSYS. Some functions are actually named
8226 something starting with __ and the normal name is an alias. */
8227 #if defined __stub_$ac_func || defined __stub___$ac_func
8228 choke me
8229 #endif
8230
8231 int
8232 main ()
8233 {
8234 return $ac_func ();
8235 ;
8236 return 0;
8237 }
8238 _ACEOF
8239 rm -f conftest.$ac_objext conftest$ac_exeext
8240 if { (ac_try="$ac_link"
8241 case "(($ac_try" in
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8244 esac
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_link") 2>conftest.er1
8247 ac_status=$?
8248 grep -v '^ *+' conftest.er1 >conftest.err
8249 rm -f conftest.er1
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && {
8253 test -z "$ac_c_werror_flag" ||
8254 test ! -s conftest.err
8255 } && test -s conftest$ac_exeext &&
8256 $as_test_x conftest$ac_exeext; then
8257 eval "$as_ac_var=yes"
8258 else
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8261
8262 eval "$as_ac_var=no"
8263 fi
8264
8265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8266 conftest$ac_exeext conftest.$ac_ext
8267 fi
8268 ac_res=`eval echo '${'$as_ac_var'}'`
8269 { echo "$as_me:$LINENO: result: $ac_res" >&5
8270 echo "${ECHO_T}$ac_res" >&6; }
8271 if test `eval echo '${'$as_ac_var'}'` = yes; then
8272 cat >>confdefs.h <<_ACEOF
8273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8274 _ACEOF
8275
8276 else
8277 needsnprintf=yes
8278 fi
8279 done
8280
8281 if test $needsnprintf = yes; then
8282 case " $LIBOBJS " in
8283 *" snprintf.$ac_objext "* ) ;;
8284 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8285 ;;
8286 esac
8287
8288 fi
8289
8290
8291 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8292 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8293 if test "${ac_cv_type_signal+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 else
8296 cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h. */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 #include <sys/types.h>
8303 #include <signal.h>
8304
8305 int
8306 main ()
8307 {
8308 return *(signal (0, 0)) (0) == 1;
8309 ;
8310 return 0;
8311 }
8312 _ACEOF
8313 rm -f conftest.$ac_objext
8314 if { (ac_try="$ac_compile"
8315 case "(($ac_try" in
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8318 esac
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_compile") 2>conftest.er1
8321 ac_status=$?
8322 grep -v '^ *+' conftest.er1 >conftest.err
8323 rm -f conftest.er1
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } && {
8327 test -z "$ac_c_werror_flag" ||
8328 test ! -s conftest.err
8329 } && test -s conftest.$ac_objext; then
8330 ac_cv_type_signal=int
8331 else
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335 ac_cv_type_signal=void
8336 fi
8337
8338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8339 fi
8340 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8341 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8342
8343 cat >>confdefs.h <<_ACEOF
8344 #define RETSIGTYPE $ac_cv_type_signal
8345 _ACEOF
8346
8347
8348 if test "$ac_cv_type_signal" = void ; then
8349 cat >>confdefs.h <<\_ACEOF
8350 #define RETSIGVAL
8351 _ACEOF
8352
8353 else
8354 cat >>confdefs.h <<\_ACEOF
8355 #define RETSIGVAL (0)
8356 _ACEOF
8357
8358 fi
8359 case "$host_os" in
8360
8361 irix*)
8362 cat >>confdefs.h <<\_ACEOF
8363 #define _BSD_SIGNALS 1
8364 _ACEOF
8365
8366 ;;
8367
8368 *)
8369
8370 for ac_func in sigaction
8371 do
8372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8386 #define $ac_func innocuous_$ac_func
8387
8388 /* System header to define __stub macros and hopefully few prototypes,
8389 which can conflict with char $ac_func (); below.
8390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8391 <limits.h> exists even on freestanding compilers. */
8392
8393 #ifdef __STDC__
8394 # include <limits.h>
8395 #else
8396 # include <assert.h>
8397 #endif
8398
8399 #undef $ac_func
8400
8401 /* Override any GCC internal prototype to avoid an error.
8402 Use char because int might match the return type of a GCC
8403 builtin and then its argument prototype would still apply. */
8404 #ifdef __cplusplus
8405 extern "C"
8406 #endif
8407 char $ac_func ();
8408 /* The GNU C library defines this for functions which it implements
8409 to always fail with ENOSYS. Some functions are actually named
8410 something starting with __ and the normal name is an alias. */
8411 #if defined __stub_$ac_func || defined __stub___$ac_func
8412 choke me
8413 #endif
8414
8415 int
8416 main ()
8417 {
8418 return $ac_func ();
8419 ;
8420 return 0;
8421 }
8422 _ACEOF
8423 rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (ac_try="$ac_link"
8425 case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_link") 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } && {
8437 test -z "$ac_c_werror_flag" ||
8438 test ! -s conftest.err
8439 } && test -s conftest$ac_exeext &&
8440 $as_test_x conftest$ac_exeext; then
8441 eval "$as_ac_var=yes"
8442 else
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446 eval "$as_ac_var=no"
8447 fi
8448
8449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8450 conftest$ac_exeext conftest.$ac_ext
8451 fi
8452 ac_res=`eval echo '${'$as_ac_var'}'`
8453 { echo "$as_me:$LINENO: result: $ac_res" >&5
8454 echo "${ECHO_T}$ac_res" >&6; }
8455 if test `eval echo '${'$as_ac_var'}'` = yes; then
8456 cat >>confdefs.h <<_ACEOF
8457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8458 _ACEOF
8459
8460 fi
8461 done
8462
8463 if test $ac_cv_func_sigaction = no ; then
8464
8465 for ac_func in sigset
8466 do
8467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8481 #define $ac_func innocuous_$ac_func
8482
8483 /* System header to define __stub macros and hopefully few prototypes,
8484 which can conflict with char $ac_func (); below.
8485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8486 <limits.h> exists even on freestanding compilers. */
8487
8488 #ifdef __STDC__
8489 # include <limits.h>
8490 #else
8491 # include <assert.h>
8492 #endif
8493
8494 #undef $ac_func
8495
8496 /* Override any GCC internal prototype to avoid an error.
8497 Use char because int might match the return type of a GCC
8498 builtin and then its argument prototype would still apply. */
8499 #ifdef __cplusplus
8500 extern "C"
8501 #endif
8502 char $ac_func ();
8503 /* The GNU C library defines this for functions which it implements
8504 to always fail with ENOSYS. Some functions are actually named
8505 something starting with __ and the normal name is an alias. */
8506 #if defined __stub_$ac_func || defined __stub___$ac_func
8507 choke me
8508 #endif
8509
8510 int
8511 main ()
8512 {
8513 return $ac_func ();
8514 ;
8515 return 0;
8516 }
8517 _ACEOF
8518 rm -f conftest.$ac_objext conftest$ac_exeext
8519 if { (ac_try="$ac_link"
8520 case "(($ac_try" in
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8523 esac
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_link") 2>conftest.er1
8526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest$ac_exeext &&
8535 $as_test_x conftest$ac_exeext; then
8536 eval "$as_ac_var=yes"
8537 else
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541 eval "$as_ac_var=no"
8542 fi
8543
8544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8545 conftest$ac_exeext conftest.$ac_ext
8546 fi
8547 ac_res=`eval echo '${'$as_ac_var'}'`
8548 { echo "$as_me:$LINENO: result: $ac_res" >&5
8549 echo "${ECHO_T}$ac_res" >&6; }
8550 if test `eval echo '${'$as_ac_var'}'` = yes; then
8551 cat >>confdefs.h <<_ACEOF
8552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8553 _ACEOF
8554
8555 fi
8556 done
8557
8558 fi
8559 ;;
8560 esac
8561
8562 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8563 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8564 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567 ac_func_search_save_LIBS=$LIBS
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574
8575 /* Override any GCC internal prototype to avoid an error.
8576 Use char because int might match the return type of a GCC
8577 builtin and then its argument prototype would still apply. */
8578 #ifdef __cplusplus
8579 extern "C"
8580 #endif
8581 char dnet_htoa ();
8582 int
8583 main ()
8584 {
8585 return dnet_htoa ();
8586 ;
8587 return 0;
8588 }
8589 _ACEOF
8590 for ac_lib in '' dnet; do
8591 if test -z "$ac_lib"; then
8592 ac_res="none required"
8593 else
8594 ac_res=-l$ac_lib
8595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8596 fi
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (ac_try="$ac_link"
8599 case "(($ac_try" in
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8602 esac
8603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 (eval "$ac_link") 2>conftest.er1
8605 ac_status=$?
8606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } && {
8611 test -z "$ac_c_werror_flag" ||
8612 test ! -s conftest.err
8613 } && test -s conftest$ac_exeext &&
8614 $as_test_x conftest$ac_exeext; then
8615 ac_cv_search_dnet_htoa=$ac_res
8616 else
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620
8621 fi
8622
8623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8624 conftest$ac_exeext
8625 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8626 break
8627 fi
8628 done
8629 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8630 :
8631 else
8632 ac_cv_search_dnet_htoa=no
8633 fi
8634 rm conftest.$ac_ext
8635 LIBS=$ac_func_search_save_LIBS
8636 fi
8637 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8638 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8639 ac_res=$ac_cv_search_dnet_htoa
8640 if test "$ac_res" != no; then
8641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8642 cat >>confdefs.h <<\_ACEOF
8643 #define HAVE_DNET_HTOA 1
8644 _ACEOF
8645
8646 fi
8647
8648
8649
8650 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8651 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8652 if test "${ac_cv_lib_rpc_main+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 else
8655 ac_check_lib_save_LIBS=$LIBS
8656 LIBS="-lrpc $LIBS"
8657 cat >conftest.$ac_ext <<_ACEOF
8658 /* confdefs.h. */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663
8664
8665 int
8666 main ()
8667 {
8668 return main ();
8669 ;
8670 return 0;
8671 }
8672 _ACEOF
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (ac_try="$ac_link"
8675 case "(($ac_try" in
8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8678 esac
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680 (eval "$ac_link") 2>conftest.er1
8681 ac_status=$?
8682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } && {
8687 test -z "$ac_c_werror_flag" ||
8688 test ! -s conftest.err
8689 } && test -s conftest$ac_exeext &&
8690 $as_test_x conftest$ac_exeext; then
8691 ac_cv_lib_rpc_main=yes
8692 else
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8695
8696 ac_cv_lib_rpc_main=no
8697 fi
8698
8699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8700 conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8702 fi
8703 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8704 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8705 if test $ac_cv_lib_rpc_main = yes; then
8706 cat >>confdefs.h <<_ACEOF
8707 #define HAVE_LIBRPC 1
8708 _ACEOF
8709
8710 LIBS="-lrpc $LIBS"
8711
8712 fi
8713
8714 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8715 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8716 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719 ac_func_search_save_LIBS=$LIBS
8720 cat >conftest.$ac_ext <<_ACEOF
8721 /* confdefs.h. */
8722 _ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8726
8727 /* Override any GCC internal prototype to avoid an error.
8728 Use char because int might match the return type of a GCC
8729 builtin and then its argument prototype would still apply. */
8730 #ifdef __cplusplus
8731 extern "C"
8732 #endif
8733 char getrpcbynumber ();
8734 int
8735 main ()
8736 {
8737 return getrpcbynumber ();
8738 ;
8739 return 0;
8740 }
8741 _ACEOF
8742 for ac_lib in '' nsl; do
8743 if test -z "$ac_lib"; then
8744 ac_res="none required"
8745 else
8746 ac_res=-l$ac_lib
8747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8748 fi
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (ac_try="$ac_link"
8751 case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8754 esac
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_link") 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest$ac_exeext &&
8766 $as_test_x conftest$ac_exeext; then
8767 ac_cv_search_getrpcbynumber=$ac_res
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8771
8772
8773 fi
8774
8775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8776 conftest$ac_exeext
8777 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8778 break
8779 fi
8780 done
8781 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8782 :
8783 else
8784 ac_cv_search_getrpcbynumber=no
8785 fi
8786 rm conftest.$ac_ext
8787 LIBS=$ac_func_search_save_LIBS
8788 fi
8789 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8790 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8791 ac_res=$ac_cv_search_getrpcbynumber
8792 if test "$ac_res" != no; then
8793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8794 cat >>confdefs.h <<\_ACEOF
8795 #define HAVE_GETRPCBYNUMBER 1
8796 _ACEOF
8797
8798 fi
8799
8800
8801
8802
8803 # Most operating systems have gethostbyname() in the default searched
8804 # libraries (i.e. libc):
8805 # Some OSes (eg. Solaris) place it in libnsl
8806 # Some strange OSes (SINIX) have it in libsocket:
8807 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8808 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8809 if test "${ac_cv_search_gethostbyname+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 else
8812 ac_func_search_save_LIBS=$LIBS
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h. */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819
8820 /* Override any GCC internal prototype to avoid an error.
8821 Use char because int might match the return type of a GCC
8822 builtin and then its argument prototype would still apply. */
8823 #ifdef __cplusplus
8824 extern "C"
8825 #endif
8826 char gethostbyname ();
8827 int
8828 main ()
8829 {
8830 return gethostbyname ();
8831 ;
8832 return 0;
8833 }
8834 _ACEOF
8835 for ac_lib in '' nsl socket resolv; do
8836 if test -z "$ac_lib"; then
8837 ac_res="none required"
8838 else
8839 ac_res=-l$ac_lib
8840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8841 fi
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (ac_try="$ac_link"
8844 case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847 esac
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_link") 2>conftest.er1
8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } && {
8856 test -z "$ac_c_werror_flag" ||
8857 test ! -s conftest.err
8858 } && test -s conftest$ac_exeext &&
8859 $as_test_x conftest$ac_exeext; then
8860 ac_cv_search_gethostbyname=$ac_res
8861 else
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865
8866 fi
8867
8868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8869 conftest$ac_exeext
8870 if test "${ac_cv_search_gethostbyname+set}" = set; then
8871 break
8872 fi
8873 done
8874 if test "${ac_cv_search_gethostbyname+set}" = set; then
8875 :
8876 else
8877 ac_cv_search_gethostbyname=no
8878 fi
8879 rm conftest.$ac_ext
8880 LIBS=$ac_func_search_save_LIBS
8881 fi
8882 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8883 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
8884 ac_res=$ac_cv_search_gethostbyname
8885 if test "$ac_res" != no; then
8886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8887
8888 fi
8889
8890 # Unfortunately libsocket sometimes depends on libnsl and
8891 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8892 if test "$ac_cv_search_gethostbyname" = "no"
8893 then
8894 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8895 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
8896 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899 ac_check_lib_save_LIBS=$LIBS
8900 LIBS="-lsocket -lnsl $LIBS"
8901 cat >conftest.$ac_ext <<_ACEOF
8902 /* confdefs.h. */
8903 _ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8907
8908 /* Override any GCC internal prototype to avoid an error.
8909 Use char because int might match the return type of a GCC
8910 builtin and then its argument prototype would still apply. */
8911 #ifdef __cplusplus
8912 extern "C"
8913 #endif
8914 char gethostbyname ();
8915 int
8916 main ()
8917 {
8918 return gethostbyname ();
8919 ;
8920 return 0;
8921 }
8922 _ACEOF
8923 rm -f conftest.$ac_objext conftest$ac_exeext
8924 if { (ac_try="$ac_link"
8925 case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928 esac
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_link") 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && {
8937 test -z "$ac_c_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest$ac_exeext &&
8940 $as_test_x conftest$ac_exeext; then
8941 ac_cv_lib_socket_gethostbyname=yes
8942 else
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8945
8946 ac_cv_lib_socket_gethostbyname=no
8947 fi
8948
8949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8950 conftest$ac_exeext conftest.$ac_ext
8951 LIBS=$ac_check_lib_save_LIBS
8952 fi
8953 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8954 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
8955 if test $ac_cv_lib_socket_gethostbyname = yes; then
8956 LIBS="-lsocket -lnsl $LIBS"
8957 fi
8958
8959 fi
8960 { echo "$as_me:$LINENO: checking for library containing socket" >&5
8961 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
8962 if test "${ac_cv_search_socket+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965 ac_func_search_save_LIBS=$LIBS
8966 cat >conftest.$ac_ext <<_ACEOF
8967 /* confdefs.h. */
8968 _ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8972
8973 /* Override any GCC internal prototype to avoid an error.
8974 Use char because int might match the return type of a GCC
8975 builtin and then its argument prototype would still apply. */
8976 #ifdef __cplusplus
8977 extern "C"
8978 #endif
8979 char socket ();
8980 int
8981 main ()
8982 {
8983 return socket ();
8984 ;
8985 return 0;
8986 }
8987 _ACEOF
8988 for ac_lib in '' socket; do
8989 if test -z "$ac_lib"; then
8990 ac_res="none required"
8991 else
8992 ac_res=-l$ac_lib
8993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8994 fi
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (ac_try="$ac_link"
8997 case "(($ac_try" in
8998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999 *) ac_try_echo=$ac_try;;
9000 esac
9001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9002 (eval "$ac_link") 2>conftest.er1
9003 ac_status=$?
9004 grep -v '^ *+' conftest.er1 >conftest.err
9005 rm -f conftest.er1
9006 cat conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } && {
9009 test -z "$ac_c_werror_flag" ||
9010 test ! -s conftest.err
9011 } && test -s conftest$ac_exeext &&
9012 $as_test_x conftest$ac_exeext; then
9013 ac_cv_search_socket=$ac_res
9014 else
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9017
9018
9019 fi
9020
9021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9022 conftest$ac_exeext
9023 if test "${ac_cv_search_socket+set}" = set; then
9024 break
9025 fi
9026 done
9027 if test "${ac_cv_search_socket+set}" = set; then
9028 :
9029 else
9030 ac_cv_search_socket=no
9031 fi
9032 rm conftest.$ac_ext
9033 LIBS=$ac_func_search_save_LIBS
9034 fi
9035 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
9036 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
9037 ac_res=$ac_cv_search_socket
9038 if test "$ac_res" != no; then
9039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9040
9041 else
9042 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9043 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9044 if test "${ac_cv_lib_socket_socket+set}" = set; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 else
9047 ac_check_lib_save_LIBS=$LIBS
9048 LIBS="-lsocket -lnsl $LIBS"
9049 cat >conftest.$ac_ext <<_ACEOF
9050 /* confdefs.h. */
9051 _ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h. */
9055
9056 /* Override any GCC internal prototype to avoid an error.
9057 Use char because int might match the return type of a GCC
9058 builtin and then its argument prototype would still apply. */
9059 #ifdef __cplusplus
9060 extern "C"
9061 #endif
9062 char socket ();
9063 int
9064 main ()
9065 {
9066 return socket ();
9067 ;
9068 return 0;
9069 }
9070 _ACEOF
9071 rm -f conftest.$ac_objext conftest$ac_exeext
9072 if { (ac_try="$ac_link"
9073 case "(($ac_try" in
9074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9076 esac
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078 (eval "$ac_link") 2>conftest.er1
9079 ac_status=$?
9080 grep -v '^ *+' conftest.er1 >conftest.err
9081 rm -f conftest.er1
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } && {
9085 test -z "$ac_c_werror_flag" ||
9086 test ! -s conftest.err
9087 } && test -s conftest$ac_exeext &&
9088 $as_test_x conftest$ac_exeext; then
9089 ac_cv_lib_socket_socket=yes
9090 else
9091 echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9093
9094 ac_cv_lib_socket_socket=no
9095 fi
9096
9097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9098 conftest$ac_exeext conftest.$ac_ext
9099 LIBS=$ac_check_lib_save_LIBS
9100 fi
9101 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9102 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9103 if test $ac_cv_lib_socket_socket = yes; then
9104 LIBS="-lsocket -lnsl $LIBS"
9105 fi
9106
9107 fi
9108
9109 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
9110 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
9111 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
9112 if test "${ac_cv_search_putmsg+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115 ac_func_search_save_LIBS=$LIBS
9116 cat >conftest.$ac_ext <<_ACEOF
9117 /* confdefs.h. */
9118 _ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9122
9123 /* Override any GCC internal prototype to avoid an error.
9124 Use char because int might match the return type of a GCC
9125 builtin and then its argument prototype would still apply. */
9126 #ifdef __cplusplus
9127 extern "C"
9128 #endif
9129 char putmsg ();
9130 int
9131 main ()
9132 {
9133 return putmsg ();
9134 ;
9135 return 0;
9136 }
9137 _ACEOF
9138 for ac_lib in '' str; do
9139 if test -z "$ac_lib"; then
9140 ac_res="none required"
9141 else
9142 ac_res=-l$ac_lib
9143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9144 fi
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9147 case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150 esac
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_link") 2>conftest.er1
9153 ac_status=$?
9154 grep -v '^ *+' conftest.er1 >conftest.err
9155 rm -f conftest.er1
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } && {
9159 test -z "$ac_c_werror_flag" ||
9160 test ! -s conftest.err
9161 } && test -s conftest$ac_exeext &&
9162 $as_test_x conftest$ac_exeext; then
9163 ac_cv_search_putmsg=$ac_res
9164 else
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9167
9168
9169 fi
9170
9171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9172 conftest$ac_exeext
9173 if test "${ac_cv_search_putmsg+set}" = set; then
9174 break
9175 fi
9176 done
9177 if test "${ac_cv_search_putmsg+set}" = set; then
9178 :
9179 else
9180 ac_cv_search_putmsg=no
9181 fi
9182 rm conftest.$ac_ext
9183 LIBS=$ac_func_search_save_LIBS
9184 fi
9185 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9186 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9187 ac_res=$ac_cv_search_putmsg
9188 if test "$ac_res" != no; then
9189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9190
9191 fi
9192
9193
9194
9195 LBL_LIBS="$LIBS"
9196 pfopen=/usr/examples/packetfilter/pfopen.c
9197 if test -f $pfopen ; then
9198
9199 for ac_func in pfopen
9200 do
9201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 else
9207 cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h. */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9215 #define $ac_func innocuous_$ac_func
9216
9217 /* System header to define __stub macros and hopefully few prototypes,
9218 which can conflict with char $ac_func (); below.
9219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9220 <limits.h> exists even on freestanding compilers. */
9221
9222 #ifdef __STDC__
9223 # include <limits.h>
9224 #else
9225 # include <assert.h>
9226 #endif
9227
9228 #undef $ac_func
9229
9230 /* Override any GCC internal prototype to avoid an error.
9231 Use char because int might match the return type of a GCC
9232 builtin and then its argument prototype would still apply. */
9233 #ifdef __cplusplus
9234 extern "C"
9235 #endif
9236 char $ac_func ();
9237 /* The GNU C library defines this for functions which it implements
9238 to always fail with ENOSYS. Some functions are actually named
9239 something starting with __ and the normal name is an alias. */
9240 #if defined __stub_$ac_func || defined __stub___$ac_func
9241 choke me
9242 #endif
9243
9244 int
9245 main ()
9246 {
9247 return $ac_func ();
9248 ;
9249 return 0;
9250 }
9251 _ACEOF
9252 rm -f conftest.$ac_objext conftest$ac_exeext
9253 if { (ac_try="$ac_link"
9254 case "(($ac_try" in
9255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9256 *) ac_try_echo=$ac_try;;
9257 esac
9258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9259 (eval "$ac_link") 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest$ac_exeext &&
9269 $as_test_x conftest$ac_exeext; then
9270 eval "$as_ac_var=yes"
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9274
9275 eval "$as_ac_var=no"
9276 fi
9277
9278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9279 conftest$ac_exeext conftest.$ac_ext
9280 fi
9281 ac_res=`eval echo '${'$as_ac_var'}'`
9282 { echo "$as_me:$LINENO: result: $ac_res" >&5
9283 echo "${ECHO_T}$ac_res" >&6; }
9284 if test `eval echo '${'$as_ac_var'}'` = yes; then
9285 cat >>confdefs.h <<_ACEOF
9286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9287 _ACEOF
9288
9289 fi
9290 done
9291
9292 if test $ac_cv_func_pfopen = "no" ; then
9293 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9294 echo "${ECHO_T}Using $pfopen" >&6; }
9295 LIBS="$LIBS $pfopen"
9296 fi
9297 fi
9298 { echo "$as_me:$LINENO: checking for local pcap library" >&5
9299 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9300 libpcap=FAIL
9301 lastdir=FAIL
9302 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9303 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9304 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9305 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
9306 if test $lastdir = $basedir ; then
9307 continue;
9308 fi
9309 lastdir=$dir
9310 if test -r $dir/libpcap.a ; then
9311 libpcap=$dir/libpcap.a
9312 d=$dir
9313 fi
9314 done
9315 if test $libpcap = FAIL ; then
9316 { echo "$as_me:$LINENO: result: not found" >&5
9317 echo "${ECHO_T}not found" >&6; }
9318 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9319 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9320 if test "${ac_cv_lib_pcap_main+set}" = set; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 else
9323 ac_check_lib_save_LIBS=$LIBS
9324 LIBS="-lpcap $LIBS"
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h. */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331
9332
9333 int
9334 main ()
9335 {
9336 return main ();
9337 ;
9338 return 0;
9339 }
9340 _ACEOF
9341 rm -f conftest.$ac_objext conftest$ac_exeext
9342 if { (ac_try="$ac_link"
9343 case "(($ac_try" in
9344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345 *) ac_try_echo=$ac_try;;
9346 esac
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348 (eval "$ac_link") 2>conftest.er1
9349 ac_status=$?
9350 grep -v '^ *+' conftest.er1 >conftest.err
9351 rm -f conftest.er1
9352 cat conftest.err >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } && {
9355 test -z "$ac_c_werror_flag" ||
9356 test ! -s conftest.err
9357 } && test -s conftest$ac_exeext &&
9358 $as_test_x conftest$ac_exeext; then
9359 ac_cv_lib_pcap_main=yes
9360 else
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364 ac_cv_lib_pcap_main=no
9365 fi
9366
9367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9368 conftest$ac_exeext conftest.$ac_ext
9369 LIBS=$ac_check_lib_save_LIBS
9370 fi
9371 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9372 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9373 if test $ac_cv_lib_pcap_main = yes; then
9374 libpcap="-lpcap"
9375 fi
9376
9377 if test $libpcap = FAIL ; then
9378 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9379 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9380 { (exit 1); exit 1; }; }
9381 fi
9382 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9383 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9384 if test \( ! -r /usr/local/include/pcap.h \) -a \
9385 \( ! -r /usr/include/pcap.h \); then
9386 if test -r /usr/local/include/pcap/pcap.h; then
9387 d="/usr/local/include/pcap"
9388 elif test -r /usr/include/pcap/pcap.h; then
9389 d="/usr/include/pcap"
9390 fi
9391 fi
9392 if test -z "$d" ; then
9393 { echo "$as_me:$LINENO: result: not found" >&5
9394 echo "${ECHO_T}not found" >&6; }
9395 else
9396 V_INCLS="-I$d $V_INCLS"
9397 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9398 echo "${ECHO_T}found -- -I$d added" >&6; }
9399 fi
9400 else
9401 V_PCAPDEP=$libpcap
9402 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9403 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9404 if test -r $d/pcap.h; then
9405 V_INCLS="-I$d $V_INCLS"
9406 elif test -r $places/pcap.h; then
9407 V_INCLS="-I$places $V_INCLS"
9408 else
9409 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9410 echo "$as_me: error: cannot find pcap.h" >&2;}
9411 { (exit see INSTALL); exit see INSTALL; }; }
9412 fi
9413 { echo "$as_me:$LINENO: result: $libpcap" >&5
9414 echo "${ECHO_T}$libpcap" >&6; }
9415 fi
9416 LIBS="$libpcap $LIBS"
9417 case "$host_os" in
9418
9419 aix*)
9420 pseexe="/lib/pse.exp"
9421 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9422 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9423 if test -f $pseexe ; then
9424 { echo "$as_me:$LINENO: result: yes" >&5
9425 echo "${ECHO_T}yes" >&6; }
9426 LIBS="$LIBS -I:$pseexe"
9427 fi
9428 #
9429 # We need "-lodm" and "-lcfg", as libpcap requires them on
9430 # AIX, and we just build a static libpcap.a and thus can't
9431 # arrange that when you link with libpcap you automatically
9432 # link with those libraries.
9433 #
9434 LIBS="$LIBS -lodm -lcfg"
9435 ;;
9436 esac
9437
9438 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9439 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9440 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443 cat >conftest.$ac_ext <<_ACEOF
9444 /* confdefs.h. */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9451 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9452
9453 /* System header to define __stub macros and hopefully few prototypes,
9454 which can conflict with char pcap_list_datalinks (); below.
9455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9456 <limits.h> exists even on freestanding compilers. */
9457
9458 #ifdef __STDC__
9459 # include <limits.h>
9460 #else
9461 # include <assert.h>
9462 #endif
9463
9464 #undef pcap_list_datalinks
9465
9466 /* Override any GCC internal prototype to avoid an error.
9467 Use char because int might match the return type of a GCC
9468 builtin and then its argument prototype would still apply. */
9469 #ifdef __cplusplus
9470 extern "C"
9471 #endif
9472 char pcap_list_datalinks ();
9473 /* The GNU C library defines this for functions which it implements
9474 to always fail with ENOSYS. Some functions are actually named
9475 something starting with __ and the normal name is an alias. */
9476 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9477 choke me
9478 #endif
9479
9480 int
9481 main ()
9482 {
9483 return pcap_list_datalinks ();
9484 ;
9485 return 0;
9486 }
9487 _ACEOF
9488 rm -f conftest.$ac_objext conftest$ac_exeext
9489 if { (ac_try="$ac_link"
9490 case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9493 esac
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_link") 2>conftest.er1
9496 ac_status=$?
9497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } && {
9502 test -z "$ac_c_werror_flag" ||
9503 test ! -s conftest.err
9504 } && test -s conftest$ac_exeext &&
9505 $as_test_x conftest$ac_exeext; then
9506 ac_cv_func_pcap_list_datalinks=yes
9507 else
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9510
9511 ac_cv_func_pcap_list_datalinks=no
9512 fi
9513
9514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9515 conftest$ac_exeext conftest.$ac_ext
9516 fi
9517 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9518 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9519 if test $ac_cv_func_pcap_list_datalinks = yes; then
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_PCAP_LIST_DATALINKS 1
9522 _ACEOF
9523
9524 else
9525
9526 case " $LIBOBJS " in
9527 *" datalinks.$ac_objext "* ) ;;
9528 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9529 ;;
9530 esac
9531
9532
9533 fi
9534
9535 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9536 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9537 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540 cat >conftest.$ac_ext <<_ACEOF
9541 /* confdefs.h. */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9548 #define pcap_set_datalink innocuous_pcap_set_datalink
9549
9550 /* System header to define __stub macros and hopefully few prototypes,
9551 which can conflict with char pcap_set_datalink (); below.
9552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9553 <limits.h> exists even on freestanding compilers. */
9554
9555 #ifdef __STDC__
9556 # include <limits.h>
9557 #else
9558 # include <assert.h>
9559 #endif
9560
9561 #undef pcap_set_datalink
9562
9563 /* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9566 #ifdef __cplusplus
9567 extern "C"
9568 #endif
9569 char pcap_set_datalink ();
9570 /* The GNU C library defines this for functions which it implements
9571 to always fail with ENOSYS. Some functions are actually named
9572 something starting with __ and the normal name is an alias. */
9573 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9574 choke me
9575 #endif
9576
9577 int
9578 main ()
9579 {
9580 return pcap_set_datalink ();
9581 ;
9582 return 0;
9583 }
9584 _ACEOF
9585 rm -f conftest.$ac_objext conftest$ac_exeext
9586 if { (ac_try="$ac_link"
9587 case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9590 esac
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_link") 2>conftest.er1
9593 ac_status=$?
9594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } && {
9599 test -z "$ac_c_werror_flag" ||
9600 test ! -s conftest.err
9601 } && test -s conftest$ac_exeext &&
9602 $as_test_x conftest$ac_exeext; then
9603 ac_cv_func_pcap_set_datalink=yes
9604 else
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608 ac_cv_func_pcap_set_datalink=no
9609 fi
9610
9611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9612 conftest$ac_exeext conftest.$ac_ext
9613 fi
9614 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9615 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9616 if test $ac_cv_func_pcap_set_datalink = yes; then
9617 cat >>confdefs.h <<\_ACEOF
9618 #define HAVE_PCAP_SET_DATALINK 1
9619 _ACEOF
9620
9621 fi
9622
9623 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9624 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9625 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628 cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h. */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9636 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9637
9638 /* System header to define __stub macros and hopefully few prototypes,
9639 which can conflict with char pcap_datalink_name_to_val (); below.
9640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641 <limits.h> exists even on freestanding compilers. */
9642
9643 #ifdef __STDC__
9644 # include <limits.h>
9645 #else
9646 # include <assert.h>
9647 #endif
9648
9649 #undef pcap_datalink_name_to_val
9650
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9654 #ifdef __cplusplus
9655 extern "C"
9656 #endif
9657 char pcap_datalink_name_to_val ();
9658 /* The GNU C library defines this for functions which it implements
9659 to always fail with ENOSYS. Some functions are actually named
9660 something starting with __ and the normal name is an alias. */
9661 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9662 choke me
9663 #endif
9664
9665 int
9666 main ()
9667 {
9668 return pcap_datalink_name_to_val ();
9669 ;
9670 return 0;
9671 }
9672 _ACEOF
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9675 case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext &&
9690 $as_test_x conftest$ac_exeext; then
9691 ac_cv_func_pcap_datalink_name_to_val=yes
9692 else
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 ac_cv_func_pcap_datalink_name_to_val=no
9697 fi
9698
9699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700 conftest$ac_exeext conftest.$ac_ext
9701 fi
9702 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9703 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9704 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9705
9706 cat >>confdefs.h <<\_ACEOF
9707 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9708 _ACEOF
9709
9710 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9711 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9712 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9723 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9724
9725 /* System header to define __stub macros and hopefully few prototypes,
9726 which can conflict with char pcap_datalink_val_to_description (); below.
9727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728 <limits.h> exists even on freestanding compilers. */
9729
9730 #ifdef __STDC__
9731 # include <limits.h>
9732 #else
9733 # include <assert.h>
9734 #endif
9735
9736 #undef pcap_datalink_val_to_description
9737
9738 /* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9741 #ifdef __cplusplus
9742 extern "C"
9743 #endif
9744 char pcap_datalink_val_to_description ();
9745 /* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
9749 choke me
9750 #endif
9751
9752 int
9753 main ()
9754 {
9755 return pcap_datalink_val_to_description ();
9756 ;
9757 return 0;
9758 }
9759 _ACEOF
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9762 case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_link") 2>conftest.er1
9768 ac_status=$?
9769 grep -v '^ *+' conftest.er1 >conftest.err
9770 rm -f conftest.er1
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } && {
9774 test -z "$ac_c_werror_flag" ||
9775 test ! -s conftest.err
9776 } && test -s conftest$ac_exeext &&
9777 $as_test_x conftest$ac_exeext; then
9778 ac_cv_func_pcap_datalink_val_to_description=yes
9779 else
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783 ac_cv_func_pcap_datalink_val_to_description=no
9784 fi
9785
9786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9787 conftest$ac_exeext conftest.$ac_ext
9788 fi
9789 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9790 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
9791 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9792 cat >>confdefs.h <<\_ACEOF
9793 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9794 _ACEOF
9795
9796 else
9797
9798 case " $LIBOBJS " in
9799 *" dlnames.$ac_objext "* ) ;;
9800 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
9801 ;;
9802 esac
9803
9804
9805 fi
9806
9807
9808 else
9809
9810 case " $LIBOBJS " in
9811 *" dlnames.$ac_objext "* ) ;;
9812 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
9813 ;;
9814 esac
9815
9816
9817 fi
9818
9819
9820
9821 for ac_func in pcap_breakloop
9822 do
9823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9837 #define $ac_func innocuous_$ac_func
9838
9839 /* System header to define __stub macros and hopefully few prototypes,
9840 which can conflict with char $ac_func (); below.
9841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9842 <limits.h> exists even on freestanding compilers. */
9843
9844 #ifdef __STDC__
9845 # include <limits.h>
9846 #else
9847 # include <assert.h>
9848 #endif
9849
9850 #undef $ac_func
9851
9852 /* Override any GCC internal prototype to avoid an error.
9853 Use char because int might match the return type of a GCC
9854 builtin and then its argument prototype would still apply. */
9855 #ifdef __cplusplus
9856 extern "C"
9857 #endif
9858 char $ac_func ();
9859 /* The GNU C library defines this for functions which it implements
9860 to always fail with ENOSYS. Some functions are actually named
9861 something starting with __ and the normal name is an alias. */
9862 #if defined __stub_$ac_func || defined __stub___$ac_func
9863 choke me
9864 #endif
9865
9866 int
9867 main ()
9868 {
9869 return $ac_func ();
9870 ;
9871 return 0;
9872 }
9873 _ACEOF
9874 rm -f conftest.$ac_objext conftest$ac_exeext
9875 if { (ac_try="$ac_link"
9876 case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_link") 2>conftest.er1
9882 ac_status=$?
9883 grep -v '^ *+' conftest.er1 >conftest.err
9884 rm -f conftest.er1
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } && {
9888 test -z "$ac_c_werror_flag" ||
9889 test ! -s conftest.err
9890 } && test -s conftest$ac_exeext &&
9891 $as_test_x conftest$ac_exeext; then
9892 eval "$as_ac_var=yes"
9893 else
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897 eval "$as_ac_var=no"
9898 fi
9899
9900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9901 conftest$ac_exeext conftest.$ac_ext
9902 fi
9903 ac_res=`eval echo '${'$as_ac_var'}'`
9904 { echo "$as_me:$LINENO: result: $ac_res" >&5
9905 echo "${ECHO_T}$ac_res" >&6; }
9906 if test `eval echo '${'$as_ac_var'}'` = yes; then
9907 cat >>confdefs.h <<_ACEOF
9908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9909 _ACEOF
9910
9911 fi
9912 done
9913
9914
9915 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
9916 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
9917 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920 cat >conftest.$ac_ext <<_ACEOF
9921 /* confdefs.h. */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9926 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
9927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9928 #define pcap_dump_ftell innocuous_pcap_dump_ftell
9929
9930 /* System header to define __stub macros and hopefully few prototypes,
9931 which can conflict with char pcap_dump_ftell (); below.
9932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9933 <limits.h> exists even on freestanding compilers. */
9934
9935 #ifdef __STDC__
9936 # include <limits.h>
9937 #else
9938 # include <assert.h>
9939 #endif
9940
9941 #undef pcap_dump_ftell
9942
9943 /* Override any GCC internal prototype to avoid an error.
9944 Use char because int might match the return type of a GCC
9945 builtin and then its argument prototype would still apply. */
9946 #ifdef __cplusplus
9947 extern "C"
9948 #endif
9949 char pcap_dump_ftell ();
9950 /* The GNU C library defines this for functions which it implements
9951 to always fail with ENOSYS. Some functions are actually named
9952 something starting with __ and the normal name is an alias. */
9953 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
9954 choke me
9955 #endif
9956
9957 int
9958 main ()
9959 {
9960 return pcap_dump_ftell ();
9961 ;
9962 return 0;
9963 }
9964 _ACEOF
9965 rm -f conftest.$ac_objext conftest$ac_exeext
9966 if { (ac_try="$ac_link"
9967 case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9970 esac
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_link") 2>conftest.er1
9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest$ac_exeext &&
9982 $as_test_x conftest$ac_exeext; then
9983 ac_cv_func_pcap_dump_ftell=yes
9984 else
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9987
9988 ac_cv_func_pcap_dump_ftell=no
9989 fi
9990
9991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9992 conftest$ac_exeext conftest.$ac_ext
9993 fi
9994 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
9995 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
9996 if test $ac_cv_func_pcap_dump_ftell = yes; then
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_PCAP_DUMP_FTELL 1
9999 _ACEOF
10000
10001 else
10002
10003 case " $LIBOBJS " in
10004 *" pcap_dump_ftell.$ac_objext "* ) ;;
10005 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
10006 ;;
10007 esac
10008
10009
10010 fi
10011
10012
10013
10014 #
10015 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
10016 # libraries (e.g., "-lsocket -lnsl" on Solaris).
10017 #
10018 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10019 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
10020 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
10021 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
10022 # it does not ship with a libc symbol "inet_ntop()", it ships with
10023 # "_inet_ntop()", and has a #define macro in one of the system headers
10024 # to rename it.
10025 #
10026 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
10027 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h. */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 #include <sys/types.h>
10035 #include <sys/socket.h>
10036 #include <netinet/in.h>
10037 #include <arpa/inet.h>
10038 int
10039 main ()
10040 {
10041 char src[4], dst[128];
10042 inet_ntop(AF_INET, src, dst, sizeof(dst));
10043 ;
10044 return 0;
10045 }
10046 _ACEOF
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (ac_try="$ac_link"
10049 case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_link") 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest$ac_exeext &&
10064 $as_test_x conftest$ac_exeext; then
10065 { echo "$as_me:$LINENO: result: yes" >&5
10066 echo "${ECHO_T}yes" >&6; }
10067 else
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10070
10071 { echo "$as_me:$LINENO: result: no" >&5
10072 echo "${ECHO_T}no" >&6; }
10073 case " $LIBOBJS " in
10074 *" inet_ntop.$ac_objext "* ) ;;
10075 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10076 ;;
10077 esac
10078
10079 fi
10080
10081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10082 conftest$ac_exeext conftest.$ac_ext
10083 { echo "$as_me:$LINENO: checking for inet_pton" >&5
10084 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10085 cat >conftest.$ac_ext <<_ACEOF
10086 /* confdefs.h. */
10087 _ACEOF
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h. */
10091 #include <sys/types.h>
10092 #include <sys/socket.h>
10093 #include <netinet/in.h>
10094 #include <arpa/inet.h>
10095 int
10096 main ()
10097 {
10098 char src[128], dst[4];
10099 inet_pton(AF_INET, src, dst);
10100 ;
10101 return 0;
10102 }
10103 _ACEOF
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (ac_try="$ac_link"
10106 case "(($ac_try" in
10107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10108 *) ac_try_echo=$ac_try;;
10109 esac
10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111 (eval "$ac_link") 2>conftest.er1
10112 ac_status=$?
10113 grep -v '^ *+' conftest.er1 >conftest.err
10114 rm -f conftest.er1
10115 cat conftest.err >&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } && {
10118 test -z "$ac_c_werror_flag" ||
10119 test ! -s conftest.err
10120 } && test -s conftest$ac_exeext &&
10121 $as_test_x conftest$ac_exeext; then
10122 { echo "$as_me:$LINENO: result: yes" >&5
10123 echo "${ECHO_T}yes" >&6; }
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10127
10128 { echo "$as_me:$LINENO: result: no" >&5
10129 echo "${ECHO_T}no" >&6; }
10130 case " $LIBOBJS " in
10131 *" inet_pton.$ac_objext "* ) ;;
10132 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
10133 ;;
10134 esac
10135
10136 fi
10137
10138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10139 conftest$ac_exeext conftest.$ac_ext
10140 { echo "$as_me:$LINENO: checking for inet_aton" >&5
10141 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10142 cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h. */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 #include <sys/types.h>
10149 #include <netinet/in.h>
10150 #include <arpa/inet.h>
10151 int
10152 main ()
10153 {
10154 char src[128];
10155 struct in_addr dst;
10156 inet_aton(src, &dst);
10157 ;
10158 return 0;
10159 }
10160 _ACEOF
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (ac_try="$ac_link"
10163 case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10166 esac
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_link") 2>conftest.er1
10169 ac_status=$?
10170 grep -v '^ *+' conftest.er1 >conftest.err
10171 rm -f conftest.er1
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } && {
10175 test -z "$ac_c_werror_flag" ||
10176 test ! -s conftest.err
10177 } && test -s conftest$ac_exeext &&
10178 $as_test_x conftest$ac_exeext; then
10179 { echo "$as_me:$LINENO: result: yes" >&5
10180 echo "${ECHO_T}yes" >&6; }
10181 else
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185 { echo "$as_me:$LINENO: result: no" >&5
10186 echo "${ECHO_T}no" >&6; }
10187 case " $LIBOBJS " in
10188 *" inet_aton.$ac_objext "* ) ;;
10189 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10190 ;;
10191 esac
10192
10193 fi
10194
10195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10196 conftest$ac_exeext conftest.$ac_ext
10197
10198 #
10199 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10200 #
10201 # You are in a twisty little maze of UN*Xes, all different.
10202 # Some might not have ether_ntohost().
10203 # Some might have it, but not declare it in any header file.
10204 # Some might have it, but declare it in <netinet/if_ether.h>.
10205 # Some might have it, but declare it in <netinet/ether.h>
10206 # (And some might have it but document it as something declared in
10207 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10208 #
10209 # Before you is a C compiler.
10210 #
10211
10212 for ac_func in ether_ntohost
10213 do
10214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220 cat >conftest.$ac_ext <<_ACEOF
10221 /* confdefs.h. */
10222 _ACEOF
10223 cat confdefs.h >>conftest.$ac_ext
10224 cat >>conftest.$ac_ext <<_ACEOF
10225 /* end confdefs.h. */
10226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10228 #define $ac_func innocuous_$ac_func
10229
10230 /* System header to define __stub macros and hopefully few prototypes,
10231 which can conflict with char $ac_func (); below.
10232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10233 <limits.h> exists even on freestanding compilers. */
10234
10235 #ifdef __STDC__
10236 # include <limits.h>
10237 #else
10238 # include <assert.h>
10239 #endif
10240
10241 #undef $ac_func
10242
10243 /* Override any GCC internal prototype to avoid an error.
10244 Use char because int might match the return type of a GCC
10245 builtin and then its argument prototype would still apply. */
10246 #ifdef __cplusplus
10247 extern "C"
10248 #endif
10249 char $ac_func ();
10250 /* The GNU C library defines this for functions which it implements
10251 to always fail with ENOSYS. Some functions are actually named
10252 something starting with __ and the normal name is an alias. */
10253 #if defined __stub_$ac_func || defined __stub___$ac_func
10254 choke me
10255 #endif
10256
10257 int
10258 main ()
10259 {
10260 return $ac_func ();
10261 ;
10262 return 0;
10263 }
10264 _ACEOF
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (ac_try="$ac_link"
10267 case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10270 esac
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_link") 2>conftest.er1
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && {
10279 test -z "$ac_c_werror_flag" ||
10280 test ! -s conftest.err
10281 } && test -s conftest$ac_exeext &&
10282 $as_test_x conftest$ac_exeext; then
10283 eval "$as_ac_var=yes"
10284 else
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10287
10288 eval "$as_ac_var=no"
10289 fi
10290
10291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10292 conftest$ac_exeext conftest.$ac_ext
10293 fi
10294 ac_res=`eval echo '${'$as_ac_var'}'`
10295 { echo "$as_me:$LINENO: result: $ac_res" >&5
10296 echo "${ECHO_T}$ac_res" >&6; }
10297 if test `eval echo '${'$as_ac_var'}'` = yes; then
10298 cat >>confdefs.h <<_ACEOF
10299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10300 _ACEOF
10301
10302 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10303 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10304 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307
10308 if test "$cross_compiling" = yes; then
10309 ac_cv_buggy_ether_ntohost="not while cross-compiling"
10310 else
10311 cat >conftest.$ac_ext <<_ACEOF
10312 /* confdefs.h. */
10313 _ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h. */
10317
10318 #include <netdb.h>
10319 #include <sys/types.h>
10320 #include <sys/param.h>
10321 #include <sys/socket.h>
10322
10323 int
10324 main(int argc, char **argv)
10325 {
10326 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10327 char name[MAXHOSTNAMELEN];
10328
10329 ether_ntohost(name, (struct ether_addr *)ea);
10330 exit(0);
10331 }
10332
10333 _ACEOF
10334 rm -f conftest$ac_exeext
10335 if { (ac_try="$ac_link"
10336 case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10339 esac
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_link") 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10345 { (case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10348 esac
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350 (eval "$ac_try") 2>&5
10351 ac_status=$?
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 ac_cv_buggy_ether_ntohost=no
10355 else
10356 echo "$as_me: program exited with status $ac_status" >&5
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10359
10360 ( exit $ac_status )
10361 ac_cv_buggy_ether_ntohost=yes
10362 fi
10363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10364 fi
10365
10366
10367 fi
10368 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10369 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10370 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10371 cat >>confdefs.h <<\_ACEOF
10372 #define USE_ETHER_NTOHOST 1
10373 _ACEOF
10374
10375 fi
10376
10377 fi
10378 done
10379
10380 if test "$ac_cv_func_ether_ntohost" = yes -a \
10381 "$ac_cv_buggy_ether_ntohost" = "no"; then
10382 #
10383 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10384 #
10385 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10386 #
10387 # Yes. Does it declare ether_ntohost()?
10388 #
10389 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10390 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10391 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h. */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400
10401 #include <sys/types.h>
10402 #include <sys/socket.h>
10403 #include <netinet/in.h>
10404 #include <arpa/inet.h>
10405 struct mbuf;
10406 struct rtentry;
10407 #include <net/if.h>
10408 #include <netinet/if_ether.h>
10409
10410
10411 int
10412 main ()
10413 {
10414 #ifndef ether_ntohost
10415 (void) ether_ntohost;
10416 #endif
10417
10418 ;
10419 return 0;
10420 }
10421 _ACEOF
10422 rm -f conftest.$ac_objext
10423 if { (ac_try="$ac_compile"
10424 case "(($ac_try" in
10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10427 esac
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429 (eval "$ac_compile") 2>conftest.er1
10430 ac_status=$?
10431 grep -v '^ *+' conftest.er1 >conftest.err
10432 rm -f conftest.er1
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } && {
10436 test -z "$ac_c_werror_flag" ||
10437 test ! -s conftest.err
10438 } && test -s conftest.$ac_objext; then
10439 ac_cv_have_decl_ether_ntohost=yes
10440 else
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10443
10444 ac_cv_have_decl_ether_ntohost=no
10445 fi
10446
10447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10448 fi
10449 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10450 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10451 if test $ac_cv_have_decl_ether_ntohost = yes; then
10452
10453
10454 cat >>confdefs.h <<\_ACEOF
10455 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10456 _ACEOF
10457
10458
10459 fi
10460
10461 fi
10462 #
10463 # Did that succeed?
10464 #
10465 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10466 #
10467 # No, how about <netinet/ether.h>, as on Linux?
10468 #
10469
10470 for ac_header in netinet/ether.h
10471 do
10472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 fi
10479 ac_res=`eval echo '${'$as_ac_Header'}'`
10480 { echo "$as_me:$LINENO: result: $ac_res" >&5
10481 echo "${ECHO_T}$ac_res" >&6; }
10482 else
10483 # Is the header compilable?
10484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10486 cat >conftest.$ac_ext <<_ACEOF
10487 /* confdefs.h. */
10488 _ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10492 $ac_includes_default
10493 #include <$ac_header>
10494 _ACEOF
10495 rm -f conftest.$ac_objext
10496 if { (ac_try="$ac_compile"
10497 case "(($ac_try" in
10498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10500 esac
10501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502 (eval "$ac_compile") 2>conftest.er1
10503 ac_status=$?
10504 grep -v '^ *+' conftest.er1 >conftest.err
10505 rm -f conftest.er1
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } && {
10509 test -z "$ac_c_werror_flag" ||
10510 test ! -s conftest.err
10511 } && test -s conftest.$ac_objext; then
10512 ac_header_compiler=yes
10513 else
10514 echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10516
10517 ac_header_compiler=no
10518 fi
10519
10520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10522 echo "${ECHO_T}$ac_header_compiler" >&6; }
10523
10524 # Is the header present?
10525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10527 cat >conftest.$ac_ext <<_ACEOF
10528 /* confdefs.h. */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 #include <$ac_header>
10534 _ACEOF
10535 if { (ac_try="$ac_cpp conftest.$ac_ext"
10536 case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10542 ac_status=$?
10543 grep -v '^ *+' conftest.er1 >conftest.err
10544 rm -f conftest.er1
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } >/dev/null && {
10548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10549 test ! -s conftest.err
10550 }; then
10551 ac_header_preproc=yes
10552 else
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10555
10556 ac_header_preproc=no
10557 fi
10558
10559 rm -f conftest.err conftest.$ac_ext
10560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10561 echo "${ECHO_T}$ac_header_preproc" >&6; }
10562
10563 # So? What about this header?
10564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10565 yes:no: )
10566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10570 ac_header_preproc=yes
10571 ;;
10572 no:yes:* )
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10585
10586 ;;
10587 esac
10588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 else
10593 eval "$as_ac_Header=\$ac_header_preproc"
10594 fi
10595 ac_res=`eval echo '${'$as_ac_Header'}'`
10596 { echo "$as_me:$LINENO: result: $ac_res" >&5
10597 echo "${ECHO_T}$ac_res" >&6; }
10598
10599 fi
10600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10601 cat >>confdefs.h <<_ACEOF
10602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10603 _ACEOF
10604
10605 fi
10606
10607 done
10608
10609 if test "$ac_cv_header_netinet_ether_h" = yes; then
10610 #
10611 # We have it - does it declare ether_ntohost()?
10612 # Unset ac_cv_have_decl_ether_ntohost so we don't
10613 # treat the previous failure as a cached value and
10614 # suppress the next test.
10615 #
10616 unset ac_cv_have_decl_ether_ntohost
10617 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10618 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10619 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622 cat >conftest.$ac_ext <<_ACEOF
10623 /* confdefs.h. */
10624 _ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10628
10629 #include <netinet/ether.h>
10630
10631
10632 int
10633 main ()
10634 {
10635 #ifndef ether_ntohost
10636 (void) ether_ntohost;
10637 #endif
10638
10639 ;
10640 return 0;
10641 }
10642 _ACEOF
10643 rm -f conftest.$ac_objext
10644 if { (ac_try="$ac_compile"
10645 case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648 esac
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_compile") 2>conftest.er1
10651 ac_status=$?
10652 grep -v '^ *+' conftest.er1 >conftest.err
10653 rm -f conftest.er1
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && {
10657 test -z "$ac_c_werror_flag" ||
10658 test ! -s conftest.err
10659 } && test -s conftest.$ac_objext; then
10660 ac_cv_have_decl_ether_ntohost=yes
10661 else
10662 echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10664
10665 ac_cv_have_decl_ether_ntohost=no
10666 fi
10667
10668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10669 fi
10670 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10671 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10672 if test $ac_cv_have_decl_ether_ntohost = yes; then
10673
10674
10675 cat >>confdefs.h <<\_ACEOF
10676 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10677 _ACEOF
10678
10679
10680 fi
10681
10682 fi
10683 fi
10684 #
10685 # Is ether_ntohost() declared?
10686 #
10687 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10688 #
10689 # No, we'll have to declare it ourselves.
10690 # Do we have "struct ether_addr"?
10691 #
10692 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10693 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10694 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 else
10697 cat >conftest.$ac_ext <<_ACEOF
10698 /* confdefs.h. */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703
10704 #include <sys/types.h>
10705 #include <sys/socket.h>
10706 #include <netinet/in.h>
10707 #include <arpa/inet.h>
10708 struct mbuf;
10709 struct rtentry;
10710 #include <net/if.h>
10711 #include <netinet/if_ether.h>
10712
10713
10714 typedef struct ether_addr ac__type_new_;
10715 int
10716 main ()
10717 {
10718 if ((ac__type_new_ *) 0)
10719 return 0;
10720 if (sizeof (ac__type_new_))
10721 return 0;
10722 ;
10723 return 0;
10724 }
10725 _ACEOF
10726 rm -f conftest.$ac_objext
10727 if { (ac_try="$ac_compile"
10728 case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10731 esac
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_compile") 2>conftest.er1
10734 ac_status=$?
10735 grep -v '^ *+' conftest.er1 >conftest.err
10736 rm -f conftest.er1
10737 cat conftest.err >&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } && {
10740 test -z "$ac_c_werror_flag" ||
10741 test ! -s conftest.err
10742 } && test -s conftest.$ac_objext; then
10743 ac_cv_type_struct_ether_addr=yes
10744 else
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10747
10748 ac_cv_type_struct_ether_addr=no
10749 fi
10750
10751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10752 fi
10753 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10754 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
10755 if test $ac_cv_type_struct_ether_addr = yes; then
10756
10757 cat >>confdefs.h <<_ACEOF
10758 #define HAVE_STRUCT_ETHER_ADDR 1
10759 _ACEOF
10760
10761
10762 fi
10763
10764
10765 cat >>confdefs.h <<\_ACEOF
10766 #define HAVE_DECL_ETHER_NTOHOST 0
10767 _ACEOF
10768
10769 else
10770
10771 cat >>confdefs.h <<\_ACEOF
10772 #define HAVE_DECL_ETHER_NTOHOST 1
10773 _ACEOF
10774
10775 fi
10776 fi
10777
10778 # libdlpi is needed for Solaris 11 and later.
10779 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
10780 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
10781 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 else
10784 ac_check_lib_save_LIBS=$LIBS
10785 LIBS="-ldlpi -L/lib $LIBS"
10786 cat >conftest.$ac_ext <<_ACEOF
10787 /* confdefs.h. */
10788 _ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h. */
10792
10793 /* Override any GCC internal prototype to avoid an error.
10794 Use char because int might match the return type of a GCC
10795 builtin and then its argument prototype would still apply. */
10796 #ifdef __cplusplus
10797 extern "C"
10798 #endif
10799 char dlpi_walk ();
10800 int
10801 main ()
10802 {
10803 return dlpi_walk ();
10804 ;
10805 return 0;
10806 }
10807 _ACEOF
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (ac_try="$ac_link"
10810 case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10813 esac
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_link") 2>conftest.er1
10816 ac_status=$?
10817 grep -v '^ *+' conftest.er1 >conftest.err
10818 rm -f conftest.er1
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } && {
10822 test -z "$ac_c_werror_flag" ||
10823 test ! -s conftest.err
10824 } && test -s conftest$ac_exeext &&
10825 $as_test_x conftest$ac_exeext; then
10826 ac_cv_lib_dlpi_dlpi_walk=yes
10827 else
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10830
10831 ac_cv_lib_dlpi_dlpi_walk=no
10832 fi
10833
10834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10835 conftest$ac_exeext conftest.$ac_ext
10836 LIBS=$ac_check_lib_save_LIBS
10837 fi
10838 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
10839 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
10840 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
10841 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
10842 fi
10843
10844
10845
10846 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10847 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
10848 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851 cat >conftest.$ac_ext <<_ACEOF
10852 /* confdefs.h. */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10857
10858 # include <sys/types.h>
10859 # include <sys/socket.h>
10860 int
10861 main ()
10862 {
10863 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10864 ;
10865 return 0;
10866 }
10867 _ACEOF
10868 rm -f conftest.$ac_objext
10869 if { (ac_try="$ac_compile"
10870 case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873 esac
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_compile") 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } && {
10882 test -z "$ac_c_werror_flag" ||
10883 test ! -s conftest.err
10884 } && test -s conftest.$ac_objext; then
10885 ac_cv_sockaddr_has_sa_len=yes
10886 else
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10889
10890 ac_cv_sockaddr_has_sa_len=no
10891 fi
10892
10893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10894 fi
10895
10896 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
10897 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
10898 if test $ac_cv_sockaddr_has_sa_len = yes ; then
10899 cat >>confdefs.h <<\_ACEOF
10900 #define HAVE_SOCKADDR_SA_LEN 1
10901 _ACEOF
10902
10903 fi
10904
10905 if test "$ac_cv_sockaddr_has_sa_len" = no; then
10906 missing_includes=yes
10907 fi
10908
10909 #
10910 # Do we have the new open API? Check for pcap_create, and assume that,
10911 # if we do, we also have pcap_activate() and the other new routines.
10912
10913 for ac_func in pcap_create
10914 do
10915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h. */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10929 #define $ac_func innocuous_$ac_func
10930
10931 /* System header to define __stub macros and hopefully few prototypes,
10932 which can conflict with char $ac_func (); below.
10933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10934 <limits.h> exists even on freestanding compilers. */
10935
10936 #ifdef __STDC__
10937 # include <limits.h>
10938 #else
10939 # include <assert.h>
10940 #endif
10941
10942 #undef $ac_func
10943
10944 /* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
10947 #ifdef __cplusplus
10948 extern "C"
10949 #endif
10950 char $ac_func ();
10951 /* The GNU C library defines this for functions which it implements
10952 to always fail with ENOSYS. Some functions are actually named
10953 something starting with __ and the normal name is an alias. */
10954 #if defined __stub_$ac_func || defined __stub___$ac_func
10955 choke me
10956 #endif
10957
10958 int
10959 main ()
10960 {
10961 return $ac_func ();
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 rm -f conftest.$ac_objext conftest$ac_exeext
10967 if { (ac_try="$ac_link"
10968 case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971 esac
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_link") 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest$ac_exeext &&
10983 $as_test_x conftest$ac_exeext; then
10984 eval "$as_ac_var=yes"
10985 else
10986 echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10988
10989 eval "$as_ac_var=no"
10990 fi
10991
10992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10993 conftest$ac_exeext conftest.$ac_ext
10994 fi
10995 ac_res=`eval echo '${'$as_ac_var'}'`
10996 { echo "$as_me:$LINENO: result: $ac_res" >&5
10997 echo "${ECHO_T}$ac_res" >&6; }
10998 if test `eval echo '${'$as_ac_var'}'` = yes; then
10999 cat >>confdefs.h <<_ACEOF
11000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11001 _ACEOF
11002
11003 fi
11004 done
11005
11006
11007
11008
11009
11010 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
11011 do
11012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11017 else
11018 cat >conftest.$ac_ext <<_ACEOF
11019 /* confdefs.h. */
11020 _ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11026 #define $ac_func innocuous_$ac_func
11027
11028 /* System header to define __stub macros and hopefully few prototypes,
11029 which can conflict with char $ac_func (); below.
11030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11031 <limits.h> exists even on freestanding compilers. */
11032
11033 #ifdef __STDC__
11034 # include <limits.h>
11035 #else
11036 # include <assert.h>
11037 #endif
11038
11039 #undef $ac_func
11040
11041 /* Override any GCC internal prototype to avoid an error.
11042 Use char because int might match the return type of a GCC
11043 builtin and then its argument prototype would still apply. */
11044 #ifdef __cplusplus
11045 extern "C"
11046 #endif
11047 char $ac_func ();
11048 /* The GNU C library defines this for functions which it implements
11049 to always fail with ENOSYS. Some functions are actually named
11050 something starting with __ and the normal name is an alias. */
11051 #if defined __stub_$ac_func || defined __stub___$ac_func
11052 choke me
11053 #endif
11054
11055 int
11056 main ()
11057 {
11058 return $ac_func ();
11059 ;
11060 return 0;
11061 }
11062 _ACEOF
11063 rm -f conftest.$ac_objext conftest$ac_exeext
11064 if { (ac_try="$ac_link"
11065 case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11068 esac
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_link") 2>conftest.er1
11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } && {
11077 test -z "$ac_c_werror_flag" ||
11078 test ! -s conftest.err
11079 } && test -s conftest$ac_exeext &&
11080 $as_test_x conftest$ac_exeext; then
11081 eval "$as_ac_var=yes"
11082 else
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 eval "$as_ac_var=no"
11087 fi
11088
11089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11090 conftest$ac_exeext conftest.$ac_ext
11091 fi
11092 ac_res=`eval echo '${'$as_ac_var'}'`
11093 { echo "$as_me:$LINENO: result: $ac_res" >&5
11094 echo "${ECHO_T}$ac_res" >&6; }
11095 if test `eval echo '${'$as_ac_var'}'` = yes; then
11096 cat >>confdefs.h <<_ACEOF
11097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11098 _ACEOF
11099
11100 fi
11101 done
11102
11103 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11104 savedppflags="$CPPLAGS"
11105 CPPFLAGS="$CPPFLAGS $V_INCLS"
11106 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11107 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
11108 if test "${ac_cv_type_pcap_if_t+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h. */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 #include <pcap.h>
11118
11119 typedef pcap_if_t ac__type_new_;
11120 int
11121 main ()
11122 {
11123 if ((ac__type_new_ *) 0)
11124 return 0;
11125 if (sizeof (ac__type_new_))
11126 return 0;
11127 ;
11128 return 0;
11129 }
11130 _ACEOF
11131 rm -f conftest.$ac_objext
11132 if { (ac_try="$ac_compile"
11133 case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_compile") 2>conftest.er1
11139 ac_status=$?
11140 grep -v '^ *+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } && {
11145 test -z "$ac_c_werror_flag" ||
11146 test ! -s conftest.err
11147 } && test -s conftest.$ac_objext; then
11148 ac_cv_type_pcap_if_t=yes
11149 else
11150 echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.$ac_ext >&5
11152
11153 ac_cv_type_pcap_if_t=no
11154 fi
11155
11156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11157 fi
11158 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11159 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
11160 if test $ac_cv_type_pcap_if_t = yes; then
11161
11162 cat >>confdefs.h <<_ACEOF
11163 #define HAVE_PCAP_IF_T 1
11164 _ACEOF
11165
11166
11167 fi
11168
11169 CPPFLAGS="$savedcppflags"
11170 fi
11171
11172 if test $ac_cv_func_pcap_lib_version = "no" ; then
11173 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11174 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
11175 cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h. */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181
11182 int
11183 main ()
11184 {
11185
11186 extern char pcap_version[];
11187
11188 return (int)pcap_version;
11189
11190 ;
11191 return 0;
11192 }
11193 _ACEOF
11194 rm -f conftest.$ac_objext conftest$ac_exeext
11195 if { (ac_try="$ac_link"
11196 case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11199 esac
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_link") 2>conftest.er1
11202 ac_status=$?
11203 grep -v '^ *+' conftest.er1 >conftest.err
11204 rm -f conftest.er1
11205 cat conftest.err >&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } && {
11208 test -z "$ac_c_werror_flag" ||
11209 test ! -s conftest.err
11210 } && test -s conftest$ac_exeext &&
11211 $as_test_x conftest$ac_exeext; then
11212 ac_lbl_cv_pcap_version_defined=yes
11213 else
11214 echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11216
11217 ac_lbl_cv_pcap_version_defined=no
11218 fi
11219
11220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11221 conftest$ac_exeext conftest.$ac_ext
11222 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11223 { echo "$as_me:$LINENO: result: yes" >&5
11224 echo "${ECHO_T}yes" >&6; }
11225 cat >>confdefs.h <<\_ACEOF
11226 #define HAVE_PCAP_VERSION 1
11227 _ACEOF
11228
11229 else
11230 { echo "$as_me:$LINENO: result: no" >&5
11231 echo "${ECHO_T}no" >&6; }
11232 fi
11233 fi
11234 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11235 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11236 cat >conftest.$ac_ext <<_ACEOF
11237 /* confdefs.h. */
11238 _ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242
11243 int
11244 main ()
11245 {
11246
11247 extern int pcap_debug;
11248
11249 return pcap_debug;
11250
11251 ;
11252 return 0;
11253 }
11254 _ACEOF
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (ac_try="$ac_link"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_link") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest$ac_exeext &&
11272 $as_test_x conftest$ac_exeext; then
11273 ac_lbl_cv_pcap_debug_defined=yes
11274 else
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11277
11278 ac_lbl_cv_pcap_debug_defined=no
11279 fi
11280
11281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11282 conftest$ac_exeext conftest.$ac_ext
11283 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11284 { echo "$as_me:$LINENO: result: yes" >&5
11285 echo "${ECHO_T}yes" >&6; }
11286 cat >>confdefs.h <<\_ACEOF
11287 #define HAVE_PCAP_DEBUG 1
11288 _ACEOF
11289
11290 else
11291 { echo "$as_me:$LINENO: result: no" >&5
11292 echo "${ECHO_T}no" >&6; }
11293 #
11294 # OK, what about "yydebug"?
11295 #
11296 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11297 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h. */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304
11305 int
11306 main ()
11307 {
11308
11309 extern int yydebug;
11310
11311 return yydebug;
11312
11313 ;
11314 return 0;
11315 }
11316 _ACEOF
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (ac_try="$ac_link"
11319 case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_link") 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } && {
11331 test -z "$ac_c_werror_flag" ||
11332 test ! -s conftest.err
11333 } && test -s conftest$ac_exeext &&
11334 $as_test_x conftest$ac_exeext; then
11335 ac_lbl_cv_yydebug_defined=yes
11336 else
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11339
11340 ac_lbl_cv_yydebug_defined=no
11341 fi
11342
11343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11344 conftest$ac_exeext conftest.$ac_ext
11345 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11346 { echo "$as_me:$LINENO: result: yes" >&5
11347 echo "${ECHO_T}yes" >&6; }
11348 cat >>confdefs.h <<\_ACEOF
11349 #define HAVE_YYDEBUG 1
11350 _ACEOF
11351
11352 else
11353 { echo "$as_me:$LINENO: result: no" >&5
11354 echo "${ECHO_T}no" >&6; }
11355 fi
11356 fi
11357
11358 for ac_func in bpf_dump
11359 do
11360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 else
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h. */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11374 #define $ac_func innocuous_$ac_func
11375
11376 /* System header to define __stub macros and hopefully few prototypes,
11377 which can conflict with char $ac_func (); below.
11378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11379 <limits.h> exists even on freestanding compilers. */
11380
11381 #ifdef __STDC__
11382 # include <limits.h>
11383 #else
11384 # include <assert.h>
11385 #endif
11386
11387 #undef $ac_func
11388
11389 /* Override any GCC internal prototype to avoid an error.
11390 Use char because int might match the return type of a GCC
11391 builtin and then its argument prototype would still apply. */
11392 #ifdef __cplusplus
11393 extern "C"
11394 #endif
11395 char $ac_func ();
11396 /* The GNU C library defines this for functions which it implements
11397 to always fail with ENOSYS. Some functions are actually named
11398 something starting with __ and the normal name is an alias. */
11399 #if defined __stub_$ac_func || defined __stub___$ac_func
11400 choke me
11401 #endif
11402
11403 int
11404 main ()
11405 {
11406 return $ac_func ();
11407 ;
11408 return 0;
11409 }
11410 _ACEOF
11411 rm -f conftest.$ac_objext conftest$ac_exeext
11412 if { (ac_try="$ac_link"
11413 case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11416 esac
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_link") 2>conftest.er1
11419 ac_status=$?
11420 grep -v '^ *+' conftest.er1 >conftest.err
11421 rm -f conftest.er1
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } && {
11425 test -z "$ac_c_werror_flag" ||
11426 test ! -s conftest.err
11427 } && test -s conftest$ac_exeext &&
11428 $as_test_x conftest$ac_exeext; then
11429 eval "$as_ac_var=yes"
11430 else
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11433
11434 eval "$as_ac_var=no"
11435 fi
11436
11437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11438 conftest$ac_exeext conftest.$ac_ext
11439 fi
11440 ac_res=`eval echo '${'$as_ac_var'}'`
11441 { echo "$as_me:$LINENO: result: $ac_res" >&5
11442 echo "${ECHO_T}$ac_res" >&6; }
11443 if test `eval echo '${'$as_ac_var'}'` = yes; then
11444 cat >>confdefs.h <<_ACEOF
11445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11446 _ACEOF
11447
11448 else
11449 case " $LIBOBJS " in
11450 *" $ac_func.$ac_objext "* ) ;;
11451 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11452 ;;
11453 esac
11454
11455 fi
11456 done
11457
11458
11459 V_GROUP=0
11460 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11461 V_GROUP=wheel
11462 fi
11463 #
11464 # Assume V7/BSD convention for man pages (file formats in section 5,
11465 # miscellaneous info in section 7).
11466 #
11467 MAN_FILE_FORMATS=5
11468 MAN_MISC_INFO=7
11469 case "$host_os" in
11470
11471 aix*)
11472 cat >>confdefs.h <<\_ACEOF
11473 #define _SUN 1
11474 _ACEOF
11475
11476 ;;
11477
11478 hpux*)
11479 #
11480 # Use System V conventions for man pages.
11481 #
11482 MAN_FILE_FORMATS=4
11483 MAN_MISC_INFO=5
11484 ;;
11485
11486 irix*)
11487 V_GROUP=sys
11488
11489 #
11490 # Use System V conventions for man pages.
11491 #
11492 MAN_FILE_FORMATS=4
11493 MAN_MISC_INFO=5
11494 ;;
11495
11496 osf*)
11497 V_GROUP=system
11498
11499 #
11500 # Use System V conventions for man pages.
11501 #
11502 MAN_FILE_FORMATS=4
11503 MAN_MISC_INFO=5
11504 ;;
11505
11506 solaris*)
11507 V_GROUP=sys
11508
11509 #
11510 # Use System V conventions for man pages.
11511 #
11512 MAN_FILE_FORMATS=4
11513 MAN_MISC_INFO=5
11514 ;;
11515 esac
11516
11517 if test -f /dev/bpf0 ; then
11518 V_GROUP=bpf
11519 fi
11520
11521 #
11522 # Check for some headers introduced in later versions of libpcap
11523 # and used by some printers.
11524 #
11525 savedcppflags="$CPPFLAGS"
11526 CPPFLAGS="$CPPFLAGS $V_INCLS"
11527
11528 for ac_header in pcap/bluetooth.h
11529 do
11530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 fi
11537 ac_res=`eval echo '${'$as_ac_Header'}'`
11538 { echo "$as_me:$LINENO: result: $ac_res" >&5
11539 echo "${ECHO_T}$ac_res" >&6; }
11540 else
11541 # Is the header compilable?
11542 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h. */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 $ac_includes_default
11551 #include <$ac_header>
11552 _ACEOF
11553 rm -f conftest.$ac_objext
11554 if { (ac_try="$ac_compile"
11555 case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558 esac
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_compile") 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } && {
11567 test -z "$ac_c_werror_flag" ||
11568 test ! -s conftest.err
11569 } && test -s conftest.$ac_objext; then
11570 ac_header_compiler=yes
11571 else
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11574
11575 ac_header_compiler=no
11576 fi
11577
11578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11580 echo "${ECHO_T}$ac_header_compiler" >&6; }
11581
11582 # Is the header present?
11583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11585 cat >conftest.$ac_ext <<_ACEOF
11586 /* confdefs.h. */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 #include <$ac_header>
11592 _ACEOF
11593 if { (ac_try="$ac_cpp conftest.$ac_ext"
11594 case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597 esac
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11600 ac_status=$?
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } >/dev/null && {
11606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11607 test ! -s conftest.err
11608 }; then
11609 ac_header_preproc=yes
11610 else
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11613
11614 ac_header_preproc=no
11615 fi
11616
11617 rm -f conftest.err conftest.$ac_ext
11618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11619 echo "${ECHO_T}$ac_header_preproc" >&6; }
11620
11621 # So? What about this header?
11622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11623 yes:no: )
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11628 ac_header_preproc=yes
11629 ;;
11630 no:yes:* )
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11643
11644 ;;
11645 esac
11646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651 eval "$as_ac_Header=\$ac_header_preproc"
11652 fi
11653 ac_res=`eval echo '${'$as_ac_Header'}'`
11654 { echo "$as_me:$LINENO: result: $ac_res" >&5
11655 echo "${ECHO_T}$ac_res" >&6; }
11656
11657 fi
11658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11659 cat >>confdefs.h <<_ACEOF
11660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11661 _ACEOF
11662
11663 fi
11664
11665 done
11666
11667 CPPFLAGS="$savedcppflags"
11668
11669
11670 for ac_header in sys/bitypes.h
11671 do
11672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 fi
11679 ac_res=`eval echo '${'$as_ac_Header'}'`
11680 { echo "$as_me:$LINENO: result: $ac_res" >&5
11681 echo "${ECHO_T}$ac_res" >&6; }
11682 else
11683 # Is the header compilable?
11684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h. */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 $ac_includes_default
11693 #include <$ac_header>
11694 _ACEOF
11695 rm -f conftest.$ac_objext
11696 if { (ac_try="$ac_compile"
11697 case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11700 esac
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_compile") 2>conftest.er1
11703 ac_status=$?
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } && {
11709 test -z "$ac_c_werror_flag" ||
11710 test ! -s conftest.err
11711 } && test -s conftest.$ac_objext; then
11712 ac_header_compiler=yes
11713 else
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11716
11717 ac_header_compiler=no
11718 fi
11719
11720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11721 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11722 echo "${ECHO_T}$ac_header_compiler" >&6; }
11723
11724 # Is the header present?
11725 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11727 cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h. */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733 #include <$ac_header>
11734 _ACEOF
11735 if { (ac_try="$ac_cpp conftest.$ac_ext"
11736 case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739 esac
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11742 ac_status=$?
11743 grep -v '^ *+' conftest.er1 >conftest.err
11744 rm -f conftest.er1
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } >/dev/null && {
11748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11749 test ! -s conftest.err
11750 }; then
11751 ac_header_preproc=yes
11752 else
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11755
11756 ac_header_preproc=no
11757 fi
11758
11759 rm -f conftest.err conftest.$ac_ext
11760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11761 echo "${ECHO_T}$ac_header_preproc" >&6; }
11762
11763 # So? What about this header?
11764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11765 yes:no: )
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11770 ac_header_preproc=yes
11771 ;;
11772 no:yes:* )
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11785
11786 ;;
11787 esac
11788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 else
11793 eval "$as_ac_Header=\$ac_header_preproc"
11794 fi
11795 ac_res=`eval echo '${'$as_ac_Header'}'`
11796 { echo "$as_me:$LINENO: result: $ac_res" >&5
11797 echo "${ECHO_T}$ac_res" >&6; }
11798
11799 fi
11800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11801 cat >>confdefs.h <<_ACEOF
11802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11803 _ACEOF
11804
11805 fi
11806
11807 done
11808
11809
11810 { echo "$as_me:$LINENO: checking for int8_t" >&5
11811 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
11812 if test "${ac_cv_type_int8_t+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815 cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h. */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 $ac_includes_default
11822 typedef int8_t ac__type_new_;
11823 int
11824 main ()
11825 {
11826 if ((ac__type_new_ *) 0)
11827 return 0;
11828 if (sizeof (ac__type_new_))
11829 return 0;
11830 ;
11831 return 0;
11832 }
11833 _ACEOF
11834 rm -f conftest.$ac_objext
11835 if { (ac_try="$ac_compile"
11836 case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11839 esac
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_compile") 2>conftest.er1
11842 ac_status=$?
11843 grep -v '^ *+' conftest.er1 >conftest.err
11844 rm -f conftest.er1
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } && {
11848 test -z "$ac_c_werror_flag" ||
11849 test ! -s conftest.err
11850 } && test -s conftest.$ac_objext; then
11851 ac_cv_type_int8_t=yes
11852 else
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11855
11856 ac_cv_type_int8_t=no
11857 fi
11858
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860 fi
11861 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11862 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
11863 if test $ac_cv_type_int8_t = yes; then
11864 :
11865 else
11866
11867 cat >>confdefs.h <<\_ACEOF
11868 #define int8_t signed char
11869 _ACEOF
11870
11871 fi
11872
11873 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
11874 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
11875 if test "${ac_cv_type_u_int8_t+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878 cat >conftest.$ac_ext <<_ACEOF
11879 /* confdefs.h. */
11880 _ACEOF
11881 cat confdefs.h >>conftest.$ac_ext
11882 cat >>conftest.$ac_ext <<_ACEOF
11883 /* end confdefs.h. */
11884 $ac_includes_default
11885 #ifdef HAVE_SYS_BITYPES_H
11886 #include <sys/bitypes.h>
11887 #endif
11888
11889 typedef u_int8_t ac__type_new_;
11890 int
11891 main ()
11892 {
11893 if ((ac__type_new_ *) 0)
11894 return 0;
11895 if (sizeof (ac__type_new_))
11896 return 0;
11897 ;
11898 return 0;
11899 }
11900 _ACEOF
11901 rm -f conftest.$ac_objext
11902 if { (ac_try="$ac_compile"
11903 case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906 esac
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_compile") 2>conftest.er1
11909 ac_status=$?
11910 grep -v '^ *+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } && {
11915 test -z "$ac_c_werror_flag" ||
11916 test ! -s conftest.err
11917 } && test -s conftest.$ac_objext; then
11918 ac_cv_type_u_int8_t=yes
11919 else
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11922
11923 ac_cv_type_u_int8_t=no
11924 fi
11925
11926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927 fi
11928 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
11929 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
11930 if test $ac_cv_type_u_int8_t = yes; then
11931 :
11932 else
11933
11934 cat >>confdefs.h <<\_ACEOF
11935 #define u_int8_t unsigned char
11936 _ACEOF
11937
11938 fi
11939
11940 { echo "$as_me:$LINENO: checking for int16_t" >&5
11941 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
11942 if test "${ac_cv_type_int16_t+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945 cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h. */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 $ac_includes_default
11952 typedef int16_t ac__type_new_;
11953 int
11954 main ()
11955 {
11956 if ((ac__type_new_ *) 0)
11957 return 0;
11958 if (sizeof (ac__type_new_))
11959 return 0;
11960 ;
11961 return 0;
11962 }
11963 _ACEOF
11964 rm -f conftest.$ac_objext
11965 if { (ac_try="$ac_compile"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969 esac
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_compile") 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } && {
11978 test -z "$ac_c_werror_flag" ||
11979 test ! -s conftest.err
11980 } && test -s conftest.$ac_objext; then
11981 ac_cv_type_int16_t=yes
11982 else
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11985
11986 ac_cv_type_int16_t=no
11987 fi
11988
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 fi
11991 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11992 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
11993 if test $ac_cv_type_int16_t = yes; then
11994 :
11995 else
11996
11997 cat >>confdefs.h <<\_ACEOF
11998 #define int16_t short
11999 _ACEOF
12000
12001 fi
12002
12003 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
12004 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
12005 if test "${ac_cv_type_u_int16_t+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12007 else
12008 cat >conftest.$ac_ext <<_ACEOF
12009 /* confdefs.h. */
12010 _ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12014 $ac_includes_default
12015 #ifdef HAVE_SYS_BITYPES_H
12016 #include <sys/bitypes.h>
12017 #endif
12018
12019 typedef u_int16_t ac__type_new_;
12020 int
12021 main ()
12022 {
12023 if ((ac__type_new_ *) 0)
12024 return 0;
12025 if (sizeof (ac__type_new_))
12026 return 0;
12027 ;
12028 return 0;
12029 }
12030 _ACEOF
12031 rm -f conftest.$ac_objext
12032 if { (ac_try="$ac_compile"
12033 case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036 esac
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_compile") 2>conftest.er1
12039 ac_status=$?
12040 grep -v '^ *+' conftest.er1 >conftest.err
12041 rm -f conftest.er1
12042 cat conftest.err >&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } && {
12045 test -z "$ac_c_werror_flag" ||
12046 test ! -s conftest.err
12047 } && test -s conftest.$ac_objext; then
12048 ac_cv_type_u_int16_t=yes
12049 else
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12052
12053 ac_cv_type_u_int16_t=no
12054 fi
12055
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 fi
12058 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
12059 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
12060 if test $ac_cv_type_u_int16_t = yes; then
12061 :
12062 else
12063
12064 cat >>confdefs.h <<\_ACEOF
12065 #define u_int16_t unsigned short
12066 _ACEOF
12067
12068 fi
12069
12070 { echo "$as_me:$LINENO: checking for int32_t" >&5
12071 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
12072 if test "${ac_cv_type_int32_t+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075 cat >conftest.$ac_ext <<_ACEOF
12076 /* confdefs.h. */
12077 _ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12081 $ac_includes_default
12082 typedef int32_t ac__type_new_;
12083 int
12084 main ()
12085 {
12086 if ((ac__type_new_ *) 0)
12087 return 0;
12088 if (sizeof (ac__type_new_))
12089 return 0;
12090 ;
12091 return 0;
12092 }
12093 _ACEOF
12094 rm -f conftest.$ac_objext
12095 if { (ac_try="$ac_compile"
12096 case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099 esac
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_compile") 2>conftest.er1
12102 ac_status=$?
12103 grep -v '^ *+' conftest.er1 >conftest.err
12104 rm -f conftest.er1
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } && {
12108 test -z "$ac_c_werror_flag" ||
12109 test ! -s conftest.err
12110 } && test -s conftest.$ac_objext; then
12111 ac_cv_type_int32_t=yes
12112 else
12113 echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12115
12116 ac_cv_type_int32_t=no
12117 fi
12118
12119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12120 fi
12121 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12122 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
12123 if test $ac_cv_type_int32_t = yes; then
12124 :
12125 else
12126
12127 cat >>confdefs.h <<\_ACEOF
12128 #define int32_t int
12129 _ACEOF
12130
12131 fi
12132
12133 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
12134 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
12135 if test "${ac_cv_type_u_int32_t+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 else
12138 cat >conftest.$ac_ext <<_ACEOF
12139 /* confdefs.h. */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12144 $ac_includes_default
12145 #ifdef HAVE_SYS_BITYPES_H
12146 #include <sys/bitypes.h>
12147 #endif
12148
12149 typedef u_int32_t ac__type_new_;
12150 int
12151 main ()
12152 {
12153 if ((ac__type_new_ *) 0)
12154 return 0;
12155 if (sizeof (ac__type_new_))
12156 return 0;
12157 ;
12158 return 0;
12159 }
12160 _ACEOF
12161 rm -f conftest.$ac_objext
12162 if { (ac_try="$ac_compile"
12163 case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166 esac
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_compile") 2>conftest.er1
12169 ac_status=$?
12170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } && {
12175 test -z "$ac_c_werror_flag" ||
12176 test ! -s conftest.err
12177 } && test -s conftest.$ac_objext; then
12178 ac_cv_type_u_int32_t=yes
12179 else
12180 echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12182
12183 ac_cv_type_u_int32_t=no
12184 fi
12185
12186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12187 fi
12188 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12189 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
12190 if test $ac_cv_type_u_int32_t = yes; then
12191 :
12192 else
12193
12194 cat >>confdefs.h <<\_ACEOF
12195 #define u_int32_t unsigned int
12196 _ACEOF
12197
12198 fi
12199
12200 { echo "$as_me:$LINENO: checking for int64_t" >&5
12201 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12202 if test "${ac_cv_type_int64_t+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 else
12205 cat >conftest.$ac_ext <<_ACEOF
12206 /* confdefs.h. */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12211 $ac_includes_default
12212 typedef int64_t ac__type_new_;
12213 int
12214 main ()
12215 {
12216 if ((ac__type_new_ *) 0)
12217 return 0;
12218 if (sizeof (ac__type_new_))
12219 return 0;
12220 ;
12221 return 0;
12222 }
12223 _ACEOF
12224 rm -f conftest.$ac_objext
12225 if { (ac_try="$ac_compile"
12226 case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12229 esac
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_compile") 2>conftest.er1
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } && {
12238 test -z "$ac_c_werror_flag" ||
12239 test ! -s conftest.err
12240 } && test -s conftest.$ac_objext; then
12241 ac_cv_type_int64_t=yes
12242 else
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12245
12246 ac_cv_type_int64_t=no
12247 fi
12248
12249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12250 fi
12251 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12252 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12253 if test $ac_cv_type_int64_t = yes; then
12254 :
12255 else
12256
12257 cat >>confdefs.h <<\_ACEOF
12258 #define int64_t long long
12259 _ACEOF
12260
12261 fi
12262
12263 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
12264 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
12265 if test "${ac_cv_type_u_int64_t+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268 cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h. */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12274 $ac_includes_default
12275 #ifdef HAVE_SYS_BITYPES_H
12276 #include <sys/bitypes.h>
12277 #endif
12278
12279 typedef u_int64_t ac__type_new_;
12280 int
12281 main ()
12282 {
12283 if ((ac__type_new_ *) 0)
12284 return 0;
12285 if (sizeof (ac__type_new_))
12286 return 0;
12287 ;
12288 return 0;
12289 }
12290 _ACEOF
12291 rm -f conftest.$ac_objext
12292 if { (ac_try="$ac_compile"
12293 case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12296 esac
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_compile") 2>conftest.er1
12299 ac_status=$?
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } && {
12305 test -z "$ac_c_werror_flag" ||
12306 test ! -s conftest.err
12307 } && test -s conftest.$ac_objext; then
12308 ac_cv_type_u_int64_t=yes
12309 else
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313 ac_cv_type_u_int64_t=no
12314 fi
12315
12316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12317 fi
12318 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12319 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
12320 if test $ac_cv_type_u_int64_t = yes; then
12321 :
12322 else
12323
12324 cat >>confdefs.h <<\_ACEOF
12325 #define u_int64_t unsigned long long
12326 _ACEOF
12327
12328 fi
12329
12330
12331 #
12332 # We can't just check for <inttypes.h> - some systems have one that
12333 # doesn't define all the PRI[doxu]64 macros.
12334 #
12335
12336 for ac_header in inttypes.h
12337 do
12338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 fi
12345 ac_res=`eval echo '${'$as_ac_Header'}'`
12346 { echo "$as_me:$LINENO: result: $ac_res" >&5
12347 echo "${ECHO_T}$ac_res" >&6; }
12348 else
12349 # Is the header compilable?
12350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12352 cat >conftest.$ac_ext <<_ACEOF
12353 /* confdefs.h. */
12354 _ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h. */
12358 $ac_includes_default
12359 #include <$ac_header>
12360 _ACEOF
12361 rm -f conftest.$ac_objext
12362 if { (ac_try="$ac_compile"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366 esac
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_compile") 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } && {
12375 test -z "$ac_c_werror_flag" ||
12376 test ! -s conftest.err
12377 } && test -s conftest.$ac_objext; then
12378 ac_header_compiler=yes
12379 else
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12382
12383 ac_header_compiler=no
12384 fi
12385
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12388 echo "${ECHO_T}$ac_header_compiler" >&6; }
12389
12390 # Is the header present?
12391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 #include <$ac_header>
12400 _ACEOF
12401 if { (ac_try="$ac_cpp conftest.$ac_ext"
12402 case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12405 esac
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12408 ac_status=$?
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } >/dev/null && {
12414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12415 test ! -s conftest.err
12416 }; then
12417 ac_header_preproc=yes
12418 else
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12421
12422 ac_header_preproc=no
12423 fi
12424
12425 rm -f conftest.err conftest.$ac_ext
12426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12427 echo "${ECHO_T}$ac_header_preproc" >&6; }
12428
12429 # So? What about this header?
12430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12431 yes:no: )
12432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12436 ac_header_preproc=yes
12437 ;;
12438 no:yes:* )
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12451
12452 ;;
12453 esac
12454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459 eval "$as_ac_Header=\$ac_header_preproc"
12460 fi
12461 ac_res=`eval echo '${'$as_ac_Header'}'`
12462 { echo "$as_me:$LINENO: result: $ac_res" >&5
12463 echo "${ECHO_T}$ac_res" >&6; }
12464
12465 fi
12466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12467 cat >>confdefs.h <<_ACEOF
12468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12469 _ACEOF
12470
12471 #
12472 # OK, we have inttypes.h, but does it define those macros?
12473 #
12474 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12475 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
12476 cat >conftest.$ac_ext <<_ACEOF
12477
12478 /* confdefs.h. */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12483
12484 #include <inttypes.h>
12485 #include <stdio.h>
12486 #include <sys/types.h>
12487 #ifdef HAVE_SYS_BITYPES_H
12488 #include <sys/bitypes.h>
12489 #endif
12490
12491 main()
12492 {
12493 printf("%" PRId64 "\n", (u_int64_t)1);
12494 printf("%" PRIo64 "\n", (u_int64_t)1);
12495 printf("%" PRIx64 "\n", (u_int64_t)1);
12496 printf("%" PRIu64 "\n", (u_int64_t)1);
12497 }
12498
12499
12500 _ACEOF
12501 rm -f conftest.$ac_objext
12502 if { (ac_try="$ac_compile"
12503 case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12506 esac
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_compile") 2>conftest.er1
12509 ac_status=$?
12510 grep -v '^ *+' conftest.er1 >conftest.err
12511 rm -f conftest.er1
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest.$ac_objext; then
12518
12519 { echo "$as_me:$LINENO: result: yes" >&5
12520 echo "${ECHO_T}yes" >&6; }
12521 ac_lbl_inttypes_h_defines_formats=yes
12522
12523 else
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12526
12527
12528 { echo "$as_me:$LINENO: result: no" >&5
12529 echo "${ECHO_T}no" >&6; }
12530 ac_lbl_inttypes_h_defines_formats=no
12531
12532 fi
12533
12534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12535
12536 else
12537
12538 #
12539 # We don't have inttypes.h, so it obviously can't define those
12540 # macros.
12541 #
12542 ac_lbl_inttypes_h_defines_formats=no
12543
12544 fi
12545
12546 done
12547
12548 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12549
12550 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12551 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12552 if test "$cross_compiling" = yes; then
12553 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12554 See \`config.log' for more details." >&5
12555 echo "$as_me: error: cannot run test program while cross compiling
12556 See \`config.log' for more details." >&2;}
12557 { (exit 1); exit 1; }; }
12558 else
12559 cat >conftest.$ac_ext <<_ACEOF
12560
12561 /* confdefs.h. */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566
12567 # ifdef HAVE_INTTYPES_H
12568 #include <inttypes.h>
12569 # endif
12570 # ifdef HAVE_SYS_BITYPES_H
12571 #include <sys/bitypes.h>
12572 # endif
12573 #include <stdio.h>
12574 #include <sys/types.h>
12575
12576 main()
12577 {
12578 u_int64_t t = 1;
12579 char strbuf[16+1];
12580 sprintf(strbuf, "%016lx", t << 32);
12581 if (strcmp(strbuf, "0000000100000000") == 0)
12582 exit(0);
12583 else
12584 exit(1);
12585 }
12586
12587
12588 _ACEOF
12589 rm -f conftest$ac_exeext
12590 if { (ac_try="$ac_link"
12591 case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594 esac
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_link") 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12600 { (case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_try") 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609
12610 cat >>confdefs.h <<\_ACEOF
12611 #define PRId64 "ld"
12612 _ACEOF
12613
12614 cat >>confdefs.h <<\_ACEOF
12615 #define PRIo64 "lo"
12616 _ACEOF
12617
12618 cat >>confdefs.h <<\_ACEOF
12619 #define PRIx64 "lx"
12620 _ACEOF
12621
12622 cat >>confdefs.h <<\_ACEOF
12623 #define PRIu64 "lu"
12624 _ACEOF
12625
12626 { echo "$as_me:$LINENO: result: yes" >&5
12627 echo "${ECHO_T}yes" >&6; }
12628
12629 else
12630 echo "$as_me: program exited with status $ac_status" >&5
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12633
12634 ( exit $ac_status )
12635
12636 { echo "$as_me:$LINENO: result: no" >&5
12637 echo "${ECHO_T}no" >&6; }
12638
12639
12640 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
12641 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
12642 if test "$cross_compiling" = yes; then
12643 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12644 See \`config.log' for more details." >&5
12645 echo "$as_me: error: cannot run test program while cross compiling
12646 See \`config.log' for more details." >&2;}
12647 { (exit 1); exit 1; }; }
12648 else
12649 cat >conftest.$ac_ext <<_ACEOF
12650
12651 /* confdefs.h. */
12652 _ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12656
12657 # ifdef HAVE_INTTYPES_H
12658 #include <inttypes.h>
12659 # endif
12660 # ifdef HAVE_SYS_BITYPES_H
12661 #include <sys/bitypes.h>
12662 # endif
12663 #include <stdio.h>
12664 #include <sys/types.h>
12665
12666 main()
12667 {
12668 u_int64_t t = 1;
12669 char strbuf[16+1];
12670 sprintf(strbuf, "%016llx", t << 32);
12671 if (strcmp(strbuf, "0000000100000000") == 0)
12672 exit(0);
12673 else
12674 exit(1);
12675 }
12676
12677
12678 _ACEOF
12679 rm -f conftest$ac_exeext
12680 if { (ac_try="$ac_link"
12681 case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684 esac
12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_link") 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12690 { (case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12693 esac
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_try") 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699
12700 cat >>confdefs.h <<\_ACEOF
12701 #define PRId64 "lld"
12702 _ACEOF
12703
12704 cat >>confdefs.h <<\_ACEOF
12705 #define PRIo64 "llo"
12706 _ACEOF
12707
12708 cat >>confdefs.h <<\_ACEOF
12709 #define PRIx64 "llx"
12710 _ACEOF
12711
12712 cat >>confdefs.h <<\_ACEOF
12713 #define PRIu64 "llu"
12714 _ACEOF
12715
12716 { echo "$as_me:$LINENO: result: yes" >&5
12717 echo "${ECHO_T}yes" >&6; }
12718
12719 else
12720 echo "$as_me: program exited with status $ac_status" >&5
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12723
12724 ( exit $ac_status )
12725
12726 { echo "$as_me:$LINENO: result: no" >&5
12727 echo "${ECHO_T}no" >&6; }
12728
12729
12730 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
12731 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12732 if test "$cross_compiling" = yes; then
12733 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12734 See \`config.log' for more details." >&5
12735 echo "$as_me: error: cannot run test program while cross compiling
12736 See \`config.log' for more details." >&2;}
12737 { (exit 1); exit 1; }; }
12738 else
12739 cat >conftest.$ac_ext <<_ACEOF
12740
12741 /* confdefs.h. */
12742 _ACEOF
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h. */
12746
12747 # ifdef HAVE_INTTYPES_H
12748 #include <inttypes.h>
12749 # endif
12750 # ifdef HAVE_SYS_BITYPES_H
12751 #include <sys/bitypes.h>
12752 # endif
12753 #include <stdio.h>
12754 #include <sys/types.h>
12755
12756 main()
12757 {
12758 u_int64_t t = 1;
12759 char strbuf[16+1];
12760 sprintf(strbuf, "%016Lx", t << 32);
12761 if (strcmp(strbuf, "0000000100000000") == 0)
12762 exit(0);
12763 else
12764 exit(1);
12765 }
12766
12767
12768 _ACEOF
12769 rm -f conftest$ac_exeext
12770 if { (ac_try="$ac_link"
12771 case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774 esac
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_link") 2>&5
12777 ac_status=$?
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12780 { (case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_try") 2>&5
12786 ac_status=$?
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; }; then
12789
12790 cat >>confdefs.h <<\_ACEOF
12791 #define PRId64 "Ld"
12792 _ACEOF
12793
12794 cat >>confdefs.h <<\_ACEOF
12795 #define PRIo64 "Lo"
12796 _ACEOF
12797
12798 cat >>confdefs.h <<\_ACEOF
12799 #define PRIx64 "Lx"
12800 _ACEOF
12801
12802 cat >>confdefs.h <<\_ACEOF
12803 #define PRIu64 "Lu"
12804 _ACEOF
12805
12806 { echo "$as_me:$LINENO: result: yes" >&5
12807 echo "${ECHO_T}yes" >&6; }
12808
12809 else
12810 echo "$as_me: program exited with status $ac_status" >&5
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12813
12814 ( exit $ac_status )
12815
12816 { echo "$as_me:$LINENO: result: no" >&5
12817 echo "${ECHO_T}no" >&6; }
12818
12819
12820 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
12821 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
12822 if test "$cross_compiling" = yes; then
12823 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12824 See \`config.log' for more details." >&5
12825 echo "$as_me: error: cannot run test program while cross compiling
12826 See \`config.log' for more details." >&2;}
12827 { (exit 1); exit 1; }; }
12828 else
12829 cat >conftest.$ac_ext <<_ACEOF
12830
12831 /* confdefs.h. */
12832 _ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h. */
12836
12837 # ifdef HAVE_INTTYPES_H
12838 #include <inttypes.h>
12839 # endif
12840 # ifdef HAVE_SYS_BITYPES_H
12841 #include <sys/bitypes.h>
12842 # endif
12843 #include <stdio.h>
12844 #include <sys/types.h>
12845
12846 main()
12847 {
12848 u_int64_t t = 1;
12849 char strbuf[16+1];
12850 sprintf(strbuf, "%016qx", t << 32);
12851 if (strcmp(strbuf, "0000000100000000") == 0)
12852 exit(0);
12853 else
12854 exit(1);
12855 }
12856
12857
12858 _ACEOF
12859 rm -f conftest$ac_exeext
12860 if { (ac_try="$ac_link"
12861 case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12864 esac
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_link") 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12870 { (case "(($ac_try" in
12871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12873 esac
12874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12875 (eval "$ac_try") 2>&5
12876 ac_status=$?
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12879
12880 cat >>confdefs.h <<\_ACEOF
12881 #define PRId64 "qd"
12882 _ACEOF
12883
12884 cat >>confdefs.h <<\_ACEOF
12885 #define PRIo64 "qo"
12886 _ACEOF
12887
12888 cat >>confdefs.h <<\_ACEOF
12889 #define PRIx64 "qx"
12890 _ACEOF
12891
12892 cat >>confdefs.h <<\_ACEOF
12893 #define PRIu64 "qu"
12894 _ACEOF
12895
12896 { echo "$as_me:$LINENO: result: yes" >&5
12897 echo "${ECHO_T}yes" >&6; }
12898
12899 else
12900 echo "$as_me: program exited with status $ac_status" >&5
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12903
12904 ( exit $ac_status )
12905
12906 { echo "$as_me:$LINENO: result: no" >&5
12907 echo "${ECHO_T}no" >&6; }
12908
12909 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
12910 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
12911 { (exit 1); exit 1; }; }
12912
12913
12914 fi
12915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12916 fi
12917
12918
12919
12920
12921
12922 fi
12923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12924 fi
12925
12926
12927
12928
12929
12930 fi
12931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12932 fi
12933
12934
12935
12936
12937
12938 fi
12939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12940 fi
12941
12942
12943
12944 fi
12945
12946 if test -n "$ac_tool_prefix"; then
12947 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12948 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12951 if test "${ac_cv_prog_RANLIB+set}" = set; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 else
12954 if test -n "$RANLIB"; then
12955 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12956 else
12957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12958 for as_dir in $PATH
12959 do
12960 IFS=$as_save_IFS
12961 test -z "$as_dir" && as_dir=.
12962 for ac_exec_ext in '' $ac_executable_extensions; do
12963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12964 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12966 break 2
12967 fi
12968 done
12969 done
12970 IFS=$as_save_IFS
12971
12972 fi
12973 fi
12974 RANLIB=$ac_cv_prog_RANLIB
12975 if test -n "$RANLIB"; then
12976 { echo "$as_me:$LINENO: result: $RANLIB" >&5
12977 echo "${ECHO_T}$RANLIB" >&6; }
12978 else
12979 { echo "$as_me:$LINENO: result: no" >&5
12980 echo "${ECHO_T}no" >&6; }
12981 fi
12982
12983
12984 fi
12985 if test -z "$ac_cv_prog_RANLIB"; then
12986 ac_ct_RANLIB=$RANLIB
12987 # Extract the first word of "ranlib", so it can be a program name with args.
12988 set dummy ranlib; ac_word=$2
12989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12991 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12993 else
12994 if test -n "$ac_ct_RANLIB"; then
12995 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12996 else
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
12999 do
13000 IFS=$as_save_IFS
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
13003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13004 ac_cv_prog_ac_ct_RANLIB="ranlib"
13005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 break 2
13007 fi
13008 done
13009 done
13010 IFS=$as_save_IFS
13011
13012 fi
13013 fi
13014 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13015 if test -n "$ac_ct_RANLIB"; then
13016 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13017 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13018 else
13019 { echo "$as_me:$LINENO: result: no" >&5
13020 echo "${ECHO_T}no" >&6; }
13021 fi
13022
13023 if test "x$ac_ct_RANLIB" = x; then
13024 RANLIB=":"
13025 else
13026 case $cross_compiling:$ac_tool_warned in
13027 yes:)
13028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13029 whose name does not start with the host triplet. If you think this
13030 configuration is useful to you, please write to autoconf@gnu.org." >&5
13031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13032 whose name does not start with the host triplet. If you think this
13033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13034 ac_tool_warned=yes ;;
13035 esac
13036 RANLIB=$ac_ct_RANLIB
13037 fi
13038 else
13039 RANLIB="$ac_cv_prog_RANLIB"
13040 fi
13041
13042
13043 rm -f os-proto.h
13044 if test "${LBL_CFLAGS+set}" = set; then
13045 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
13046 fi
13047 if test -f .devel ; then
13048 if test "$GCC" = yes ; then
13049 if test "${LBL_CFLAGS+set}" != set; then
13050 if test "$ac_cv_prog_cc_g" = yes ; then
13051 V_CCOPT="-g $V_CCOPT"
13052 fi
13053 V_CCOPT="$V_CCOPT -Wall"
13054 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
13055 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
13056 fi
13057 fi
13058 else
13059 case "$host_os" in
13060
13061 irix6*)
13062 V_CCOPT="$V_CCOPT -n32"
13063 ;;
13064
13065 *)
13066 ;;
13067 esac
13068 fi
13069 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
13070 name="lbl/os-$os.h"
13071 if test -f $name ; then
13072 ln -s $name os-proto.h
13073 cat >>confdefs.h <<\_ACEOF
13074 #define HAVE_OS_PROTO_H 1
13075 _ACEOF
13076
13077 else
13078 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
13079 echo "$as_me: WARNING: can't find $name" >&2;}
13080 fi
13081 fi
13082
13083 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
13084 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
13085 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094
13095 # include <sys/types.h>
13096 # include <sys/socket.h>
13097 int
13098 main ()
13099 {
13100 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
13101 ;
13102 return 0;
13103 }
13104 _ACEOF
13105 rm -f conftest.$ac_objext
13106 if { (ac_try="$ac_compile"
13107 case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110 esac
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_compile") 2>conftest.er1
13113 ac_status=$?
13114 grep -v '^ *+' conftest.er1 >conftest.err
13115 rm -f conftest.er1
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } && {
13119 test -z "$ac_c_werror_flag" ||
13120 test ! -s conftest.err
13121 } && test -s conftest.$ac_objext; then
13122 ac_cv_lbl_sockaddr_has_sa_len=yes
13123 else
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13126
13127 ac_cv_lbl_sockaddr_has_sa_len=no
13128 fi
13129
13130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 fi
13132
13133 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
13134 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
13135 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
13136 cat >>confdefs.h <<\_ACEOF
13137 #define HAVE_SOCKADDR_SA_LEN 1
13138 _ACEOF
13139
13140 fi
13141
13142 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
13143 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
13144 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147 case "$host_cpu" in
13148
13149 #
13150 # These are CPU types where:
13151 #
13152 # the CPU faults on an unaligned access, but at least some
13153 # OSes that support that CPU catch the fault and simulate
13154 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
13155 # the simulation is slow, so we don't want to use it;
13156 #
13157 # the CPU, I infer (from the old
13158 #
13159 # XXX: should also check that they don't do weird things (like on arm)
13160 #
13161 # comment) doesn't fault on unaligned accesses, but doesn't
13162 # do a normal unaligned fetch, either (e.g., presumably, ARM);
13163 #
13164 # for whatever reason, the test program doesn't work
13165 # (this has been claimed to be the case for several of those
13166 # CPUs - I don't know what the problem is; the problem
13167 # was reported as "the test program dumps core" for SuperH,
13168 # but that's what the test program is *supposed* to do -
13169 # it dumps core before it writes anything, so the test
13170 # for an empty output file should find an empty output
13171 # file and conclude that unaligned accesses don't work).
13172 #
13173 # This run-time test won't work if you're cross-compiling, so
13174 # in order to support cross-compiling for a particular CPU,
13175 # we have to wire in the list of CPU types anyway, as far as
13176 # I know, so perhaps we should just have a set of CPUs on
13177 # which we know it doesn't work, a set of CPUs on which we
13178 # know it does work, and have the script just fail on other
13179 # cpu types and update it when such a failure occurs.
13180 #
13181 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13182 ac_cv_lbl_unaligned_fail=yes
13183 ;;
13184
13185 *)
13186 cat >conftest.c <<EOF
13187 # include <sys/types.h>
13188 # include <sys/wait.h>
13189 # include <stdio.h>
13190 unsigned char a[5] = { 1, 2, 3, 4, 5 };
13191 main() {
13192 unsigned int i;
13193 pid_t pid;
13194 int status;
13195 /* avoid "core dumped" message */
13196 pid = fork();
13197 if (pid < 0)
13198 exit(2);
13199 if (pid > 0) {
13200 /* parent */
13201 pid = waitpid(pid, &status, 0);
13202 if (pid < 0)
13203 exit(3);
13204 exit(!WIFEXITED(status));
13205 }
13206 /* child */
13207 i = *(unsigned int *)&a[1];
13208 printf("%d\n", i);
13209 exit(0);
13210 }
13211 EOF
13212 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13213 conftest.c $LIBS >/dev/null 2>&1
13214 if test ! -x conftest ; then
13215 ac_cv_lbl_unaligned_fail=yes
13216 else
13217 ./conftest >conftest.out
13218 if test ! -s conftest.out ; then
13219 ac_cv_lbl_unaligned_fail=yes
13220 else
13221 ac_cv_lbl_unaligned_fail=no
13222 fi
13223 fi
13224 rm -f conftest* core core.conftest
13225 ;;
13226 esac
13227 fi
13228
13229 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
13230 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
13231 if test $ac_cv_lbl_unaligned_fail = yes ; then
13232 cat >>confdefs.h <<\_ACEOF
13233 #define LBL_ALIGN 1
13234 _ACEOF
13235
13236 fi
13237
13238
13239 { echo "$as_me:$LINENO: checking for h_errno" >&5
13240 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
13241 if test "${ac_cv_var_h_errno+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244 cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h. */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250
13251 # include <sys/types.h>
13252 # include <netdb.h>
13253 int
13254 main ()
13255 {
13256 int foo = h_errno;
13257 ;
13258 return 0;
13259 }
13260 _ACEOF
13261 rm -f conftest.$ac_objext
13262 if { (ac_try="$ac_compile"
13263 case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13266 esac
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_compile") 2>conftest.er1
13269 ac_status=$?
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } && {
13275 test -z "$ac_c_werror_flag" ||
13276 test ! -s conftest.err
13277 } && test -s conftest.$ac_objext; then
13278 ac_cv_var_h_errno=yes
13279 else
13280 echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13282
13283 ac_cv_var_h_errno=no
13284 fi
13285
13286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13287 fi
13288
13289 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
13290 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
13291 if test "$ac_cv_var_h_errno" = "yes"; then
13292 cat >>confdefs.h <<\_ACEOF
13293 #define HAVE_H_ERRNO 1
13294 _ACEOF
13295
13296 fi
13297
13298
13299 # Check for SSLeay
13300 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
13301 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
13302 # Specify location for both includes and libraries.
13303 want_libcrypto=youmama
13304
13305 # Check whether --with-crypto was given.
13306 if test "${with_crypto+set}" = set; then
13307 withval=$with_crypto;
13308 if test $withval = no
13309 then
13310 want_libcrypto=no
13311 { echo "$as_me:$LINENO: result: no" >&5
13312 echo "${ECHO_T}no" >&6; }
13313 elif test $withval = yes
13314 then
13315 want_libcrypto=yes
13316 { echo "$as_me:$LINENO: result: yes" >&5
13317 echo "${ECHO_T}yes" >&6; }
13318 else
13319 want_libcrypto=yes
13320 { echo "$as_me:$LINENO: result: yes" >&5
13321 echo "${ECHO_T}yes" >&6; }
13322 crypto_dir=$withval
13323 fi
13324
13325 else
13326
13327 #
13328 # Use libcrypto if it's present, otherwise don't.
13329 #
13330 want_libcrypto=ifavailable
13331 { echo "$as_me:$LINENO: result: yes, if available" >&5
13332 echo "${ECHO_T}yes, if available" >&6; }
13333
13334 fi
13335
13336 if test "$want_libcrypto" != "no"; then
13337 ac_cv_ssleay_path=no
13338 incdir=no
13339 if test "x$crypto_dir" = x; then
13340 #
13341 # Location not specified; check the default locations.
13342 #
13343 { echo "$as_me:$LINENO: checking where SSLeay is located" >&5
13344 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
13345 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
13346 if test "x${host_alias}" != x; then
13347 dirs="/usr/${host_alias} $dirs"
13348 fi
13349 for dir in $dirs; do
13350
13351 #
13352 # XXX - is there a better way to check if a given library is
13353 # in a given directory than checking each of the possible
13354 # shared library suffixes?
13355 #
13356 # Are there any other suffixes we need to look for? Do we
13357 # have to worry about ".so.{version}"?
13358 #
13359 # Or should we just look for "libcrypto.*"?
13360 #
13361 if test -d "$dir/lib" -a \( -f "$dir/lib/libcrypto.a" -o \
13362 -f "$dir/lib/libcrypto.so" -o \
13363 -f "$dir/lib/libcrypto.sl" -o \
13364 -f "$dir/lib/libcrypto.dylib" \); then
13365 ac_cv_ssleay_path="$dir"
13366 fi
13367
13368 #
13369 # Make sure we have the headers as well.
13370 #
13371 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
13372 incdir="-I$dir/include"
13373 fi
13374
13375
13376 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
13377 break;
13378 else
13379 ac_cv_ssleay_path=no
13380 incdir=no
13381 fi
13382 done
13383 if test "$ac_cv_ssleay_path" != no; then
13384 { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
13385 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
13386 fi
13387 else
13388 { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
13389 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
13390
13391 #
13392 # XXX - is there a better way to check if a given library is
13393 # in a given directory than checking each of the possible
13394 # shared library suffixes?
13395 #
13396 # Are there any other suffixes we need to look for? Do we
13397 # have to worry about ".so.{version}"?
13398 #
13399 # Or should we just look for "libcrypto.*"?
13400 #
13401 if test -d "$crypto_dir/lib" -a \( -f "$crypto_dir/lib/libcrypto.a" -o \
13402 -f "$crypto_dir/lib/libcrypto.so" -o \
13403 -f "$crypto_dir/lib/libcrypto.sl" -o \
13404 -f "$crypto_dir/lib/libcrypto.dylib" \); then
13405 ac_cv_ssleay_path="$crypto_dir"
13406 fi
13407
13408 #
13409 # Make sure we have the headers as well.
13410 #
13411 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
13412 incdir="-I$crypto_dir/include"
13413 fi
13414
13415 if test "$ac_cv_ssleay_path" != no; then
13416 { echo "$as_me:$LINENO: result: found" >&5
13417 echo "${ECHO_T}found" >&6; }
13418 fi
13419 fi
13420 if test "$ac_cv_ssleay_path" != no; then
13421 V_INCLS="$V_INCLS $incdir"
13422 LDFLAGS="-L$dir/lib $LDFLAGS"
13423 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
13424 LIBS="$LIBS -lRSAglue"
13425 fi
13426 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
13427 LIBS="$LIBS -lrsaref"
13428 fi
13429
13430 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
13431 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
13432 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 else
13435 ac_check_lib_save_LIBS=$LIBS
13436 LIBS="-lcrypto $LIBS"
13437 cat >conftest.$ac_ext <<_ACEOF
13438 /* confdefs.h. */
13439 _ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h. */
13443
13444 /* Override any GCC internal prototype to avoid an error.
13445 Use char because int might match the return type of a GCC
13446 builtin and then its argument prototype would still apply. */
13447 #ifdef __cplusplus
13448 extern "C"
13449 #endif
13450 char DES_cbc_encrypt ();
13451 int
13452 main ()
13453 {
13454 return DES_cbc_encrypt ();
13455 ;
13456 return 0;
13457 }
13458 _ACEOF
13459 rm -f conftest.$ac_objext conftest$ac_exeext
13460 if { (ac_try="$ac_link"
13461 case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13464 esac
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_link") 2>conftest.er1
13467 ac_status=$?
13468 grep -v '^ *+' conftest.er1 >conftest.err
13469 rm -f conftest.er1
13470 cat conftest.err >&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } && {
13473 test -z "$ac_c_werror_flag" ||
13474 test ! -s conftest.err
13475 } && test -s conftest$ac_exeext &&
13476 $as_test_x conftest$ac_exeext; then
13477 ac_cv_lib_crypto_DES_cbc_encrypt=yes
13478 else
13479 echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13481
13482 ac_cv_lib_crypto_DES_cbc_encrypt=no
13483 fi
13484
13485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13486 conftest$ac_exeext conftest.$ac_ext
13487 LIBS=$ac_check_lib_save_LIBS
13488 fi
13489 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13490 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13491 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13492 cat >>confdefs.h <<_ACEOF
13493 #define HAVE_LIBCRYPTO 1
13494 _ACEOF
13495
13496 LIBS="-lcrypto $LIBS"
13497
13498 fi
13499
13500
13501 CPPFLAGS="$CPPFLAGS $V_INCLS"
13502
13503 for ac_header in openssl/evp.h
13504 do
13505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 fi
13512 ac_res=`eval echo '${'$as_ac_Header'}'`
13513 { echo "$as_me:$LINENO: result: $ac_res" >&5
13514 echo "${ECHO_T}$ac_res" >&6; }
13515 else
13516 # Is the header compilable?
13517 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13519 cat >conftest.$ac_ext <<_ACEOF
13520 /* confdefs.h. */
13521 _ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 $ac_includes_default
13526 #include <$ac_header>
13527 _ACEOF
13528 rm -f conftest.$ac_objext
13529 if { (ac_try="$ac_compile"
13530 case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13533 esac
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_compile") 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } && {
13542 test -z "$ac_c_werror_flag" ||
13543 test ! -s conftest.err
13544 } && test -s conftest.$ac_objext; then
13545 ac_header_compiler=yes
13546 else
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13549
13550 ac_header_compiler=no
13551 fi
13552
13553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13555 echo "${ECHO_T}$ac_header_compiler" >&6; }
13556
13557 # Is the header present?
13558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13560 cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h. */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566 #include <$ac_header>
13567 _ACEOF
13568 if { (ac_try="$ac_cpp conftest.$ac_ext"
13569 case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13572 esac
13573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } >/dev/null && {
13581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13582 test ! -s conftest.err
13583 }; then
13584 ac_header_preproc=yes
13585 else
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589 ac_header_preproc=no
13590 fi
13591
13592 rm -f conftest.err conftest.$ac_ext
13593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13594 echo "${ECHO_T}$ac_header_preproc" >&6; }
13595
13596 # So? What about this header?
13597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13598 yes:no: )
13599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13603 ac_header_preproc=yes
13604 ;;
13605 no:yes:* )
13606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13618
13619 ;;
13620 esac
13621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13625 else
13626 eval "$as_ac_Header=\$ac_header_preproc"
13627 fi
13628 ac_res=`eval echo '${'$as_ac_Header'}'`
13629 { echo "$as_me:$LINENO: result: $ac_res" >&5
13630 echo "${ECHO_T}$ac_res" >&6; }
13631
13632 fi
13633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13634 cat >>confdefs.h <<_ACEOF
13635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13636 _ACEOF
13637
13638 fi
13639
13640 done
13641
13642 else
13643 #
13644 # Not found. Did the user explicitly ask for it?
13645 #
13646 { echo "$as_me:$LINENO: result: not found" >&5
13647 echo "${ECHO_T}not found" >&6; }
13648 if test "$want_libcrypto" = yes; then
13649 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
13650 echo "$as_me: error: SSLeay not found" >&2;}
13651 { (exit 1); exit 1; }; }
13652 fi
13653 fi
13654 fi
13655
13656 if test "$missing_includes" = "yes"; then
13657 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
13658 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
13659 fi
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670 # Find a good install program. We prefer a C program (faster),
13671 # so one script is as good as another. But avoid the broken or
13672 # incompatible versions:
13673 # SysV /etc/install, /usr/sbin/install
13674 # SunOS /usr/etc/install
13675 # IRIX /sbin/install
13676 # AIX /bin/install
13677 # AmigaOS /C/install, which installs bootblocks on floppy discs
13678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13681 # OS/2's system install, which has a completely different semantic
13682 # ./install, which can be erroneously created by make from ./install.sh.
13683 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13684 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
13685 if test -z "$INSTALL"; then
13686 if test "${ac_cv_path_install+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13690 for as_dir in $PATH
13691 do
13692 IFS=$as_save_IFS
13693 test -z "$as_dir" && as_dir=.
13694 # Account for people who put trailing slashes in PATH elements.
13695 case $as_dir/ in
13696 ./ | .// | /cC/* | \
13697 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13698 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13699 /usr/ucb/* ) ;;
13700 *)
13701 # OSF1 and SCO ODT 3.0 have their own names for install.
13702 # Don't use installbsd from OSF since it installs stuff as root
13703 # by default.
13704 for ac_prog in ginstall scoinst install; do
13705 for ac_exec_ext in '' $ac_executable_extensions; do
13706 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13707 if test $ac_prog = install &&
13708 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13709 # AIX install. It has an incompatible calling convention.
13710 :
13711 elif test $ac_prog = install &&
13712 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13713 # program-specific install script used by HP pwplus--don't use.
13714 :
13715 else
13716 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13717 break 3
13718 fi
13719 fi
13720 done
13721 done
13722 ;;
13723 esac
13724 done
13725 IFS=$as_save_IFS
13726
13727
13728 fi
13729 if test "${ac_cv_path_install+set}" = set; then
13730 INSTALL=$ac_cv_path_install
13731 else
13732 # As a last resort, use the slow shell script. Don't cache a
13733 # value for INSTALL within a source directory, because that will
13734 # break other packages using the cache if that directory is
13735 # removed, or if the value is a relative name.
13736 INSTALL=$ac_install_sh
13737 fi
13738 fi
13739 { echo "$as_me:$LINENO: result: $INSTALL" >&5
13740 echo "${ECHO_T}$INSTALL" >&6; }
13741
13742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13743 # It thinks the first close brace ends the variable substitution.
13744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13745
13746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13747
13748 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13749
13750
13751 ac_config_headers="$ac_config_headers config.h"
13752
13753
13754 ac_config_commands="$ac_config_commands default-1"
13755
13756 ac_config_files="$ac_config_files Makefile tcpdump.1"
13757
13758 cat >confcache <<\_ACEOF
13759 # This file is a shell script that caches the results of configure
13760 # tests run on this system so they can be shared between configure
13761 # scripts and configure runs, see configure's option --config-cache.
13762 # It is not useful on other systems. If it contains results you don't
13763 # want to keep, you may remove or edit it.
13764 #
13765 # config.status only pays attention to the cache file if you give it
13766 # the --recheck option to rerun configure.
13767 #
13768 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13769 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13770 # following values.
13771
13772 _ACEOF
13773
13774 # The following way of writing the cache mishandles newlines in values,
13775 # but we know of no workaround that is simple, portable, and efficient.
13776 # So, we kill variables containing newlines.
13777 # Ultrix sh set writes to stderr and can't be redirected directly,
13778 # and sets the high bit in the cache file unless we assign to the vars.
13779 (
13780 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13781 eval ac_val=\$$ac_var
13782 case $ac_val in #(
13783 *${as_nl}*)
13784 case $ac_var in #(
13785 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13786 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13787 esac
13788 case $ac_var in #(
13789 _ | IFS | as_nl) ;; #(
13790 *) $as_unset $ac_var ;;
13791 esac ;;
13792 esac
13793 done
13794
13795 (set) 2>&1 |
13796 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13797 *${as_nl}ac_space=\ *)
13798 # `set' does not quote correctly, so add quotes (double-quote
13799 # substitution turns \\\\ into \\, and sed turns \\ into \).
13800 sed -n \
13801 "s/'/'\\\\''/g;
13802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13803 ;; #(
13804 *)
13805 # `set' quotes correctly as required by POSIX, so do not add quotes.
13806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13807 ;;
13808 esac |
13809 sort
13810 ) |
13811 sed '
13812 /^ac_cv_env_/b end
13813 t clear
13814 :clear
13815 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13816 t end
13817 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13818 :end' >>confcache
13819 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13820 if test -w "$cache_file"; then
13821 test "x$cache_file" != "x/dev/null" &&
13822 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13823 echo "$as_me: updating cache $cache_file" >&6;}
13824 cat confcache >$cache_file
13825 else
13826 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13827 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13828 fi
13829 fi
13830 rm -f confcache
13831
13832 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13833 # Let make expand exec_prefix.
13834 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13835
13836 DEFS=-DHAVE_CONFIG_H
13837
13838 ac_libobjs=
13839 ac_ltlibobjs=
13840 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13841 # 1. Remove the extension, and $U if already installed.
13842 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13843 ac_i=`echo "$ac_i" | sed "$ac_script"`
13844 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13845 # will be set to the directory where LIBOBJS objects are built.
13846 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13847 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13848 done
13849 LIBOBJS=$ac_libobjs
13850
13851 LTLIBOBJS=$ac_ltlibobjs
13852
13853
13854
13855 : ${CONFIG_STATUS=./config.status}
13856 ac_clean_files_save=$ac_clean_files
13857 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13858 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13859 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13860 cat >$CONFIG_STATUS <<_ACEOF
13861 #! $SHELL
13862 # Generated by $as_me.
13863 # Run this file to recreate the current configuration.
13864 # Compiler output produced by configure, useful for debugging
13865 # configure, is in config.log if it exists.
13866
13867 debug=false
13868 ac_cs_recheck=false
13869 ac_cs_silent=false
13870 SHELL=\${CONFIG_SHELL-$SHELL}
13871 _ACEOF
13872
13873 cat >>$CONFIG_STATUS <<\_ACEOF
13874 ## --------------------- ##
13875 ## M4sh Initialization. ##
13876 ## --------------------- ##
13877
13878 # Be more Bourne compatible
13879 DUALCASE=1; export DUALCASE # for MKS sh
13880 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13881 emulate sh
13882 NULLCMD=:
13883 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13884 # is contrary to our usage. Disable this feature.
13885 alias -g '${1+"$@"}'='"$@"'
13886 setopt NO_GLOB_SUBST
13887 else
13888 case `(set -o) 2>/dev/null` in
13889 *posix*) set -o posix ;;
13890 esac
13891
13892 fi
13893
13894
13895
13896
13897 # PATH needs CR
13898 # Avoid depending upon Character Ranges.
13899 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13900 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13901 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13902 as_cr_digits='0123456789'
13903 as_cr_alnum=$as_cr_Letters$as_cr_digits
13904
13905 # The user is always right.
13906 if test "${PATH_SEPARATOR+set}" != set; then
13907 echo "#! /bin/sh" >conf$$.sh
13908 echo "exit 0" >>conf$$.sh
13909 chmod +x conf$$.sh
13910 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13911 PATH_SEPARATOR=';'
13912 else
13913 PATH_SEPARATOR=:
13914 fi
13915 rm -f conf$$.sh
13916 fi
13917
13918 # Support unset when possible.
13919 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13920 as_unset=unset
13921 else
13922 as_unset=false
13923 fi
13924
13925
13926 # IFS
13927 # We need space, tab and new line, in precisely that order. Quoting is
13928 # there to prevent editors from complaining about space-tab.
13929 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13930 # splitting by setting IFS to empty value.)
13931 as_nl='
13932 '
13933 IFS=" "" $as_nl"
13934
13935 # Find who we are. Look in the path if we contain no directory separator.
13936 case $0 in
13937 *[\\/]* ) as_myself=$0 ;;
13938 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13940 do
13941 IFS=$as_save_IFS
13942 test -z "$as_dir" && as_dir=.
13943 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13944 done
13945 IFS=$as_save_IFS
13946
13947 ;;
13948 esac
13949 # We did not find ourselves, most probably we were run as `sh COMMAND'
13950 # in which case we are not to be found in the path.
13951 if test "x$as_myself" = x; then
13952 as_myself=$0
13953 fi
13954 if test ! -f "$as_myself"; then
13955 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13956 { (exit 1); exit 1; }
13957 fi
13958
13959 # Work around bugs in pre-3.0 UWIN ksh.
13960 for as_var in ENV MAIL MAILPATH
13961 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13962 done
13963 PS1='$ '
13964 PS2='> '
13965 PS4='+ '
13966
13967 # NLS nuisances.
13968 for as_var in \
13969 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13970 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13971 LC_TELEPHONE LC_TIME
13972 do
13973 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13974 eval $as_var=C; export $as_var
13975 else
13976 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13977 fi
13978 done
13979
13980 # Required to use basename.
13981 if expr a : '\(a\)' >/dev/null 2>&1 &&
13982 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13983 as_expr=expr
13984 else
13985 as_expr=false
13986 fi
13987
13988 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13989 as_basename=basename
13990 else
13991 as_basename=false
13992 fi
13993
13994
13995 # Name of the executable.
13996 as_me=`$as_basename -- "$0" ||
13997 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13998 X"$0" : 'X\(//\)$' \| \
13999 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14000 echo X/"$0" |
14001 sed '/^.*\/\([^/][^/]*\)\/*$/{
14002 s//\1/
14003 q
14004 }
14005 /^X\/\(\/\/\)$/{
14006 s//\1/
14007 q
14008 }
14009 /^X\/\(\/\).*/{
14010 s//\1/
14011 q
14012 }
14013 s/.*/./; q'`
14014
14015 # CDPATH.
14016 $as_unset CDPATH
14017
14018
14019
14020 as_lineno_1=$LINENO
14021 as_lineno_2=$LINENO
14022 test "x$as_lineno_1" != "x$as_lineno_2" &&
14023 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14024
14025 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14026 # uniformly replaced by the line number. The first 'sed' inserts a
14027 # line-number line after each line using $LINENO; the second 'sed'
14028 # does the real work. The second script uses 'N' to pair each
14029 # line-number line with the line containing $LINENO, and appends
14030 # trailing '-' during substitution so that $LINENO is not a special
14031 # case at line end.
14032 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14033 # scripts with optimization help from Paolo Bonzini. Blame Lee
14034 # E. McMahon (1931-1989) for sed's syntax. :-)
14035 sed -n '
14036 p
14037 /[$]LINENO/=
14038 ' <$as_myself |
14039 sed '
14040 s/[$]LINENO.*/&-/
14041 t lineno
14042 b
14043 :lineno
14044 N
14045 :loop
14046 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14047 t loop
14048 s/-\n.*//
14049 ' >$as_me.lineno &&
14050 chmod +x "$as_me.lineno" ||
14051 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14052 { (exit 1); exit 1; }; }
14053
14054 # Don't try to exec as it changes $[0], causing all sort of problems
14055 # (the dirname of $[0] is not the place where we might find the
14056 # original and so on. Autoconf is especially sensitive to this).
14057 . "./$as_me.lineno"
14058 # Exit status is that of the last command.
14059 exit
14060 }
14061
14062
14063 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14064 as_dirname=dirname
14065 else
14066 as_dirname=false
14067 fi
14068
14069 ECHO_C= ECHO_N= ECHO_T=
14070 case `echo -n x` in
14071 -n*)
14072 case `echo 'x\c'` in
14073 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14074 *) ECHO_C='\c';;
14075 esac;;
14076 *)
14077 ECHO_N='-n';;
14078 esac
14079
14080 if expr a : '\(a\)' >/dev/null 2>&1 &&
14081 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14082 as_expr=expr
14083 else
14084 as_expr=false
14085 fi
14086
14087 rm -f conf$$ conf$$.exe conf$$.file
14088 if test -d conf$$.dir; then
14089 rm -f conf$$.dir/conf$$.file
14090 else
14091 rm -f conf$$.dir
14092 mkdir conf$$.dir
14093 fi
14094 echo >conf$$.file
14095 if ln -s conf$$.file conf$$ 2>/dev/null; then
14096 as_ln_s='ln -s'
14097 # ... but there are two gotchas:
14098 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14099 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14100 # In both cases, we have to default to `cp -p'.
14101 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14102 as_ln_s='cp -p'
14103 elif ln conf$$.file conf$$ 2>/dev/null; then
14104 as_ln_s=ln
14105 else
14106 as_ln_s='cp -p'
14107 fi
14108 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14109 rmdir conf$$.dir 2>/dev/null
14110
14111 if mkdir -p . 2>/dev/null; then
14112 as_mkdir_p=:
14113 else
14114 test -d ./-p && rmdir ./-p
14115 as_mkdir_p=false
14116 fi
14117
14118 if test -x / >/dev/null 2>&1; then
14119 as_test_x='test -x'
14120 else
14121 if ls -dL / >/dev/null 2>&1; then
14122 as_ls_L_option=L
14123 else
14124 as_ls_L_option=
14125 fi
14126 as_test_x='
14127 eval sh -c '\''
14128 if test -d "$1"; then
14129 test -d "$1/.";
14130 else
14131 case $1 in
14132 -*)set "./$1";;
14133 esac;
14134 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14135 ???[sx]*):;;*)false;;esac;fi
14136 '\'' sh
14137 '
14138 fi
14139 as_executable_p=$as_test_x
14140
14141 # Sed expression to map a string onto a valid CPP name.
14142 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14143
14144 # Sed expression to map a string onto a valid variable name.
14145 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14146
14147
14148 exec 6>&1
14149
14150 # Save the log message, to keep $[0] and so on meaningful, and to
14151 # report actual input values of CONFIG_FILES etc. instead of their
14152 # values after options handling.
14153 ac_log="
14154 This file was extended by $as_me, which was
14155 generated by GNU Autoconf 2.61. Invocation command line was
14156
14157 CONFIG_FILES = $CONFIG_FILES
14158 CONFIG_HEADERS = $CONFIG_HEADERS
14159 CONFIG_LINKS = $CONFIG_LINKS
14160 CONFIG_COMMANDS = $CONFIG_COMMANDS
14161 $ $0 $@
14162
14163 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14164 "
14165
14166 _ACEOF
14167
14168 cat >>$CONFIG_STATUS <<_ACEOF
14169 # Files that config.status was made for.
14170 config_files="$ac_config_files"
14171 config_headers="$ac_config_headers"
14172 config_commands="$ac_config_commands"
14173
14174 _ACEOF
14175
14176 cat >>$CONFIG_STATUS <<\_ACEOF
14177 ac_cs_usage="\
14178 \`$as_me' instantiates files from templates according to the
14179 current configuration.
14180
14181 Usage: $0 [OPTIONS] [FILE]...
14182
14183 -h, --help print this help, then exit
14184 -V, --version print version number and configuration settings, then exit
14185 -q, --quiet do not print progress messages
14186 -d, --debug don't remove temporary files
14187 --recheck update $as_me by reconfiguring in the same conditions
14188 --file=FILE[:TEMPLATE]
14189 instantiate the configuration file FILE
14190 --header=FILE[:TEMPLATE]
14191 instantiate the configuration header FILE
14192
14193 Configuration files:
14194 $config_files
14195
14196 Configuration headers:
14197 $config_headers
14198
14199 Configuration commands:
14200 $config_commands
14201
14202 Report bugs to <bug-autoconf@gnu.org>."
14203
14204 _ACEOF
14205 cat >>$CONFIG_STATUS <<_ACEOF
14206 ac_cs_version="\\
14207 config.status
14208 configured by $0, generated by GNU Autoconf 2.61,
14209 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14210
14211 Copyright (C) 2006 Free Software Foundation, Inc.
14212 This config.status script is free software; the Free Software Foundation
14213 gives unlimited permission to copy, distribute and modify it."
14214
14215 ac_pwd='$ac_pwd'
14216 srcdir='$srcdir'
14217 INSTALL='$INSTALL'
14218 _ACEOF
14219
14220 cat >>$CONFIG_STATUS <<\_ACEOF
14221 # If no file are specified by the user, then we need to provide default
14222 # value. By we need to know if files were specified by the user.
14223 ac_need_defaults=:
14224 while test $# != 0
14225 do
14226 case $1 in
14227 --*=*)
14228 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14229 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14230 ac_shift=:
14231 ;;
14232 *)
14233 ac_option=$1
14234 ac_optarg=$2
14235 ac_shift=shift
14236 ;;
14237 esac
14238
14239 case $ac_option in
14240 # Handling of the options.
14241 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14242 ac_cs_recheck=: ;;
14243 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14244 echo "$ac_cs_version"; exit ;;
14245 --debug | --debu | --deb | --de | --d | -d )
14246 debug=: ;;
14247 --file | --fil | --fi | --f )
14248 $ac_shift
14249 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14250 ac_need_defaults=false;;
14251 --header | --heade | --head | --hea )
14252 $ac_shift
14253 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14254 ac_need_defaults=false;;
14255 --he | --h)
14256 # Conflict between --help and --header
14257 { echo "$as_me: error: ambiguous option: $1
14258 Try \`$0 --help' for more information." >&2
14259 { (exit 1); exit 1; }; };;
14260 --help | --hel | -h )
14261 echo "$ac_cs_usage"; exit ;;
14262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14263 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14264 ac_cs_silent=: ;;
14265
14266 # This is an error.
14267 -*) { echo "$as_me: error: unrecognized option: $1
14268 Try \`$0 --help' for more information." >&2
14269 { (exit 1); exit 1; }; } ;;
14270
14271 *) ac_config_targets="$ac_config_targets $1"
14272 ac_need_defaults=false ;;
14273
14274 esac
14275 shift
14276 done
14277
14278 ac_configure_extra_args=
14279
14280 if $ac_cs_silent; then
14281 exec 6>/dev/null
14282 ac_configure_extra_args="$ac_configure_extra_args --silent"
14283 fi
14284
14285 _ACEOF
14286 cat >>$CONFIG_STATUS <<_ACEOF
14287 if \$ac_cs_recheck; then
14288 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14289 CONFIG_SHELL=$SHELL
14290 export CONFIG_SHELL
14291 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14292 fi
14293
14294 _ACEOF
14295 cat >>$CONFIG_STATUS <<\_ACEOF
14296 exec 5>>config.log
14297 {
14298 echo
14299 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14300 ## Running $as_me. ##
14301 _ASBOX
14302 echo "$ac_log"
14303 } >&5
14304
14305 _ACEOF
14306 cat >>$CONFIG_STATUS <<_ACEOF
14307 #
14308 # INIT-COMMANDS
14309 #
14310
14311
14312 _ACEOF
14313
14314 cat >>$CONFIG_STATUS <<\_ACEOF
14315
14316 # Handling of arguments.
14317 for ac_config_target in $ac_config_targets
14318 do
14319 case $ac_config_target in
14320 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14321 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14322 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14323 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
14324
14325 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14326 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14327 { (exit 1); exit 1; }; };;
14328 esac
14329 done
14330
14331
14332 # If the user did not use the arguments to specify the items to instantiate,
14333 # then the envvar interface is used. Set only those that are not.
14334 # We use the long form for the default assignment because of an extremely
14335 # bizarre bug on SunOS 4.1.3.
14336 if $ac_need_defaults; then
14337 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14338 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14339 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14340 fi
14341
14342 # Have a temporary directory for convenience. Make it in the build tree
14343 # simply because there is no reason against having it here, and in addition,
14344 # creating and moving files from /tmp can sometimes cause problems.
14345 # Hook for its removal unless debugging.
14346 # Note that there is a small window in which the directory will not be cleaned:
14347 # after its creation but before its name has been assigned to `$tmp'.
14348 $debug ||
14349 {
14350 tmp=
14351 trap 'exit_status=$?
14352 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14353 ' 0
14354 trap '{ (exit 1); exit 1; }' 1 2 13 15
14355 }
14356 # Create a (secure) tmp directory for tmp files.
14357
14358 {
14359 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14360 test -n "$tmp" && test -d "$tmp"
14361 } ||
14362 {
14363 tmp=./conf$$-$RANDOM
14364 (umask 077 && mkdir "$tmp")
14365 } ||
14366 {
14367 echo "$me: cannot create a temporary directory in ." >&2
14368 { (exit 1); exit 1; }
14369 }
14370
14371 #
14372 # Set up the sed scripts for CONFIG_FILES section.
14373 #
14374
14375 # No need to generate the scripts if there are no CONFIG_FILES.
14376 # This happens for instance when ./config.status config.h
14377 if test -n "$CONFIG_FILES"; then
14378
14379 _ACEOF
14380
14381
14382
14383 ac_delim='%!_!# '
14384 for ac_last_try in false false false false false :; do
14385 cat >conf$$subs.sed <<_ACEOF
14386 SHELL!$SHELL$ac_delim
14387 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14388 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14389 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14390 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14391 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14392 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14393 exec_prefix!$exec_prefix$ac_delim
14394 prefix!$prefix$ac_delim
14395 program_transform_name!$program_transform_name$ac_delim
14396 bindir!$bindir$ac_delim
14397 sbindir!$sbindir$ac_delim
14398 libexecdir!$libexecdir$ac_delim
14399 datarootdir!$datarootdir$ac_delim
14400 datadir!$datadir$ac_delim
14401 sysconfdir!$sysconfdir$ac_delim
14402 sharedstatedir!$sharedstatedir$ac_delim
14403 localstatedir!$localstatedir$ac_delim
14404 includedir!$includedir$ac_delim
14405 oldincludedir!$oldincludedir$ac_delim
14406 docdir!$docdir$ac_delim
14407 infodir!$infodir$ac_delim
14408 htmldir!$htmldir$ac_delim
14409 dvidir!$dvidir$ac_delim
14410 pdfdir!$pdfdir$ac_delim
14411 psdir!$psdir$ac_delim
14412 libdir!$libdir$ac_delim
14413 localedir!$localedir$ac_delim
14414 mandir!$mandir$ac_delim
14415 DEFS!$DEFS$ac_delim
14416 ECHO_C!$ECHO_C$ac_delim
14417 ECHO_N!$ECHO_N$ac_delim
14418 ECHO_T!$ECHO_T$ac_delim
14419 LIBS!$LIBS$ac_delim
14420 build_alias!$build_alias$ac_delim
14421 host_alias!$host_alias$ac_delim
14422 target_alias!$target_alias$ac_delim
14423 build!$build$ac_delim
14424 build_cpu!$build_cpu$ac_delim
14425 build_vendor!$build_vendor$ac_delim
14426 build_os!$build_os$ac_delim
14427 host!$host$ac_delim
14428 host_cpu!$host_cpu$ac_delim
14429 host_vendor!$host_vendor$ac_delim
14430 host_os!$host_os$ac_delim
14431 SHLICC2!$SHLICC2$ac_delim
14432 CC!$CC$ac_delim
14433 CFLAGS!$CFLAGS$ac_delim
14434 LDFLAGS!$LDFLAGS$ac_delim
14435 CPPFLAGS!$CPPFLAGS$ac_delim
14436 ac_ct_CC!$ac_ct_CC$ac_delim
14437 EXEEXT!$EXEEXT$ac_delim
14438 OBJEXT!$OBJEXT$ac_delim
14439 CPP!$CPP$ac_delim
14440 GREP!$GREP$ac_delim
14441 EGREP!$EGREP$ac_delim
14442 LIBOBJS!$LIBOBJS$ac_delim
14443 RANLIB!$RANLIB$ac_delim
14444 V_CCOPT!$V_CCOPT$ac_delim
14445 V_DEFS!$V_DEFS$ac_delim
14446 V_GROUP!$V_GROUP$ac_delim
14447 V_INCLS!$V_INCLS$ac_delim
14448 V_PCAPDEP!$V_PCAPDEP$ac_delim
14449 LOCALSRC!$LOCALSRC$ac_delim
14450 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
14451 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
14452 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14453 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14454 INSTALL_DATA!$INSTALL_DATA$ac_delim
14455 LTLIBOBJS!$LTLIBOBJS$ac_delim
14456 _ACEOF
14457
14458 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 70; then
14459 break
14460 elif $ac_last_try; then
14461 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14462 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14463 { (exit 1); exit 1; }; }
14464 else
14465 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14466 fi
14467 done
14468
14469 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14470 if test -n "$ac_eof"; then
14471 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14472 ac_eof=`expr $ac_eof + 1`
14473 fi
14474
14475 cat >>$CONFIG_STATUS <<_ACEOF
14476 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14478 _ACEOF
14479 sed '
14480 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14481 s/^/s,@/; s/!/@,|#_!!_#|/
14482 :n
14483 t n
14484 s/'"$ac_delim"'$/,g/; t
14485 s/$/\\/; p
14486 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14487 ' >>$CONFIG_STATUS <conf$$subs.sed
14488 rm -f conf$$subs.sed
14489 cat >>$CONFIG_STATUS <<_ACEOF
14490 :end
14491 s/|#_!!_#|//g
14492 CEOF$ac_eof
14493 _ACEOF
14494
14495
14496 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14497 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14498 # trailing colons and then remove the whole line if VPATH becomes empty
14499 # (actually we leave an empty line to preserve line numbers).
14500 if test "x$srcdir" = x.; then
14501 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14502 s/:*\$(srcdir):*/:/
14503 s/:*\${srcdir}:*/:/
14504 s/:*@srcdir@:*/:/
14505 s/^\([^=]*=[ ]*\):*/\1/
14506 s/:*$//
14507 s/^[^=]*=[ ]*$//
14508 }'
14509 fi
14510
14511 cat >>$CONFIG_STATUS <<\_ACEOF
14512 fi # test -n "$CONFIG_FILES"
14513
14514
14515 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14516 do
14517 case $ac_tag in
14518 :[FHLC]) ac_mode=$ac_tag; continue;;
14519 esac
14520 case $ac_mode$ac_tag in
14521 :[FHL]*:*);;
14522 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14523 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14524 { (exit 1); exit 1; }; };;
14525 :[FH]-) ac_tag=-:-;;
14526 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14527 esac
14528 ac_save_IFS=$IFS
14529 IFS=:
14530 set x $ac_tag
14531 IFS=$ac_save_IFS
14532 shift
14533 ac_file=$1
14534 shift
14535
14536 case $ac_mode in
14537 :L) ac_source=$1;;
14538 :[FH])
14539 ac_file_inputs=
14540 for ac_f
14541 do
14542 case $ac_f in
14543 -) ac_f="$tmp/stdin";;
14544 *) # Look for the file first in the build tree, then in the source tree
14545 # (if the path is not absolute). The absolute path cannot be DOS-style,
14546 # because $ac_f cannot contain `:'.
14547 test -f "$ac_f" ||
14548 case $ac_f in
14549 [\\/$]*) false;;
14550 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14551 esac ||
14552 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14553 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14554 { (exit 1); exit 1; }; };;
14555 esac
14556 ac_file_inputs="$ac_file_inputs $ac_f"
14557 done
14558
14559 # Let's still pretend it is `configure' which instantiates (i.e., don't
14560 # use $as_me), people would be surprised to read:
14561 # /* config.h. Generated by config.status. */
14562 configure_input="Generated from "`IFS=:
14563 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14564 if test x"$ac_file" != x-; then
14565 configure_input="$ac_file. $configure_input"
14566 { echo "$as_me:$LINENO: creating $ac_file" >&5
14567 echo "$as_me: creating $ac_file" >&6;}
14568 fi
14569
14570 case $ac_tag in
14571 *:-:* | *:-) cat >"$tmp/stdin";;
14572 esac
14573 ;;
14574 esac
14575
14576 ac_dir=`$as_dirname -- "$ac_file" ||
14577 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14578 X"$ac_file" : 'X\(//\)[^/]' \| \
14579 X"$ac_file" : 'X\(//\)$' \| \
14580 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14581 echo X"$ac_file" |
14582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14583 s//\1/
14584 q
14585 }
14586 /^X\(\/\/\)[^/].*/{
14587 s//\1/
14588 q
14589 }
14590 /^X\(\/\/\)$/{
14591 s//\1/
14592 q
14593 }
14594 /^X\(\/\).*/{
14595 s//\1/
14596 q
14597 }
14598 s/.*/./; q'`
14599 { as_dir="$ac_dir"
14600 case $as_dir in #(
14601 -*) as_dir=./$as_dir;;
14602 esac
14603 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14604 as_dirs=
14605 while :; do
14606 case $as_dir in #(
14607 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14608 *) as_qdir=$as_dir;;
14609 esac
14610 as_dirs="'$as_qdir' $as_dirs"
14611 as_dir=`$as_dirname -- "$as_dir" ||
14612 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14613 X"$as_dir" : 'X\(//\)[^/]' \| \
14614 X"$as_dir" : 'X\(//\)$' \| \
14615 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14616 echo X"$as_dir" |
14617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14618 s//\1/
14619 q
14620 }
14621 /^X\(\/\/\)[^/].*/{
14622 s//\1/
14623 q
14624 }
14625 /^X\(\/\/\)$/{
14626 s//\1/
14627 q
14628 }
14629 /^X\(\/\).*/{
14630 s//\1/
14631 q
14632 }
14633 s/.*/./; q'`
14634 test -d "$as_dir" && break
14635 done
14636 test -z "$as_dirs" || eval "mkdir $as_dirs"
14637 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14638 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14639 { (exit 1); exit 1; }; }; }
14640 ac_builddir=.
14641
14642 case "$ac_dir" in
14643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14644 *)
14645 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14646 # A ".." for each directory in $ac_dir_suffix.
14647 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14648 case $ac_top_builddir_sub in
14649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14651 esac ;;
14652 esac
14653 ac_abs_top_builddir=$ac_pwd
14654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14655 # for backward compatibility:
14656 ac_top_builddir=$ac_top_build_prefix
14657
14658 case $srcdir in
14659 .) # We are building in place.
14660 ac_srcdir=.
14661 ac_top_srcdir=$ac_top_builddir_sub
14662 ac_abs_top_srcdir=$ac_pwd ;;
14663 [\\/]* | ?:[\\/]* ) # Absolute name.
14664 ac_srcdir=$srcdir$ac_dir_suffix;
14665 ac_top_srcdir=$srcdir
14666 ac_abs_top_srcdir=$srcdir ;;
14667 *) # Relative name.
14668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14669 ac_top_srcdir=$ac_top_build_prefix$srcdir
14670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14671 esac
14672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14673
14674
14675 case $ac_mode in
14676 :F)
14677 #
14678 # CONFIG_FILE
14679 #
14680
14681 case $INSTALL in
14682 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14683 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14684 esac
14685 _ACEOF
14686
14687 cat >>$CONFIG_STATUS <<\_ACEOF
14688 # If the template does not know about datarootdir, expand it.
14689 # FIXME: This hack should be removed a few years after 2.60.
14690 ac_datarootdir_hack=; ac_datarootdir_seen=
14691
14692 case `sed -n '/datarootdir/ {
14693 p
14694 q
14695 }
14696 /@datadir@/p
14697 /@docdir@/p
14698 /@infodir@/p
14699 /@localedir@/p
14700 /@mandir@/p
14701 ' $ac_file_inputs` in
14702 *datarootdir*) ac_datarootdir_seen=yes;;
14703 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14704 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14705 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14706 _ACEOF
14707 cat >>$CONFIG_STATUS <<_ACEOF
14708 ac_datarootdir_hack='
14709 s&@datadir@&$datadir&g
14710 s&@docdir@&$docdir&g
14711 s&@infodir@&$infodir&g
14712 s&@localedir@&$localedir&g
14713 s&@mandir@&$mandir&g
14714 s&\\\${datarootdir}&$datarootdir&g' ;;
14715 esac
14716 _ACEOF
14717
14718 # Neutralize VPATH when `$srcdir' = `.'.
14719 # Shell code in configure.ac might set extrasub.
14720 # FIXME: do we really want to maintain this feature?
14721 cat >>$CONFIG_STATUS <<_ACEOF
14722 sed "$ac_vpsub
14723 $extrasub
14724 _ACEOF
14725 cat >>$CONFIG_STATUS <<\_ACEOF
14726 :t
14727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14728 s&@configure_input@&$configure_input&;t t
14729 s&@top_builddir@&$ac_top_builddir_sub&;t t
14730 s&@srcdir@&$ac_srcdir&;t t
14731 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14732 s&@top_srcdir@&$ac_top_srcdir&;t t
14733 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14734 s&@builddir@&$ac_builddir&;t t
14735 s&@abs_builddir@&$ac_abs_builddir&;t t
14736 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14737 s&@INSTALL@&$ac_INSTALL&;t t
14738 $ac_datarootdir_hack
14739 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14740
14741 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14742 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14743 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14744 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14745 which seems to be undefined. Please make sure it is defined." >&5
14746 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14747 which seems to be undefined. Please make sure it is defined." >&2;}
14748
14749 rm -f "$tmp/stdin"
14750 case $ac_file in
14751 -) cat "$tmp/out"; rm -f "$tmp/out";;
14752 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14753 esac
14754 ;;
14755 :H)
14756 #
14757 # CONFIG_HEADER
14758 #
14759 _ACEOF
14760
14761 # Transform confdefs.h into a sed script `conftest.defines', that
14762 # substitutes the proper values into config.h.in to produce config.h.
14763 rm -f conftest.defines conftest.tail
14764 # First, append a space to every undef/define line, to ease matching.
14765 echo 's/$/ /' >conftest.defines
14766 # Then, protect against being on the right side of a sed subst, or in
14767 # an unquoted here document, in config.status. If some macros were
14768 # called several times there might be several #defines for the same
14769 # symbol, which is useless. But do not sort them, since the last
14770 # AC_DEFINE must be honored.
14771 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14772 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14773 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14774 # PARAMS is the parameter list in the macro definition--in most cases, it's
14775 # just an empty string.
14776 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14777 ac_dB='\\)[ (].*,\\1define\\2'
14778 ac_dC=' '
14779 ac_dD=' ,'
14780
14781 uniq confdefs.h |
14782 sed -n '
14783 t rset
14784 :rset
14785 s/^[ ]*#[ ]*define[ ][ ]*//
14786 t ok
14787 d
14788 :ok
14789 s/[\\&,]/\\&/g
14790 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14791 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14792 ' >>conftest.defines
14793
14794 # Remove the space that was appended to ease matching.
14795 # Then replace #undef with comments. This is necessary, for
14796 # example, in the case of _POSIX_SOURCE, which is predefined and required
14797 # on some systems where configure will not decide to define it.
14798 # (The regexp can be short, since the line contains either #define or #undef.)
14799 echo 's/ $//
14800 s,^[ #]*u.*,/* & */,' >>conftest.defines
14801
14802 # Break up conftest.defines:
14803 ac_max_sed_lines=50
14804
14805 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14806 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14807 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14808 # et cetera.
14809 ac_in='$ac_file_inputs'
14810 ac_out='"$tmp/out1"'
14811 ac_nxt='"$tmp/out2"'
14812
14813 while :
14814 do
14815 # Write a here document:
14816 cat >>$CONFIG_STATUS <<_ACEOF
14817 # First, check the format of the line:
14818 cat >"\$tmp/defines.sed" <<\\CEOF
14819 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14820 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14821 b
14822 :def
14823 _ACEOF
14824 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14825 echo 'CEOF
14826 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14827 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14828 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14829 grep . conftest.tail >/dev/null || break
14830 rm -f conftest.defines
14831 mv conftest.tail conftest.defines
14832 done
14833 rm -f conftest.defines conftest.tail
14834
14835 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14836 cat >>$CONFIG_STATUS <<\_ACEOF
14837 if test x"$ac_file" != x-; then
14838 echo "/* $configure_input */" >"$tmp/config.h"
14839 cat "$ac_result" >>"$tmp/config.h"
14840 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14841 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14842 echo "$as_me: $ac_file is unchanged" >&6;}
14843 else
14844 rm -f $ac_file
14845 mv "$tmp/config.h" $ac_file
14846 fi
14847 else
14848 echo "/* $configure_input */"
14849 cat "$ac_result"
14850 fi
14851 rm -f "$tmp/out12"
14852 ;;
14853
14854 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14855 echo "$as_me: executing $ac_file commands" >&6;}
14856 ;;
14857 esac
14858
14859
14860 case $ac_file$ac_mode in
14861 "default-1":C) if test -f .devel; then
14862 echo timestamp > stamp-h
14863 cat Makefile-devel-adds >> Makefile
14864 make depend
14865 fi ;;
14866
14867 esac
14868 done # for ac_tag
14869
14870
14871 { (exit 0); exit 0; }
14872 _ACEOF
14873 chmod +x $CONFIG_STATUS
14874 ac_clean_files=$ac_clean_files_save
14875
14876
14877 # configure is writing to config.log, and then calls config.status.
14878 # config.status does its own redirection, appending to config.log.
14879 # Unfortunately, on DOS this fails, as config.log is still kept open
14880 # by configure, so config.status won't be able to write to it; its
14881 # output is simply discarded. So we exec the FD to /dev/null,
14882 # effectively closing config.log, so it can be properly (re)opened and
14883 # appended to by config.status. When coming back to configure, we
14884 # need to make the FD available again.
14885 if test "$no_create" != yes; then
14886 ac_cs_success=:
14887 ac_config_status_args=
14888 test "$silent" = yes &&
14889 ac_config_status_args="$ac_config_status_args --quiet"
14890 exec 5>/dev/null
14891 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14892 exec 5>>config.log
14893 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14894 # would make configure fail if this is the last instruction.
14895 $ac_cs_success || { (exit 1); exit 1; }
14896 fi
14897
14898 exit 0