]> The Tcpdump Group git mirrors - tcpdump/blob - configure
34cd7e2f421bd3e3ff71aacd464431e37e6afc1c
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.204 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
50 fi
51 rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 as_unset=unset
57 else
58 as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" "" $as_nl"
70
71 # Find who we are. Look in the path if we contain no directory separator.
72 case $0 in
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77 IFS=$as_save_IFS
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83 ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88 as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 LC_TELEPHONE LC_TIME
108 do
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
111 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 as_expr=expr
120 else
121 as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125 as_basename=basename
126 else
127 as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
138 s//\1/
139 q
140 }
141 /^X\/\(\/\/\)$/{
142 s//\1/
143 q
144 }
145 /^X\/\(\/\).*/{
146 s//\1/
147 q
148 }
149 s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
157 as_have_required=yes
158 else
159 as_have_required=no
160 fi
161
162 if test $as_have_required = yes && (eval ":
163 (as_func_return () {
164 (exit \$1)
165 }
166 as_func_success () {
167 as_func_return 0
168 }
169 as_func_failure () {
170 as_func_return 1
171 }
172 as_func_ret_success () {
173 return 0
174 }
175 as_func_ret_failure () {
176 return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181 :
182 else
183 exitcode=1
184 echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188 exitcode=1
189 echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193 :
194 else
195 exitcode=1
196 echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200 exitcode=1
201 echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 :
206 else
207 exitcode=1
208 echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214 as_lineno_1=\$LINENO
215 as_lineno_2=\$LINENO
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219 :
220 else
221 as_candidate_shells=
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 case $as_dir in
228 /*)
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 done;;
232 esac
233 done
234 IFS=$as_save_IFS
235
236
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259 CONFIG_SHELL=$as_shell
260 as_have_required=yes
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279 (exit $1)
280 }
281 as_func_success () {
282 as_func_return 0
283 }
284 as_func_failure () {
285 as_func_return 1
286 }
287 as_func_ret_success () {
288 return 0
289 }
290 as_func_ret_failure () {
291 return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296 :
297 else
298 exitcode=1
299 echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303 exitcode=1
304 echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308 :
309 else
310 exitcode=1
311 echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315 exitcode=1
316 echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 :
321 else
322 exitcode=1
323 echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329 as_lineno_1=$LINENO
330 as_lineno_2=$LINENO
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336 break
337 fi
338
339 fi
340
341 done
342
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346 done
347 export CONFIG_SHELL
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368 (exit \$1)
369 }
370 as_func_success () {
371 as_func_return 0
372 }
373 as_func_failure () {
374 as_func_return 1
375 }
376 as_func_ret_success () {
377 return 0
378 }
379 as_func_ret_failure () {
380 return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385 :
386 else
387 exitcode=1
388 echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392 exitcode=1
393 echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397 :
398 else
399 exitcode=1
400 echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404 exitcode=1
405 echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 :
410 else
411 exitcode=1
412 echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
419 echo message
420 }
421
422
423
424 as_lineno_1=$LINENO
425 as_lineno_2=$LINENO
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
435 # case at line end.
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
439 sed -n '
440 p
441 /[$]LINENO/=
442 ' <$as_myself |
443 sed '
444 s/[$]LINENO.*/&-/
445 t lineno
446 b
447 :lineno
448 N
449 :loop
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 t loop
452 s/-\n.*//
453 ' >$as_me.lineno &&
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
457
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
461 . "./$as_me.lineno"
462 # Exit status is that of the last command.
463 exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_dirname=dirname
469 else
470 as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476 case `echo 'x\c'` in
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) ECHO_C='\c';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 as_expr=expr
487 else
488 as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
494 else
495 rm -f conf$$.dir
496 mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s='ln -s'
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508 as_ln_s=ln
509 else
510 as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516 as_mkdir_p=:
517 else
518 test -d ./-p && rmdir ./-p
519 as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523 as_test_x='test -x'
524 else
525 if ls -dL / >/dev/null 2>&1; then
526 as_ls_L_option=L
527 else
528 as_ls_L_option=
529 fi
530 as_test_x='
531 eval sh -c '\''
532 if test -d "$1"; then
533 test -d "$1/.";
534 else
535 case $1 in
536 -*)set "./$1";;
537 esac;
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
540 '\'' sh
541 '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 7<&0 </dev/null 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="tcpdump.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 SHLICC2
663 CC
664 CFLAGS
665 LDFLAGS
666 CPPFLAGS
667 ac_ct_CC
668 EXEEXT
669 OBJEXT
670 CPP
671 GREP
672 EGREP
673 LIBOBJS
674 PCAP_CONFIG
675 RANLIB
676 V_CCOPT
677 V_DEFS
678 V_GROUP
679 V_INCLS
680 V_PCAPDEP
681 LOCALSRC
682 MAN_FILE_FORMATS
683 MAN_MISC_INFO
684 INSTALL_PROGRAM
685 INSTALL_SCRIPT
686 INSTALL_DATA
687 LTLIBOBJS'
688 ac_subst_files=''
689 ac_precious_vars='build_alias
690 host_alias
691 target_alias
692 CC
693 CFLAGS
694 LDFLAGS
695 LIBS
696 CPPFLAGS
697 CPP'
698
699
700 # Initialize some variables set by options.
701 ac_init_help=
702 ac_init_version=false
703 # The variables have the same names as the options, with
704 # dashes changed to underlines.
705 cache_file=/dev/null
706 exec_prefix=NONE
707 no_create=
708 no_recursion=
709 prefix=NONE
710 program_prefix=NONE
711 program_suffix=NONE
712 program_transform_name=s,x,x,
713 silent=
714 site=
715 srcdir=
716 verbose=
717 x_includes=NONE
718 x_libraries=NONE
719
720 # Installation directory options.
721 # These are left unexpanded so users can "make install exec_prefix=/foo"
722 # and all the variables that are supposed to be based on exec_prefix
723 # by default will actually change.
724 # Use braces instead of parens because sh, perl, etc. also accept them.
725 # (The list follows the same order as the GNU Coding Standards.)
726 bindir='${exec_prefix}/bin'
727 sbindir='${exec_prefix}/sbin'
728 libexecdir='${exec_prefix}/libexec'
729 datarootdir='${prefix}/share'
730 datadir='${datarootdir}'
731 sysconfdir='${prefix}/etc'
732 sharedstatedir='${prefix}/com'
733 localstatedir='${prefix}/var'
734 includedir='${prefix}/include'
735 oldincludedir='/usr/include'
736 docdir='${datarootdir}/doc/${PACKAGE}'
737 infodir='${datarootdir}/info'
738 htmldir='${docdir}'
739 dvidir='${docdir}'
740 pdfdir='${docdir}'
741 psdir='${docdir}'
742 libdir='${exec_prefix}/lib'
743 localedir='${datarootdir}/locale'
744 mandir='${datarootdir}/man'
745
746 ac_prev=
747 ac_dashdash=
748 for ac_option
749 do
750 # If the previous option needs an argument, assign it.
751 if test -n "$ac_prev"; then
752 eval $ac_prev=\$ac_option
753 ac_prev=
754 continue
755 fi
756
757 case $ac_option in
758 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759 *) ac_optarg=yes ;;
760 esac
761
762 # Accept the important Cygnus configure options, so we can diagnose typos.
763
764 case $ac_dashdash$ac_option in
765 --)
766 ac_dashdash=yes ;;
767
768 -bindir | --bindir | --bindi | --bind | --bin | --bi)
769 ac_prev=bindir ;;
770 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
771 bindir=$ac_optarg ;;
772
773 -build | --build | --buil | --bui | --bu)
774 ac_prev=build_alias ;;
775 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
776 build_alias=$ac_optarg ;;
777
778 -cache-file | --cache-file | --cache-fil | --cache-fi \
779 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
780 ac_prev=cache_file ;;
781 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
782 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
783 cache_file=$ac_optarg ;;
784
785 --config-cache | -C)
786 cache_file=config.cache ;;
787
788 -datadir | --datadir | --datadi | --datad)
789 ac_prev=datadir ;;
790 -datadir=* | --datadir=* | --datadi=* | --datad=*)
791 datadir=$ac_optarg ;;
792
793 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
794 | --dataroo | --dataro | --datar)
795 ac_prev=datarootdir ;;
796 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
797 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
798 datarootdir=$ac_optarg ;;
799
800 -disable-* | --disable-*)
801 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
802 # Reject names that are not valid shell variable names.
803 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
805 { (exit 1); exit 1; }; }
806 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
807 eval enable_$ac_feature=no ;;
808
809 -docdir | --docdir | --docdi | --doc | --do)
810 ac_prev=docdir ;;
811 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
812 docdir=$ac_optarg ;;
813
814 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
815 ac_prev=dvidir ;;
816 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
817 dvidir=$ac_optarg ;;
818
819 -enable-* | --enable-*)
820 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
825 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_$ac_feature=\$ac_optarg ;;
827
828 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
829 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
830 | --exec | --exe | --ex)
831 ac_prev=exec_prefix ;;
832 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
833 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
834 | --exec=* | --exe=* | --ex=*)
835 exec_prefix=$ac_optarg ;;
836
837 -gas | --gas | --ga | --g)
838 # Obsolete; use --with-gas.
839 with_gas=yes ;;
840
841 -help | --help | --hel | --he | -h)
842 ac_init_help=long ;;
843 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
844 ac_init_help=recursive ;;
845 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
846 ac_init_help=short ;;
847
848 -host | --host | --hos | --ho)
849 ac_prev=host_alias ;;
850 -host=* | --host=* | --hos=* | --ho=*)
851 host_alias=$ac_optarg ;;
852
853 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
854 ac_prev=htmldir ;;
855 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
856 | --ht=*)
857 htmldir=$ac_optarg ;;
858
859 -includedir | --includedir | --includedi | --included | --include \
860 | --includ | --inclu | --incl | --inc)
861 ac_prev=includedir ;;
862 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
863 | --includ=* | --inclu=* | --incl=* | --inc=*)
864 includedir=$ac_optarg ;;
865
866 -infodir | --infodir | --infodi | --infod | --info | --inf)
867 ac_prev=infodir ;;
868 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
869 infodir=$ac_optarg ;;
870
871 -libdir | --libdir | --libdi | --libd)
872 ac_prev=libdir ;;
873 -libdir=* | --libdir=* | --libdi=* | --libd=*)
874 libdir=$ac_optarg ;;
875
876 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
877 | --libexe | --libex | --libe)
878 ac_prev=libexecdir ;;
879 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
880 | --libexe=* | --libex=* | --libe=*)
881 libexecdir=$ac_optarg ;;
882
883 -localedir | --localedir | --localedi | --localed | --locale)
884 ac_prev=localedir ;;
885 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
886 localedir=$ac_optarg ;;
887
888 -localstatedir | --localstatedir | --localstatedi | --localstated \
889 | --localstate | --localstat | --localsta | --localst | --locals)
890 ac_prev=localstatedir ;;
891 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
892 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
893 localstatedir=$ac_optarg ;;
894
895 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
896 ac_prev=mandir ;;
897 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
898 mandir=$ac_optarg ;;
899
900 -nfp | --nfp | --nf)
901 # Obsolete; use --without-fp.
902 with_fp=no ;;
903
904 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
905 | --no-cr | --no-c | -n)
906 no_create=yes ;;
907
908 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
909 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
910 no_recursion=yes ;;
911
912 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
913 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
914 | --oldin | --oldi | --old | --ol | --o)
915 ac_prev=oldincludedir ;;
916 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
917 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
918 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
919 oldincludedir=$ac_optarg ;;
920
921 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
922 ac_prev=prefix ;;
923 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
924 prefix=$ac_optarg ;;
925
926 -program-prefix | --program-prefix | --program-prefi | --program-pref \
927 | --program-pre | --program-pr | --program-p)
928 ac_prev=program_prefix ;;
929 -program-prefix=* | --program-prefix=* | --program-prefi=* \
930 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
931 program_prefix=$ac_optarg ;;
932
933 -program-suffix | --program-suffix | --program-suffi | --program-suff \
934 | --program-suf | --program-su | --program-s)
935 ac_prev=program_suffix ;;
936 -program-suffix=* | --program-suffix=* | --program-suffi=* \
937 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
938 program_suffix=$ac_optarg ;;
939
940 -program-transform-name | --program-transform-name \
941 | --program-transform-nam | --program-transform-na \
942 | --program-transform-n | --program-transform- \
943 | --program-transform | --program-transfor \
944 | --program-transfo | --program-transf \
945 | --program-trans | --program-tran \
946 | --progr-tra | --program-tr | --program-t)
947 ac_prev=program_transform_name ;;
948 -program-transform-name=* | --program-transform-name=* \
949 | --program-transform-nam=* | --program-transform-na=* \
950 | --program-transform-n=* | --program-transform-=* \
951 | --program-transform=* | --program-transfor=* \
952 | --program-transfo=* | --program-transf=* \
953 | --program-trans=* | --program-tran=* \
954 | --progr-tra=* | --program-tr=* | --program-t=*)
955 program_transform_name=$ac_optarg ;;
956
957 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
958 ac_prev=pdfdir ;;
959 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
960 pdfdir=$ac_optarg ;;
961
962 -psdir | --psdir | --psdi | --psd | --ps)
963 ac_prev=psdir ;;
964 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
965 psdir=$ac_optarg ;;
966
967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
968 | -silent | --silent | --silen | --sile | --sil)
969 silent=yes ;;
970
971 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
972 ac_prev=sbindir ;;
973 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
974 | --sbi=* | --sb=*)
975 sbindir=$ac_optarg ;;
976
977 -sharedstatedir | --sharedstatedir | --sharedstatedi \
978 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
979 | --sharedst | --shareds | --shared | --share | --shar \
980 | --sha | --sh)
981 ac_prev=sharedstatedir ;;
982 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
983 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
984 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
985 | --sha=* | --sh=*)
986 sharedstatedir=$ac_optarg ;;
987
988 -site | --site | --sit)
989 ac_prev=site ;;
990 -site=* | --site=* | --sit=*)
991 site=$ac_optarg ;;
992
993 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
994 ac_prev=srcdir ;;
995 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
996 srcdir=$ac_optarg ;;
997
998 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
999 | --syscon | --sysco | --sysc | --sys | --sy)
1000 ac_prev=sysconfdir ;;
1001 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1002 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1003 sysconfdir=$ac_optarg ;;
1004
1005 -target | --target | --targe | --targ | --tar | --ta | --t)
1006 ac_prev=target_alias ;;
1007 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1008 target_alias=$ac_optarg ;;
1009
1010 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1011 verbose=yes ;;
1012
1013 -version | --version | --versio | --versi | --vers | -V)
1014 ac_init_version=: ;;
1015
1016 -with-* | --with-*)
1017 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid package name: $ac_package" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1023 eval with_$ac_package=\$ac_optarg ;;
1024
1025 -without-* | --without-*)
1026 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029 { echo "$as_me: error: invalid package name: $ac_package" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1032 eval with_$ac_package=no ;;
1033
1034 --x)
1035 # Obsolete; use --with-x.
1036 with_x=yes ;;
1037
1038 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1039 | --x-incl | --x-inc | --x-in | --x-i)
1040 ac_prev=x_includes ;;
1041 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1042 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1043 x_includes=$ac_optarg ;;
1044
1045 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1046 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1047 ac_prev=x_libraries ;;
1048 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1049 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1050 x_libraries=$ac_optarg ;;
1051
1052 -*) { echo "$as_me: error: unrecognized option: $ac_option
1053 Try \`$0 --help' for more information." >&2
1054 { (exit 1); exit 1; }; }
1055 ;;
1056
1057 *=*)
1058 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1062 { (exit 1); exit 1; }; }
1063 eval $ac_envvar=\$ac_optarg
1064 export $ac_envvar ;;
1065
1066 *)
1067 # FIXME: should be removed in autoconf 3.0.
1068 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1069 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1071 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1072 ;;
1073
1074 esac
1075 done
1076
1077 if test -n "$ac_prev"; then
1078 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1079 { echo "$as_me: error: missing argument to $ac_option" >&2
1080 { (exit 1); exit 1; }; }
1081 fi
1082
1083 # Be sure to have absolute directory names.
1084 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085 datadir sysconfdir sharedstatedir localstatedir includedir \
1086 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087 libdir localedir mandir
1088 do
1089 eval ac_val=\$$ac_var
1090 case $ac_val in
1091 [\\/$]* | ?:[\\/]* ) continue;;
1092 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1093 esac
1094 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1095 { (exit 1); exit 1; }; }
1096 done
1097
1098 # There might be people who depend on the old broken behavior: `$host'
1099 # used to hold the argument of --host etc.
1100 # FIXME: To remove some day.
1101 build=$build_alias
1102 host=$host_alias
1103 target=$target_alias
1104
1105 # FIXME: To remove some day.
1106 if test "x$host_alias" != x; then
1107 if test "x$build_alias" = x; then
1108 cross_compiling=maybe
1109 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1110 If a cross compiler is detected then cross compile mode will be used." >&2
1111 elif test "x$build_alias" != "x$host_alias"; then
1112 cross_compiling=yes
1113 fi
1114 fi
1115
1116 ac_tool_prefix=
1117 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1118
1119 test "$silent" = yes && exec 6>/dev/null
1120
1121
1122 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1123 ac_ls_di=`ls -di .` &&
1124 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1125 { echo "$as_me: error: Working directory cannot be determined" >&2
1126 { (exit 1); exit 1; }; }
1127 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1128 { echo "$as_me: error: pwd does not report name of working directory" >&2
1129 { (exit 1); exit 1; }; }
1130
1131
1132 # Find the source files, if location was not specified.
1133 if test -z "$srcdir"; then
1134 ac_srcdir_defaulted=yes
1135 # Try the directory containing this script, then the parent directory.
1136 ac_confdir=`$as_dirname -- "$0" ||
1137 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1138 X"$0" : 'X\(//\)[^/]' \| \
1139 X"$0" : 'X\(//\)$' \| \
1140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1141 echo X"$0" |
1142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1143 s//\1/
1144 q
1145 }
1146 /^X\(\/\/\)[^/].*/{
1147 s//\1/
1148 q
1149 }
1150 /^X\(\/\/\)$/{
1151 s//\1/
1152 q
1153 }
1154 /^X\(\/\).*/{
1155 s//\1/
1156 q
1157 }
1158 s/.*/./; q'`
1159 srcdir=$ac_confdir
1160 if test ! -r "$srcdir/$ac_unique_file"; then
1161 srcdir=..
1162 fi
1163 else
1164 ac_srcdir_defaulted=no
1165 fi
1166 if test ! -r "$srcdir/$ac_unique_file"; then
1167 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1168 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1169 { (exit 1); exit 1; }; }
1170 fi
1171 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1172 ac_abs_confdir=`(
1173 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1174 { (exit 1); exit 1; }; }
1175 pwd)`
1176 # When building in place, set srcdir=.
1177 if test "$ac_abs_confdir" = "$ac_pwd"; then
1178 srcdir=.
1179 fi
1180 # Remove unnecessary trailing slashes from srcdir.
1181 # Double slashes in file names in object file debugging info
1182 # mess up M-x gdb in Emacs.
1183 case $srcdir in
1184 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1185 esac
1186 for ac_var in $ac_precious_vars; do
1187 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1188 eval ac_env_${ac_var}_value=\$${ac_var}
1189 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1190 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1191 done
1192
1193 #
1194 # Report the --help message.
1195 #
1196 if test "$ac_init_help" = "long"; then
1197 # Omit some internal or obsolete options to make the list less imposing.
1198 # This message is too long to be a string in the A/UX 3.1 sh.
1199 cat <<_ACEOF
1200 \`configure' configures this package to adapt to many kinds of systems.
1201
1202 Usage: $0 [OPTION]... [VAR=VALUE]...
1203
1204 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1205 VAR=VALUE. See below for descriptions of some of the useful variables.
1206
1207 Defaults for the options are specified in brackets.
1208
1209 Configuration:
1210 -h, --help display this help and exit
1211 --help=short display options specific to this package
1212 --help=recursive display the short help of all the included packages
1213 -V, --version display version information and exit
1214 -q, --quiet, --silent do not print \`checking...' messages
1215 --cache-file=FILE cache test results in FILE [disabled]
1216 -C, --config-cache alias for \`--cache-file=config.cache'
1217 -n, --no-create do not create output files
1218 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1219
1220 Installation directories:
1221 --prefix=PREFIX install architecture-independent files in PREFIX
1222 [$ac_default_prefix]
1223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1224 [PREFIX]
1225
1226 By default, \`make install' will install all the files in
1227 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1228 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1229 for instance \`--prefix=\$HOME'.
1230
1231 For better control, use the options below.
1232
1233 Fine tuning of the installation directories:
1234 --bindir=DIR user executables [EPREFIX/bin]
1235 --sbindir=DIR system admin executables [EPREFIX/sbin]
1236 --libexecdir=DIR program executables [EPREFIX/libexec]
1237 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1238 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1239 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1240 --libdir=DIR object code libraries [EPREFIX/lib]
1241 --includedir=DIR C header files [PREFIX/include]
1242 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1243 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1244 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1245 --infodir=DIR info documentation [DATAROOTDIR/info]
1246 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1247 --mandir=DIR man documentation [DATAROOTDIR/man]
1248 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1249 --htmldir=DIR html documentation [DOCDIR]
1250 --dvidir=DIR dvi documentation [DOCDIR]
1251 --pdfdir=DIR pdf documentation [DOCDIR]
1252 --psdir=DIR ps documentation [DOCDIR]
1253 _ACEOF
1254
1255 cat <<\_ACEOF
1256
1257 System types:
1258 --build=BUILD configure for building on BUILD [guessed]
1259 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1260 _ACEOF
1261 fi
1262
1263 if test -n "$ac_init_help"; then
1264
1265 cat <<\_ACEOF
1266
1267 Optional Features:
1268 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1269 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1270 --enable-smb enable possibly-buggy SMB printer default=yes
1271 --disable-smb disable possibly-buggy SMB printer
1272 --enable-ipv6 enable ipv6 (with ipv4) support
1273 --disable-ipv6 disable ipv6 support
1274
1275 Optional Packages:
1276 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1277 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1278 --without-gcc don't use gcc
1279 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1280 --without-smi don't link with libsmi
1281 --with-user=USERNAME drop privileges by default to USERNAME
1282 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1283 --with-crypto[=PATH] use SSLeay libcrypto (located in directory PATH, if
1284 supplied). [default=yes, if available]
1285
1286 Some influential environment variables:
1287 CC C compiler command
1288 CFLAGS C compiler flags
1289 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1290 nonstandard directory <lib dir>
1291 LIBS libraries to pass to the linker, e.g. -l<library>
1292 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1293 you have headers in a nonstandard directory <include dir>
1294 CPP C preprocessor
1295
1296 Use these variables to override the choices made by `configure' or to help
1297 it to find libraries and programs with nonstandard names/locations.
1298
1299 _ACEOF
1300 ac_status=$?
1301 fi
1302
1303 if test "$ac_init_help" = "recursive"; then
1304 # If there are subdirs, report their specific --help.
1305 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1306 test -d "$ac_dir" || continue
1307 ac_builddir=.
1308
1309 case "$ac_dir" in
1310 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1311 *)
1312 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1313 # A ".." for each directory in $ac_dir_suffix.
1314 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1315 case $ac_top_builddir_sub in
1316 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1317 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1318 esac ;;
1319 esac
1320 ac_abs_top_builddir=$ac_pwd
1321 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1322 # for backward compatibility:
1323 ac_top_builddir=$ac_top_build_prefix
1324
1325 case $srcdir in
1326 .) # We are building in place.
1327 ac_srcdir=.
1328 ac_top_srcdir=$ac_top_builddir_sub
1329 ac_abs_top_srcdir=$ac_pwd ;;
1330 [\\/]* | ?:[\\/]* ) # Absolute name.
1331 ac_srcdir=$srcdir$ac_dir_suffix;
1332 ac_top_srcdir=$srcdir
1333 ac_abs_top_srcdir=$srcdir ;;
1334 *) # Relative name.
1335 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1336 ac_top_srcdir=$ac_top_build_prefix$srcdir
1337 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1338 esac
1339 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1340
1341 cd "$ac_dir" || { ac_status=$?; continue; }
1342 # Check for guested configure.
1343 if test -f "$ac_srcdir/configure.gnu"; then
1344 echo &&
1345 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1346 elif test -f "$ac_srcdir/configure"; then
1347 echo &&
1348 $SHELL "$ac_srcdir/configure" --help=recursive
1349 else
1350 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1351 fi || ac_status=$?
1352 cd "$ac_pwd" || { ac_status=$?; break; }
1353 done
1354 fi
1355
1356 test -n "$ac_init_help" && exit $ac_status
1357 if $ac_init_version; then
1358 cat <<\_ACEOF
1359 configure
1360 generated by GNU Autoconf 2.61
1361
1362 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1363 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1364 This configure script is free software; the Free Software Foundation
1365 gives unlimited permission to copy, distribute and modify it.
1366 _ACEOF
1367 exit
1368 fi
1369 cat >config.log <<_ACEOF
1370 This file contains any messages produced by compilers while
1371 running configure, to aid debugging if configure makes a mistake.
1372
1373 It was created by $as_me, which was
1374 generated by GNU Autoconf 2.61. Invocation command line was
1375
1376 $ $0 $@
1377
1378 _ACEOF
1379 exec 5>>config.log
1380 {
1381 cat <<_ASUNAME
1382 ## --------- ##
1383 ## Platform. ##
1384 ## --------- ##
1385
1386 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1387 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1388 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1389 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1390 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1391
1392 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1393 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1394
1395 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1396 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1397 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1398 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1399 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1400 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1401 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1402
1403 _ASUNAME
1404
1405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 for as_dir in $PATH
1407 do
1408 IFS=$as_save_IFS
1409 test -z "$as_dir" && as_dir=.
1410 echo "PATH: $as_dir"
1411 done
1412 IFS=$as_save_IFS
1413
1414 } >&5
1415
1416 cat >&5 <<_ACEOF
1417
1418
1419 ## ----------- ##
1420 ## Core tests. ##
1421 ## ----------- ##
1422
1423 _ACEOF
1424
1425
1426 # Keep a trace of the command line.
1427 # Strip out --no-create and --no-recursion so they do not pile up.
1428 # Strip out --silent because we don't want to record it for future runs.
1429 # Also quote any args containing shell meta-characters.
1430 # Make two passes to allow for proper duplicate-argument suppression.
1431 ac_configure_args=
1432 ac_configure_args0=
1433 ac_configure_args1=
1434 ac_must_keep_next=false
1435 for ac_pass in 1 2
1436 do
1437 for ac_arg
1438 do
1439 case $ac_arg in
1440 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1442 | -silent | --silent | --silen | --sile | --sil)
1443 continue ;;
1444 *\'*)
1445 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 esac
1447 case $ac_pass in
1448 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1449 2)
1450 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1451 if test $ac_must_keep_next = true; then
1452 ac_must_keep_next=false # Got value, back to normal.
1453 else
1454 case $ac_arg in
1455 *=* | --config-cache | -C | -disable-* | --disable-* \
1456 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1457 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1458 | -with-* | --with-* | -without-* | --without-* | --x)
1459 case "$ac_configure_args0 " in
1460 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1461 esac
1462 ;;
1463 -* ) ac_must_keep_next=true ;;
1464 esac
1465 fi
1466 ac_configure_args="$ac_configure_args '$ac_arg'"
1467 ;;
1468 esac
1469 done
1470 done
1471 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1472 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1473
1474 # When interrupted or exit'd, cleanup temporary files, and complete
1475 # config.log. We remove comments because anyway the quotes in there
1476 # would cause problems or look ugly.
1477 # WARNING: Use '\'' to represent an apostrophe within the trap.
1478 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1479 trap 'exit_status=$?
1480 # Save into config.log some information that might help in debugging.
1481 {
1482 echo
1483
1484 cat <<\_ASBOX
1485 ## ---------------- ##
1486 ## Cache variables. ##
1487 ## ---------------- ##
1488 _ASBOX
1489 echo
1490 # The following way of writing the cache mishandles newlines in values,
1491 (
1492 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1493 eval ac_val=\$$ac_var
1494 case $ac_val in #(
1495 *${as_nl}*)
1496 case $ac_var in #(
1497 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1498 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1499 esac
1500 case $ac_var in #(
1501 _ | IFS | as_nl) ;; #(
1502 *) $as_unset $ac_var ;;
1503 esac ;;
1504 esac
1505 done
1506 (set) 2>&1 |
1507 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1508 *${as_nl}ac_space=\ *)
1509 sed -n \
1510 "s/'\''/'\''\\\\'\'''\''/g;
1511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1512 ;; #(
1513 *)
1514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1515 ;;
1516 esac |
1517 sort
1518 )
1519 echo
1520
1521 cat <<\_ASBOX
1522 ## ----------------- ##
1523 ## Output variables. ##
1524 ## ----------------- ##
1525 _ASBOX
1526 echo
1527 for ac_var in $ac_subst_vars
1528 do
1529 eval ac_val=\$$ac_var
1530 case $ac_val in
1531 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1532 esac
1533 echo "$ac_var='\''$ac_val'\''"
1534 done | sort
1535 echo
1536
1537 if test -n "$ac_subst_files"; then
1538 cat <<\_ASBOX
1539 ## ------------------- ##
1540 ## File substitutions. ##
1541 ## ------------------- ##
1542 _ASBOX
1543 echo
1544 for ac_var in $ac_subst_files
1545 do
1546 eval ac_val=\$$ac_var
1547 case $ac_val in
1548 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1549 esac
1550 echo "$ac_var='\''$ac_val'\''"
1551 done | sort
1552 echo
1553 fi
1554
1555 if test -s confdefs.h; then
1556 cat <<\_ASBOX
1557 ## ----------- ##
1558 ## confdefs.h. ##
1559 ## ----------- ##
1560 _ASBOX
1561 echo
1562 cat confdefs.h
1563 echo
1564 fi
1565 test "$ac_signal" != 0 &&
1566 echo "$as_me: caught signal $ac_signal"
1567 echo "$as_me: exit $exit_status"
1568 } >&5
1569 rm -f core *.core core.conftest.* &&
1570 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1571 exit $exit_status
1572 ' 0
1573 for ac_signal in 1 2 13 15; do
1574 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1575 done
1576 ac_signal=0
1577
1578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1579 rm -f -r conftest* confdefs.h
1580
1581 # Predefined preprocessor variables.
1582
1583 cat >>confdefs.h <<_ACEOF
1584 #define PACKAGE_NAME "$PACKAGE_NAME"
1585 _ACEOF
1586
1587
1588 cat >>confdefs.h <<_ACEOF
1589 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1590 _ACEOF
1591
1592
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1595 _ACEOF
1596
1597
1598 cat >>confdefs.h <<_ACEOF
1599 #define PACKAGE_STRING "$PACKAGE_STRING"
1600 _ACEOF
1601
1602
1603 cat >>confdefs.h <<_ACEOF
1604 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1605 _ACEOF
1606
1607
1608 # Let the site file select an alternate cache file if it wants to.
1609 # Prefer explicitly selected file to automatically selected ones.
1610 if test -n "$CONFIG_SITE"; then
1611 set x "$CONFIG_SITE"
1612 elif test "x$prefix" != xNONE; then
1613 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1614 else
1615 set x "$ac_default_prefix/share/config.site" \
1616 "$ac_default_prefix/etc/config.site"
1617 fi
1618 shift
1619 for ac_site_file
1620 do
1621 if test -r "$ac_site_file"; then
1622 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1623 echo "$as_me: loading site script $ac_site_file" >&6;}
1624 sed 's/^/| /' "$ac_site_file" >&5
1625 . "$ac_site_file"
1626 fi
1627 done
1628
1629 if test -r "$cache_file"; then
1630 # Some versions of bash will fail to source /dev/null (special
1631 # files actually), so we avoid doing that.
1632 if test -f "$cache_file"; then
1633 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1634 echo "$as_me: loading cache $cache_file" >&6;}
1635 case $cache_file in
1636 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1637 *) . "./$cache_file";;
1638 esac
1639 fi
1640 else
1641 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1642 echo "$as_me: creating cache $cache_file" >&6;}
1643 >$cache_file
1644 fi
1645
1646 # Check that the precious variables saved in the cache have kept the same
1647 # value.
1648 ac_cache_corrupted=false
1649 for ac_var in $ac_precious_vars; do
1650 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1651 eval ac_new_set=\$ac_env_${ac_var}_set
1652 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1653 eval ac_new_val=\$ac_env_${ac_var}_value
1654 case $ac_old_set,$ac_new_set in
1655 set,)
1656 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1657 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1658 ac_cache_corrupted=: ;;
1659 ,set)
1660 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1661 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1662 ac_cache_corrupted=: ;;
1663 ,);;
1664 *)
1665 if test "x$ac_old_val" != "x$ac_new_val"; then
1666 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1667 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1668 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1669 echo "$as_me: former value: $ac_old_val" >&2;}
1670 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1671 echo "$as_me: current value: $ac_new_val" >&2;}
1672 ac_cache_corrupted=:
1673 fi;;
1674 esac
1675 # Pass precious variables to config.status.
1676 if test "$ac_new_set" = set; then
1677 case $ac_new_val in
1678 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1679 *) ac_arg=$ac_var=$ac_new_val ;;
1680 esac
1681 case " $ac_configure_args " in
1682 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1683 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1684 esac
1685 fi
1686 done
1687 if $ac_cache_corrupted; then
1688 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1689 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1690 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1691 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1692 { (exit 1); exit 1; }; }
1693 fi
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711 ac_ext=c
1712 ac_cpp='$CPP $CPPFLAGS'
1713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1716
1717
1718
1719 ac_aux_dir=
1720 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1721 if test -f "$ac_dir/install-sh"; then
1722 ac_aux_dir=$ac_dir
1723 ac_install_sh="$ac_aux_dir/install-sh -c"
1724 break
1725 elif test -f "$ac_dir/install.sh"; then
1726 ac_aux_dir=$ac_dir
1727 ac_install_sh="$ac_aux_dir/install.sh -c"
1728 break
1729 elif test -f "$ac_dir/shtool"; then
1730 ac_aux_dir=$ac_dir
1731 ac_install_sh="$ac_aux_dir/shtool install -c"
1732 break
1733 fi
1734 done
1735 if test -z "$ac_aux_dir"; then
1736 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1737 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1738 { (exit 1); exit 1; }; }
1739 fi
1740
1741 # These three variables are undocumented and unsupported,
1742 # and are intended to be withdrawn in a future Autoconf release.
1743 # They can cause serious problems if a builder's source tree is in a directory
1744 # whose full name contains unusual characters.
1745 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1746 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1747 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1748
1749
1750 # Make sure we can run config.sub.
1751 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1752 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1753 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1754 { (exit 1); exit 1; }; }
1755
1756 { echo "$as_me:$LINENO: checking build system type" >&5
1757 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1758 if test "${ac_cv_build+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761 ac_build_alias=$build_alias
1762 test "x$ac_build_alias" = x &&
1763 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1764 test "x$ac_build_alias" = x &&
1765 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1766 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1767 { (exit 1); exit 1; }; }
1768 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1769 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1770 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1771 { (exit 1); exit 1; }; }
1772
1773 fi
1774 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1775 echo "${ECHO_T}$ac_cv_build" >&6; }
1776 case $ac_cv_build in
1777 *-*-*) ;;
1778 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1779 echo "$as_me: error: invalid value of canonical build" >&2;}
1780 { (exit 1); exit 1; }; };;
1781 esac
1782 build=$ac_cv_build
1783 ac_save_IFS=$IFS; IFS='-'
1784 set x $ac_cv_build
1785 shift
1786 build_cpu=$1
1787 build_vendor=$2
1788 shift; shift
1789 # Remember, the first character of IFS is used to create $*,
1790 # except with old shells:
1791 build_os=$*
1792 IFS=$ac_save_IFS
1793 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1794
1795
1796 { echo "$as_me:$LINENO: checking host system type" >&5
1797 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1798 if test "${ac_cv_host+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801 if test "x$host_alias" = x; then
1802 ac_cv_host=$ac_cv_build
1803 else
1804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1805 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1806 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1807 { (exit 1); exit 1; }; }
1808 fi
1809
1810 fi
1811 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1812 echo "${ECHO_T}$ac_cv_host" >&6; }
1813 case $ac_cv_host in
1814 *-*-*) ;;
1815 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1816 echo "$as_me: error: invalid value of canonical host" >&2;}
1817 { (exit 1); exit 1; }; };;
1818 esac
1819 host=$ac_cv_host
1820 ac_save_IFS=$IFS; IFS='-'
1821 set x $ac_cv_host
1822 shift
1823 host_cpu=$1
1824 host_vendor=$2
1825 shift; shift
1826 # Remember, the first character of IFS is used to create $*,
1827 # except with old shells:
1828 host_os=$*
1829 IFS=$ac_save_IFS
1830 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840 # Check whether --with-gcc was given.
1841 if test "${with_gcc+set}" = set; then
1842 withval=$with_gcc;
1843 fi
1844
1845 V_CCOPT="-O"
1846 V_INCLS=""
1847 if test "${srcdir}" != "." ; then
1848 V_INCLS="-I\$(srcdir)"
1849 fi
1850 if test "${CFLAGS+set}" = set; then
1851 LBL_CFLAGS="$CFLAGS"
1852 fi
1853 if test -z "$CC" ; then
1854 case "$host_os" in
1855
1856 bsdi*)
1857 # Extract the first word of "shlicc2", so it can be a program name with args.
1858 set dummy shlicc2; ac_word=$2
1859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1861 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 if test -n "$SHLICC2"; then
1865 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1874 ac_cv_prog_SHLICC2="yes"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1877 fi
1878 done
1879 done
1880 IFS=$as_save_IFS
1881
1882 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1883 fi
1884 fi
1885 SHLICC2=$ac_cv_prog_SHLICC2
1886 if test -n "$SHLICC2"; then
1887 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1888 echo "${ECHO_T}$SHLICC2" >&6; }
1889 else
1890 { echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6; }
1892 fi
1893
1894
1895 if test $SHLICC2 = yes ; then
1896 CC=shlicc2
1897 export CC
1898 fi
1899 ;;
1900 esac
1901 fi
1902 if test -z "$CC" -a "$with_gcc" = no ; then
1903 CC=cc
1904 export CC
1905 fi
1906
1907 ac_ext=c
1908 ac_cpp='$CPP $CPPFLAGS'
1909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 if test -n "$ac_tool_prefix"; then
1913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 if test -n "$CC"; then
1921 ac_cv_prog_CC="$CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 break 2
1933 fi
1934 done
1935 done
1936 IFS=$as_save_IFS
1937
1938 fi
1939 fi
1940 CC=$ac_cv_prog_CC
1941 if test -n "$CC"; then
1942 { echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6; }
1944 else
1945 { echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6; }
1947 fi
1948
1949
1950 fi
1951 if test -z "$ac_cv_prog_CC"; then
1952 ac_ct_CC=$CC
1953 # Extract the first word of "gcc", so it can be a program name with args.
1954 set dummy gcc; ac_word=$2
1955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 if test -n "$ac_ct_CC"; then
1961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1970 ac_cv_prog_ac_ct_CC="gcc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 break 2
1973 fi
1974 done
1975 done
1976 IFS=$as_save_IFS
1977
1978 fi
1979 fi
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6; }
1984 else
1985 { echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6; }
1987 fi
1988
1989 if test "x$ac_ct_CC" = x; then
1990 CC=""
1991 else
1992 case $cross_compiling:$ac_tool_warned in
1993 yes:)
1994 { echo "$as_me:$LINENO: 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." >&5
1997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1998 whose name does not start with the host triplet. If you think this
1999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2000 ac_tool_warned=yes ;;
2001 esac
2002 CC=$ac_ct_CC
2003 fi
2004 else
2005 CC="$ac_cv_prog_CC"
2006 fi
2007
2008 if test -z "$CC"; then
2009 if test -n "$ac_tool_prefix"; then
2010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2011 set dummy ${ac_tool_prefix}cc; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027 ac_cv_prog_CC="${ac_tool_prefix}cc"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 break 2
2030 fi
2031 done
2032 done
2033 IFS=$as_save_IFS
2034
2035 fi
2036 fi
2037 CC=$ac_cv_prog_CC
2038 if test -n "$CC"; then
2039 { echo "$as_me:$LINENO: result: $CC" >&5
2040 echo "${ECHO_T}$CC" >&6; }
2041 else
2042 { echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6; }
2044 fi
2045
2046
2047 fi
2048 fi
2049 if test -z "$CC"; then
2050 # Extract the first word of "cc", so it can be a program name with args.
2051 set dummy cc; ac_word=$2
2052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060 ac_prog_rejected=no
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2069 ac_prog_rejected=yes
2070 continue
2071 fi
2072 ac_cv_prog_CC="cc"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 break 2
2075 fi
2076 done
2077 done
2078 IFS=$as_save_IFS
2079
2080 if test $ac_prog_rejected = yes; then
2081 # We found a bogon in the path, so make sure we never use it.
2082 set dummy $ac_cv_prog_CC
2083 shift
2084 if test $# != 0; then
2085 # We chose a different compiler from the bogus one.
2086 # However, it has the same basename, so the bogon will be chosen
2087 # first if we set CC to just the basename; use the full file name.
2088 shift
2089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2090 fi
2091 fi
2092 fi
2093 fi
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2098 else
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2101 fi
2102
2103
2104 fi
2105 if test -z "$CC"; then
2106 if test -n "$ac_tool_prefix"; then
2107 for ac_prog in cl.exe
2108 do
2109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2113 if test "${ac_cv_prog_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC="$CC" # Let the user override the test.
2118 else
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2121 do
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 break 2
2129 fi
2130 done
2131 done
2132 IFS=$as_save_IFS
2133
2134 fi
2135 fi
2136 CC=$ac_cv_prog_CC
2137 if test -n "$CC"; then
2138 { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2140 else
2141 { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2143 fi
2144
2145
2146 test -n "$CC" && break
2147 done
2148 fi
2149 if test -z "$CC"; then
2150 ac_ct_CC=$CC
2151 for ac_prog in cl.exe
2152 do
2153 # Extract the first word of "$ac_prog", so it can be a program name with args.
2154 set dummy $ac_prog; ac_word=$2
2155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 if test -n "$ac_ct_CC"; then
2161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 ac_cv_prog_ac_ct_CC="$ac_prog"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2173 fi
2174 done
2175 done
2176 IFS=$as_save_IFS
2177
2178 fi
2179 fi
2180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181 if test -n "$ac_ct_CC"; then
2182 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183 echo "${ECHO_T}$ac_ct_CC" >&6; }
2184 else
2185 { echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6; }
2187 fi
2188
2189
2190 test -n "$ac_ct_CC" && break
2191 done
2192
2193 if test "x$ac_ct_CC" = x; then
2194 CC=""
2195 else
2196 case $cross_compiling:$ac_tool_warned in
2197 yes:)
2198 { echo "$as_me:$LINENO: 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." >&5
2201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2202 whose name does not start with the host triplet. If you think this
2203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2204 ac_tool_warned=yes ;;
2205 esac
2206 CC=$ac_ct_CC
2207 fi
2208 fi
2209
2210 fi
2211
2212
2213 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: no acceptable C compiler found in \$PATH
2216 See \`config.log' for more details." >&2;}
2217 { (exit 1); exit 1; }; }
2218
2219 # Provide some information about the compiler.
2220 echo "$as_me:$LINENO: checking for C compiler version" >&5
2221 ac_compiler=`set X $ac_compile; echo $2`
2222 { (ac_try="$ac_compiler --version >&5"
2223 case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226 esac
2227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228 (eval "$ac_compiler --version >&5") 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }
2232 { (ac_try="$ac_compiler -v >&5"
2233 case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236 esac
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_compiler -v >&5") 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }
2242 { (ac_try="$ac_compiler -V >&5"
2243 case "(($ac_try" in
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2246 esac
2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248 (eval "$ac_compiler -V >&5") 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }
2252
2253 cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h. */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2259
2260 int
2261 main ()
2262 {
2263
2264 ;
2265 return 0;
2266 }
2267 _ACEOF
2268 ac_clean_files_save=$ac_clean_files
2269 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2270 # Try to create an executable without -o first, disregard a.out.
2271 # It will help us diagnose broken compilers, and finding out an intuition
2272 # of exeext.
2273 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2274 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2275 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2276 #
2277 # List of possible output files, starting from the most likely.
2278 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2279 # only as a last resort. b.out is created by i960 compilers.
2280 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2281 #
2282 # The IRIX 6 linker writes into existing files which may not be
2283 # executable, retaining their permissions. Remove them first so a
2284 # subsequent execution test works.
2285 ac_rmfiles=
2286 for ac_file in $ac_files
2287 do
2288 case $ac_file in
2289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2290 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2291 esac
2292 done
2293 rm -f $ac_rmfiles
2294
2295 if { (ac_try="$ac_link_default"
2296 case "(($ac_try" in
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2299 esac
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301 (eval "$ac_link_default") 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; then
2305 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2306 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2307 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2308 # so that the user can short-circuit this test for compilers unknown to
2309 # Autoconf.
2310 for ac_file in $ac_files ''
2311 do
2312 test -f "$ac_file" || continue
2313 case $ac_file in
2314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2315 ;;
2316 [ab].out )
2317 # We found the default executable, but exeext='' is most
2318 # certainly right.
2319 break;;
2320 *.* )
2321 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2322 then :; else
2323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324 fi
2325 # We set ac_cv_exeext here because the later test for it is not
2326 # safe: cross compilers may not add the suffix if given an `-o'
2327 # argument, so we may need to know it at that point already.
2328 # Even if this section looks crufty: it has the advantage of
2329 # actually working.
2330 break;;
2331 * )
2332 break;;
2333 esac
2334 done
2335 test "$ac_cv_exeext" = no && ac_cv_exeext=
2336
2337 else
2338 ac_file=''
2339 fi
2340
2341 { echo "$as_me:$LINENO: result: $ac_file" >&5
2342 echo "${ECHO_T}$ac_file" >&6; }
2343 if test -z "$ac_file"; then
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: C compiler cannot create executables
2350 See \`config.log' for more details." >&2;}
2351 { (exit 77); exit 77; }; }
2352 fi
2353
2354 ac_exeext=$ac_cv_exeext
2355
2356 # Check that the compiler produces executables we can run. If not, either
2357 # the compiler is broken, or we cross compile.
2358 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2359 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2360 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2361 # If not cross compiling, check that we can run a simple program.
2362 if test "$cross_compiling" != yes; then
2363 if { ac_try='./$ac_file'
2364 { (case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367 esac
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_try") 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2373 cross_compiling=no
2374 else
2375 if test "$cross_compiling" = maybe; then
2376 cross_compiling=yes
2377 else
2378 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2379 If you meant to cross compile, use \`--host'.
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot run C compiled programs.
2382 If you meant to cross compile, use \`--host'.
2383 See \`config.log' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2385 fi
2386 fi
2387 fi
2388 { echo "$as_me:$LINENO: result: yes" >&5
2389 echo "${ECHO_T}yes" >&6; }
2390
2391 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2392 ac_clean_files=$ac_clean_files_save
2393 # Check that the compiler produces executables we can run. If not, either
2394 # the compiler is broken, or we cross compile.
2395 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2396 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2397 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2398 echo "${ECHO_T}$cross_compiling" >&6; }
2399
2400 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2401 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2402 if { (ac_try="$ac_link"
2403 case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406 esac
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_link") 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; then
2412 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2413 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2414 # work properly (i.e., refer to `conftest.exe'), while it won't with
2415 # `rm'.
2416 for ac_file in conftest.exe conftest conftest.*; do
2417 test -f "$ac_file" || continue
2418 case $ac_file in
2419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2420 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421 break;;
2422 * ) break;;
2423 esac
2424 done
2425 else
2426 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2427 See \`config.log' for more details." >&5
2428 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2429 See \`config.log' for more details." >&2;}
2430 { (exit 1); exit 1; }; }
2431 fi
2432
2433 rm -f conftest$ac_cv_exeext
2434 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2436
2437 rm -f conftest.$ac_ext
2438 EXEEXT=$ac_cv_exeext
2439 ac_exeext=$EXEEXT
2440 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2442 if test "${ac_cv_objext+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h. */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2451
2452 int
2453 main ()
2454 {
2455
2456 ;
2457 return 0;
2458 }
2459 _ACEOF
2460 rm -f conftest.o conftest.obj
2461 if { (ac_try="$ac_compile"
2462 case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2465 esac
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_compile") 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; then
2471 for ac_file in conftest.o conftest.obj conftest.*; do
2472 test -f "$ac_file" || continue;
2473 case $ac_file in
2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2476 break;;
2477 esac
2478 done
2479 else
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2486 See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2488 fi
2489
2490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2491 fi
2492 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2493 echo "${ECHO_T}$ac_cv_objext" >&6; }
2494 OBJEXT=$ac_cv_objext
2495 ac_objext=$OBJEXT
2496 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2497 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2498 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h. */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2507
2508 int
2509 main ()
2510 {
2511 #ifndef __GNUC__
2512 choke me
2513 #endif
2514
2515 ;
2516 return 0;
2517 }
2518 _ACEOF
2519 rm -f conftest.$ac_objext
2520 if { (ac_try="$ac_compile"
2521 case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_compile") 2>conftest.er1
2527 ac_status=$?
2528 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -f conftest.er1
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } && {
2533 test -z "$ac_c_werror_flag" ||
2534 test ! -s conftest.err
2535 } && test -s conftest.$ac_objext; then
2536 ac_compiler_gnu=yes
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_compiler_gnu=no
2542 fi
2543
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2546
2547 fi
2548 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2550 GCC=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CFLAGS=${CFLAGS+set}
2552 ac_save_CFLAGS=$CFLAGS
2553 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2554 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_cc_g+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558 ac_save_c_werror_flag=$ac_c_werror_flag
2559 ac_c_werror_flag=yes
2560 ac_cv_prog_cc_g=no
2561 CFLAGS="-g"
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2568
2569 int
2570 main ()
2571 {
2572
2573 ;
2574 return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2579 case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2585 ac_status=$?
2586 grep -v '^ *+' conftest.er1 >conftest.err
2587 rm -f conftest.er1
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } && {
2591 test -z "$ac_c_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest.$ac_objext; then
2594 ac_cv_prog_cc_g=yes
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 CFLAGS=""
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h. */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2606
2607 int
2608 main ()
2609 {
2610
2611 ;
2612 return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_compile") 2>conftest.er1
2623 ac_status=$?
2624 grep -v '^ *+' conftest.er1 >conftest.err
2625 rm -f conftest.er1
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } && {
2629 test -z "$ac_c_werror_flag" ||
2630 test ! -s conftest.err
2631 } && test -s conftest.$ac_objext; then
2632 :
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 ac_c_werror_flag=$ac_save_c_werror_flag
2638 CFLAGS="-g"
2639 cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h. */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2645
2646 int
2647 main ()
2648 {
2649
2650 ;
2651 return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (ac_try="$ac_compile"
2656 case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compile") 2>conftest.er1
2662 ac_status=$?
2663 grep -v '^ *+' conftest.er1 >conftest.err
2664 rm -f conftest.er1
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } && {
2668 test -z "$ac_c_werror_flag" ||
2669 test ! -s conftest.err
2670 } && test -s conftest.$ac_objext; then
2671 ac_cv_prog_cc_g=yes
2672 else
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676
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 fi
2684
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 ac_c_werror_flag=$ac_save_c_werror_flag
2687 fi
2688 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2690 if test "$ac_test_CFLAGS" = set; then
2691 CFLAGS=$ac_save_CFLAGS
2692 elif test $ac_cv_prog_cc_g = yes; then
2693 if test "$GCC" = yes; then
2694 CFLAGS="-g -O2"
2695 else
2696 CFLAGS="-g"
2697 fi
2698 else
2699 if test "$GCC" = yes; then
2700 CFLAGS="-O2"
2701 else
2702 CFLAGS=
2703 fi
2704 fi
2705 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2706 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_cc_c89+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 ac_cv_prog_cc_c89=no
2711 ac_save_CC=$CC
2712 cat >conftest.$ac_ext <<_ACEOF
2713 /* confdefs.h. */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2718 #include <stdarg.h>
2719 #include <stdio.h>
2720 #include <sys/types.h>
2721 #include <sys/stat.h>
2722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2723 struct buf { int x; };
2724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2725 static char *e (p, i)
2726 char **p;
2727 int i;
2728 {
2729 return p[i];
2730 }
2731 static char *f (char * (*g) (char **, int), char **p, ...)
2732 {
2733 char *s;
2734 va_list v;
2735 va_start (v,p);
2736 s = g (p, va_arg (v,int));
2737 va_end (v);
2738 return s;
2739 }
2740
2741 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2742 function prototypes and stuff, but not '\xHH' hex character constants.
2743 These don't provoke an error unfortunately, instead are silently treated
2744 as 'x'. The following induces an error, until -std is added to get
2745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2746 array size at least. It's necessary to write '\x00'==0 to get something
2747 that's true only with -std. */
2748 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2749
2750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2751 inside strings and character constants. */
2752 #define FOO(x) 'x'
2753 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2754
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2759 int argc;
2760 char **argv;
2761 int
2762 main ()
2763 {
2764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2765 ;
2766 return 0;
2767 }
2768 _ACEOF
2769 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2771 do
2772 CC="$ac_save_CC $ac_arg"
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2775 case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest.$ac_objext; then
2790 ac_cv_prog_cc_c89=$ac_arg
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795
2796 fi
2797
2798 rm -f core conftest.err conftest.$ac_objext
2799 test "x$ac_cv_prog_cc_c89" != "xno" && break
2800 done
2801 rm -f conftest.$ac_ext
2802 CC=$ac_save_CC
2803
2804 fi
2805 # AC_CACHE_VAL
2806 case "x$ac_cv_prog_cc_c89" in
2807 x)
2808 { echo "$as_me:$LINENO: result: none needed" >&5
2809 echo "${ECHO_T}none needed" >&6; } ;;
2810 xno)
2811 { echo "$as_me:$LINENO: result: unsupported" >&5
2812 echo "${ECHO_T}unsupported" >&6; } ;;
2813 *)
2814 CC="$CC $ac_cv_prog_cc_c89"
2815 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2816 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2817 esac
2818
2819
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825
2826
2827
2828
2829
2830 if test "$GCC" = yes ; then
2831 if test "$SHLICC2" = yes ; then
2832 ac_cv_lbl_gcc_vers=2
2833 V_CCOPT="-O2"
2834 else
2835 { echo "$as_me:$LINENO: checking gcc version" >&5
2836 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2837 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2841 sed -e '/^gcc version /!d' \
2842 -e 's/^gcc version //' \
2843 -e 's/ .*//' -e 's/^[^0-9]*//' \
2844 -e 's/\..*//'`
2845 fi
2846
2847 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2848 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2849 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2850 V_CCOPT="-O2"
2851 fi
2852 fi
2853 else
2854 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2855 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2856 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859
2860 cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h. */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2866 #include <sys/types.h>
2867 int
2868 main ()
2869 {
2870 int frob(int, char *)
2871 ;
2872 return 0;
2873 }
2874 _ACEOF
2875 rm -f conftest.$ac_objext
2876 if { (ac_try="$ac_compile"
2877 case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compile") 2>conftest.er1
2883 ac_status=$?
2884 grep -v '^ *+' conftest.er1 >conftest.err
2885 rm -f conftest.er1
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } && {
2889 test -z "$ac_c_werror_flag" ||
2890 test ! -s conftest.err
2891 } && test -s conftest.$ac_objext; then
2892 ac_cv_lbl_cc_ansi_prototypes=yes
2893 else
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897 ac_cv_lbl_cc_ansi_prototypes=no
2898 fi
2899
2900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901 fi
2902
2903 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2904 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2905 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2906 case "$host_os" in
2907
2908 hpux*)
2909 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2910 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2911 savedcflags="$CFLAGS"
2912 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2913 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916 cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h. */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 #include <sys/types.h>
2923 int
2924 main ()
2925 {
2926 int frob(int, char *)
2927 ;
2928 return 0;
2929 }
2930 _ACEOF
2931 rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2933 case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compile") 2>conftest.er1
2939 ac_status=$?
2940 grep -v '^ *+' conftest.er1 >conftest.err
2941 rm -f conftest.er1
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } && {
2945 test -z "$ac_c_werror_flag" ||
2946 test ! -s conftest.err
2947 } && test -s conftest.$ac_objext; then
2948 ac_cv_lbl_cc_hpux_cc_aa=yes
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 ac_cv_lbl_cc_hpux_cc_aa=no
2954 fi
2955
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 fi
2958
2959 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2960 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2961 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2962 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2963 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2964 { (exit 1); exit 1; }; }
2965 fi
2966 CFLAGS="$savedcflags"
2967 V_CCOPT="-Aa $V_CCOPT"
2968
2969 cat >>confdefs.h <<\_ACEOF
2970 #define _HPUX_SOURCE 1
2971 _ACEOF
2972
2973 ;;
2974
2975 osf*)
2976 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2977 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2978 savedcflags="$CFLAGS"
2979 CFLAGS="-std1"
2980 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983 cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h. */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #include <sys/types.h>
2990 int
2991 main ()
2992 {
2993 int frob(int, char *)
2994 ;
2995 return 0;
2996 }
2997 _ACEOF
2998 rm -f conftest.$ac_objext
2999 if { (ac_try="$ac_compile"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compile") 2>conftest.er1
3006 ac_status=$?
3007 grep -v '^ *+' conftest.er1 >conftest.err
3008 rm -f conftest.er1
3009 cat conftest.err >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
3015 ac_cv_lbl_cc_osf1_cc_std1=yes
3016 else
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020 ac_cv_lbl_cc_osf1_cc_std1=no
3021 fi
3022
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 fi
3025
3026 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3027 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3028 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3029 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3030 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3031 { (exit 1); exit 1; }; }
3032 fi
3033 CFLAGS="$savedcflags"
3034 V_CCOPT="-std1 $V_CCOPT"
3035 ;;
3036
3037 *)
3038 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3039 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3040 { (exit 1); exit 1; }; }
3041 ;;
3042 esac
3043 fi
3044 V_INCLS="$V_INCLS -I/usr/local/include"
3045 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3046
3047 case "$host_os" in
3048
3049 irix*)
3050 V_CCOPT="$V_CCOPT -xansi -signed -O"
3051 ;;
3052
3053 osf*)
3054 #
3055 # Presumed to be DEC OSF/1, Digital UNIX, or
3056 # Tru64 UNIX.
3057 #
3058 V_CCOPT="$V_CCOPT -O"
3059 ;;
3060
3061 ultrix*)
3062 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3063 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3064 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h. */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 #include <sys/types.h>
3074 int
3075 main ()
3076 {
3077 struct a { int b; };
3078 void c(const struct a *)
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
3100 ac_cv_lbl_cc_const_proto=yes
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 ac_cv_lbl_cc_const_proto=no
3106 fi
3107
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 fi
3110
3111 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3112 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3113 if test $ac_cv_lbl_cc_const_proto = no ; then
3114
3115 cat >>confdefs.h <<\_ACEOF
3116 #define const
3117 _ACEOF
3118
3119 fi
3120 ;;
3121 esac
3122 fi
3123
3124 { echo "$as_me:$LINENO: checking for inline" >&5
3125 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3126 save_CFLAGS="$CFLAGS"
3127 CFLAGS="$V_CCOPT"
3128 if test "${ac_cv_lbl_inline+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 else
3131
3132 ac_cv_lbl_inline=""
3133 ac_lbl_cc_inline=no
3134 for ac_lbl_inline in inline __inline__ __inline
3135 do
3136 cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h. */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3142 #define inline $ac_lbl_inline
3143 static inline struct iltest *foo(void);
3144 struct iltest {
3145 int iltest1;
3146 int iltest2;
3147 };
3148
3149 static inline struct iltest *
3150 foo()
3151 {
3152 static struct iltest xxx;
3153
3154 return &xxx;
3155 }
3156 int
3157 main ()
3158 {
3159
3160 ;
3161 return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 ac_lbl_cc_inline=yes
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 if test "$ac_lbl_cc_inline" = yes ; then
3191 break;
3192 fi
3193 done
3194 if test "$ac_lbl_cc_inline" = yes ; then
3195 ac_cv_lbl_inline=$ac_lbl_inline
3196 fi
3197 fi
3198
3199 CFLAGS="$save_CFLAGS"
3200 if test ! -z "$ac_cv_lbl_inline" ; then
3201 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3202 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3203 else
3204 { echo "$as_me:$LINENO: result: no" >&5
3205 echo "${ECHO_T}no" >&6; }
3206 fi
3207
3208 cat >>confdefs.h <<_ACEOF
3209 #define inline $ac_cv_lbl_inline
3210 _ACEOF
3211
3212
3213 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3214 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3215 if test "${ac_cv___attribute__+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218
3219 cat >conftest.$ac_ext <<_ACEOF
3220
3221 /* confdefs.h. */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3226
3227 #include <stdlib.h>
3228
3229 static void foo(void) __attribute__ ((noreturn));
3230
3231 static void
3232 foo(void)
3233 {
3234 exit(1);
3235 }
3236
3237 int
3238 main(int argc, char **argv)
3239 {
3240 foo();
3241 }
3242
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (ac_try="$ac_compile"
3246 case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_compile") 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } && {
3258 test -z "$ac_c_werror_flag" ||
3259 test ! -s conftest.err
3260 } && test -s conftest.$ac_objext; then
3261 ac_cv___attribute__=yes
3262 else
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266 ac_cv___attribute__=no
3267 fi
3268
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 fi
3271
3272 if test "$ac_cv___attribute__" = "yes"; then
3273
3274 cat >>confdefs.h <<\_ACEOF
3275 #define HAVE___ATTRIBUTE__ 1
3276 _ACEOF
3277
3278 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3279 else
3280 V_DEFS="$V_DEFS -D_U_=\"\""
3281 fi
3282 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3283 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3284
3285 if test "$ac_cv___attribute__" = "yes"; then
3286
3287 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3288 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3289 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292
3293 cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h. */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3299
3300 #include <stdlib.h>
3301
3302 extern int (*foo)(const char *fmt, ...)
3303 __attribute__ ((format (printf, 1, 2)));
3304
3305 int
3306 main(int argc, char **argv)
3307 {
3308 (*foo)("%s", "test");
3309 }
3310
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (ac_try="$ac_compile"
3314 case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_compile") 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } && {
3326 test -z "$ac_c_werror_flag" ||
3327 test ! -s conftest.err
3328 } && test -s conftest.$ac_objext; then
3329 ac_cv___attribute___format_function_pointer=yes
3330 else
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 ac_cv___attribute___format_function_pointer=no
3335 fi
3336
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 fi
3339
3340 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3341
3342 cat >>confdefs.h <<\_ACEOF
3343 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3344 _ACEOF
3345
3346 fi
3347 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3348 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3349
3350 fi
3351 ac_ext=c
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3357 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3358 # On Suns, sometimes $CPP names a directory.
3359 if test -n "$CPP" && test -d "$CPP"; then
3360 CPP=
3361 fi
3362 if test -z "$CPP"; then
3363 if test "${ac_cv_prog_CPP+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366 # Double quotes because CPP needs to be expanded
3367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3368 do
3369 ac_preproc_ok=false
3370 for ac_c_preproc_warn_flag in '' yes
3371 do
3372 # Use a header file that comes with gcc, so configuring glibc
3373 # with a fresh cross-compiler works.
3374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3375 # <limits.h> exists even on freestanding compilers.
3376 # On the NeXT, cc -E runs the code through the compiler's parser,
3377 # not just through cpp. "Syntax error" is here to catch this case.
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 #ifdef __STDC__
3385 # include <limits.h>
3386 #else
3387 # include <assert.h>
3388 #endif
3389 Syntax error
3390 _ACEOF
3391 if { (ac_try="$ac_cpp conftest.$ac_ext"
3392 case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null && {
3404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3405 test ! -s conftest.err
3406 }; then
3407 :
3408 else
3409 echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3411
3412 # Broken: fails on valid input.
3413 continue
3414 fi
3415
3416 rm -f conftest.err conftest.$ac_ext
3417
3418 # OK, works on sane cases. Now check whether nonexistent headers
3419 # can be detected and how.
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #include <ac_nonexistent.h>
3427 _ACEOF
3428 if { (ac_try="$ac_cpp conftest.$ac_ext"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null && {
3441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3442 test ! -s conftest.err
3443 }; then
3444 # Broken: success on invalid input.
3445 continue
3446 else
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 # Passes both tests.
3451 ac_preproc_ok=:
3452 break
3453 fi
3454
3455 rm -f conftest.err conftest.$ac_ext
3456
3457 done
3458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3459 rm -f conftest.err conftest.$ac_ext
3460 if $ac_preproc_ok; then
3461 break
3462 fi
3463
3464 done
3465 ac_cv_prog_CPP=$CPP
3466
3467 fi
3468 CPP=$ac_cv_prog_CPP
3469 else
3470 ac_cv_prog_CPP=$CPP
3471 fi
3472 { echo "$as_me:$LINENO: result: $CPP" >&5
3473 echo "${ECHO_T}$CPP" >&6; }
3474 ac_preproc_ok=false
3475 for ac_c_preproc_warn_flag in '' yes
3476 do
3477 # Use a header file that comes with gcc, so configuring glibc
3478 # with a fresh cross-compiler works.
3479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3480 # <limits.h> exists even on freestanding compilers.
3481 # On the NeXT, cc -E runs the code through the compiler's parser,
3482 # not just through cpp. "Syntax error" is here to catch this case.
3483 cat >conftest.$ac_ext <<_ACEOF
3484 /* confdefs.h. */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3489 #ifdef __STDC__
3490 # include <limits.h>
3491 #else
3492 # include <assert.h>
3493 #endif
3494 Syntax error
3495 _ACEOF
3496 if { (ac_try="$ac_cpp conftest.$ac_ext"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } >/dev/null && {
3509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3511 }; then
3512 :
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 # Broken: fails on valid input.
3518 continue
3519 fi
3520
3521 rm -f conftest.err conftest.$ac_ext
3522
3523 # OK, works on sane cases. Now check whether nonexistent headers
3524 # can be detected and how.
3525 cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h. */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3531 #include <ac_nonexistent.h>
3532 _ACEOF
3533 if { (ac_try="$ac_cpp conftest.$ac_ext"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } >/dev/null && {
3546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3548 }; then
3549 # Broken: success on invalid input.
3550 continue
3551 else
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3554
3555 # Passes both tests.
3556 ac_preproc_ok=:
3557 break
3558 fi
3559
3560 rm -f conftest.err conftest.$ac_ext
3561
3562 done
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.err conftest.$ac_ext
3565 if $ac_preproc_ok; then
3566 :
3567 else
3568 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3569 See \`config.log' for more details." >&5
3570 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3571 See \`config.log' for more details." >&2;}
3572 { (exit 1); exit 1; }; }
3573 fi
3574
3575 ac_ext=c
3576 ac_cpp='$CPP $CPPFLAGS'
3577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580
3581
3582 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3583 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3584 if test "${ac_cv_path_GREP+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587 # Extract the first word of "grep ggrep" to use in msg output
3588 if test -z "$GREP"; then
3589 set dummy grep ggrep; ac_prog_name=$2
3590 if test "${ac_cv_path_GREP+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593 ac_path_GREP_found=false
3594 # Loop through the user's path and test for each of PROGNAME-LIST
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3597 do
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_prog in grep ggrep; do
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3603 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3604 # Check for GNU ac_path_GREP and select it if it is found.
3605 # Check for GNU $ac_path_GREP
3606 case `"$ac_path_GREP" --version 2>&1` in
3607 *GNU*)
3608 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3609 *)
3610 ac_count=0
3611 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3612 while :
3613 do
3614 cat "conftest.in" "conftest.in" >"conftest.tmp"
3615 mv "conftest.tmp" "conftest.in"
3616 cp "conftest.in" "conftest.nl"
3617 echo 'GREP' >> "conftest.nl"
3618 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3620 ac_count=`expr $ac_count + 1`
3621 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3622 # Best one so far, save it but keep looking for a better one
3623 ac_cv_path_GREP="$ac_path_GREP"
3624 ac_path_GREP_max=$ac_count
3625 fi
3626 # 10*(2^10) chars as input seems more than enough
3627 test $ac_count -gt 10 && break
3628 done
3629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3630 esac
3631
3632
3633 $ac_path_GREP_found && break 3
3634 done
3635 done
3636
3637 done
3638 IFS=$as_save_IFS
3639
3640
3641 fi
3642
3643 GREP="$ac_cv_path_GREP"
3644 if test -z "$GREP"; then
3645 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3646 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3647 { (exit 1); exit 1; }; }
3648 fi
3649
3650 else
3651 ac_cv_path_GREP=$GREP
3652 fi
3653
3654
3655 fi
3656 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3657 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3658 GREP="$ac_cv_path_GREP"
3659
3660
3661 { echo "$as_me:$LINENO: checking for egrep" >&5
3662 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3663 if test "${ac_cv_path_EGREP+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3667 then ac_cv_path_EGREP="$GREP -E"
3668 else
3669 # Extract the first word of "egrep" to use in msg output
3670 if test -z "$EGREP"; then
3671 set dummy egrep; ac_prog_name=$2
3672 if test "${ac_cv_path_EGREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 ac_path_EGREP_found=false
3676 # Loop through the user's path and test for each of PROGNAME-LIST
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3679 do
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_prog in egrep; do
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3685 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3686 # Check for GNU ac_path_EGREP and select it if it is found.
3687 # Check for GNU $ac_path_EGREP
3688 case `"$ac_path_EGREP" --version 2>&1` in
3689 *GNU*)
3690 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3691 *)
3692 ac_count=0
3693 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3694 while :
3695 do
3696 cat "conftest.in" "conftest.in" >"conftest.tmp"
3697 mv "conftest.tmp" "conftest.in"
3698 cp "conftest.in" "conftest.nl"
3699 echo 'EGREP' >> "conftest.nl"
3700 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3702 ac_count=`expr $ac_count + 1`
3703 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3704 # Best one so far, save it but keep looking for a better one
3705 ac_cv_path_EGREP="$ac_path_EGREP"
3706 ac_path_EGREP_max=$ac_count
3707 fi
3708 # 10*(2^10) chars as input seems more than enough
3709 test $ac_count -gt 10 && break
3710 done
3711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3712 esac
3713
3714
3715 $ac_path_EGREP_found && break 3
3716 done
3717 done
3718
3719 done
3720 IFS=$as_save_IFS
3721
3722
3723 fi
3724
3725 EGREP="$ac_cv_path_EGREP"
3726 if test -z "$EGREP"; then
3727 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3728 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3729 { (exit 1); exit 1; }; }
3730 fi
3731
3732 else
3733 ac_cv_path_EGREP=$EGREP
3734 fi
3735
3736
3737 fi
3738 fi
3739 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3740 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3741 EGREP="$ac_cv_path_EGREP"
3742
3743
3744 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3745 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3746 if test "${ac_cv_header_stdc+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749 cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h. */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755 #include <stdlib.h>
3756 #include <stdarg.h>
3757 #include <string.h>
3758 #include <float.h>
3759
3760 int
3761 main ()
3762 {
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 rm -f conftest.$ac_objext
3769 if { (ac_try="$ac_compile"
3770 case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775 (eval "$ac_compile") 2>conftest.er1
3776 ac_status=$?
3777 grep -v '^ *+' conftest.er1 >conftest.err
3778 rm -f conftest.er1
3779 cat conftest.err >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } && {
3782 test -z "$ac_c_werror_flag" ||
3783 test ! -s conftest.err
3784 } && test -s conftest.$ac_objext; then
3785 ac_cv_header_stdc=yes
3786 else
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3789
3790 ac_cv_header_stdc=no
3791 fi
3792
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794
3795 if test $ac_cv_header_stdc = yes; then
3796 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 #include <string.h>
3804
3805 _ACEOF
3806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3807 $EGREP "memchr" >/dev/null 2>&1; then
3808 :
3809 else
3810 ac_cv_header_stdc=no
3811 fi
3812 rm -f -r conftest*
3813
3814 fi
3815
3816 if test $ac_cv_header_stdc = yes; then
3817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3818 cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h. */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3824 #include <stdlib.h>
3825
3826 _ACEOF
3827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3828 $EGREP "free" >/dev/null 2>&1; then
3829 :
3830 else
3831 ac_cv_header_stdc=no
3832 fi
3833 rm -f -r conftest*
3834
3835 fi
3836
3837 if test $ac_cv_header_stdc = yes; then
3838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3839 if test "$cross_compiling" = yes; then
3840 :
3841 else
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 #include <ctype.h>
3849 #include <stdlib.h>
3850 #if ((' ' & 0x0FF) == 0x020)
3851 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3852 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3853 #else
3854 # define ISLOWER(c) \
3855 (('a' <= (c) && (c) <= 'i') \
3856 || ('j' <= (c) && (c) <= 'r') \
3857 || ('s' <= (c) && (c) <= 'z'))
3858 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3859 #endif
3860
3861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3862 int
3863 main ()
3864 {
3865 int i;
3866 for (i = 0; i < 256; i++)
3867 if (XOR (islower (i), ISLOWER (i))
3868 || toupper (i) != TOUPPER (i))
3869 return 2;
3870 return 0;
3871 }
3872 _ACEOF
3873 rm -f conftest$ac_exeext
3874 if { (ac_try="$ac_link"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_link") 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3884 { (case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_try") 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3893 :
3894 else
3895 echo "$as_me: program exited with status $ac_status" >&5
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899 ( exit $ac_status )
3900 ac_cv_header_stdc=no
3901 fi
3902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3903 fi
3904
3905
3906 fi
3907 fi
3908 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3909 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3910 if test $ac_cv_header_stdc = yes; then
3911
3912 cat >>confdefs.h <<\_ACEOF
3913 #define STDC_HEADERS 1
3914 _ACEOF
3915
3916 fi
3917
3918 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3929 inttypes.h stdint.h unistd.h
3930 do
3931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 $ac_includes_default
3944
3945 #include <$ac_header>
3946 _ACEOF
3947 rm -f conftest.$ac_objext
3948 if { (ac_try="$ac_compile"
3949 case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && {
3961 test -z "$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 } && test -s conftest.$ac_objext; then
3964 eval "$as_ac_Header=yes"
3965 else
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 eval "$as_ac_Header=no"
3970 fi
3971
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 fi
3974 ac_res=`eval echo '${'$as_ac_Header'}'`
3975 { echo "$as_me:$LINENO: result: $ac_res" >&5
3976 echo "${ECHO_T}$ac_res" >&6; }
3977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3978 cat >>confdefs.h <<_ACEOF
3979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3980 _ACEOF
3981
3982 fi
3983
3984 done
3985
3986
3987
3988
3989
3990 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3991 do
3992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 fi
3999 ac_res=`eval echo '${'$as_ac_Header'}'`
4000 { echo "$as_me:$LINENO: result: $ac_res" >&5
4001 echo "${ECHO_T}$ac_res" >&6; }
4002 else
4003 # Is the header compilable?
4004 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 $ac_includes_default
4013 #include <$ac_header>
4014 _ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (ac_try="$ac_compile"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_compile") 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && {
4029 test -z "$ac_c_werror_flag" ||
4030 test ! -s conftest.err
4031 } && test -s conftest.$ac_objext; then
4032 ac_header_compiler=yes
4033 else
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 ac_header_compiler=no
4038 fi
4039
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4042 echo "${ECHO_T}$ac_header_compiler" >&6; }
4043
4044 # Is the header present?
4045 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4047 cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h. */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 #include <$ac_header>
4054 _ACEOF
4055 if { (ac_try="$ac_cpp conftest.$ac_ext"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4062 ac_status=$?
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } >/dev/null && {
4068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4069 test ! -s conftest.err
4070 }; then
4071 ac_header_preproc=yes
4072 else
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4075
4076 ac_header_preproc=no
4077 fi
4078
4079 rm -f conftest.err conftest.$ac_ext
4080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4081 echo "${ECHO_T}$ac_header_preproc" >&6; }
4082
4083 # So? What about this header?
4084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4085 yes:no: )
4086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4090 ac_header_preproc=yes
4091 ;;
4092 no:yes:* )
4093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4105
4106 ;;
4107 esac
4108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113 eval "$as_ac_Header=\$ac_header_preproc"
4114 fi
4115 ac_res=`eval echo '${'$as_ac_Header'}'`
4116 { echo "$as_me:$LINENO: result: $ac_res" >&5
4117 echo "${ECHO_T}$ac_res" >&6; }
4118
4119 fi
4120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4121 cat >>confdefs.h <<_ACEOF
4122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4123 _ACEOF
4124
4125 fi
4126
4127 done
4128
4129
4130 for ac_header in net/pfvar.h
4131 do
4132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <sys/types.h>
4145 #include <sys/socket.h>
4146 #include <net/if.h>
4147
4148 #include <$ac_header>
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4152 case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155 esac
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } && {
4164 test -z "$ac_c_werror_flag" ||
4165 test ! -s conftest.err
4166 } && test -s conftest.$ac_objext; then
4167 eval "$as_ac_Header=yes"
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 eval "$as_ac_Header=no"
4173 fi
4174
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 fi
4177 ac_res=`eval echo '${'$as_ac_Header'}'`
4178 { echo "$as_me:$LINENO: result: $ac_res" >&5
4179 echo "${ECHO_T}$ac_res" >&6; }
4180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4181 cat >>confdefs.h <<_ACEOF
4182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4183 _ACEOF
4184
4185 fi
4186
4187 done
4188
4189 if test "$ac_cv_header_net_pfvar_h" = yes; then
4190 LOCALSRC="print-pflog.c $LOCALSRC"
4191 fi
4192
4193 for ac_header in netinet/if_ether.h
4194 do
4195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 #include <sys/types.h>
4208 #include <sys/socket.h>
4209
4210 #include <$ac_header>
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest.$ac_objext; then
4229 eval "$as_ac_Header=yes"
4230 else
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234 eval "$as_ac_Header=no"
4235 fi
4236
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 fi
4239 ac_res=`eval echo '${'$as_ac_Header'}'`
4240 { echo "$as_me:$LINENO: result: $ac_res" >&5
4241 echo "${ECHO_T}$ac_res" >&6; }
4242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4243 cat >>confdefs.h <<_ACEOF
4244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4245 _ACEOF
4246
4247 fi
4248
4249 done
4250
4251 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4252 #
4253 # The simple test didn't work.
4254 # Do we need to include <net/if.h> first?
4255 # Unset ac_cv_header_netinet_if_ether_h so we don't
4256 # treat the previous failure as a cached value and
4257 # suppress the next test.
4258 #
4259 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4260 echo "$as_me: Rechecking with some additional includes" >&6;}
4261 unset ac_cv_header_netinet_if_ether_h
4262
4263 for ac_header in netinet/if_ether.h
4264 do
4265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271 cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <sys/types.h>
4278 #include <sys/socket.h>
4279 #include <netinet/in.h>
4280 struct mbuf;
4281 struct rtentry;
4282 #include <net/if.h>
4283
4284 #include <$ac_header>
4285 _ACEOF
4286 rm -f conftest.$ac_objext
4287 if { (ac_try="$ac_compile"
4288 case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_compile") 2>conftest.er1
4294 ac_status=$?
4295 grep -v '^ *+' conftest.er1 >conftest.err
4296 rm -f conftest.er1
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } && {
4300 test -z "$ac_c_werror_flag" ||
4301 test ! -s conftest.err
4302 } && test -s conftest.$ac_objext; then
4303 eval "$as_ac_Header=yes"
4304 else
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4307
4308 eval "$as_ac_Header=no"
4309 fi
4310
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 fi
4313 ac_res=`eval echo '${'$as_ac_Header'}'`
4314 { echo "$as_me:$LINENO: result: $ac_res" >&5
4315 echo "${ECHO_T}$ac_res" >&6; }
4316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4317 cat >>confdefs.h <<_ACEOF
4318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4319 _ACEOF
4320
4321 fi
4322
4323 done
4324
4325 fi
4326
4327 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4328 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4329 if test "${ac_cv_header_time+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h. */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #include <sys/types.h>
4339 #include <sys/time.h>
4340 #include <time.h>
4341
4342 int
4343 main ()
4344 {
4345 if ((struct tm *) 0)
4346 return 0;
4347 ;
4348 return 0;
4349 }
4350 _ACEOF
4351 rm -f conftest.$ac_objext
4352 if { (ac_try="$ac_compile"
4353 case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356 esac
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_compile") 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } && {
4365 test -z "$ac_c_werror_flag" ||
4366 test ! -s conftest.err
4367 } && test -s conftest.$ac_objext; then
4368 ac_cv_header_time=yes
4369 else
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 ac_cv_header_time=no
4374 fi
4375
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 fi
4378 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4379 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4380 if test $ac_cv_header_time = yes; then
4381
4382 cat >>confdefs.h <<\_ACEOF
4383 #define TIME_WITH_SYS_TIME 1
4384 _ACEOF
4385
4386 fi
4387
4388
4389 case "$host_os" in
4390
4391 linux*)
4392 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4393 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4394 if test "$cross_compiling" = yes; then
4395 if test "${ac_cv_linux_vers+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398 ac_cv_linux_vers=unknown
4399 fi
4400
4401 else
4402 if test "${ac_cv_linux_vers+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405 ac_cv_linux_vers=`uname -r 2>&1 | \
4406 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4407 fi
4408
4409 fi
4410 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4411 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4412 if test $ac_cv_linux_vers = unknown ; then
4413 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4414 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4415 { (exit 1); exit 1; }; }
4416 fi
4417 if test $ac_cv_linux_vers -lt 2 ; then
4418 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4419 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4420 { (exit 1); exit 1; }; }
4421 fi
4422 ;;
4423
4424 *)
4425 ;;
4426 esac
4427
4428
4429
4430 # Check whether --with-smi was given.
4431 if test "${with_smi+set}" = set; then
4432 withval=$with_smi;
4433 else
4434 with_smi=yes
4435 fi
4436
4437
4438 if test "x$with_smi" != "xno" ; then
4439
4440 for ac_header in smi.h
4441 do
4442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 fi
4449 ac_res=`eval echo '${'$as_ac_Header'}'`
4450 { echo "$as_me:$LINENO: result: $ac_res" >&5
4451 echo "${ECHO_T}$ac_res" >&6; }
4452 else
4453 # Is the header compilable?
4454 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h. */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 $ac_includes_default
4463 #include <$ac_header>
4464 _ACEOF
4465 rm -f conftest.$ac_objext
4466 if { (ac_try="$ac_compile"
4467 case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470 esac
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_compile") 2>conftest.er1
4473 ac_status=$?
4474 grep -v '^ *+' conftest.er1 >conftest.err
4475 rm -f conftest.er1
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } && {
4479 test -z "$ac_c_werror_flag" ||
4480 test ! -s conftest.err
4481 } && test -s conftest.$ac_objext; then
4482 ac_header_compiler=yes
4483 else
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487 ac_header_compiler=no
4488 fi
4489
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4492 echo "${ECHO_T}$ac_header_compiler" >&6; }
4493
4494 # Is the header present?
4495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4497 cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h. */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 #include <$ac_header>
4504 _ACEOF
4505 if { (ac_try="$ac_cpp conftest.$ac_ext"
4506 case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4512 ac_status=$?
4513 grep -v '^ *+' conftest.er1 >conftest.err
4514 rm -f conftest.er1
4515 cat conftest.err >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } >/dev/null && {
4518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4519 test ! -s conftest.err
4520 }; then
4521 ac_header_preproc=yes
4522 else
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526 ac_header_preproc=no
4527 fi
4528
4529 rm -f conftest.err conftest.$ac_ext
4530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4531 echo "${ECHO_T}$ac_header_preproc" >&6; }
4532
4533 # So? What about this header?
4534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4535 yes:no: )
4536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4540 ac_header_preproc=yes
4541 ;;
4542 no:yes:* )
4543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4550 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4555
4556 ;;
4557 esac
4558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 eval "$as_ac_Header=\$ac_header_preproc"
4564 fi
4565 ac_res=`eval echo '${'$as_ac_Header'}'`
4566 { echo "$as_me:$LINENO: result: $ac_res" >&5
4567 echo "${ECHO_T}$ac_res" >&6; }
4568
4569 fi
4570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4571 cat >>confdefs.h <<_ACEOF
4572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4573 _ACEOF
4574
4575 fi
4576
4577 done
4578
4579
4580 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4581 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4582 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585 ac_check_lib_save_LIBS=$LIBS
4586 LIBS="-lsmi $LIBS"
4587 cat >conftest.$ac_ext <<_ACEOF
4588 /* confdefs.h. */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4593
4594 /* Override any GCC internal prototype to avoid an error.
4595 Use char because int might match the return type of a GCC
4596 builtin and then its argument prototype would still apply. */
4597 #ifdef __cplusplus
4598 extern "C"
4599 #endif
4600 char smiInit ();
4601 int
4602 main ()
4603 {
4604 return smiInit ();
4605 ;
4606 return 0;
4607 }
4608 _ACEOF
4609 rm -f conftest.$ac_objext conftest$ac_exeext
4610 if { (ac_try="$ac_link"
4611 case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614 esac
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_link") 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } && {
4623 test -z "$ac_c_werror_flag" ||
4624 test ! -s conftest.err
4625 } && test -s conftest$ac_exeext &&
4626 $as_test_x conftest$ac_exeext; then
4627 ac_cv_lib_smi_smiInit=yes
4628 else
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 ac_cv_lib_smi_smiInit=no
4633 fi
4634
4635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4636 conftest$ac_exeext conftest.$ac_ext
4637 LIBS=$ac_check_lib_save_LIBS
4638 fi
4639 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4640 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4641 if test $ac_cv_lib_smi_smiInit = yes; then
4642 cat >>confdefs.h <<_ACEOF
4643 #define HAVE_LIBSMI 1
4644 _ACEOF
4645
4646 LIBS="-lsmi $LIBS"
4647
4648 fi
4649
4650 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4651 then
4652 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4653 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4654 if test "$cross_compiling" = yes; then
4655 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4656 echo "${ECHO_T}not when cross-compiling" >&6; }
4657 libsmi=no
4658
4659 else
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 /* libsmi available check */
4667 #include <smi.h>
4668 main()
4669 {
4670 int current, revision, age, n;
4671 const int required = 2;
4672 if (smiInit(""))
4673 exit(1);
4674 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4675 exit(2);
4676 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4677 if (n != 3)
4678 exit(3);
4679 if (required < current - age || required > current)
4680 exit(4);
4681 exit(0);
4682 }
4683
4684 _ACEOF
4685 rm -f conftest$ac_exeext
4686 if { (ac_try="$ac_link"
4687 case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4690 esac
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_link") 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4696 { (case "(($ac_try" in
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4699 esac
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701 (eval "$ac_try") 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 { echo "$as_me:$LINENO: result: yes" >&5
4706 echo "${ECHO_T}yes" >&6; }
4707 cat >>confdefs.h <<\_ACEOF
4708 #define LIBSMI 1
4709 _ACEOF
4710
4711 libsmi=yes
4712 else
4713 echo "$as_me: program exited with status $ac_status" >&5
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717 ( exit $ac_status )
4718 case $? in
4719 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4720 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4721 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4722 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4723 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4724 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4725 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4726 echo "${ECHO_T}no - too old" >&6; } ;;
4727 *) { echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6; } ;;
4729 esac
4730 libsmi=no
4731 fi
4732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4733 fi
4734
4735
4736 fi
4737 fi
4738
4739 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4740 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4741 # Check whether --enable-smb was given.
4742 if test "${enable_smb+set}" = set; then
4743 enableval=$enable_smb;
4744 else
4745 enableval=yes
4746 fi
4747
4748 case "$enableval" in
4749 yes) { echo "$as_me:$LINENO: result: yes" >&5
4750 echo "${ECHO_T}yes" >&6; }
4751 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4752 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4753 cat >>confdefs.h <<\_ACEOF
4754 #define TCPDUMP_DO_SMB 1
4755 _ACEOF
4756
4757 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4758 ;;
4759 *) { echo "$as_me:$LINENO: result: no" >&5
4760 echo "${ECHO_T}no" >&6; }
4761 ;;
4762 esac
4763
4764
4765 # Check whether --with-user was given.
4766 if test "${with_user+set}" = set; then
4767 withval=$with_user;
4768 fi
4769
4770 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4771 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4772 if test ! -z "$with_user" ; then
4773 cat >>confdefs.h <<_ACEOF
4774 #define WITH_USER "$withval"
4775 _ACEOF
4776
4777 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4778 echo "${ECHO_T}to \"$withval\"" >&6; }
4779 else
4780 { echo "$as_me:$LINENO: result: no" >&5
4781 echo "${ECHO_T}no" >&6; }
4782 fi
4783
4784
4785 # Check whether --with-chroot was given.
4786 if test "${with_chroot+set}" = set; then
4787 withval=$with_chroot;
4788 fi
4789
4790 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4791 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4792 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4793 cat >>confdefs.h <<_ACEOF
4794 #define WITH_CHROOT "$withval"
4795 _ACEOF
4796
4797 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4798 echo "${ECHO_T}to \"$withval\"" >&6; }
4799 else
4800 { echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6; }
4802 fi
4803
4804 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4805 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4806 # Check whether --enable-ipv6 was given.
4807 if test "${enable_ipv6+set}" = set; then
4808 enableval=$enable_ipv6; case "$enableval" in
4809 yes) { echo "$as_me:$LINENO: result: yes" >&5
4810 echo "${ECHO_T}yes" >&6; }
4811 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"
4812 cat >>confdefs.h <<\_ACEOF
4813 #define INET6 1
4814 _ACEOF
4815
4816 ipv6=yes
4817 ;;
4818 *)
4819 { echo "$as_me:$LINENO: result: no" >&5
4820 echo "${ECHO_T}no" >&6; }
4821 ipv6=no
4822 ;;
4823 esac
4824 else
4825 if test "$cross_compiling" = yes; then
4826 { echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6; }
4828 ipv6=no
4829
4830 else
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 /* AF_INET6 available check */
4838 #include <sys/types.h>
4839 #include <sys/socket.h>
4840 main()
4841 {
4842 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4843 exit(1);
4844 else
4845 exit(0);
4846 }
4847
4848 _ACEOF
4849 rm -f conftest$ac_exeext
4850 if { (ac_try="$ac_link"
4851 case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_link") 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4860 { (case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863 esac
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_try") 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 { echo "$as_me:$LINENO: result: yes" >&5
4870 echo "${ECHO_T}yes" >&6; }
4871 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"
4872 cat >>confdefs.h <<\_ACEOF
4873 #define INET6 1
4874 _ACEOF
4875
4876 ipv6=yes
4877 else
4878 echo "$as_me: program exited with status $ac_status" >&5
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882 ( exit $ac_status )
4883 { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4885 ipv6=no
4886 fi
4887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4888 fi
4889
4890
4891 fi
4892
4893
4894 ipv6type=unknown
4895 ipv6lib=none
4896 ipv6trylibc=no
4897
4898 if test "$ipv6" = "yes"; then
4899 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4900 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4901 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4902 case $i in
4903 inria)
4904 cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h. */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 #include <netinet/in.h>
4911 #ifdef IPV6_INRIA_VERSION
4912 yes
4913 #endif
4914 _ACEOF
4915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4916 $EGREP "yes" >/dev/null 2>&1; then
4917 ipv6type=$i;
4918 CFLAGS="-DINET6 $CFLAGS"
4919 fi
4920 rm -f -r conftest*
4921
4922 ;;
4923 kame)
4924 cat >conftest.$ac_ext <<_ACEOF
4925 /* confdefs.h. */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 #include <netinet/in.h>
4931 #ifdef __KAME__
4932 yes
4933 #endif
4934 _ACEOF
4935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4936 $EGREP "yes" >/dev/null 2>&1; then
4937 ipv6type=$i;
4938 ipv6lib=inet6;
4939 ipv6libdir=/usr/local/v6/lib;
4940 ipv6trylibc=yes;
4941 CFLAGS="-DINET6 $CFLAGS"
4942 fi
4943 rm -f -r conftest*
4944
4945 ;;
4946 linux-glibc)
4947 cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h. */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4953 #include <features.h>
4954 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4955 yes
4956 #endif
4957 _ACEOF
4958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4959 $EGREP "yes" >/dev/null 2>&1; then
4960 ipv6type=$i;
4961 CFLAGS="-DINET6 $CFLAGS"
4962 fi
4963 rm -f -r conftest*
4964
4965 ;;
4966 linux-libinet6)
4967 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4968 ipv6type=$i
4969 ipv6lib=inet6
4970 ipv6libdir=/usr/inet6/lib
4971 ipv6trylibc=yes;
4972 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4973 fi
4974 ;;
4975 toshiba)
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 #include <sys/param.h>
4983 #ifdef _TOSHIBA_INET6
4984 yes
4985 #endif
4986 _ACEOF
4987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988 $EGREP "yes" >/dev/null 2>&1; then
4989 ipv6type=$i;
4990 ipv6lib=inet6;
4991 ipv6libdir=/usr/local/v6/lib;
4992 CFLAGS="-DINET6 $CFLAGS"
4993 fi
4994 rm -f -r conftest*
4995
4996 ;;
4997 v6d)
4998 cat >conftest.$ac_ext <<_ACEOF
4999 /* confdefs.h. */
5000 _ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004 #include </usr/local/v6/include/sys/v6config.h>
5005 #ifdef __V6D__
5006 yes
5007 #endif
5008 _ACEOF
5009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5010 $EGREP "yes" >/dev/null 2>&1; then
5011 ipv6type=$i;
5012 ipv6lib=v6;
5013 ipv6libdir=/usr/local/v6/lib;
5014 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5015 fi
5016 rm -f -r conftest*
5017
5018 ;;
5019 zeta)
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #include <sys/param.h>
5027 #ifdef _ZETA_MINAMI_INET6
5028 yes
5029 #endif
5030 _ACEOF
5031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5032 $EGREP "yes" >/dev/null 2>&1; then
5033 ipv6type=$i;
5034 ipv6lib=inet6;
5035 ipv6libdir=/usr/local/v6/lib;
5036 CFLAGS="-DINET6 $CFLAGS"
5037 fi
5038 rm -f -r conftest*
5039
5040 ;;
5041 esac
5042 if test "$ipv6type" != "unknown"; then
5043 break
5044 fi
5045 done
5046 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5047 echo "${ECHO_T}$ipv6type" >&6; }
5048 fi
5049
5050 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5051 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5052 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5053 echo "You have $ipv6lib library, using it"
5054 else
5055 if test "$ipv6trylibc" = "yes"; then
5056 echo "You do not have $ipv6lib library, using libc"
5057 else
5058 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5059 echo "You need to fetch lib$ipv6lib.a from appropriate"
5060 echo 'ipv6 kit and compile beforehand.'
5061 exit 1
5062 fi
5063 fi
5064 fi
5065
5066
5067 if test "$ipv6" = "yes"; then
5068 #
5069 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5070 # function in libc; there are "ngetaddrinfo()" and
5071 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5072 # "getaddrinfo" to be either "ngetaddrinfo" or
5073 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5074 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5075 #
5076 # So this test doesn't work on Tru64 5.1, and possibly
5077 # on other 5.x releases. This causes the configure
5078 # script to become confused, and results in libpcap
5079 # being unbuildable.
5080 #
5081 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5082 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5083 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 ac_func_search_save_LIBS=$LIBS
5087 cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h. */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093
5094 /* Override any GCC internal prototype to avoid an error.
5095 Use char because int might match the return type of a GCC
5096 builtin and then its argument prototype would still apply. */
5097 #ifdef __cplusplus
5098 extern "C"
5099 #endif
5100 char getaddrinfo ();
5101 int
5102 main ()
5103 {
5104 return getaddrinfo ();
5105 ;
5106 return 0;
5107 }
5108 _ACEOF
5109 for ac_lib in '' socket; do
5110 if test -z "$ac_lib"; then
5111 ac_res="none required"
5112 else
5113 ac_res=-l$ac_lib
5114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5115 fi
5116 rm -f conftest.$ac_objext conftest$ac_exeext
5117 if { (ac_try="$ac_link"
5118 case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121 esac
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123 (eval "$ac_link") 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } && {
5130 test -z "$ac_c_werror_flag" ||
5131 test ! -s conftest.err
5132 } && test -s conftest$ac_exeext &&
5133 $as_test_x conftest$ac_exeext; then
5134 ac_cv_search_getaddrinfo=$ac_res
5135 else
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5138
5139
5140 fi
5141
5142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5143 conftest$ac_exeext
5144 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5145 break
5146 fi
5147 done
5148 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5149 :
5150 else
5151 ac_cv_search_getaddrinfo=no
5152 fi
5153 rm conftest.$ac_ext
5154 LIBS=$ac_func_search_save_LIBS
5155 fi
5156 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5157 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5158 ac_res=$ac_cv_search_getaddrinfo
5159 if test "$ac_res" != no; then
5160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5161 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5162 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5163 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 if test "$cross_compiling" = yes; then
5167 td_cv_buggygetaddrinfo=yes
5168 else
5169 cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h. */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5175
5176 #include <sys/types.h>
5177 #include <netdb.h>
5178 #include <string.h>
5179 #include <sys/socket.h>
5180 #include <netinet/in.h>
5181
5182 main()
5183 {
5184 int passive, gaierr, inet4 = 0, inet6 = 0;
5185 struct addrinfo hints, *ai, *aitop;
5186 char straddr[INET6_ADDRSTRLEN], strport[16];
5187
5188 for (passive = 0; passive <= 1; passive++) {
5189 memset(&hints, 0, sizeof(hints));
5190 hints.ai_family = AF_UNSPEC;
5191 hints.ai_flags = passive ? AI_PASSIVE : 0;
5192 hints.ai_socktype = SOCK_STREAM;
5193 hints.ai_protocol = IPPROTO_TCP;
5194 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5195 (void)gai_strerror(gaierr);
5196 goto bad;
5197 }
5198 for (ai = aitop; ai; ai = ai->ai_next) {
5199 if (ai->ai_addr == NULL ||
5200 ai->ai_addrlen == 0 ||
5201 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5202 straddr, sizeof(straddr), strport, sizeof(strport),
5203 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5204 goto bad;
5205 }
5206 switch (ai->ai_family) {
5207 case AF_INET:
5208 if (strcmp(strport, "54321") != 0) {
5209 goto bad;
5210 }
5211 if (passive) {
5212 if (strcmp(straddr, "0.0.0.0") != 0) {
5213 goto bad;
5214 }
5215 } else {
5216 if (strcmp(straddr, "127.0.0.1") != 0) {
5217 goto bad;
5218 }
5219 }
5220 inet4++;
5221 break;
5222 case AF_INET6:
5223 if (strcmp(strport, "54321") != 0) {
5224 goto bad;
5225 }
5226 if (passive) {
5227 if (strcmp(straddr, "::") != 0) {
5228 goto bad;
5229 }
5230 } else {
5231 if (strcmp(straddr, "::1") != 0) {
5232 goto bad;
5233 }
5234 }
5235 inet6++;
5236 break;
5237 case AF_UNSPEC:
5238 goto bad;
5239 break;
5240 #ifdef AF_UNIX
5241 case AF_UNIX:
5242 #else
5243 #ifdef AF_LOCAL
5244 case AF_LOCAL:
5245 #endif
5246 #endif
5247 default:
5248 /* another family support? */
5249 break;
5250 }
5251 }
5252 }
5253
5254 /* supported family should be 2, unsupported family should be 0 */
5255 if (!(inet4 == 0 || inet4 == 2))
5256 goto bad;
5257 if (!(inet6 == 0 || inet6 == 2))
5258 goto bad;
5259
5260 if (aitop)
5261 freeaddrinfo(aitop);
5262 exit(0);
5263
5264 bad:
5265 if (aitop)
5266 freeaddrinfo(aitop);
5267 exit(1);
5268 }
5269
5270 _ACEOF
5271 rm -f conftest$ac_exeext
5272 if { (ac_try="$ac_link"
5273 case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5276 esac
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_link") 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5282 { (case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_try") 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 td_cv_buggygetaddrinfo=no
5292 else
5293 echo "$as_me: program exited with status $ac_status" >&5
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 ( exit $ac_status )
5298 td_cv_buggygetaddrinfo=yes
5299 fi
5300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5301 fi
5302
5303
5304 fi
5305
5306 if test "$td_cv_buggygetaddrinfo" = no; then
5307 { echo "$as_me:$LINENO: result: good" >&5
5308 echo "${ECHO_T}good" >&6; }
5309 else
5310 { echo "$as_me:$LINENO: result: buggy" >&5
5311 echo "${ECHO_T}buggy" >&6; }
5312 fi
5313
5314 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5315 #
5316 # XXX - it doesn't appear that "ipv6type" can ever be
5317 # set to "linux". Should this be testing for
5318 # "linux-glibc", or for that *or* "linux-libinet6"?
5319 # If the latter, note that "linux-libinet6" is also
5320 # the type given to some non-Linux OSes.
5321 #
5322 if test "$ipv6type" != "linux"; then
5323 echo 'Fatal: You must get working getaddrinfo() function.'
5324 echo ' or you can specify "--disable-ipv6"'.
5325 exit 1
5326 else
5327 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5328 echo ' Better upgrade your system library to newest version'
5329 echo ' of GNU C library (aka glibc).'
5330 fi
5331 fi
5332
5333 fi
5334
5335
5336 for ac_func in getnameinfo
5337 do
5338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344 cat >conftest.$ac_ext <<_ACEOF
5345 /* confdefs.h. */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5352 #define $ac_func innocuous_$ac_func
5353
5354 /* System header to define __stub macros and hopefully few prototypes,
5355 which can conflict with char $ac_func (); below.
5356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5357 <limits.h> exists even on freestanding compilers. */
5358
5359 #ifdef __STDC__
5360 # include <limits.h>
5361 #else
5362 # include <assert.h>
5363 #endif
5364
5365 #undef $ac_func
5366
5367 /* Override any GCC internal prototype to avoid an error.
5368 Use char because int might match the return type of a GCC
5369 builtin and then its argument prototype would still apply. */
5370 #ifdef __cplusplus
5371 extern "C"
5372 #endif
5373 char $ac_func ();
5374 /* The GNU C library defines this for functions which it implements
5375 to always fail with ENOSYS. Some functions are actually named
5376 something starting with __ and the normal name is an alias. */
5377 #if defined __stub_$ac_func || defined __stub___$ac_func
5378 choke me
5379 #endif
5380
5381 int
5382 main ()
5383 {
5384 return $ac_func ();
5385 ;
5386 return 0;
5387 }
5388 _ACEOF
5389 rm -f conftest.$ac_objext conftest$ac_exeext
5390 if { (ac_try="$ac_link"
5391 case "(($ac_try" in
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5394 esac
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_link") 2>conftest.er1
5397 ac_status=$?
5398 grep -v '^ *+' conftest.er1 >conftest.err
5399 rm -f conftest.er1
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } && {
5403 test -z "$ac_c_werror_flag" ||
5404 test ! -s conftest.err
5405 } && test -s conftest$ac_exeext &&
5406 $as_test_x conftest$ac_exeext; then
5407 eval "$as_ac_var=yes"
5408 else
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5411
5412 eval "$as_ac_var=no"
5413 fi
5414
5415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5416 conftest$ac_exeext conftest.$ac_ext
5417 fi
5418 ac_res=`eval echo '${'$as_ac_var'}'`
5419 { echo "$as_me:$LINENO: result: $ac_res" >&5
5420 echo "${ECHO_T}$ac_res" >&6; }
5421 if test `eval echo '${'$as_ac_var'}'` = yes; then
5422 cat >>confdefs.h <<_ACEOF
5423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5424 _ACEOF
5425
5426 else
5427 case " $LIBOBJS " in
5428 *" $ac_func.$ac_objext "* ) ;;
5429 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5430 ;;
5431 esac
5432
5433 fi
5434 done
5435
5436
5437 fi
5438
5439 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5440 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5441 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h. */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 #include <netdnet/dnetdb.h>
5451
5452 _ACEOF
5453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5454 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5455 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5456 else
5457 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5458 fi
5459 rm -f -r conftest*
5460
5461 fi
5462 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5463 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5464 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5465 cat >>confdefs.h <<\_ACEOF
5466 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5467 _ACEOF
5468
5469 fi
5470
5471 { echo "$as_me:$LINENO: checking for char" >&5
5472 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5473 if test "${ac_cv_type_char+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 $ac_includes_default
5483 typedef char ac__type_new_;
5484 int
5485 main ()
5486 {
5487 if ((ac__type_new_ *) 0)
5488 return 0;
5489 if (sizeof (ac__type_new_))
5490 return 0;
5491 ;
5492 return 0;
5493 }
5494 _ACEOF
5495 rm -f conftest.$ac_objext
5496 if { (ac_try="$ac_compile"
5497 case "(($ac_try" in
5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499 *) ac_try_echo=$ac_try;;
5500 esac
5501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502 (eval "$ac_compile") 2>conftest.er1
5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } && {
5509 test -z "$ac_c_werror_flag" ||
5510 test ! -s conftest.err
5511 } && test -s conftest.$ac_objext; then
5512 ac_cv_type_char=yes
5513 else
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5516
5517 ac_cv_type_char=no
5518 fi
5519
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 fi
5522 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5523 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5524
5525 # The cast to long int works around a bug in the HP C Compiler
5526 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5527 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5528 # This bug is HP SR number 8606223364.
5529 { echo "$as_me:$LINENO: checking size of char" >&5
5530 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5531 if test "${ac_cv_sizeof_char+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534 if test "$cross_compiling" = yes; then
5535 # Depending upon the size, compute the lo and hi bounds.
5536 cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h. */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 $ac_includes_default
5543 typedef char ac__type_sizeof_;
5544 int
5545 main ()
5546 {
5547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5548 test_array [0] = 0
5549
5550 ;
5551 return 0;
5552 }
5553 _ACEOF
5554 rm -f conftest.$ac_objext
5555 if { (ac_try="$ac_compile"
5556 case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_compile") 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } && {
5568 test -z "$ac_c_werror_flag" ||
5569 test ! -s conftest.err
5570 } && test -s conftest.$ac_objext; then
5571 ac_lo=0 ac_mid=0
5572 while :; do
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 $ac_includes_default
5580 typedef char ac__type_sizeof_;
5581 int
5582 main ()
5583 {
5584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5585 test_array [0] = 0
5586
5587 ;
5588 return 0;
5589 }
5590 _ACEOF
5591 rm -f conftest.$ac_objext
5592 if { (ac_try="$ac_compile"
5593 case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_compile") 2>conftest.er1
5599 ac_status=$?
5600 grep -v '^ *+' conftest.er1 >conftest.err
5601 rm -f conftest.er1
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && {
5605 test -z "$ac_c_werror_flag" ||
5606 test ! -s conftest.err
5607 } && test -s conftest.$ac_objext; then
5608 ac_hi=$ac_mid; break
5609 else
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613 ac_lo=`expr $ac_mid + 1`
5614 if test $ac_lo -le $ac_mid; then
5615 ac_lo= ac_hi=
5616 break
5617 fi
5618 ac_mid=`expr 2 '*' $ac_mid + 1`
5619 fi
5620
5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 done
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h. */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 $ac_includes_default
5634 typedef char ac__type_sizeof_;
5635 int
5636 main ()
5637 {
5638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5639 test_array [0] = 0
5640
5641 ;
5642 return 0;
5643 }
5644 _ACEOF
5645 rm -f conftest.$ac_objext
5646 if { (ac_try="$ac_compile"
5647 case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650 esac
5651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652 (eval "$ac_compile") 2>conftest.er1
5653 ac_status=$?
5654 grep -v '^ *+' conftest.er1 >conftest.err
5655 rm -f conftest.er1
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } && {
5659 test -z "$ac_c_werror_flag" ||
5660 test ! -s conftest.err
5661 } && test -s conftest.$ac_objext; then
5662 ac_hi=-1 ac_mid=-1
5663 while :; do
5664 cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h. */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 $ac_includes_default
5671 typedef char ac__type_sizeof_;
5672 int
5673 main ()
5674 {
5675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5676 test_array [0] = 0
5677
5678 ;
5679 return 0;
5680 }
5681 _ACEOF
5682 rm -f conftest.$ac_objext
5683 if { (ac_try="$ac_compile"
5684 case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687 esac
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_compile") 2>conftest.er1
5690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest.$ac_objext; then
5699 ac_lo=$ac_mid; break
5700 else
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704 ac_hi=`expr '(' $ac_mid ')' - 1`
5705 if test $ac_mid -le $ac_hi; then
5706 ac_lo= ac_hi=
5707 break
5708 fi
5709 ac_mid=`expr 2 '*' $ac_mid`
5710 fi
5711
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 done
5714 else
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718 ac_lo= ac_hi=
5719 fi
5720
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 fi
5723
5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 # Binary search between lo and hi bounds.
5726 while test "x$ac_lo" != "x$ac_hi"; do
5727 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5728 cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h. */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 $ac_includes_default
5735 typedef char ac__type_sizeof_;
5736 int
5737 main ()
5738 {
5739 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5740 test_array [0] = 0
5741
5742 ;
5743 return 0;
5744 }
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5748 case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5763 ac_hi=$ac_mid
5764 else
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 ac_lo=`expr '(' $ac_mid ')' + 1`
5769 fi
5770
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 done
5773 case $ac_lo in
5774 ?*) ac_cv_sizeof_char=$ac_lo;;
5775 '') if test "$ac_cv_type_char" = yes; then
5776 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5777 See \`config.log' for more details." >&5
5778 echo "$as_me: error: cannot compute sizeof (char)
5779 See \`config.log' for more details." >&2;}
5780 { (exit 77); exit 77; }; }
5781 else
5782 ac_cv_sizeof_char=0
5783 fi ;;
5784 esac
5785 else
5786 cat >conftest.$ac_ext <<_ACEOF
5787 /* confdefs.h. */
5788 _ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5792 $ac_includes_default
5793 typedef char ac__type_sizeof_;
5794 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5795 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5796 #include <stdio.h>
5797 #include <stdlib.h>
5798 int
5799 main ()
5800 {
5801
5802 FILE *f = fopen ("conftest.val", "w");
5803 if (! f)
5804 return 1;
5805 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5806 {
5807 long int i = longval ();
5808 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5809 return 1;
5810 fprintf (f, "%ld\n", i);
5811 }
5812 else
5813 {
5814 unsigned long int i = ulongval ();
5815 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5816 return 1;
5817 fprintf (f, "%lu\n", i);
5818 }
5819 return ferror (f) || fclose (f) != 0;
5820
5821 ;
5822 return 0;
5823 }
5824 _ACEOF
5825 rm -f conftest$ac_exeext
5826 if { (ac_try="$ac_link"
5827 case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830 esac
5831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_link") 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5836 { (case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5839 esac
5840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5841 (eval "$ac_try") 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5845 ac_cv_sizeof_char=`cat conftest.val`
5846 else
5847 echo "$as_me: program exited with status $ac_status" >&5
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851 ( exit $ac_status )
5852 if test "$ac_cv_type_char" = yes; then
5853 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5854 See \`config.log' for more details." >&5
5855 echo "$as_me: error: cannot compute sizeof (char)
5856 See \`config.log' for more details." >&2;}
5857 { (exit 77); exit 77; }; }
5858 else
5859 ac_cv_sizeof_char=0
5860 fi
5861 fi
5862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5863 fi
5864 rm -f conftest.val
5865 fi
5866 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5867 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5868
5869
5870
5871 cat >>confdefs.h <<_ACEOF
5872 #define SIZEOF_CHAR $ac_cv_sizeof_char
5873 _ACEOF
5874
5875
5876 { echo "$as_me:$LINENO: checking for short" >&5
5877 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5878 if test "${ac_cv_type_short+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881 cat >conftest.$ac_ext <<_ACEOF
5882 /* confdefs.h. */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5887 $ac_includes_default
5888 typedef short ac__type_new_;
5889 int
5890 main ()
5891 {
5892 if ((ac__type_new_ *) 0)
5893 return 0;
5894 if (sizeof (ac__type_new_))
5895 return 0;
5896 ;
5897 return 0;
5898 }
5899 _ACEOF
5900 rm -f conftest.$ac_objext
5901 if { (ac_try="$ac_compile"
5902 case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_compile") 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } && {
5914 test -z "$ac_c_werror_flag" ||
5915 test ! -s conftest.err
5916 } && test -s conftest.$ac_objext; then
5917 ac_cv_type_short=yes
5918 else
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5921
5922 ac_cv_type_short=no
5923 fi
5924
5925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 fi
5927 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5928 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5929
5930 # The cast to long int works around a bug in the HP C Compiler
5931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5933 # This bug is HP SR number 8606223364.
5934 { echo "$as_me:$LINENO: checking size of short" >&5
5935 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5936 if test "${ac_cv_sizeof_short+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 else
5939 if test "$cross_compiling" = yes; then
5940 # Depending upon the size, compute the lo and hi bounds.
5941 cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h. */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947 $ac_includes_default
5948 typedef short ac__type_sizeof_;
5949 int
5950 main ()
5951 {
5952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5953 test_array [0] = 0
5954
5955 ;
5956 return 0;
5957 }
5958 _ACEOF
5959 rm -f conftest.$ac_objext
5960 if { (ac_try="$ac_compile"
5961 case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5964 esac
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_compile") 2>conftest.er1
5967 ac_status=$?
5968 grep -v '^ *+' conftest.er1 >conftest.err
5969 rm -f conftest.er1
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } && {
5973 test -z "$ac_c_werror_flag" ||
5974 test ! -s conftest.err
5975 } && test -s conftest.$ac_objext; then
5976 ac_lo=0 ac_mid=0
5977 while :; do
5978 cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h. */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 $ac_includes_default
5985 typedef short ac__type_sizeof_;
5986 int
5987 main ()
5988 {
5989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5990 test_array [0] = 0
5991
5992 ;
5993 return 0;
5994 }
5995 _ACEOF
5996 rm -f conftest.$ac_objext
5997 if { (ac_try="$ac_compile"
5998 case "(($ac_try" in
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6001 esac
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_compile") 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && {
6010 test -z "$ac_c_werror_flag" ||
6011 test ! -s conftest.err
6012 } && test -s conftest.$ac_objext; then
6013 ac_hi=$ac_mid; break
6014 else
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6017
6018 ac_lo=`expr $ac_mid + 1`
6019 if test $ac_lo -le $ac_mid; then
6020 ac_lo= ac_hi=
6021 break
6022 fi
6023 ac_mid=`expr 2 '*' $ac_mid + 1`
6024 fi
6025
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 done
6028 else
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6031
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 $ac_includes_default
6039 typedef short ac__type_sizeof_;
6040 int
6041 main ()
6042 {
6043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6044 test_array [0] = 0
6045
6046 ;
6047 return 0;
6048 }
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6052 case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055 esac
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compile") 2>conftest.er1
6058 ac_status=$?
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && {
6064 test -z "$ac_c_werror_flag" ||
6065 test ! -s conftest.err
6066 } && test -s conftest.$ac_objext; then
6067 ac_hi=-1 ac_mid=-1
6068 while :; do
6069 cat >conftest.$ac_ext <<_ACEOF
6070 /* confdefs.h. */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 $ac_includes_default
6076 typedef short ac__type_sizeof_;
6077 int
6078 main ()
6079 {
6080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6081 test_array [0] = 0
6082
6083 ;
6084 return 0;
6085 }
6086 _ACEOF
6087 rm -f conftest.$ac_objext
6088 if { (ac_try="$ac_compile"
6089 case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092 esac
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_compile") 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } && {
6101 test -z "$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6103 } && test -s conftest.$ac_objext; then
6104 ac_lo=$ac_mid; break
6105 else
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6108
6109 ac_hi=`expr '(' $ac_mid ')' - 1`
6110 if test $ac_mid -le $ac_hi; then
6111 ac_lo= ac_hi=
6112 break
6113 fi
6114 ac_mid=`expr 2 '*' $ac_mid`
6115 fi
6116
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 done
6119 else
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123 ac_lo= ac_hi=
6124 fi
6125
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 fi
6128
6129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 # Binary search between lo and hi bounds.
6131 while test "x$ac_lo" != "x$ac_hi"; do
6132 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6133 cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h. */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 $ac_includes_default
6140 typedef short ac__type_sizeof_;
6141 int
6142 main ()
6143 {
6144 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6145 test_array [0] = 0
6146
6147 ;
6148 return 0;
6149 }
6150 _ACEOF
6151 rm -f conftest.$ac_objext
6152 if { (ac_try="$ac_compile"
6153 case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156 esac
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_compile") 2>conftest.er1
6159 ac_status=$?
6160 grep -v '^ *+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && {
6165 test -z "$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6167 } && test -s conftest.$ac_objext; then
6168 ac_hi=$ac_mid
6169 else
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6172
6173 ac_lo=`expr '(' $ac_mid ')' + 1`
6174 fi
6175
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 done
6178 case $ac_lo in
6179 ?*) ac_cv_sizeof_short=$ac_lo;;
6180 '') if test "$ac_cv_type_short" = yes; then
6181 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6182 See \`config.log' for more details." >&5
6183 echo "$as_me: error: cannot compute sizeof (short)
6184 See \`config.log' for more details." >&2;}
6185 { (exit 77); exit 77; }; }
6186 else
6187 ac_cv_sizeof_short=0
6188 fi ;;
6189 esac
6190 else
6191 cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 $ac_includes_default
6198 typedef short ac__type_sizeof_;
6199 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6200 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6201 #include <stdio.h>
6202 #include <stdlib.h>
6203 int
6204 main ()
6205 {
6206
6207 FILE *f = fopen ("conftest.val", "w");
6208 if (! f)
6209 return 1;
6210 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6211 {
6212 long int i = longval ();
6213 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6214 return 1;
6215 fprintf (f, "%ld\n", i);
6216 }
6217 else
6218 {
6219 unsigned long int i = ulongval ();
6220 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6221 return 1;
6222 fprintf (f, "%lu\n", i);
6223 }
6224 return ferror (f) || fclose (f) != 0;
6225
6226 ;
6227 return 0;
6228 }
6229 _ACEOF
6230 rm -f conftest$ac_exeext
6231 if { (ac_try="$ac_link"
6232 case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235 esac
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_link") 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6241 { (case "(($ac_try" in
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6244 esac
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_try") 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; }; then
6250 ac_cv_sizeof_short=`cat conftest.val`
6251 else
6252 echo "$as_me: program exited with status $ac_status" >&5
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 ( exit $ac_status )
6257 if test "$ac_cv_type_short" = yes; then
6258 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6259 See \`config.log' for more details." >&5
6260 echo "$as_me: error: cannot compute sizeof (short)
6261 See \`config.log' for more details." >&2;}
6262 { (exit 77); exit 77; }; }
6263 else
6264 ac_cv_sizeof_short=0
6265 fi
6266 fi
6267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6268 fi
6269 rm -f conftest.val
6270 fi
6271 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6272 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6273
6274
6275
6276 cat >>confdefs.h <<_ACEOF
6277 #define SIZEOF_SHORT $ac_cv_sizeof_short
6278 _ACEOF
6279
6280
6281 { echo "$as_me:$LINENO: checking for int" >&5
6282 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6283 if test "${ac_cv_type_int+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286 cat >conftest.$ac_ext <<_ACEOF
6287 /* confdefs.h. */
6288 _ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292 $ac_includes_default
6293 typedef int ac__type_new_;
6294 int
6295 main ()
6296 {
6297 if ((ac__type_new_ *) 0)
6298 return 0;
6299 if (sizeof (ac__type_new_))
6300 return 0;
6301 ;
6302 return 0;
6303 }
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6307 case "(($ac_try" in
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6310 esac
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_compile") 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } && {
6319 test -z "$ac_c_werror_flag" ||
6320 test ! -s conftest.err
6321 } && test -s conftest.$ac_objext; then
6322 ac_cv_type_int=yes
6323 else
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6326
6327 ac_cv_type_int=no
6328 fi
6329
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 fi
6332 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6333 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6334
6335 # The cast to long int works around a bug in the HP C Compiler
6336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6338 # This bug is HP SR number 8606223364.
6339 { echo "$as_me:$LINENO: checking size of int" >&5
6340 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6341 if test "${ac_cv_sizeof_int+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344 if test "$cross_compiling" = yes; then
6345 # Depending upon the size, compute the lo and hi bounds.
6346 cat >conftest.$ac_ext <<_ACEOF
6347 /* confdefs.h. */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 $ac_includes_default
6353 typedef int ac__type_sizeof_;
6354 int
6355 main ()
6356 {
6357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6358 test_array [0] = 0
6359
6360 ;
6361 return 0;
6362 }
6363 _ACEOF
6364 rm -f conftest.$ac_objext
6365 if { (ac_try="$ac_compile"
6366 case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6369 esac
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compile") 2>conftest.er1
6372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } && {
6378 test -z "$ac_c_werror_flag" ||
6379 test ! -s conftest.err
6380 } && test -s conftest.$ac_objext; then
6381 ac_lo=0 ac_mid=0
6382 while :; do
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h. */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 $ac_includes_default
6390 typedef int ac__type_sizeof_;
6391 int
6392 main ()
6393 {
6394 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6395 test_array [0] = 0
6396
6397 ;
6398 return 0;
6399 }
6400 _ACEOF
6401 rm -f conftest.$ac_objext
6402 if { (ac_try="$ac_compile"
6403 case "(($ac_try" in
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6406 esac
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_compile") 2>conftest.er1
6409 ac_status=$?
6410 grep -v '^ *+' conftest.er1 >conftest.err
6411 rm -f conftest.er1
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } && {
6415 test -z "$ac_c_werror_flag" ||
6416 test ! -s conftest.err
6417 } && test -s conftest.$ac_objext; then
6418 ac_hi=$ac_mid; break
6419 else
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6422
6423 ac_lo=`expr $ac_mid + 1`
6424 if test $ac_lo -le $ac_mid; then
6425 ac_lo= ac_hi=
6426 break
6427 fi
6428 ac_mid=`expr 2 '*' $ac_mid + 1`
6429 fi
6430
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432 done
6433 else
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6436
6437 cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h. */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 $ac_includes_default
6444 typedef int ac__type_sizeof_;
6445 int
6446 main ()
6447 {
6448 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6449 test_array [0] = 0
6450
6451 ;
6452 return 0;
6453 }
6454 _ACEOF
6455 rm -f conftest.$ac_objext
6456 if { (ac_try="$ac_compile"
6457 case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6460 esac
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_compile") 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } && {
6469 test -z "$ac_c_werror_flag" ||
6470 test ! -s conftest.err
6471 } && test -s conftest.$ac_objext; then
6472 ac_hi=-1 ac_mid=-1
6473 while :; do
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 $ac_includes_default
6481 typedef int ac__type_sizeof_;
6482 int
6483 main ()
6484 {
6485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6486 test_array [0] = 0
6487
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 rm -f conftest.$ac_objext
6493 if { (ac_try="$ac_compile"
6494 case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497 esac
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_compile") 2>conftest.er1
6500 ac_status=$?
6501 grep -v '^ *+' conftest.er1 >conftest.err
6502 rm -f conftest.er1
6503 cat conftest.err >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } && {
6506 test -z "$ac_c_werror_flag" ||
6507 test ! -s conftest.err
6508 } && test -s conftest.$ac_objext; then
6509 ac_lo=$ac_mid; break
6510 else
6511 echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6513
6514 ac_hi=`expr '(' $ac_mid ')' - 1`
6515 if test $ac_mid -le $ac_hi; then
6516 ac_lo= ac_hi=
6517 break
6518 fi
6519 ac_mid=`expr 2 '*' $ac_mid`
6520 fi
6521
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 done
6524 else
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6527
6528 ac_lo= ac_hi=
6529 fi
6530
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 fi
6533
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 # Binary search between lo and hi bounds.
6536 while test "x$ac_lo" != "x$ac_hi"; do
6537 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6538 cat >conftest.$ac_ext <<_ACEOF
6539 /* confdefs.h. */
6540 _ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6544 $ac_includes_default
6545 typedef int ac__type_sizeof_;
6546 int
6547 main ()
6548 {
6549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6550 test_array [0] = 0
6551
6552 ;
6553 return 0;
6554 }
6555 _ACEOF
6556 rm -f conftest.$ac_objext
6557 if { (ac_try="$ac_compile"
6558 case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561 esac
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest.$ac_objext; then
6573 ac_hi=$ac_mid
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 ac_lo=`expr '(' $ac_mid ')' + 1`
6579 fi
6580
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 done
6583 case $ac_lo in
6584 ?*) ac_cv_sizeof_int=$ac_lo;;
6585 '') if test "$ac_cv_type_int" = yes; then
6586 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6587 See \`config.log' for more details." >&5
6588 echo "$as_me: error: cannot compute sizeof (int)
6589 See \`config.log' for more details." >&2;}
6590 { (exit 77); exit 77; }; }
6591 else
6592 ac_cv_sizeof_int=0
6593 fi ;;
6594 esac
6595 else
6596 cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h. */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 $ac_includes_default
6603 typedef int ac__type_sizeof_;
6604 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6605 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6606 #include <stdio.h>
6607 #include <stdlib.h>
6608 int
6609 main ()
6610 {
6611
6612 FILE *f = fopen ("conftest.val", "w");
6613 if (! f)
6614 return 1;
6615 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6616 {
6617 long int i = longval ();
6618 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6619 return 1;
6620 fprintf (f, "%ld\n", i);
6621 }
6622 else
6623 {
6624 unsigned long int i = ulongval ();
6625 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6626 return 1;
6627 fprintf (f, "%lu\n", i);
6628 }
6629 return ferror (f) || fclose (f) != 0;
6630
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 rm -f conftest$ac_exeext
6636 if { (ac_try="$ac_link"
6637 case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640 esac
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_link") 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6646 { (case "(($ac_try" in
6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6649 esac
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_try") 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 ac_cv_sizeof_int=`cat conftest.val`
6656 else
6657 echo "$as_me: program exited with status $ac_status" >&5
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 ( exit $ac_status )
6662 if test "$ac_cv_type_int" = yes; then
6663 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6664 See \`config.log' for more details." >&5
6665 echo "$as_me: error: cannot compute sizeof (int)
6666 See \`config.log' for more details." >&2;}
6667 { (exit 77); exit 77; }; }
6668 else
6669 ac_cv_sizeof_int=0
6670 fi
6671 fi
6672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6673 fi
6674 rm -f conftest.val
6675 fi
6676 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6677 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6678
6679
6680
6681 cat >>confdefs.h <<_ACEOF
6682 #define SIZEOF_INT $ac_cv_sizeof_int
6683 _ACEOF
6684
6685
6686 { echo "$as_me:$LINENO: checking for long" >&5
6687 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6688 if test "${ac_cv_type_long+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 else
6691 cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h. */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 $ac_includes_default
6698 typedef long ac__type_new_;
6699 int
6700 main ()
6701 {
6702 if ((ac__type_new_ *) 0)
6703 return 0;
6704 if (sizeof (ac__type_new_))
6705 return 0;
6706 ;
6707 return 0;
6708 }
6709 _ACEOF
6710 rm -f conftest.$ac_objext
6711 if { (ac_try="$ac_compile"
6712 case "(($ac_try" in
6713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6714 *) ac_try_echo=$ac_try;;
6715 esac
6716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6717 (eval "$ac_compile") 2>conftest.er1
6718 ac_status=$?
6719 grep -v '^ *+' conftest.er1 >conftest.err
6720 rm -f conftest.er1
6721 cat conftest.err >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && {
6724 test -z "$ac_c_werror_flag" ||
6725 test ! -s conftest.err
6726 } && test -s conftest.$ac_objext; then
6727 ac_cv_type_long=yes
6728 else
6729 echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.$ac_ext >&5
6731
6732 ac_cv_type_long=no
6733 fi
6734
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 fi
6737 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6738 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6739
6740 # The cast to long int works around a bug in the HP C Compiler
6741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6743 # This bug is HP SR number 8606223364.
6744 { echo "$as_me:$LINENO: checking size of long" >&5
6745 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6746 if test "${ac_cv_sizeof_long+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 if test "$cross_compiling" = yes; then
6750 # Depending upon the size, compute the lo and hi bounds.
6751 cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h. */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 $ac_includes_default
6758 typedef long ac__type_sizeof_;
6759 int
6760 main ()
6761 {
6762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6763 test_array [0] = 0
6764
6765 ;
6766 return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest.$ac_objext
6770 if { (ac_try="$ac_compile"
6771 case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774 esac
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_compile") 2>conftest.er1
6777 ac_status=$?
6778 grep -v '^ *+' conftest.er1 >conftest.err
6779 rm -f conftest.er1
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } && {
6783 test -z "$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 } && test -s conftest.$ac_objext; then
6786 ac_lo=0 ac_mid=0
6787 while :; do
6788 cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h. */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 $ac_includes_default
6795 typedef long ac__type_sizeof_;
6796 int
6797 main ()
6798 {
6799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6800 test_array [0] = 0
6801
6802 ;
6803 return 0;
6804 }
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (ac_try="$ac_compile"
6808 case "(($ac_try" in
6809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810 *) ac_try_echo=$ac_try;;
6811 esac
6812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6813 (eval "$ac_compile") 2>conftest.er1
6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } && {
6820 test -z "$ac_c_werror_flag" ||
6821 test ! -s conftest.err
6822 } && test -s conftest.$ac_objext; then
6823 ac_hi=$ac_mid; break
6824 else
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6827
6828 ac_lo=`expr $ac_mid + 1`
6829 if test $ac_lo -le $ac_mid; then
6830 ac_lo= ac_hi=
6831 break
6832 fi
6833 ac_mid=`expr 2 '*' $ac_mid + 1`
6834 fi
6835
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 done
6838 else
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6841
6842 cat >conftest.$ac_ext <<_ACEOF
6843 /* confdefs.h. */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 $ac_includes_default
6849 typedef long ac__type_sizeof_;
6850 int
6851 main ()
6852 {
6853 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6854 test_array [0] = 0
6855
6856 ;
6857 return 0;
6858 }
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (ac_try="$ac_compile"
6862 case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865 esac
6866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_compile") 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } && {
6874 test -z "$ac_c_werror_flag" ||
6875 test ! -s conftest.err
6876 } && test -s conftest.$ac_objext; then
6877 ac_hi=-1 ac_mid=-1
6878 while :; do
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 $ac_includes_default
6886 typedef long ac__type_sizeof_;
6887 int
6888 main ()
6889 {
6890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6891 test_array [0] = 0
6892
6893 ;
6894 return 0;
6895 }
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (ac_try="$ac_compile"
6899 case "(($ac_try" in
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6902 esac
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_compile") 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest.$ac_objext; then
6914 ac_lo=$ac_mid; break
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6918
6919 ac_hi=`expr '(' $ac_mid ')' - 1`
6920 if test $ac_mid -le $ac_hi; then
6921 ac_lo= ac_hi=
6922 break
6923 fi
6924 ac_mid=`expr 2 '*' $ac_mid`
6925 fi
6926
6927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928 done
6929 else
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6932
6933 ac_lo= ac_hi=
6934 fi
6935
6936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 fi
6938
6939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940 # Binary search between lo and hi bounds.
6941 while test "x$ac_lo" != "x$ac_hi"; do
6942 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h. */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6950 typedef long ac__type_sizeof_;
6951 int
6952 main ()
6953 {
6954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6955 test_array [0] = 0
6956
6957 ;
6958 return 0;
6959 }
6960 _ACEOF
6961 rm -f conftest.$ac_objext
6962 if { (ac_try="$ac_compile"
6963 case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966 esac
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_compile") 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest.$ac_objext; then
6978 ac_hi=$ac_mid
6979 else
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6982
6983 ac_lo=`expr '(' $ac_mid ')' + 1`
6984 fi
6985
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987 done
6988 case $ac_lo in
6989 ?*) ac_cv_sizeof_long=$ac_lo;;
6990 '') if test "$ac_cv_type_long" = yes; then
6991 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6992 See \`config.log' for more details." >&5
6993 echo "$as_me: error: cannot compute sizeof (long)
6994 See \`config.log' for more details." >&2;}
6995 { (exit 77); exit 77; }; }
6996 else
6997 ac_cv_sizeof_long=0
6998 fi ;;
6999 esac
7000 else
7001 cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h. */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 $ac_includes_default
7008 typedef long ac__type_sizeof_;
7009 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7010 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7011 #include <stdio.h>
7012 #include <stdlib.h>
7013 int
7014 main ()
7015 {
7016
7017 FILE *f = fopen ("conftest.val", "w");
7018 if (! f)
7019 return 1;
7020 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7021 {
7022 long int i = longval ();
7023 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7024 return 1;
7025 fprintf (f, "%ld\n", i);
7026 }
7027 else
7028 {
7029 unsigned long int i = ulongval ();
7030 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7031 return 1;
7032 fprintf (f, "%lu\n", i);
7033 }
7034 return ferror (f) || fclose (f) != 0;
7035
7036 ;
7037 return 0;
7038 }
7039 _ACEOF
7040 rm -f conftest$ac_exeext
7041 if { (ac_try="$ac_link"
7042 case "(($ac_try" in
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7045 esac
7046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7047 (eval "$ac_link") 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7051 { (case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7054 esac
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_try") 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060 ac_cv_sizeof_long=`cat conftest.val`
7061 else
7062 echo "$as_me: program exited with status $ac_status" >&5
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7065
7066 ( exit $ac_status )
7067 if test "$ac_cv_type_long" = yes; then
7068 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7069 See \`config.log' for more details." >&5
7070 echo "$as_me: error: cannot compute sizeof (long)
7071 See \`config.log' for more details." >&2;}
7072 { (exit 77); exit 77; }; }
7073 else
7074 ac_cv_sizeof_long=0
7075 fi
7076 fi
7077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7078 fi
7079 rm -f conftest.val
7080 fi
7081 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7082 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7083
7084
7085
7086 cat >>confdefs.h <<_ACEOF
7087 #define SIZEOF_LONG $ac_cv_sizeof_long
7088 _ACEOF
7089
7090
7091 { echo "$as_me:$LINENO: checking for long long" >&5
7092 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7093 if test "${ac_cv_type_long_long+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096 cat >conftest.$ac_ext <<_ACEOF
7097 /* confdefs.h. */
7098 _ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7102 $ac_includes_default
7103 typedef long long ac__type_new_;
7104 int
7105 main ()
7106 {
7107 if ((ac__type_new_ *) 0)
7108 return 0;
7109 if (sizeof (ac__type_new_))
7110 return 0;
7111 ;
7112 return 0;
7113 }
7114 _ACEOF
7115 rm -f conftest.$ac_objext
7116 if { (ac_try="$ac_compile"
7117 case "(($ac_try" in
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7120 esac
7121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7122 (eval "$ac_compile") 2>conftest.er1
7123 ac_status=$?
7124 grep -v '^ *+' conftest.er1 >conftest.err
7125 rm -f conftest.er1
7126 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } && {
7129 test -z "$ac_c_werror_flag" ||
7130 test ! -s conftest.err
7131 } && test -s conftest.$ac_objext; then
7132 ac_cv_type_long_long=yes
7133 else
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7136
7137 ac_cv_type_long_long=no
7138 fi
7139
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 fi
7142 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7143 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7144
7145 # The cast to long int works around a bug in the HP C Compiler
7146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7148 # This bug is HP SR number 8606223364.
7149 { echo "$as_me:$LINENO: checking size of long long" >&5
7150 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7151 if test "${ac_cv_sizeof_long_long+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154 if test "$cross_compiling" = yes; then
7155 # Depending upon the size, compute the lo and hi bounds.
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 $ac_includes_default
7163 typedef long long ac__type_sizeof_;
7164 int
7165 main ()
7166 {
7167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7168 test_array [0] = 0
7169
7170 ;
7171 return 0;
7172 }
7173 _ACEOF
7174 rm -f conftest.$ac_objext
7175 if { (ac_try="$ac_compile"
7176 case "(($ac_try" in
7177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178 *) ac_try_echo=$ac_try;;
7179 esac
7180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7181 (eval "$ac_compile") 2>conftest.er1
7182 ac_status=$?
7183 grep -v '^ *+' conftest.er1 >conftest.err
7184 rm -f conftest.er1
7185 cat conftest.err >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } && {
7188 test -z "$ac_c_werror_flag" ||
7189 test ! -s conftest.err
7190 } && test -s conftest.$ac_objext; then
7191 ac_lo=0 ac_mid=0
7192 while :; do
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 $ac_includes_default
7200 typedef long long ac__type_sizeof_;
7201 int
7202 main ()
7203 {
7204 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7205 test_array [0] = 0
7206
7207 ;
7208 return 0;
7209 }
7210 _ACEOF
7211 rm -f conftest.$ac_objext
7212 if { (ac_try="$ac_compile"
7213 case "(($ac_try" in
7214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7215 *) ac_try_echo=$ac_try;;
7216 esac
7217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7218 (eval "$ac_compile") 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && {
7225 test -z "$ac_c_werror_flag" ||
7226 test ! -s conftest.err
7227 } && test -s conftest.$ac_objext; then
7228 ac_hi=$ac_mid; break
7229 else
7230 echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7232
7233 ac_lo=`expr $ac_mid + 1`
7234 if test $ac_lo -le $ac_mid; then
7235 ac_lo= ac_hi=
7236 break
7237 fi
7238 ac_mid=`expr 2 '*' $ac_mid + 1`
7239 fi
7240
7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 done
7243 else
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7246
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 $ac_includes_default
7254 typedef long long ac__type_sizeof_;
7255 int
7256 main ()
7257 {
7258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7259 test_array [0] = 0
7260
7261 ;
7262 return 0;
7263 }
7264 _ACEOF
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7267 case "(($ac_try" in
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7270 esac
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7273 ac_status=$?
7274 grep -v '^ *+' conftest.er1 >conftest.err
7275 rm -f conftest.er1
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
7282 ac_hi=-1 ac_mid=-1
7283 while :; do
7284 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 $ac_includes_default
7291 typedef long long ac__type_sizeof_;
7292 int
7293 main ()
7294 {
7295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7296 test_array [0] = 0
7297
7298 ;
7299 return 0;
7300 }
7301 _ACEOF
7302 rm -f conftest.$ac_objext
7303 if { (ac_try="$ac_compile"
7304 case "(($ac_try" in
7305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306 *) ac_try_echo=$ac_try;;
7307 esac
7308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7309 (eval "$ac_compile") 2>conftest.er1
7310 ac_status=$?
7311 grep -v '^ *+' conftest.er1 >conftest.err
7312 rm -f conftest.er1
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } && {
7316 test -z "$ac_c_werror_flag" ||
7317 test ! -s conftest.err
7318 } && test -s conftest.$ac_objext; then
7319 ac_lo=$ac_mid; break
7320 else
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7323
7324 ac_hi=`expr '(' $ac_mid ')' - 1`
7325 if test $ac_mid -le $ac_hi; then
7326 ac_lo= ac_hi=
7327 break
7328 fi
7329 ac_mid=`expr 2 '*' $ac_mid`
7330 fi
7331
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 done
7334 else
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7337
7338 ac_lo= ac_hi=
7339 fi
7340
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 fi
7343
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 # Binary search between lo and hi bounds.
7346 while test "x$ac_lo" != "x$ac_hi"; do
7347 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7348 cat >conftest.$ac_ext <<_ACEOF
7349 /* confdefs.h. */
7350 _ACEOF
7351 cat confdefs.h >>conftest.$ac_ext
7352 cat >>conftest.$ac_ext <<_ACEOF
7353 /* end confdefs.h. */
7354 $ac_includes_default
7355 typedef long long ac__type_sizeof_;
7356 int
7357 main ()
7358 {
7359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7360 test_array [0] = 0
7361
7362 ;
7363 return 0;
7364 }
7365 _ACEOF
7366 rm -f conftest.$ac_objext
7367 if { (ac_try="$ac_compile"
7368 case "(($ac_try" in
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7371 esac
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7383 ac_hi=$ac_mid
7384 else
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7387
7388 ac_lo=`expr '(' $ac_mid ')' + 1`
7389 fi
7390
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 done
7393 case $ac_lo in
7394 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7395 '') if test "$ac_cv_type_long_long" = yes; then
7396 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7397 See \`config.log' for more details." >&5
7398 echo "$as_me: error: cannot compute sizeof (long long)
7399 See \`config.log' for more details." >&2;}
7400 { (exit 77); exit 77; }; }
7401 else
7402 ac_cv_sizeof_long_long=0
7403 fi ;;
7404 esac
7405 else
7406 cat >conftest.$ac_ext <<_ACEOF
7407 /* confdefs.h. */
7408 _ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412 $ac_includes_default
7413 typedef long long ac__type_sizeof_;
7414 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7415 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7416 #include <stdio.h>
7417 #include <stdlib.h>
7418 int
7419 main ()
7420 {
7421
7422 FILE *f = fopen ("conftest.val", "w");
7423 if (! f)
7424 return 1;
7425 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7426 {
7427 long int i = longval ();
7428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7429 return 1;
7430 fprintf (f, "%ld\n", i);
7431 }
7432 else
7433 {
7434 unsigned long int i = ulongval ();
7435 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7436 return 1;
7437 fprintf (f, "%lu\n", i);
7438 }
7439 return ferror (f) || fclose (f) != 0;
7440
7441 ;
7442 return 0;
7443 }
7444 _ACEOF
7445 rm -f conftest$ac_exeext
7446 if { (ac_try="$ac_link"
7447 case "(($ac_try" in
7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7450 esac
7451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7452 (eval "$ac_link") 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7456 { (case "(($ac_try" in
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7459 esac
7460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_try") 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7465 ac_cv_sizeof_long_long=`cat conftest.val`
7466 else
7467 echo "$as_me: program exited with status $ac_status" >&5
7468 echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7470
7471 ( exit $ac_status )
7472 if test "$ac_cv_type_long_long" = yes; then
7473 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7474 See \`config.log' for more details." >&5
7475 echo "$as_me: error: cannot compute sizeof (long long)
7476 See \`config.log' for more details." >&2;}
7477 { (exit 77); exit 77; }; }
7478 else
7479 ac_cv_sizeof_long_long=0
7480 fi
7481 fi
7482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7483 fi
7484 rm -f conftest.val
7485 fi
7486 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7487 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7488
7489
7490
7491 cat >>confdefs.h <<_ACEOF
7492 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7493 _ACEOF
7494
7495
7496
7497
7498 { echo "$as_me:$LINENO: checking for addrinfo" >&5
7499 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7500 if test "${ac_cv_addrinfo+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509
7510 # include <netdb.h>
7511 int
7512 main ()
7513 {
7514 struct addrinfo a
7515 ;
7516 return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext
7520 if { (ac_try="$ac_compile"
7521 case "(($ac_try" in
7522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523 *) ac_try_echo=$ac_try;;
7524 esac
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526 (eval "$ac_compile") 2>conftest.er1
7527 ac_status=$?
7528 grep -v '^ *+' conftest.er1 >conftest.err
7529 rm -f conftest.er1
7530 cat conftest.err >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest.$ac_objext; then
7536 ac_cv_addrinfo=yes
7537 else
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7540
7541 ac_cv_addrinfo=no
7542 fi
7543
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 fi
7546
7547 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7548 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7549 if test $ac_cv_addrinfo = yes; then
7550 cat >>confdefs.h <<\_ACEOF
7551 #define HAVE_ADDRINFO 1
7552 _ACEOF
7553
7554 else
7555 cat >>confdefs.h <<\_ACEOF
7556 #define NEED_ADDRINFO_H 1
7557 _ACEOF
7558
7559 fi
7560
7561 if test "$ac_cv_addrinfo" = no; then
7562 missing_includes=yes
7563 fi
7564
7565
7566 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7567 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7568 if test "${ac_cv_maxserv+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571 cat >conftest.$ac_ext <<_ACEOF
7572 /* confdefs.h. */
7573 _ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h. */
7577 #include <netdb.h>
7578 #ifdef NI_MAXSERV
7579 yes
7580 #endif
7581 _ACEOF
7582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7583 $EGREP "yes" >/dev/null 2>&1; then
7584 ac_cv_maxserv=yes
7585 else
7586 ac_cv_maxserv=no
7587 fi
7588 rm -f -r conftest*
7589
7590 fi
7591
7592 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7593 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7594 if test $ac_cv_maxserv != yes; then
7595 cat >>confdefs.h <<\_ACEOF
7596 #define NEED_ADDRINFO_H 1
7597 _ACEOF
7598
7599 fi
7600
7601 if test "$ac_cv_maxserv" = no; then
7602 missing_includes=yes
7603 fi
7604
7605
7606 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7607 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7608 if test "${ac_cv_namereqd+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 #include <netdb.h>
7618 #ifdef NI_NOFQDN
7619 yes
7620 #endif
7621 _ACEOF
7622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7623 $EGREP "yes" >/dev/null 2>&1; then
7624 ac_cv_namereqd=yes
7625 else
7626 ac_cv_namereqd=no
7627 fi
7628 rm -f -r conftest*
7629
7630 fi
7631
7632 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7633 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7634 if test $ac_cv_namereqd != yes; then
7635 cat >>confdefs.h <<\_ACEOF
7636 #define NEED_ADDRINFO_H 1
7637 _ACEOF
7638
7639 fi
7640
7641 if test "$ac_cv_namereqd" = no; then
7642 missing_includes=yes
7643 fi
7644
7645
7646 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7647 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7648 if test "${ac_cv_sa_storage+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651 cat >conftest.$ac_ext <<_ACEOF
7652 /* confdefs.h. */
7653 _ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657
7658 # include <sys/types.h>
7659 # include <sys/socket.h>
7660 int
7661 main ()
7662 {
7663 struct sockaddr_storage s
7664 ;
7665 return 0;
7666 }
7667 _ACEOF
7668 rm -f conftest.$ac_objext
7669 if { (ac_try="$ac_compile"
7670 case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673 esac
7674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_compile") 2>conftest.er1
7676 ac_status=$?
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest.$ac_objext; then
7685 ac_cv_sa_storage=yes
7686 else
7687 echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7689
7690 ac_cv_sa_storage=no
7691 fi
7692
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 fi
7695
7696 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7697 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7698 if test $ac_cv_sa_storage = yes; then
7699 cat >>confdefs.h <<\_ACEOF
7700 #define HAVE_SOCKADDR_STORAGE 1
7701 _ACEOF
7702
7703 fi
7704
7705 if test "$ac_cv_sa_storage" = no; then
7706 missing_includes=yes
7707 fi
7708
7709
7710
7711
7712
7713
7714
7715 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
7716 do
7717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723 cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h. */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7731 #define $ac_func innocuous_$ac_func
7732
7733 /* System header to define __stub macros and hopefully few prototypes,
7734 which can conflict with char $ac_func (); below.
7735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7736 <limits.h> exists even on freestanding compilers. */
7737
7738 #ifdef __STDC__
7739 # include <limits.h>
7740 #else
7741 # include <assert.h>
7742 #endif
7743
7744 #undef $ac_func
7745
7746 /* Override any GCC internal prototype to avoid an error.
7747 Use char because int might match the return type of a GCC
7748 builtin and then its argument prototype would still apply. */
7749 #ifdef __cplusplus
7750 extern "C"
7751 #endif
7752 char $ac_func ();
7753 /* The GNU C library defines this for functions which it implements
7754 to always fail with ENOSYS. Some functions are actually named
7755 something starting with __ and the normal name is an alias. */
7756 #if defined __stub_$ac_func || defined __stub___$ac_func
7757 choke me
7758 #endif
7759
7760 int
7761 main ()
7762 {
7763 return $ac_func ();
7764 ;
7765 return 0;
7766 }
7767 _ACEOF
7768 rm -f conftest.$ac_objext conftest$ac_exeext
7769 if { (ac_try="$ac_link"
7770 case "(($ac_try" in
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7773 esac
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775 (eval "$ac_link") 2>conftest.er1
7776 ac_status=$?
7777 grep -v '^ *+' conftest.er1 >conftest.err
7778 rm -f conftest.er1
7779 cat conftest.err >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } && {
7782 test -z "$ac_c_werror_flag" ||
7783 test ! -s conftest.err
7784 } && test -s conftest$ac_exeext &&
7785 $as_test_x conftest$ac_exeext; then
7786 eval "$as_ac_var=yes"
7787 else
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 eval "$as_ac_var=no"
7792 fi
7793
7794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7795 conftest$ac_exeext conftest.$ac_ext
7796 fi
7797 ac_res=`eval echo '${'$as_ac_var'}'`
7798 { echo "$as_me:$LINENO: result: $ac_res" >&5
7799 echo "${ECHO_T}$ac_res" >&6; }
7800 if test `eval echo '${'$as_ac_var'}'` = yes; then
7801 cat >>confdefs.h <<_ACEOF
7802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7803 _ACEOF
7804
7805 else
7806 case " $LIBOBJS " in
7807 *" $ac_func.$ac_objext "* ) ;;
7808 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7809 ;;
7810 esac
7811
7812 fi
7813 done
7814
7815
7816
7817
7818
7819 for ac_func in fork vfork strftime
7820 do
7821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827 cat >conftest.$ac_ext <<_ACEOF
7828 /* confdefs.h. */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7835 #define $ac_func innocuous_$ac_func
7836
7837 /* System header to define __stub macros and hopefully few prototypes,
7838 which can conflict with char $ac_func (); below.
7839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7840 <limits.h> exists even on freestanding compilers. */
7841
7842 #ifdef __STDC__
7843 # include <limits.h>
7844 #else
7845 # include <assert.h>
7846 #endif
7847
7848 #undef $ac_func
7849
7850 /* Override any GCC internal prototype to avoid an error.
7851 Use char because int might match the return type of a GCC
7852 builtin and then its argument prototype would still apply. */
7853 #ifdef __cplusplus
7854 extern "C"
7855 #endif
7856 char $ac_func ();
7857 /* The GNU C library defines this for functions which it implements
7858 to always fail with ENOSYS. Some functions are actually named
7859 something starting with __ and the normal name is an alias. */
7860 #if defined __stub_$ac_func || defined __stub___$ac_func
7861 choke me
7862 #endif
7863
7864 int
7865 main ()
7866 {
7867 return $ac_func ();
7868 ;
7869 return 0;
7870 }
7871 _ACEOF
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (ac_try="$ac_link"
7874 case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877 esac
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_link") 2>conftest.er1
7880 ac_status=$?
7881 grep -v '^ *+' conftest.er1 >conftest.err
7882 rm -f conftest.er1
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } && {
7886 test -z "$ac_c_werror_flag" ||
7887 test ! -s conftest.err
7888 } && test -s conftest$ac_exeext &&
7889 $as_test_x conftest$ac_exeext; then
7890 eval "$as_ac_var=yes"
7891 else
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7894
7895 eval "$as_ac_var=no"
7896 fi
7897
7898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7899 conftest$ac_exeext conftest.$ac_ext
7900 fi
7901 ac_res=`eval echo '${'$as_ac_var'}'`
7902 { echo "$as_me:$LINENO: result: $ac_res" >&5
7903 echo "${ECHO_T}$ac_res" >&6; }
7904 if test `eval echo '${'$as_ac_var'}'` = yes; then
7905 cat >>confdefs.h <<_ACEOF
7906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7907 _ACEOF
7908
7909 fi
7910 done
7911
7912
7913
7914 for ac_func in setlinebuf alarm
7915 do
7916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7930 #define $ac_func innocuous_$ac_func
7931
7932 /* System header to define __stub macros and hopefully few prototypes,
7933 which can conflict with char $ac_func (); below.
7934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7935 <limits.h> exists even on freestanding compilers. */
7936
7937 #ifdef __STDC__
7938 # include <limits.h>
7939 #else
7940 # include <assert.h>
7941 #endif
7942
7943 #undef $ac_func
7944
7945 /* Override any GCC internal prototype to avoid an error.
7946 Use char because int might match the return type of a GCC
7947 builtin and then its argument prototype would still apply. */
7948 #ifdef __cplusplus
7949 extern "C"
7950 #endif
7951 char $ac_func ();
7952 /* The GNU C library defines this for functions which it implements
7953 to always fail with ENOSYS. Some functions are actually named
7954 something starting with __ and the normal name is an alias. */
7955 #if defined __stub_$ac_func || defined __stub___$ac_func
7956 choke me
7957 #endif
7958
7959 int
7960 main ()
7961 {
7962 return $ac_func ();
7963 ;
7964 return 0;
7965 }
7966 _ACEOF
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (ac_try="$ac_link"
7969 case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7972 esac
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_link") 2>conftest.er1
7975 ac_status=$?
7976 grep -v '^ *+' conftest.er1 >conftest.err
7977 rm -f conftest.er1
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } && {
7981 test -z "$ac_c_werror_flag" ||
7982 test ! -s conftest.err
7983 } && test -s conftest$ac_exeext &&
7984 $as_test_x conftest$ac_exeext; then
7985 eval "$as_ac_var=yes"
7986 else
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 eval "$as_ac_var=no"
7991 fi
7992
7993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7994 conftest$ac_exeext conftest.$ac_ext
7995 fi
7996 ac_res=`eval echo '${'$as_ac_var'}'`
7997 { echo "$as_me:$LINENO: result: $ac_res" >&5
7998 echo "${ECHO_T}$ac_res" >&6; }
7999 if test `eval echo '${'$as_ac_var'}'` = yes; then
8000 cat >>confdefs.h <<_ACEOF
8001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8002 _ACEOF
8003
8004 fi
8005 done
8006
8007
8008 needsnprintf=no
8009
8010
8011 for ac_func in vsnprintf snprintf
8012 do
8013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019 cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h. */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8027 #define $ac_func innocuous_$ac_func
8028
8029 /* System header to define __stub macros and hopefully few prototypes,
8030 which can conflict with char $ac_func (); below.
8031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8032 <limits.h> exists even on freestanding compilers. */
8033
8034 #ifdef __STDC__
8035 # include <limits.h>
8036 #else
8037 # include <assert.h>
8038 #endif
8039
8040 #undef $ac_func
8041
8042 /* Override any GCC internal prototype to avoid an error.
8043 Use char because int might match the return type of a GCC
8044 builtin and then its argument prototype would still apply. */
8045 #ifdef __cplusplus
8046 extern "C"
8047 #endif
8048 char $ac_func ();
8049 /* The GNU C library defines this for functions which it implements
8050 to always fail with ENOSYS. Some functions are actually named
8051 something starting with __ and the normal name is an alias. */
8052 #if defined __stub_$ac_func || defined __stub___$ac_func
8053 choke me
8054 #endif
8055
8056 int
8057 main ()
8058 {
8059 return $ac_func ();
8060 ;
8061 return 0;
8062 }
8063 _ACEOF
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (ac_try="$ac_link"
8066 case "(($ac_try" in
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8069 esac
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_link") 2>conftest.er1
8072 ac_status=$?
8073 grep -v '^ *+' conftest.er1 >conftest.err
8074 rm -f conftest.er1
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest$ac_exeext &&
8081 $as_test_x conftest$ac_exeext; then
8082 eval "$as_ac_var=yes"
8083 else
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087 eval "$as_ac_var=no"
8088 fi
8089
8090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8091 conftest$ac_exeext conftest.$ac_ext
8092 fi
8093 ac_res=`eval echo '${'$as_ac_var'}'`
8094 { echo "$as_me:$LINENO: result: $ac_res" >&5
8095 echo "${ECHO_T}$ac_res" >&6; }
8096 if test `eval echo '${'$as_ac_var'}'` = yes; then
8097 cat >>confdefs.h <<_ACEOF
8098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8099 _ACEOF
8100
8101 else
8102 needsnprintf=yes
8103 fi
8104 done
8105
8106 if test $needsnprintf = yes; then
8107 case " $LIBOBJS " in
8108 *" snprintf.$ac_objext "* ) ;;
8109 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8110 ;;
8111 esac
8112
8113 fi
8114
8115
8116 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8117 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8118 if test "${ac_cv_type_signal+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121 cat >conftest.$ac_ext <<_ACEOF
8122 /* confdefs.h. */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 #include <sys/types.h>
8128 #include <signal.h>
8129
8130 int
8131 main ()
8132 {
8133 return *(signal (0, 0)) (0) == 1;
8134 ;
8135 return 0;
8136 }
8137 _ACEOF
8138 rm -f conftest.$ac_objext
8139 if { (ac_try="$ac_compile"
8140 case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143 esac
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_compile") 2>conftest.er1
8146 ac_status=$?
8147 grep -v '^ *+' conftest.er1 >conftest.err
8148 rm -f conftest.er1
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } && {
8152 test -z "$ac_c_werror_flag" ||
8153 test ! -s conftest.err
8154 } && test -s conftest.$ac_objext; then
8155 ac_cv_type_signal=int
8156 else
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8159
8160 ac_cv_type_signal=void
8161 fi
8162
8163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8164 fi
8165 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8166 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8167
8168 cat >>confdefs.h <<_ACEOF
8169 #define RETSIGTYPE $ac_cv_type_signal
8170 _ACEOF
8171
8172
8173 if test "$ac_cv_type_signal" = void ; then
8174
8175 cat >>confdefs.h <<\_ACEOF
8176 #define RETSIGVAL
8177 _ACEOF
8178
8179 else
8180
8181 cat >>confdefs.h <<\_ACEOF
8182 #define RETSIGVAL (0)
8183 _ACEOF
8184
8185 fi
8186 case "$host_os" in
8187
8188 irix*)
8189
8190 cat >>confdefs.h <<\_ACEOF
8191 #define _BSD_SIGNALS 1
8192 _ACEOF
8193
8194 ;;
8195
8196 *)
8197
8198 for ac_func in sigaction
8199 do
8200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8201 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206 cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h. */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8214 #define $ac_func innocuous_$ac_func
8215
8216 /* System header to define __stub macros and hopefully few prototypes,
8217 which can conflict with char $ac_func (); below.
8218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8219 <limits.h> exists even on freestanding compilers. */
8220
8221 #ifdef __STDC__
8222 # include <limits.h>
8223 #else
8224 # include <assert.h>
8225 #endif
8226
8227 #undef $ac_func
8228
8229 /* Override any GCC internal prototype to avoid an error.
8230 Use char because int might match the return type of a GCC
8231 builtin and then its argument prototype would still apply. */
8232 #ifdef __cplusplus
8233 extern "C"
8234 #endif
8235 char $ac_func ();
8236 /* The GNU C library defines this for functions which it implements
8237 to always fail with ENOSYS. Some functions are actually named
8238 something starting with __ and the normal name is an alias. */
8239 #if defined __stub_$ac_func || defined __stub___$ac_func
8240 choke me
8241 #endif
8242
8243 int
8244 main ()
8245 {
8246 return $ac_func ();
8247 ;
8248 return 0;
8249 }
8250 _ACEOF
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (ac_try="$ac_link"
8253 case "(($ac_try" in
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8256 esac
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_link") 2>conftest.er1
8259 ac_status=$?
8260 grep -v '^ *+' conftest.er1 >conftest.err
8261 rm -f conftest.er1
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } && {
8265 test -z "$ac_c_werror_flag" ||
8266 test ! -s conftest.err
8267 } && test -s conftest$ac_exeext &&
8268 $as_test_x conftest$ac_exeext; then
8269 eval "$as_ac_var=yes"
8270 else
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 eval "$as_ac_var=no"
8275 fi
8276
8277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8278 conftest$ac_exeext conftest.$ac_ext
8279 fi
8280 ac_res=`eval echo '${'$as_ac_var'}'`
8281 { echo "$as_me:$LINENO: result: $ac_res" >&5
8282 echo "${ECHO_T}$ac_res" >&6; }
8283 if test `eval echo '${'$as_ac_var'}'` = yes; then
8284 cat >>confdefs.h <<_ACEOF
8285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8286 _ACEOF
8287
8288 fi
8289 done
8290
8291 if test $ac_cv_func_sigaction = no ; then
8292
8293 for ac_func in sigset
8294 do
8295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8309 #define $ac_func innocuous_$ac_func
8310
8311 /* System header to define __stub macros and hopefully few prototypes,
8312 which can conflict with char $ac_func (); below.
8313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8314 <limits.h> exists even on freestanding compilers. */
8315
8316 #ifdef __STDC__
8317 # include <limits.h>
8318 #else
8319 # include <assert.h>
8320 #endif
8321
8322 #undef $ac_func
8323
8324 /* Override any GCC internal prototype to avoid an error.
8325 Use char because int might match the return type of a GCC
8326 builtin and then its argument prototype would still apply. */
8327 #ifdef __cplusplus
8328 extern "C"
8329 #endif
8330 char $ac_func ();
8331 /* The GNU C library defines this for functions which it implements
8332 to always fail with ENOSYS. Some functions are actually named
8333 something starting with __ and the normal name is an alias. */
8334 #if defined __stub_$ac_func || defined __stub___$ac_func
8335 choke me
8336 #endif
8337
8338 int
8339 main ()
8340 {
8341 return $ac_func ();
8342 ;
8343 return 0;
8344 }
8345 _ACEOF
8346 rm -f conftest.$ac_objext conftest$ac_exeext
8347 if { (ac_try="$ac_link"
8348 case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351 esac
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_link") 2>conftest.er1
8354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } && {
8360 test -z "$ac_c_werror_flag" ||
8361 test ! -s conftest.err
8362 } && test -s conftest$ac_exeext &&
8363 $as_test_x conftest$ac_exeext; then
8364 eval "$as_ac_var=yes"
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 eval "$as_ac_var=no"
8370 fi
8371
8372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8373 conftest$ac_exeext conftest.$ac_ext
8374 fi
8375 ac_res=`eval echo '${'$as_ac_var'}'`
8376 { echo "$as_me:$LINENO: result: $ac_res" >&5
8377 echo "${ECHO_T}$ac_res" >&6; }
8378 if test `eval echo '${'$as_ac_var'}'` = yes; then
8379 cat >>confdefs.h <<_ACEOF
8380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8381 _ACEOF
8382
8383 fi
8384 done
8385
8386 fi
8387 ;;
8388 esac
8389
8390 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8391 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8392 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 else
8395 ac_func_search_save_LIBS=$LIBS
8396 cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h. */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402
8403 /* Override any GCC internal prototype to avoid an error.
8404 Use char because int might match the return type of a GCC
8405 builtin and then its argument prototype would still apply. */
8406 #ifdef __cplusplus
8407 extern "C"
8408 #endif
8409 char dnet_htoa ();
8410 int
8411 main ()
8412 {
8413 return dnet_htoa ();
8414 ;
8415 return 0;
8416 }
8417 _ACEOF
8418 for ac_lib in '' dnet; do
8419 if test -z "$ac_lib"; then
8420 ac_res="none required"
8421 else
8422 ac_res=-l$ac_lib
8423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8424 fi
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (ac_try="$ac_link"
8427 case "(($ac_try" in
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8430 esac
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_link") 2>conftest.er1
8433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } && {
8439 test -z "$ac_c_werror_flag" ||
8440 test ! -s conftest.err
8441 } && test -s conftest$ac_exeext &&
8442 $as_test_x conftest$ac_exeext; then
8443 ac_cv_search_dnet_htoa=$ac_res
8444 else
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8447
8448
8449 fi
8450
8451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8452 conftest$ac_exeext
8453 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8454 break
8455 fi
8456 done
8457 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8458 :
8459 else
8460 ac_cv_search_dnet_htoa=no
8461 fi
8462 rm conftest.$ac_ext
8463 LIBS=$ac_func_search_save_LIBS
8464 fi
8465 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8466 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8467 ac_res=$ac_cv_search_dnet_htoa
8468 if test "$ac_res" != no; then
8469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8470 cat >>confdefs.h <<\_ACEOF
8471 #define HAVE_DNET_HTOA 1
8472 _ACEOF
8473
8474 fi
8475
8476
8477
8478 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8479 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8480 if test "${ac_cv_lib_rpc_main+set}" = set; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 else
8483 ac_check_lib_save_LIBS=$LIBS
8484 LIBS="-lrpc $LIBS"
8485 cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h. */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8491
8492
8493 int
8494 main ()
8495 {
8496 return main ();
8497 ;
8498 return 0;
8499 }
8500 _ACEOF
8501 rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (ac_try="$ac_link"
8503 case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506 esac
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_link") 2>conftest.er1
8509 ac_status=$?
8510 grep -v '^ *+' conftest.er1 >conftest.err
8511 rm -f conftest.er1
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } && {
8515 test -z "$ac_c_werror_flag" ||
8516 test ! -s conftest.err
8517 } && test -s conftest$ac_exeext &&
8518 $as_test_x conftest$ac_exeext; then
8519 ac_cv_lib_rpc_main=yes
8520 else
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524 ac_cv_lib_rpc_main=no
8525 fi
8526
8527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8528 conftest$ac_exeext conftest.$ac_ext
8529 LIBS=$ac_check_lib_save_LIBS
8530 fi
8531 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8532 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8533 if test $ac_cv_lib_rpc_main = yes; then
8534 cat >>confdefs.h <<_ACEOF
8535 #define HAVE_LIBRPC 1
8536 _ACEOF
8537
8538 LIBS="-lrpc $LIBS"
8539
8540 fi
8541
8542 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8543 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8544 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547 ac_func_search_save_LIBS=$LIBS
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h. */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554
8555 /* Override any GCC internal prototype to avoid an error.
8556 Use char because int might match the return type of a GCC
8557 builtin and then its argument prototype would still apply. */
8558 #ifdef __cplusplus
8559 extern "C"
8560 #endif
8561 char getrpcbynumber ();
8562 int
8563 main ()
8564 {
8565 return getrpcbynumber ();
8566 ;
8567 return 0;
8568 }
8569 _ACEOF
8570 for ac_lib in '' nsl; do
8571 if test -z "$ac_lib"; then
8572 ac_res="none required"
8573 else
8574 ac_res=-l$ac_lib
8575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8576 fi
8577 rm -f conftest.$ac_objext conftest$ac_exeext
8578 if { (ac_try="$ac_link"
8579 case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_link") 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest$ac_exeext &&
8594 $as_test_x conftest$ac_exeext; then
8595 ac_cv_search_getrpcbynumber=$ac_res
8596 else
8597 echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8599
8600
8601 fi
8602
8603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8604 conftest$ac_exeext
8605 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8606 break
8607 fi
8608 done
8609 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8610 :
8611 else
8612 ac_cv_search_getrpcbynumber=no
8613 fi
8614 rm conftest.$ac_ext
8615 LIBS=$ac_func_search_save_LIBS
8616 fi
8617 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8618 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8619 ac_res=$ac_cv_search_getrpcbynumber
8620 if test "$ac_res" != no; then
8621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8622 cat >>confdefs.h <<\_ACEOF
8623 #define HAVE_GETRPCBYNUMBER 1
8624 _ACEOF
8625
8626 fi
8627
8628
8629
8630
8631 # Most operating systems have gethostbyname() in the default searched
8632 # libraries (i.e. libc):
8633 # Some OSes (eg. Solaris) place it in libnsl
8634 # Some strange OSes (SINIX) have it in libsocket:
8635 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8636 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8637 if test "${ac_cv_search_gethostbyname+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640 ac_func_search_save_LIBS=$LIBS
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h. */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8647
8648 /* Override any GCC internal prototype to avoid an error.
8649 Use char because int might match the return type of a GCC
8650 builtin and then its argument prototype would still apply. */
8651 #ifdef __cplusplus
8652 extern "C"
8653 #endif
8654 char gethostbyname ();
8655 int
8656 main ()
8657 {
8658 return gethostbyname ();
8659 ;
8660 return 0;
8661 }
8662 _ACEOF
8663 for ac_lib in '' nsl socket resolv; do
8664 if test -z "$ac_lib"; then
8665 ac_res="none required"
8666 else
8667 ac_res=-l$ac_lib
8668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8669 fi
8670 rm -f conftest.$ac_objext conftest$ac_exeext
8671 if { (ac_try="$ac_link"
8672 case "(($ac_try" in
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8675 esac
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_link") 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } && {
8684 test -z "$ac_c_werror_flag" ||
8685 test ! -s conftest.err
8686 } && test -s conftest$ac_exeext &&
8687 $as_test_x conftest$ac_exeext; then
8688 ac_cv_search_gethostbyname=$ac_res
8689 else
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8692
8693
8694 fi
8695
8696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8697 conftest$ac_exeext
8698 if test "${ac_cv_search_gethostbyname+set}" = set; then
8699 break
8700 fi
8701 done
8702 if test "${ac_cv_search_gethostbyname+set}" = set; then
8703 :
8704 else
8705 ac_cv_search_gethostbyname=no
8706 fi
8707 rm conftest.$ac_ext
8708 LIBS=$ac_func_search_save_LIBS
8709 fi
8710 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8711 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
8712 ac_res=$ac_cv_search_gethostbyname
8713 if test "$ac_res" != no; then
8714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8715
8716 fi
8717
8718 # Unfortunately libsocket sometimes depends on libnsl and
8719 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8720 if test "$ac_cv_search_gethostbyname" = "no"
8721 then
8722 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8723 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
8724 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8725 echo $ECHO_N "(cached) $ECHO_C" >&6
8726 else
8727 ac_check_lib_save_LIBS=$LIBS
8728 LIBS="-lsocket -lnsl $LIBS"
8729 cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h. */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735
8736 /* Override any GCC internal prototype to avoid an error.
8737 Use char because int might match the return type of a GCC
8738 builtin and then its argument prototype would still apply. */
8739 #ifdef __cplusplus
8740 extern "C"
8741 #endif
8742 char gethostbyname ();
8743 int
8744 main ()
8745 {
8746 return gethostbyname ();
8747 ;
8748 return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8753 case "(($ac_try" in
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8756 esac
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758 (eval "$ac_link") 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
8767 } && test -s conftest$ac_exeext &&
8768 $as_test_x conftest$ac_exeext; then
8769 ac_cv_lib_socket_gethostbyname=yes
8770 else
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774 ac_cv_lib_socket_gethostbyname=no
8775 fi
8776
8777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8778 conftest$ac_exeext conftest.$ac_ext
8779 LIBS=$ac_check_lib_save_LIBS
8780 fi
8781 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8782 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
8783 if test $ac_cv_lib_socket_gethostbyname = yes; then
8784 LIBS="-lsocket -lnsl $LIBS"
8785 fi
8786
8787 fi
8788 { echo "$as_me:$LINENO: checking for library containing socket" >&5
8789 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
8790 if test "${ac_cv_search_socket+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793 ac_func_search_save_LIBS=$LIBS
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h. */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800
8801 /* Override any GCC internal prototype to avoid an error.
8802 Use char because int might match the return type of a GCC
8803 builtin and then its argument prototype would still apply. */
8804 #ifdef __cplusplus
8805 extern "C"
8806 #endif
8807 char socket ();
8808 int
8809 main ()
8810 {
8811 return socket ();
8812 ;
8813 return 0;
8814 }
8815 _ACEOF
8816 for ac_lib in '' socket; do
8817 if test -z "$ac_lib"; then
8818 ac_res="none required"
8819 else
8820 ac_res=-l$ac_lib
8821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8822 fi
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (ac_try="$ac_link"
8825 case "(($ac_try" in
8826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827 *) ac_try_echo=$ac_try;;
8828 esac
8829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830 (eval "$ac_link") 2>conftest.er1
8831 ac_status=$?
8832 grep -v '^ *+' conftest.er1 >conftest.err
8833 rm -f conftest.er1
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } && {
8837 test -z "$ac_c_werror_flag" ||
8838 test ! -s conftest.err
8839 } && test -s conftest$ac_exeext &&
8840 $as_test_x conftest$ac_exeext; then
8841 ac_cv_search_socket=$ac_res
8842 else
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846
8847 fi
8848
8849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8850 conftest$ac_exeext
8851 if test "${ac_cv_search_socket+set}" = set; then
8852 break
8853 fi
8854 done
8855 if test "${ac_cv_search_socket+set}" = set; then
8856 :
8857 else
8858 ac_cv_search_socket=no
8859 fi
8860 rm conftest.$ac_ext
8861 LIBS=$ac_func_search_save_LIBS
8862 fi
8863 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8864 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
8865 ac_res=$ac_cv_search_socket
8866 if test "$ac_res" != no; then
8867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8868
8869 else
8870 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8871 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
8872 if test "${ac_cv_lib_socket_socket+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 else
8875 ac_check_lib_save_LIBS=$LIBS
8876 LIBS="-lsocket -lnsl $LIBS"
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883
8884 /* Override any GCC internal prototype to avoid an error.
8885 Use char because int might match the return type of a GCC
8886 builtin and then its argument prototype would still apply. */
8887 #ifdef __cplusplus
8888 extern "C"
8889 #endif
8890 char socket ();
8891 int
8892 main ()
8893 {
8894 return socket ();
8895 ;
8896 return 0;
8897 }
8898 _ACEOF
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (ac_try="$ac_link"
8901 case "(($ac_try" in
8902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8903 *) ac_try_echo=$ac_try;;
8904 esac
8905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8906 (eval "$ac_link") 2>conftest.er1
8907 ac_status=$?
8908 grep -v '^ *+' conftest.er1 >conftest.err
8909 rm -f conftest.er1
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && {
8913 test -z "$ac_c_werror_flag" ||
8914 test ! -s conftest.err
8915 } && test -s conftest$ac_exeext &&
8916 $as_test_x conftest$ac_exeext; then
8917 ac_cv_lib_socket_socket=yes
8918 else
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8921
8922 ac_cv_lib_socket_socket=no
8923 fi
8924
8925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8926 conftest$ac_exeext conftest.$ac_ext
8927 LIBS=$ac_check_lib_save_LIBS
8928 fi
8929 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8930 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
8931 if test $ac_cv_lib_socket_socket = yes; then
8932 LIBS="-lsocket -lnsl $LIBS"
8933 fi
8934
8935 fi
8936
8937 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8938 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8939 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
8940 if test "${ac_cv_search_putmsg+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943 ac_func_search_save_LIBS=$LIBS
8944 cat >conftest.$ac_ext <<_ACEOF
8945 /* confdefs.h. */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950
8951 /* Override any GCC internal prototype to avoid an error.
8952 Use char because int might match the return type of a GCC
8953 builtin and then its argument prototype would still apply. */
8954 #ifdef __cplusplus
8955 extern "C"
8956 #endif
8957 char putmsg ();
8958 int
8959 main ()
8960 {
8961 return putmsg ();
8962 ;
8963 return 0;
8964 }
8965 _ACEOF
8966 for ac_lib in '' str; do
8967 if test -z "$ac_lib"; then
8968 ac_res="none required"
8969 else
8970 ac_res=-l$ac_lib
8971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8972 fi
8973 rm -f conftest.$ac_objext conftest$ac_exeext
8974 if { (ac_try="$ac_link"
8975 case "(($ac_try" in
8976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8977 *) ac_try_echo=$ac_try;;
8978 esac
8979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8980 (eval "$ac_link") 2>conftest.er1
8981 ac_status=$?
8982 grep -v '^ *+' conftest.er1 >conftest.err
8983 rm -f conftest.er1
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } && {
8987 test -z "$ac_c_werror_flag" ||
8988 test ! -s conftest.err
8989 } && test -s conftest$ac_exeext &&
8990 $as_test_x conftest$ac_exeext; then
8991 ac_cv_search_putmsg=$ac_res
8992 else
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8995
8996
8997 fi
8998
8999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9000 conftest$ac_exeext
9001 if test "${ac_cv_search_putmsg+set}" = set; then
9002 break
9003 fi
9004 done
9005 if test "${ac_cv_search_putmsg+set}" = set; then
9006 :
9007 else
9008 ac_cv_search_putmsg=no
9009 fi
9010 rm conftest.$ac_ext
9011 LIBS=$ac_func_search_save_LIBS
9012 fi
9013 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9014 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9015 ac_res=$ac_cv_search_putmsg
9016 if test "$ac_res" != no; then
9017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9018
9019 fi
9020
9021
9022
9023 LBL_LIBS="$LIBS"
9024 pfopen=/usr/examples/packetfilter/pfopen.c
9025 if test -f $pfopen ; then
9026
9027 for ac_func in pfopen
9028 do
9029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035 cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h. */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9043 #define $ac_func innocuous_$ac_func
9044
9045 /* System header to define __stub macros and hopefully few prototypes,
9046 which can conflict with char $ac_func (); below.
9047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9048 <limits.h> exists even on freestanding compilers. */
9049
9050 #ifdef __STDC__
9051 # include <limits.h>
9052 #else
9053 # include <assert.h>
9054 #endif
9055
9056 #undef $ac_func
9057
9058 /* Override any GCC internal prototype to avoid an error.
9059 Use char because int might match the return type of a GCC
9060 builtin and then its argument prototype would still apply. */
9061 #ifdef __cplusplus
9062 extern "C"
9063 #endif
9064 char $ac_func ();
9065 /* The GNU C library defines this for functions which it implements
9066 to always fail with ENOSYS. Some functions are actually named
9067 something starting with __ and the normal name is an alias. */
9068 #if defined __stub_$ac_func || defined __stub___$ac_func
9069 choke me
9070 #endif
9071
9072 int
9073 main ()
9074 {
9075 return $ac_func ();
9076 ;
9077 return 0;
9078 }
9079 _ACEOF
9080 rm -f conftest.$ac_objext conftest$ac_exeext
9081 if { (ac_try="$ac_link"
9082 case "(($ac_try" in
9083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9084 *) ac_try_echo=$ac_try;;
9085 esac
9086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9087 (eval "$ac_link") 2>conftest.er1
9088 ac_status=$?
9089 grep -v '^ *+' conftest.er1 >conftest.err
9090 rm -f conftest.er1
9091 cat conftest.err >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } && {
9094 test -z "$ac_c_werror_flag" ||
9095 test ! -s conftest.err
9096 } && test -s conftest$ac_exeext &&
9097 $as_test_x conftest$ac_exeext; then
9098 eval "$as_ac_var=yes"
9099 else
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9102
9103 eval "$as_ac_var=no"
9104 fi
9105
9106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9107 conftest$ac_exeext conftest.$ac_ext
9108 fi
9109 ac_res=`eval echo '${'$as_ac_var'}'`
9110 { echo "$as_me:$LINENO: result: $ac_res" >&5
9111 echo "${ECHO_T}$ac_res" >&6; }
9112 if test `eval echo '${'$as_ac_var'}'` = yes; then
9113 cat >>confdefs.h <<_ACEOF
9114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9115 _ACEOF
9116
9117 fi
9118 done
9119
9120 if test $ac_cv_func_pfopen = "no" ; then
9121 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9122 echo "${ECHO_T}Using $pfopen" >&6; }
9123 LIBS="$LIBS $pfopen"
9124 fi
9125 fi
9126 { echo "$as_me:$LINENO: checking for local pcap library" >&5
9127 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9128 libpcap=FAIL
9129 lastdir=FAIL
9130 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9131 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
9132 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9133 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
9134 sed -e 's/-PRE-GIT$//' `
9135 if test $lastdir = $basedir ; then
9136 continue;
9137 fi
9138 lastdir=$dir
9139 if test -r $dir/libpcap.a ; then
9140 libpcap=$dir/libpcap.a
9141 d=$dir
9142 fi
9143 done
9144 if test $libpcap = FAIL ; then
9145 { echo "$as_me:$LINENO: result: not found" >&5
9146 echo "${ECHO_T}not found" >&6; }
9147
9148 #
9149 # Look for pcap-config.
9150 #
9151 if test -n "$ac_tool_prefix"; then
9152 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
9153 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
9154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9156 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 else
9159 case $PCAP_CONFIG in
9160 [\\/]* | ?:[\\/]*)
9161 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9162 ;;
9163 *)
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9166 do
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9171 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9174 fi
9175 done
9176 done
9177 IFS=$as_save_IFS
9178
9179 ;;
9180 esac
9181 fi
9182 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9183 if test -n "$PCAP_CONFIG"; then
9184 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9185 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9186 else
9187 { echo "$as_me:$LINENO: result: no" >&5
9188 echo "${ECHO_T}no" >&6; }
9189 fi
9190
9191
9192 fi
9193 if test -z "$ac_cv_path_PCAP_CONFIG"; then
9194 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
9195 # Extract the first word of "pcap-config", so it can be a program name with args.
9196 set dummy pcap-config; ac_word=$2
9197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9199 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 else
9202 case $ac_pt_PCAP_CONFIG in
9203 [\\/]* | ?:[\\/]*)
9204 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
9205 ;;
9206 *)
9207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208 for as_dir in $PATH
9209 do
9210 IFS=$as_save_IFS
9211 test -z "$as_dir" && as_dir=.
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9214 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9216 break 2
9217 fi
9218 done
9219 done
9220 IFS=$as_save_IFS
9221
9222 ;;
9223 esac
9224 fi
9225 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
9226 if test -n "$ac_pt_PCAP_CONFIG"; then
9227 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
9228 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
9229 else
9230 { echo "$as_me:$LINENO: result: no" >&5
9231 echo "${ECHO_T}no" >&6; }
9232 fi
9233
9234 if test "x$ac_pt_PCAP_CONFIG" = x; then
9235 PCAP_CONFIG=""
9236 else
9237 case $cross_compiling:$ac_tool_warned in
9238 yes:)
9239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9240 whose name does not start with the host triplet. If you think this
9241 configuration is useful to you, please write to autoconf@gnu.org." >&5
9242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9243 whose name does not start with the host triplet. If you think this
9244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9245 ac_tool_warned=yes ;;
9246 esac
9247 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
9248 fi
9249 else
9250 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
9251 fi
9252
9253 if test -n "$PCAP_CONFIG" ; then
9254 #
9255 # Found - use it to get the include flags for
9256 # libpcap and the flags to link with libpcap.
9257 #
9258 # Please read section 11.6 "Shell Substitutions"
9259 # in the autoconf manual before doing anything
9260 # to this that involves quoting. Especially note
9261 # the statement "There is just no portable way to use
9262 # double-quoted strings inside double-quoted back-quoted
9263 # expressions (pfew!)."
9264 #
9265 cflags=`"$PCAP_CONFIG" --cflags`
9266 V_INCLS="$cflags $V_INCLS"
9267 libpcap=`"$PCAP_CONFIG" --libs`
9268 else
9269 #
9270 # Not found; look for pcap.
9271 #
9272 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9273 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9274 if test "${ac_cv_lib_pcap_main+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277 ac_check_lib_save_LIBS=$LIBS
9278 LIBS="-lpcap $LIBS"
9279 cat >conftest.$ac_ext <<_ACEOF
9280 /* confdefs.h. */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9285
9286
9287 int
9288 main ()
9289 {
9290 return main ();
9291 ;
9292 return 0;
9293 }
9294 _ACEOF
9295 rm -f conftest.$ac_objext conftest$ac_exeext
9296 if { (ac_try="$ac_link"
9297 case "(($ac_try" in
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9300 esac
9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_link") 2>conftest.er1
9303 ac_status=$?
9304 grep -v '^ *+' conftest.er1 >conftest.err
9305 rm -f conftest.er1
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } && {
9309 test -z "$ac_c_werror_flag" ||
9310 test ! -s conftest.err
9311 } && test -s conftest$ac_exeext &&
9312 $as_test_x conftest$ac_exeext; then
9313 ac_cv_lib_pcap_main=yes
9314 else
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9317
9318 ac_cv_lib_pcap_main=no
9319 fi
9320
9321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9322 conftest$ac_exeext conftest.$ac_ext
9323 LIBS=$ac_check_lib_save_LIBS
9324 fi
9325 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9326 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9327 if test $ac_cv_lib_pcap_main = yes; then
9328 libpcap="-lpcap"
9329 fi
9330
9331 if test $libpcap = FAIL ; then
9332 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9333 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9334 { (exit 1); exit 1; }; }
9335 fi
9336 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9337 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9338 if test \( ! -r /usr/local/include/pcap.h \) -a \
9339 \( ! -r /usr/include/pcap.h \); then
9340 if test -r /usr/local/include/pcap/pcap.h; then
9341 d="/usr/local/include/pcap"
9342 elif test -r /usr/include/pcap/pcap.h; then
9343 d="/usr/include/pcap"
9344 fi
9345 fi
9346 if test -z "$d" ; then
9347 { echo "$as_me:$LINENO: result: not found" >&5
9348 echo "${ECHO_T}not found" >&6; }
9349 else
9350 V_INCLS="-I$d $V_INCLS"
9351 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9352 echo "${ECHO_T}found -- -I$d added" >&6; }
9353 fi
9354 fi
9355 else
9356 V_PCAPDEP=$libpcap
9357 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9358 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9359 if test -r $d/pcap.h; then
9360 V_INCLS="-I$d $V_INCLS"
9361 elif test -r $places/pcap.h; then
9362 V_INCLS="-I$places $V_INCLS"
9363 else
9364 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9365 echo "$as_me: error: cannot find pcap.h" >&2;}
9366 { (exit see INSTALL); exit see INSTALL; }; }
9367 fi
9368 { echo "$as_me:$LINENO: result: $libpcap" >&5
9369 echo "${ECHO_T}$libpcap" >&6; }
9370 # Extract the first word of "pcap-config", so it can be a program name with args.
9371 set dummy pcap-config; ac_word=$2
9372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9374 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9377 case $PCAP_CONFIG in
9378 [\\/]* | ?:[\\/]*)
9379 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9380 ;;
9381 *)
9382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383 for as_dir in $d
9384 do
9385 IFS=$as_save_IFS
9386 test -z "$as_dir" && as_dir=.
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9389 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9391 break 2
9392 fi
9393 done
9394 done
9395 IFS=$as_save_IFS
9396
9397 ;;
9398 esac
9399 fi
9400 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9401 if test -n "$PCAP_CONFIG"; then
9402 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9403 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9404 else
9405 { echo "$as_me:$LINENO: result: no" >&5
9406 echo "${ECHO_T}no" >&6; }
9407 fi
9408
9409
9410 if test -n "$PCAP_CONFIG"; then
9411 #
9412 # The libpcap directory has a pcap-config script.
9413 # Use it to get any additioal libraries needed
9414 # to link with the libpcap archive library in
9415 # that directory.
9416 #
9417 # Please read section 11.6 "Shell Substitutions"
9418 # in the autoconf manual before doing anything
9419 # to this that involves quoting. Especially note
9420 # the statement "There is just no portable way to use
9421 # double-quoted strings inside double-quoted back-quoted
9422 # expressions (pfew!)."
9423 #
9424 additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
9425 libpcap="$libpcap $additional_libs"
9426 fi
9427 fi
9428 LIBS="$libpcap $LIBS"
9429 if ! test -n "$PCAP_CONFIG" ; then
9430 #
9431 # We don't have pcap-config; find out any additional link flags
9432 # we need. (If we have pcap-config, we assume it tells us what
9433 # we need.)
9434 #
9435 case "$host_os" in
9436
9437 aix*)
9438 #
9439 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
9440 # present, as we use the STREAMS routines.
9441 #
9442 # (XXX - true only if we're linking with a static libpcap?)
9443 #
9444 pseexe="/lib/pse.exp"
9445 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9446 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9447 if test -f $pseexe ; then
9448 { echo "$as_me:$LINENO: result: yes" >&5
9449 echo "${ECHO_T}yes" >&6; }
9450 LIBS="$LIBS -I:$pseexe"
9451 fi
9452
9453 #
9454 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
9455 # we use them to load the BPF module.
9456 #
9457 # (XXX - true only if we're linking with a static libpcap?)
9458 #
9459 LIBS="$LIBS -lodm -lcfg"
9460 ;;
9461 esac
9462 fi
9463
9464 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
9465 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
9466 if test "${ac_cv_func_pcap_loop+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469 cat >conftest.$ac_ext <<_ACEOF
9470 /* confdefs.h. */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9475 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
9476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9477 #define pcap_loop innocuous_pcap_loop
9478
9479 /* System header to define __stub macros and hopefully few prototypes,
9480 which can conflict with char pcap_loop (); below.
9481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9482 <limits.h> exists even on freestanding compilers. */
9483
9484 #ifdef __STDC__
9485 # include <limits.h>
9486 #else
9487 # include <assert.h>
9488 #endif
9489
9490 #undef pcap_loop
9491
9492 /* Override any GCC internal prototype to avoid an error.
9493 Use char because int might match the return type of a GCC
9494 builtin and then its argument prototype would still apply. */
9495 #ifdef __cplusplus
9496 extern "C"
9497 #endif
9498 char pcap_loop ();
9499 /* The GNU C library defines this for functions which it implements
9500 to always fail with ENOSYS. Some functions are actually named
9501 something starting with __ and the normal name is an alias. */
9502 #if defined __stub_pcap_loop || defined __stub___pcap_loop
9503 choke me
9504 #endif
9505
9506 int
9507 main ()
9508 {
9509 return pcap_loop ();
9510 ;
9511 return 0;
9512 }
9513 _ACEOF
9514 rm -f conftest.$ac_objext conftest$ac_exeext
9515 if { (ac_try="$ac_link"
9516 case "(($ac_try" in
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9519 esac
9520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521 (eval "$ac_link") 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } && {
9528 test -z "$ac_c_werror_flag" ||
9529 test ! -s conftest.err
9530 } && test -s conftest$ac_exeext &&
9531 $as_test_x conftest$ac_exeext; then
9532 ac_cv_func_pcap_loop=yes
9533 else
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9536
9537 ac_cv_func_pcap_loop=no
9538 fi
9539
9540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9541 conftest$ac_exeext conftest.$ac_ext
9542 fi
9543 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
9544 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
9545 if test $ac_cv_func_pcap_loop = yes; then
9546 :
9547 else
9548
9549 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
9550 config.log file in your report" >&5
9551 echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
9552 config.log file in your report" >&2;}
9553 { (exit 1); exit 1; }; }
9554
9555 fi
9556
9557
9558 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9559 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9560 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563 cat >conftest.$ac_ext <<_ACEOF
9564 /* confdefs.h. */
9565 _ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9569 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9571 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9572
9573 /* System header to define __stub macros and hopefully few prototypes,
9574 which can conflict with char pcap_list_datalinks (); below.
9575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9576 <limits.h> exists even on freestanding compilers. */
9577
9578 #ifdef __STDC__
9579 # include <limits.h>
9580 #else
9581 # include <assert.h>
9582 #endif
9583
9584 #undef pcap_list_datalinks
9585
9586 /* Override any GCC internal prototype to avoid an error.
9587 Use char because int might match the return type of a GCC
9588 builtin and then its argument prototype would still apply. */
9589 #ifdef __cplusplus
9590 extern "C"
9591 #endif
9592 char pcap_list_datalinks ();
9593 /* The GNU C library defines this for functions which it implements
9594 to always fail with ENOSYS. Some functions are actually named
9595 something starting with __ and the normal name is an alias. */
9596 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9597 choke me
9598 #endif
9599
9600 int
9601 main ()
9602 {
9603 return pcap_list_datalinks ();
9604 ;
9605 return 0;
9606 }
9607 _ACEOF
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (ac_try="$ac_link"
9610 case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613 esac
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_link") 2>conftest.er1
9616 ac_status=$?
9617 grep -v '^ *+' conftest.er1 >conftest.err
9618 rm -f conftest.er1
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } && {
9622 test -z "$ac_c_werror_flag" ||
9623 test ! -s conftest.err
9624 } && test -s conftest$ac_exeext &&
9625 $as_test_x conftest$ac_exeext; then
9626 ac_cv_func_pcap_list_datalinks=yes
9627 else
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9630
9631 ac_cv_func_pcap_list_datalinks=no
9632 fi
9633
9634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9635 conftest$ac_exeext conftest.$ac_ext
9636 fi
9637 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9638 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9639 if test $ac_cv_func_pcap_list_datalinks = yes; then
9640 cat >>confdefs.h <<\_ACEOF
9641 #define HAVE_PCAP_LIST_DATALINKS 1
9642 _ACEOF
9643
9644 else
9645
9646 case " $LIBOBJS " in
9647 *" datalinks.$ac_objext "* ) ;;
9648 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9649 ;;
9650 esac
9651
9652
9653 fi
9654
9655 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9656 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9657 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660 cat >conftest.$ac_ext <<_ACEOF
9661 /* confdefs.h. */
9662 _ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9668 #define pcap_set_datalink innocuous_pcap_set_datalink
9669
9670 /* System header to define __stub macros and hopefully few prototypes,
9671 which can conflict with char pcap_set_datalink (); below.
9672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9673 <limits.h> exists even on freestanding compilers. */
9674
9675 #ifdef __STDC__
9676 # include <limits.h>
9677 #else
9678 # include <assert.h>
9679 #endif
9680
9681 #undef pcap_set_datalink
9682
9683 /* Override any GCC internal prototype to avoid an error.
9684 Use char because int might match the return type of a GCC
9685 builtin and then its argument prototype would still apply. */
9686 #ifdef __cplusplus
9687 extern "C"
9688 #endif
9689 char pcap_set_datalink ();
9690 /* The GNU C library defines this for functions which it implements
9691 to always fail with ENOSYS. Some functions are actually named
9692 something starting with __ and the normal name is an alias. */
9693 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9694 choke me
9695 #endif
9696
9697 int
9698 main ()
9699 {
9700 return pcap_set_datalink ();
9701 ;
9702 return 0;
9703 }
9704 _ACEOF
9705 rm -f conftest.$ac_objext conftest$ac_exeext
9706 if { (ac_try="$ac_link"
9707 case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_link") 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest$ac_exeext &&
9722 $as_test_x conftest$ac_exeext; then
9723 ac_cv_func_pcap_set_datalink=yes
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728 ac_cv_func_pcap_set_datalink=no
9729 fi
9730
9731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9732 conftest$ac_exeext conftest.$ac_ext
9733 fi
9734 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9735 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9736 if test $ac_cv_func_pcap_set_datalink = yes; then
9737 cat >>confdefs.h <<\_ACEOF
9738 #define HAVE_PCAP_SET_DATALINK 1
9739 _ACEOF
9740
9741 fi
9742
9743 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9744 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9745 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748 cat >conftest.$ac_ext <<_ACEOF
9749 /* confdefs.h. */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9756 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9757
9758 /* System header to define __stub macros and hopefully few prototypes,
9759 which can conflict with char pcap_datalink_name_to_val (); below.
9760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9761 <limits.h> exists even on freestanding compilers. */
9762
9763 #ifdef __STDC__
9764 # include <limits.h>
9765 #else
9766 # include <assert.h>
9767 #endif
9768
9769 #undef pcap_datalink_name_to_val
9770
9771 /* Override any GCC internal prototype to avoid an error.
9772 Use char because int might match the return type of a GCC
9773 builtin and then its argument prototype would still apply. */
9774 #ifdef __cplusplus
9775 extern "C"
9776 #endif
9777 char pcap_datalink_name_to_val ();
9778 /* The GNU C library defines this for functions which it implements
9779 to always fail with ENOSYS. Some functions are actually named
9780 something starting with __ and the normal name is an alias. */
9781 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9782 choke me
9783 #endif
9784
9785 int
9786 main ()
9787 {
9788 return pcap_datalink_name_to_val ();
9789 ;
9790 return 0;
9791 }
9792 _ACEOF
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (ac_try="$ac_link"
9795 case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_link") 2>conftest.er1
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } && {
9807 test -z "$ac_c_werror_flag" ||
9808 test ! -s conftest.err
9809 } && test -s conftest$ac_exeext &&
9810 $as_test_x conftest$ac_exeext; then
9811 ac_cv_func_pcap_datalink_name_to_val=yes
9812 else
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816 ac_cv_func_pcap_datalink_name_to_val=no
9817 fi
9818
9819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9820 conftest$ac_exeext conftest.$ac_ext
9821 fi
9822 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9823 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9824 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9825
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9828 _ACEOF
9829
9830 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9831 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9832 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835 cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h. */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9843 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9844
9845 /* System header to define __stub macros and hopefully few prototypes,
9846 which can conflict with char pcap_datalink_val_to_description (); below.
9847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9848 <limits.h> exists even on freestanding compilers. */
9849
9850 #ifdef __STDC__
9851 # include <limits.h>
9852 #else
9853 # include <assert.h>
9854 #endif
9855
9856 #undef pcap_datalink_val_to_description
9857
9858 /* Override any GCC internal prototype to avoid an error.
9859 Use char because int might match the return type of a GCC
9860 builtin and then its argument prototype would still apply. */
9861 #ifdef __cplusplus
9862 extern "C"
9863 #endif
9864 char pcap_datalink_val_to_description ();
9865 /* The GNU C library defines this for functions which it implements
9866 to always fail with ENOSYS. Some functions are actually named
9867 something starting with __ and the normal name is an alias. */
9868 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
9869 choke me
9870 #endif
9871
9872 int
9873 main ()
9874 {
9875 return pcap_datalink_val_to_description ();
9876 ;
9877 return 0;
9878 }
9879 _ACEOF
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (ac_try="$ac_link"
9882 case "(($ac_try" in
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9885 esac
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887 (eval "$ac_link") 2>conftest.er1
9888 ac_status=$?
9889 grep -v '^ *+' conftest.er1 >conftest.err
9890 rm -f conftest.er1
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } && {
9894 test -z "$ac_c_werror_flag" ||
9895 test ! -s conftest.err
9896 } && test -s conftest$ac_exeext &&
9897 $as_test_x conftest$ac_exeext; then
9898 ac_cv_func_pcap_datalink_val_to_description=yes
9899 else
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903 ac_cv_func_pcap_datalink_val_to_description=no
9904 fi
9905
9906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9907 conftest$ac_exeext conftest.$ac_ext
9908 fi
9909 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9910 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
9911 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9914 _ACEOF
9915
9916 else
9917
9918 case " $LIBOBJS " in
9919 *" dlnames.$ac_objext "* ) ;;
9920 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
9921 ;;
9922 esac
9923
9924
9925 fi
9926
9927
9928 else
9929
9930 case " $LIBOBJS " in
9931 *" dlnames.$ac_objext "* ) ;;
9932 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
9933 ;;
9934 esac
9935
9936
9937 fi
9938
9939
9940
9941 for ac_func in pcap_breakloop
9942 do
9943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949 cat >conftest.$ac_ext <<_ACEOF
9950 /* confdefs.h. */
9951 _ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h. */
9955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9957 #define $ac_func innocuous_$ac_func
9958
9959 /* System header to define __stub macros and hopefully few prototypes,
9960 which can conflict with char $ac_func (); below.
9961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9962 <limits.h> exists even on freestanding compilers. */
9963
9964 #ifdef __STDC__
9965 # include <limits.h>
9966 #else
9967 # include <assert.h>
9968 #endif
9969
9970 #undef $ac_func
9971
9972 /* Override any GCC internal prototype to avoid an error.
9973 Use char because int might match the return type of a GCC
9974 builtin and then its argument prototype would still apply. */
9975 #ifdef __cplusplus
9976 extern "C"
9977 #endif
9978 char $ac_func ();
9979 /* The GNU C library defines this for functions which it implements
9980 to always fail with ENOSYS. Some functions are actually named
9981 something starting with __ and the normal name is an alias. */
9982 #if defined __stub_$ac_func || defined __stub___$ac_func
9983 choke me
9984 #endif
9985
9986 int
9987 main ()
9988 {
9989 return $ac_func ();
9990 ;
9991 return 0;
9992 }
9993 _ACEOF
9994 rm -f conftest.$ac_objext conftest$ac_exeext
9995 if { (ac_try="$ac_link"
9996 case "(($ac_try" in
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
9999 esac
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_link") 2>conftest.er1
10002 ac_status=$?
10003 grep -v '^ *+' conftest.er1 >conftest.err
10004 rm -f conftest.er1
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } && {
10008 test -z "$ac_c_werror_flag" ||
10009 test ! -s conftest.err
10010 } && test -s conftest$ac_exeext &&
10011 $as_test_x conftest$ac_exeext; then
10012 eval "$as_ac_var=yes"
10013 else
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10016
10017 eval "$as_ac_var=no"
10018 fi
10019
10020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10021 conftest$ac_exeext conftest.$ac_ext
10022 fi
10023 ac_res=`eval echo '${'$as_ac_var'}'`
10024 { echo "$as_me:$LINENO: result: $ac_res" >&5
10025 echo "${ECHO_T}$ac_res" >&6; }
10026 if test `eval echo '${'$as_ac_var'}'` = yes; then
10027 cat >>confdefs.h <<_ACEOF
10028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10029 _ACEOF
10030
10031 fi
10032 done
10033
10034
10035 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
10036 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
10037 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
10047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10048 #define pcap_dump_ftell innocuous_pcap_dump_ftell
10049
10050 /* System header to define __stub macros and hopefully few prototypes,
10051 which can conflict with char pcap_dump_ftell (); below.
10052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053 <limits.h> exists even on freestanding compilers. */
10054
10055 #ifdef __STDC__
10056 # include <limits.h>
10057 #else
10058 # include <assert.h>
10059 #endif
10060
10061 #undef pcap_dump_ftell
10062
10063 /* Override any GCC internal prototype to avoid an error.
10064 Use char because int might match the return type of a GCC
10065 builtin and then its argument prototype would still apply. */
10066 #ifdef __cplusplus
10067 extern "C"
10068 #endif
10069 char pcap_dump_ftell ();
10070 /* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
10074 choke me
10075 #endif
10076
10077 int
10078 main ()
10079 {
10080 return pcap_dump_ftell ();
10081 ;
10082 return 0;
10083 }
10084 _ACEOF
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (ac_try="$ac_link"
10087 case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10090 esac
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_link") 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } && {
10099 test -z "$ac_c_werror_flag" ||
10100 test ! -s conftest.err
10101 } && test -s conftest$ac_exeext &&
10102 $as_test_x conftest$ac_exeext; then
10103 ac_cv_func_pcap_dump_ftell=yes
10104 else
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10107
10108 ac_cv_func_pcap_dump_ftell=no
10109 fi
10110
10111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10112 conftest$ac_exeext conftest.$ac_ext
10113 fi
10114 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
10115 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
10116 if test $ac_cv_func_pcap_dump_ftell = yes; then
10117 cat >>confdefs.h <<\_ACEOF
10118 #define HAVE_PCAP_DUMP_FTELL 1
10119 _ACEOF
10120
10121 else
10122
10123 case " $LIBOBJS " in
10124 *" pcap_dump_ftell.$ac_objext "* ) ;;
10125 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
10126 ;;
10127 esac
10128
10129
10130 fi
10131
10132
10133
10134 #
10135 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
10136 # libraries (e.g., "-lsocket -lnsl" on Solaris).
10137 #
10138 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10139 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
10140 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
10141 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
10142 # it does not ship with a libc symbol "inet_ntop()", it ships with
10143 # "_inet_ntop()", and has a #define macro in one of the system headers
10144 # to rename it.
10145 #
10146 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
10147 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10148 cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h. */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10154 #include <sys/types.h>
10155 #include <sys/socket.h>
10156 #include <netinet/in.h>
10157 #include <arpa/inet.h>
10158 int
10159 main ()
10160 {
10161 char src[4], dst[128];
10162 inet_ntop(AF_INET, src, dst, sizeof(dst));
10163 ;
10164 return 0;
10165 }
10166 _ACEOF
10167 rm -f conftest.$ac_objext conftest$ac_exeext
10168 if { (ac_try="$ac_link"
10169 case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10172 esac
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 (eval "$ac_link") 2>conftest.er1
10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && {
10181 test -z "$ac_c_werror_flag" ||
10182 test ! -s conftest.err
10183 } && test -s conftest$ac_exeext &&
10184 $as_test_x conftest$ac_exeext; then
10185 { echo "$as_me:$LINENO: result: yes" >&5
10186 echo "${ECHO_T}yes" >&6; }
10187 else
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191 { echo "$as_me:$LINENO: result: no" >&5
10192 echo "${ECHO_T}no" >&6; }
10193 case " $LIBOBJS " in
10194 *" inet_ntop.$ac_objext "* ) ;;
10195 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10196 ;;
10197 esac
10198
10199 fi
10200
10201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10202 conftest$ac_exeext conftest.$ac_ext
10203 { echo "$as_me:$LINENO: checking for inet_pton" >&5
10204 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h. */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 #include <sys/types.h>
10212 #include <sys/socket.h>
10213 #include <netinet/in.h>
10214 #include <arpa/inet.h>
10215 int
10216 main ()
10217 {
10218 char src[128], dst[4];
10219 inet_pton(AF_INET, src, dst);
10220 ;
10221 return 0;
10222 }
10223 _ACEOF
10224 rm -f conftest.$ac_objext conftest$ac_exeext
10225 if { (ac_try="$ac_link"
10226 case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10229 esac
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_link") 2>conftest.er1
10232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } && {
10238 test -z "$ac_c_werror_flag" ||
10239 test ! -s conftest.err
10240 } && test -s conftest$ac_exeext &&
10241 $as_test_x conftest$ac_exeext; then
10242 { echo "$as_me:$LINENO: result: yes" >&5
10243 echo "${ECHO_T}yes" >&6; }
10244 else
10245 echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10247
10248 { echo "$as_me:$LINENO: result: no" >&5
10249 echo "${ECHO_T}no" >&6; }
10250 case " $LIBOBJS " in
10251 *" inet_pton.$ac_objext "* ) ;;
10252 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
10253 ;;
10254 esac
10255
10256 fi
10257
10258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10259 conftest$ac_exeext conftest.$ac_ext
10260 { echo "$as_me:$LINENO: checking for inet_aton" >&5
10261 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10262 cat >conftest.$ac_ext <<_ACEOF
10263 /* confdefs.h. */
10264 _ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10268 #include <sys/types.h>
10269 #include <netinet/in.h>
10270 #include <arpa/inet.h>
10271 int
10272 main ()
10273 {
10274 char src[128];
10275 struct in_addr dst;
10276 inet_aton(src, &dst);
10277 ;
10278 return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_link") 2>conftest.er1
10289 ac_status=$?
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } && {
10295 test -z "$ac_c_werror_flag" ||
10296 test ! -s conftest.err
10297 } && test -s conftest$ac_exeext &&
10298 $as_test_x conftest$ac_exeext; then
10299 { echo "$as_me:$LINENO: result: yes" >&5
10300 echo "${ECHO_T}yes" >&6; }
10301 else
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305 { echo "$as_me:$LINENO: result: no" >&5
10306 echo "${ECHO_T}no" >&6; }
10307 case " $LIBOBJS " in
10308 *" inet_aton.$ac_objext "* ) ;;
10309 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10310 ;;
10311 esac
10312
10313 fi
10314
10315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10316 conftest$ac_exeext conftest.$ac_ext
10317
10318 #
10319 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10320 #
10321 # You are in a twisty little maze of UN*Xes, all different.
10322 # Some might not have ether_ntohost().
10323 # Some might have it, but not declare it in any header file.
10324 # Some might have it, but declare it in <netinet/if_ether.h>.
10325 # Some might have it, but declare it in <netinet/ether.h>
10326 # (And some might have it but document it as something declared in
10327 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10328 #
10329 # Before you is a C compiler.
10330 #
10331
10332 for ac_func in ether_ntohost
10333 do
10334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340 cat >conftest.$ac_ext <<_ACEOF
10341 /* confdefs.h. */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10348 #define $ac_func innocuous_$ac_func
10349
10350 /* System header to define __stub macros and hopefully few prototypes,
10351 which can conflict with char $ac_func (); below.
10352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10353 <limits.h> exists even on freestanding compilers. */
10354
10355 #ifdef __STDC__
10356 # include <limits.h>
10357 #else
10358 # include <assert.h>
10359 #endif
10360
10361 #undef $ac_func
10362
10363 /* Override any GCC internal prototype to avoid an error.
10364 Use char because int might match the return type of a GCC
10365 builtin and then its argument prototype would still apply. */
10366 #ifdef __cplusplus
10367 extern "C"
10368 #endif
10369 char $ac_func ();
10370 /* The GNU C library defines this for functions which it implements
10371 to always fail with ENOSYS. Some functions are actually named
10372 something starting with __ and the normal name is an alias. */
10373 #if defined __stub_$ac_func || defined __stub___$ac_func
10374 choke me
10375 #endif
10376
10377 int
10378 main ()
10379 {
10380 return $ac_func ();
10381 ;
10382 return 0;
10383 }
10384 _ACEOF
10385 rm -f conftest.$ac_objext conftest$ac_exeext
10386 if { (ac_try="$ac_link"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390 esac
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_link") 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest$ac_exeext &&
10402 $as_test_x conftest$ac_exeext; then
10403 eval "$as_ac_var=yes"
10404 else
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10407
10408 eval "$as_ac_var=no"
10409 fi
10410
10411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10412 conftest$ac_exeext conftest.$ac_ext
10413 fi
10414 ac_res=`eval echo '${'$as_ac_var'}'`
10415 { echo "$as_me:$LINENO: result: $ac_res" >&5
10416 echo "${ECHO_T}$ac_res" >&6; }
10417 if test `eval echo '${'$as_ac_var'}'` = yes; then
10418 cat >>confdefs.h <<_ACEOF
10419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10420 _ACEOF
10421
10422 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10423 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10424 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427
10428 if test "$cross_compiling" = yes; then
10429 ac_cv_buggy_ether_ntohost="not while cross-compiling"
10430 else
10431 cat >conftest.$ac_ext <<_ACEOF
10432 /* confdefs.h. */
10433 _ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437
10438 #include <netdb.h>
10439 #include <sys/types.h>
10440 #include <sys/param.h>
10441 #include <sys/socket.h>
10442
10443 int
10444 main(int argc, char **argv)
10445 {
10446 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10447 char name[MAXHOSTNAMELEN];
10448
10449 ether_ntohost(name, (struct ether_addr *)ea);
10450 exit(0);
10451 }
10452
10453 _ACEOF
10454 rm -f conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10459 esac
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_link") 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10465 { (case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10468 esac
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_try") 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 ac_cv_buggy_ether_ntohost=no
10475 else
10476 echo "$as_me: program exited with status $ac_status" >&5
10477 echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10479
10480 ( exit $ac_status )
10481 ac_cv_buggy_ether_ntohost=yes
10482 fi
10483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10484 fi
10485
10486
10487 fi
10488 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10489 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10490 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10491 cat >>confdefs.h <<\_ACEOF
10492 #define USE_ETHER_NTOHOST 1
10493 _ACEOF
10494
10495 fi
10496
10497 fi
10498 done
10499
10500 if test "$ac_cv_func_ether_ntohost" = yes -a \
10501 "$ac_cv_buggy_ether_ntohost" = "no"; then
10502 #
10503 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10504 #
10505 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10506 #
10507 # Yes. Does it declare ether_ntohost()?
10508 #
10509 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10510 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10511 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514 cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h. */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520
10521 #include <sys/types.h>
10522 #include <sys/socket.h>
10523 #include <netinet/in.h>
10524 #include <arpa/inet.h>
10525 struct mbuf;
10526 struct rtentry;
10527 #include <net/if.h>
10528 #include <netinet/if_ether.h>
10529
10530
10531 int
10532 main ()
10533 {
10534 #ifndef ether_ntohost
10535 (void) ether_ntohost;
10536 #endif
10537
10538 ;
10539 return 0;
10540 }
10541 _ACEOF
10542 rm -f conftest.$ac_objext
10543 if { (ac_try="$ac_compile"
10544 case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10547 esac
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_compile") 2>conftest.er1
10550 ac_status=$?
10551 grep -v '^ *+' conftest.er1 >conftest.err
10552 rm -f conftest.er1
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && {
10556 test -z "$ac_c_werror_flag" ||
10557 test ! -s conftest.err
10558 } && test -s conftest.$ac_objext; then
10559 ac_cv_have_decl_ether_ntohost=yes
10560 else
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10563
10564 ac_cv_have_decl_ether_ntohost=no
10565 fi
10566
10567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10568 fi
10569 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10570 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10571 if test $ac_cv_have_decl_ether_ntohost = yes; then
10572
10573
10574 cat >>confdefs.h <<\_ACEOF
10575 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10576 _ACEOF
10577
10578
10579 fi
10580
10581 fi
10582 #
10583 # Did that succeed?
10584 #
10585 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10586 #
10587 # No, how about <netinet/ether.h>, as on Linux?
10588 #
10589
10590 for ac_header in netinet/ether.h
10591 do
10592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 fi
10599 ac_res=`eval echo '${'$as_ac_Header'}'`
10600 { echo "$as_me:$LINENO: result: $ac_res" >&5
10601 echo "${ECHO_T}$ac_res" >&6; }
10602 else
10603 # Is the header compilable?
10604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10606 cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h. */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10612 $ac_includes_default
10613 #include <$ac_header>
10614 _ACEOF
10615 rm -f conftest.$ac_objext
10616 if { (ac_try="$ac_compile"
10617 case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620 esac
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_compile") 2>conftest.er1
10623 ac_status=$?
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } && {
10629 test -z "$ac_c_werror_flag" ||
10630 test ! -s conftest.err
10631 } && test -s conftest.$ac_objext; then
10632 ac_header_compiler=yes
10633 else
10634 echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10636
10637 ac_header_compiler=no
10638 fi
10639
10640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10642 echo "${ECHO_T}$ac_header_compiler" >&6; }
10643
10644 # Is the header present?
10645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h. */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 #include <$ac_header>
10654 _ACEOF
10655 if { (ac_try="$ac_cpp conftest.$ac_ext"
10656 case "(($ac_try" in
10657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10658 *) ac_try_echo=$ac_try;;
10659 esac
10660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10662 ac_status=$?
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } >/dev/null && {
10668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10669 test ! -s conftest.err
10670 }; then
10671 ac_header_preproc=yes
10672 else
10673 echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10675
10676 ac_header_preproc=no
10677 fi
10678
10679 rm -f conftest.err conftest.$ac_ext
10680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10681 echo "${ECHO_T}$ac_header_preproc" >&6; }
10682
10683 # So? What about this header?
10684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10685 yes:no: )
10686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10690 ac_header_preproc=yes
10691 ;;
10692 no:yes:* )
10693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10705
10706 ;;
10707 esac
10708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713 eval "$as_ac_Header=\$ac_header_preproc"
10714 fi
10715 ac_res=`eval echo '${'$as_ac_Header'}'`
10716 { echo "$as_me:$LINENO: result: $ac_res" >&5
10717 echo "${ECHO_T}$ac_res" >&6; }
10718
10719 fi
10720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10721 cat >>confdefs.h <<_ACEOF
10722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10723 _ACEOF
10724
10725 fi
10726
10727 done
10728
10729 if test "$ac_cv_header_netinet_ether_h" = yes; then
10730 #
10731 # We have it - does it declare ether_ntohost()?
10732 # Unset ac_cv_have_decl_ether_ntohost so we don't
10733 # treat the previous failure as a cached value and
10734 # suppress the next test.
10735 #
10736 unset ac_cv_have_decl_ether_ntohost
10737 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10738 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10739 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748
10749 #include <netinet/ether.h>
10750
10751
10752 int
10753 main ()
10754 {
10755 #ifndef ether_ntohost
10756 (void) ether_ntohost;
10757 #endif
10758
10759 ;
10760 return 0;
10761 }
10762 _ACEOF
10763 rm -f conftest.$ac_objext
10764 if { (ac_try="$ac_compile"
10765 case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768 esac
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_compile") 2>conftest.er1
10771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && {
10777 test -z "$ac_c_werror_flag" ||
10778 test ! -s conftest.err
10779 } && test -s conftest.$ac_objext; then
10780 ac_cv_have_decl_ether_ntohost=yes
10781 else
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10784
10785 ac_cv_have_decl_ether_ntohost=no
10786 fi
10787
10788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10789 fi
10790 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10791 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10792 if test $ac_cv_have_decl_ether_ntohost = yes; then
10793
10794
10795 cat >>confdefs.h <<\_ACEOF
10796 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10797 _ACEOF
10798
10799
10800 fi
10801
10802 fi
10803 fi
10804 #
10805 # Is ether_ntohost() declared?
10806 #
10807 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10808 #
10809 # No, we'll have to declare it ourselves.
10810 # Do we have "struct ether_addr"?
10811 #
10812 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10813 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10814 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817 cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h. */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823
10824 #include <sys/types.h>
10825 #include <sys/socket.h>
10826 #include <netinet/in.h>
10827 #include <arpa/inet.h>
10828 struct mbuf;
10829 struct rtentry;
10830 #include <net/if.h>
10831 #include <netinet/if_ether.h>
10832
10833
10834 typedef struct ether_addr ac__type_new_;
10835 int
10836 main ()
10837 {
10838 if ((ac__type_new_ *) 0)
10839 return 0;
10840 if (sizeof (ac__type_new_))
10841 return 0;
10842 ;
10843 return 0;
10844 }
10845 _ACEOF
10846 rm -f conftest.$ac_objext
10847 if { (ac_try="$ac_compile"
10848 case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_compile") 2>conftest.er1
10854 ac_status=$?
10855 grep -v '^ *+' conftest.er1 >conftest.err
10856 rm -f conftest.er1
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } && {
10860 test -z "$ac_c_werror_flag" ||
10861 test ! -s conftest.err
10862 } && test -s conftest.$ac_objext; then
10863 ac_cv_type_struct_ether_addr=yes
10864 else
10865 echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10867
10868 ac_cv_type_struct_ether_addr=no
10869 fi
10870
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872 fi
10873 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10874 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
10875 if test $ac_cv_type_struct_ether_addr = yes; then
10876
10877 cat >>confdefs.h <<_ACEOF
10878 #define HAVE_STRUCT_ETHER_ADDR 1
10879 _ACEOF
10880
10881
10882 fi
10883
10884
10885 cat >>confdefs.h <<\_ACEOF
10886 #define HAVE_DECL_ETHER_NTOHOST 0
10887 _ACEOF
10888
10889 else
10890
10891 cat >>confdefs.h <<\_ACEOF
10892 #define HAVE_DECL_ETHER_NTOHOST 1
10893 _ACEOF
10894
10895 fi
10896 fi
10897
10898 # libdlpi is needed for Solaris 11 and later.
10899 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
10900 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
10901 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904 ac_check_lib_save_LIBS=$LIBS
10905 LIBS="-ldlpi -L/lib $LIBS"
10906 cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h. */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912
10913 /* Override any GCC internal prototype to avoid an error.
10914 Use char because int might match the return type of a GCC
10915 builtin and then its argument prototype would still apply. */
10916 #ifdef __cplusplus
10917 extern "C"
10918 #endif
10919 char dlpi_walk ();
10920 int
10921 main ()
10922 {
10923 return dlpi_walk ();
10924 ;
10925 return 0;
10926 }
10927 _ACEOF
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (ac_try="$ac_link"
10930 case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10933 esac
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_link") 2>conftest.er1
10936 ac_status=$?
10937 grep -v '^ *+' conftest.er1 >conftest.err
10938 rm -f conftest.er1
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } && {
10942 test -z "$ac_c_werror_flag" ||
10943 test ! -s conftest.err
10944 } && test -s conftest$ac_exeext &&
10945 $as_test_x conftest$ac_exeext; then
10946 ac_cv_lib_dlpi_dlpi_walk=yes
10947 else
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951 ac_cv_lib_dlpi_dlpi_walk=no
10952 fi
10953
10954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10955 conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_lib_save_LIBS
10957 fi
10958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
10959 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
10960 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
10961 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
10962 fi
10963
10964
10965
10966 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10967 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
10968 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 else
10971 cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h. */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977
10978 # include <sys/types.h>
10979 # include <sys/socket.h>
10980 int
10981 main ()
10982 {
10983 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10984 ;
10985 return 0;
10986 }
10987 _ACEOF
10988 rm -f conftest.$ac_objext
10989 if { (ac_try="$ac_compile"
10990 case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993 esac
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_compile") 2>conftest.er1
10996 ac_status=$?
10997 grep -v '^ *+' conftest.er1 >conftest.err
10998 rm -f conftest.er1
10999 cat conftest.err >&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } && {
11002 test -z "$ac_c_werror_flag" ||
11003 test ! -s conftest.err
11004 } && test -s conftest.$ac_objext; then
11005 ac_cv_sockaddr_has_sa_len=yes
11006 else
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11009
11010 ac_cv_sockaddr_has_sa_len=no
11011 fi
11012
11013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11014 fi
11015
11016 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
11017 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
11018 if test $ac_cv_sockaddr_has_sa_len = yes ; then
11019 cat >>confdefs.h <<\_ACEOF
11020 #define HAVE_SOCKADDR_SA_LEN 1
11021 _ACEOF
11022
11023 fi
11024
11025 if test "$ac_cv_sockaddr_has_sa_len" = no; then
11026 missing_includes=yes
11027 fi
11028
11029 #
11030 # Do we have the new open API? Check for pcap_create, and assume that,
11031 # if we do, we also have pcap_activate() and the other new routines
11032 # introduced in libpcap 1.0.0.
11033 #
11034
11035 for ac_func in pcap_create
11036 do
11037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 else
11043 cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h. */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11051 #define $ac_func innocuous_$ac_func
11052
11053 /* System header to define __stub macros and hopefully few prototypes,
11054 which can conflict with char $ac_func (); below.
11055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11056 <limits.h> exists even on freestanding compilers. */
11057
11058 #ifdef __STDC__
11059 # include <limits.h>
11060 #else
11061 # include <assert.h>
11062 #endif
11063
11064 #undef $ac_func
11065
11066 /* Override any GCC internal prototype to avoid an error.
11067 Use char because int might match the return type of a GCC
11068 builtin and then its argument prototype would still apply. */
11069 #ifdef __cplusplus
11070 extern "C"
11071 #endif
11072 char $ac_func ();
11073 /* The GNU C library defines this for functions which it implements
11074 to always fail with ENOSYS. Some functions are actually named
11075 something starting with __ and the normal name is an alias. */
11076 #if defined __stub_$ac_func || defined __stub___$ac_func
11077 choke me
11078 #endif
11079
11080 int
11081 main ()
11082 {
11083 return $ac_func ();
11084 ;
11085 return 0;
11086 }
11087 _ACEOF
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (ac_try="$ac_link"
11090 case "(($ac_try" in
11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11093 esac
11094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095 (eval "$ac_link") 2>conftest.er1
11096 ac_status=$?
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } && {
11102 test -z "$ac_c_werror_flag" ||
11103 test ! -s conftest.err
11104 } && test -s conftest$ac_exeext &&
11105 $as_test_x conftest$ac_exeext; then
11106 eval "$as_ac_var=yes"
11107 else
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11110
11111 eval "$as_ac_var=no"
11112 fi
11113
11114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11115 conftest$ac_exeext conftest.$ac_ext
11116 fi
11117 ac_res=`eval echo '${'$as_ac_var'}'`
11118 { echo "$as_me:$LINENO: result: $ac_res" >&5
11119 echo "${ECHO_T}$ac_res" >&6; }
11120 if test `eval echo '${'$as_ac_var'}'` = yes; then
11121 cat >>confdefs.h <<_ACEOF
11122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11123 _ACEOF
11124
11125 fi
11126 done
11127
11128 if test $ac_cv_func_pcap_create = "yes" ; then
11129 #
11130 # OK, do we have pcap_set_tstamp_type? If so, assume we have
11131 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
11132 #
11133
11134 for ac_func in pcap_set_tstamp_type
11135 do
11136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 else
11142 cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h. */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11150 #define $ac_func innocuous_$ac_func
11151
11152 /* System header to define __stub macros and hopefully few prototypes,
11153 which can conflict with char $ac_func (); below.
11154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11155 <limits.h> exists even on freestanding compilers. */
11156
11157 #ifdef __STDC__
11158 # include <limits.h>
11159 #else
11160 # include <assert.h>
11161 #endif
11162
11163 #undef $ac_func
11164
11165 /* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11168 #ifdef __cplusplus
11169 extern "C"
11170 #endif
11171 char $ac_func ();
11172 /* The GNU C library defines this for functions which it implements
11173 to always fail with ENOSYS. Some functions are actually named
11174 something starting with __ and the normal name is an alias. */
11175 #if defined __stub_$ac_func || defined __stub___$ac_func
11176 choke me
11177 #endif
11178
11179 int
11180 main ()
11181 {
11182 return $ac_func ();
11183 ;
11184 return 0;
11185 }
11186 _ACEOF
11187 rm -f conftest.$ac_objext conftest$ac_exeext
11188 if { (ac_try="$ac_link"
11189 case "(($ac_try" in
11190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11192 esac
11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 (eval "$ac_link") 2>conftest.er1
11195 ac_status=$?
11196 grep -v '^ *+' conftest.er1 >conftest.err
11197 rm -f conftest.er1
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } && {
11201 test -z "$ac_c_werror_flag" ||
11202 test ! -s conftest.err
11203 } && test -s conftest$ac_exeext &&
11204 $as_test_x conftest$ac_exeext; then
11205 eval "$as_ac_var=yes"
11206 else
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11209
11210 eval "$as_ac_var=no"
11211 fi
11212
11213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11214 conftest$ac_exeext conftest.$ac_ext
11215 fi
11216 ac_res=`eval echo '${'$as_ac_var'}'`
11217 { echo "$as_me:$LINENO: result: $ac_res" >&5
11218 echo "${ECHO_T}$ac_res" >&6; }
11219 if test `eval echo '${'$as_ac_var'}'` = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11222 _ACEOF
11223
11224 fi
11225 done
11226
11227 fi
11228
11229
11230
11231
11232 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
11233 do
11234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 else
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h. */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11248 #define $ac_func innocuous_$ac_func
11249
11250 /* System header to define __stub macros and hopefully few prototypes,
11251 which can conflict with char $ac_func (); below.
11252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11253 <limits.h> exists even on freestanding compilers. */
11254
11255 #ifdef __STDC__
11256 # include <limits.h>
11257 #else
11258 # include <assert.h>
11259 #endif
11260
11261 #undef $ac_func
11262
11263 /* Override any GCC internal prototype to avoid an error.
11264 Use char because int might match the return type of a GCC
11265 builtin and then its argument prototype would still apply. */
11266 #ifdef __cplusplus
11267 extern "C"
11268 #endif
11269 char $ac_func ();
11270 /* The GNU C library defines this for functions which it implements
11271 to always fail with ENOSYS. Some functions are actually named
11272 something starting with __ and the normal name is an alias. */
11273 #if defined __stub_$ac_func || defined __stub___$ac_func
11274 choke me
11275 #endif
11276
11277 int
11278 main ()
11279 {
11280 return $ac_func ();
11281 ;
11282 return 0;
11283 }
11284 _ACEOF
11285 rm -f conftest.$ac_objext conftest$ac_exeext
11286 if { (ac_try="$ac_link"
11287 case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290 esac
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_link") 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } && {
11299 test -z "$ac_c_werror_flag" ||
11300 test ! -s conftest.err
11301 } && test -s conftest$ac_exeext &&
11302 $as_test_x conftest$ac_exeext; then
11303 eval "$as_ac_var=yes"
11304 else
11305 echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.$ac_ext >&5
11307
11308 eval "$as_ac_var=no"
11309 fi
11310
11311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11312 conftest$ac_exeext conftest.$ac_ext
11313 fi
11314 ac_res=`eval echo '${'$as_ac_var'}'`
11315 { echo "$as_me:$LINENO: result: $ac_res" >&5
11316 echo "${ECHO_T}$ac_res" >&6; }
11317 if test `eval echo '${'$as_ac_var'}'` = yes; then
11318 cat >>confdefs.h <<_ACEOF
11319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11320 _ACEOF
11321
11322 fi
11323 done
11324
11325 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11326 savedppflags="$CPPLAGS"
11327 CPPFLAGS="$CPPFLAGS $V_INCLS"
11328 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11329 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
11330 if test "${ac_cv_type_pcap_if_t+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333 cat >conftest.$ac_ext <<_ACEOF
11334 /* confdefs.h. */
11335 _ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h. */
11339 #include <pcap.h>
11340
11341 typedef pcap_if_t ac__type_new_;
11342 int
11343 main ()
11344 {
11345 if ((ac__type_new_ *) 0)
11346 return 0;
11347 if (sizeof (ac__type_new_))
11348 return 0;
11349 ;
11350 return 0;
11351 }
11352 _ACEOF
11353 rm -f conftest.$ac_objext
11354 if { (ac_try="$ac_compile"
11355 case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358 esac
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_compile") 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } && {
11367 test -z "$ac_c_werror_flag" ||
11368 test ! -s conftest.err
11369 } && test -s conftest.$ac_objext; then
11370 ac_cv_type_pcap_if_t=yes
11371 else
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 ac_cv_type_pcap_if_t=no
11376 fi
11377
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 fi
11380 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11381 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
11382 if test $ac_cv_type_pcap_if_t = yes; then
11383
11384 cat >>confdefs.h <<_ACEOF
11385 #define HAVE_PCAP_IF_T 1
11386 _ACEOF
11387
11388
11389 fi
11390
11391 CPPFLAGS="$savedcppflags"
11392 fi
11393
11394 if test $ac_cv_func_pcap_lib_version = "no" ; then
11395 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11396 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
11397 cat >conftest.$ac_ext <<_ACEOF
11398 /* confdefs.h. */
11399 _ACEOF
11400 cat confdefs.h >>conftest.$ac_ext
11401 cat >>conftest.$ac_ext <<_ACEOF
11402 /* end confdefs.h. */
11403
11404 int
11405 main ()
11406 {
11407
11408 extern char pcap_version[];
11409
11410 return (int)pcap_version;
11411
11412 ;
11413 return 0;
11414 }
11415 _ACEOF
11416 rm -f conftest.$ac_objext conftest$ac_exeext
11417 if { (ac_try="$ac_link"
11418 case "(($ac_try" in
11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11421 esac
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423 (eval "$ac_link") 2>conftest.er1
11424 ac_status=$?
11425 grep -v '^ *+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } && {
11430 test -z "$ac_c_werror_flag" ||
11431 test ! -s conftest.err
11432 } && test -s conftest$ac_exeext &&
11433 $as_test_x conftest$ac_exeext; then
11434 ac_lbl_cv_pcap_version_defined=yes
11435 else
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439 ac_lbl_cv_pcap_version_defined=no
11440 fi
11441
11442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11443 conftest$ac_exeext conftest.$ac_ext
11444 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11445 { echo "$as_me:$LINENO: result: yes" >&5
11446 echo "${ECHO_T}yes" >&6; }
11447 cat >>confdefs.h <<\_ACEOF
11448 #define HAVE_PCAP_VERSION 1
11449 _ACEOF
11450
11451 else
11452 { echo "$as_me:$LINENO: result: no" >&5
11453 echo "${ECHO_T}no" >&6; }
11454 fi
11455 fi
11456 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11457 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11458 cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h. */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464
11465 int
11466 main ()
11467 {
11468
11469 extern int pcap_debug;
11470
11471 return pcap_debug;
11472
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (ac_try="$ac_link"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482 esac
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_link") 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } && {
11491 test -z "$ac_c_werror_flag" ||
11492 test ! -s conftest.err
11493 } && test -s conftest$ac_exeext &&
11494 $as_test_x conftest$ac_exeext; then
11495 ac_lbl_cv_pcap_debug_defined=yes
11496 else
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500 ac_lbl_cv_pcap_debug_defined=no
11501 fi
11502
11503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11504 conftest$ac_exeext conftest.$ac_ext
11505 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11506 { echo "$as_me:$LINENO: result: yes" >&5
11507 echo "${ECHO_T}yes" >&6; }
11508 cat >>confdefs.h <<\_ACEOF
11509 #define HAVE_PCAP_DEBUG 1
11510 _ACEOF
11511
11512 else
11513 { echo "$as_me:$LINENO: result: no" >&5
11514 echo "${ECHO_T}no" >&6; }
11515 #
11516 # OK, what about "yydebug"?
11517 #
11518 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11519 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11520 cat >conftest.$ac_ext <<_ACEOF
11521 /* confdefs.h. */
11522 _ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h. */
11526
11527 int
11528 main ()
11529 {
11530
11531 extern int yydebug;
11532
11533 return yydebug;
11534
11535 ;
11536 return 0;
11537 }
11538 _ACEOF
11539 rm -f conftest.$ac_objext conftest$ac_exeext
11540 if { (ac_try="$ac_link"
11541 case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11544 esac
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_link") 2>conftest.er1
11547 ac_status=$?
11548 grep -v '^ *+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } && {
11553 test -z "$ac_c_werror_flag" ||
11554 test ! -s conftest.err
11555 } && test -s conftest$ac_exeext &&
11556 $as_test_x conftest$ac_exeext; then
11557 ac_lbl_cv_yydebug_defined=yes
11558 else
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11561
11562 ac_lbl_cv_yydebug_defined=no
11563 fi
11564
11565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11566 conftest$ac_exeext conftest.$ac_ext
11567 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11568 { echo "$as_me:$LINENO: result: yes" >&5
11569 echo "${ECHO_T}yes" >&6; }
11570 cat >>confdefs.h <<\_ACEOF
11571 #define HAVE_YYDEBUG 1
11572 _ACEOF
11573
11574 else
11575 { echo "$as_me:$LINENO: result: no" >&5
11576 echo "${ECHO_T}no" >&6; }
11577 fi
11578 fi
11579
11580 for ac_func in bpf_dump
11581 do
11582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588 cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h. */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11596 #define $ac_func innocuous_$ac_func
11597
11598 /* System header to define __stub macros and hopefully few prototypes,
11599 which can conflict with char $ac_func (); below.
11600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11601 <limits.h> exists even on freestanding compilers. */
11602
11603 #ifdef __STDC__
11604 # include <limits.h>
11605 #else
11606 # include <assert.h>
11607 #endif
11608
11609 #undef $ac_func
11610
11611 /* Override any GCC internal prototype to avoid an error.
11612 Use char because int might match the return type of a GCC
11613 builtin and then its argument prototype would still apply. */
11614 #ifdef __cplusplus
11615 extern "C"
11616 #endif
11617 char $ac_func ();
11618 /* The GNU C library defines this for functions which it implements
11619 to always fail with ENOSYS. Some functions are actually named
11620 something starting with __ and the normal name is an alias. */
11621 #if defined __stub_$ac_func || defined __stub___$ac_func
11622 choke me
11623 #endif
11624
11625 int
11626 main ()
11627 {
11628 return $ac_func ();
11629 ;
11630 return 0;
11631 }
11632 _ACEOF
11633 rm -f conftest.$ac_objext conftest$ac_exeext
11634 if { (ac_try="$ac_link"
11635 case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_link") 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && {
11647 test -z "$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11649 } && test -s conftest$ac_exeext &&
11650 $as_test_x conftest$ac_exeext; then
11651 eval "$as_ac_var=yes"
11652 else
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11655
11656 eval "$as_ac_var=no"
11657 fi
11658
11659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11660 conftest$ac_exeext conftest.$ac_ext
11661 fi
11662 ac_res=`eval echo '${'$as_ac_var'}'`
11663 { echo "$as_me:$LINENO: result: $ac_res" >&5
11664 echo "${ECHO_T}$ac_res" >&6; }
11665 if test `eval echo '${'$as_ac_var'}'` = yes; then
11666 cat >>confdefs.h <<_ACEOF
11667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11668 _ACEOF
11669
11670 else
11671 case " $LIBOBJS " in
11672 *" $ac_func.$ac_objext "* ) ;;
11673 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11674 ;;
11675 esac
11676
11677 fi
11678 done
11679
11680
11681 V_GROUP=0
11682 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11683 V_GROUP=wheel
11684 fi
11685 #
11686 # Assume V7/BSD convention for man pages (file formats in section 5,
11687 # miscellaneous info in section 7).
11688 #
11689 MAN_FILE_FORMATS=5
11690 MAN_MISC_INFO=7
11691 case "$host_os" in
11692
11693 aix*)
11694
11695 cat >>confdefs.h <<\_ACEOF
11696 #define _SUN 1
11697 _ACEOF
11698
11699 ;;
11700
11701 hpux*)
11702 #
11703 # Use System V conventions for man pages.
11704 #
11705 MAN_FILE_FORMATS=4
11706 MAN_MISC_INFO=5
11707 ;;
11708
11709 irix*)
11710 V_GROUP=sys
11711
11712 #
11713 # Use System V conventions for man pages.
11714 #
11715 MAN_FILE_FORMATS=4
11716 MAN_MISC_INFO=5
11717 ;;
11718
11719 osf*)
11720 V_GROUP=system
11721
11722 #
11723 # Use System V conventions for man pages.
11724 #
11725 MAN_FILE_FORMATS=4
11726 MAN_MISC_INFO=5
11727 ;;
11728
11729 solaris*)
11730 V_GROUP=sys
11731
11732 #
11733 # Use System V conventions for man pages.
11734 #
11735 MAN_FILE_FORMATS=4
11736 MAN_MISC_INFO=5
11737 ;;
11738 esac
11739
11740 if test -f /dev/bpf0 ; then
11741 V_GROUP=bpf
11742 fi
11743
11744 #
11745 # Check for some headers introduced in later versions of libpcap
11746 # and used by some printers.
11747 #
11748 savedcppflags="$CPPFLAGS"
11749 CPPFLAGS="$CPPFLAGS $V_INCLS"
11750
11751 for ac_header in pcap/bluetooth.h
11752 do
11753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 fi
11760 ac_res=`eval echo '${'$as_ac_Header'}'`
11761 { echo "$as_me:$LINENO: result: $ac_res" >&5
11762 echo "${ECHO_T}$ac_res" >&6; }
11763 else
11764 # Is the header compilable?
11765 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11767 cat >conftest.$ac_ext <<_ACEOF
11768 /* confdefs.h. */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 $ac_includes_default
11774 #include <$ac_header>
11775 _ACEOF
11776 rm -f conftest.$ac_objext
11777 if { (ac_try="$ac_compile"
11778 case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11781 esac
11782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783 (eval "$ac_compile") 2>conftest.er1
11784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } && {
11790 test -z "$ac_c_werror_flag" ||
11791 test ! -s conftest.err
11792 } && test -s conftest.$ac_objext; then
11793 ac_header_compiler=yes
11794 else
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798 ac_header_compiler=no
11799 fi
11800
11801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11803 echo "${ECHO_T}$ac_header_compiler" >&6; }
11804
11805 # Is the header present?
11806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h. */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 #include <$ac_header>
11815 _ACEOF
11816 if { (ac_try="$ac_cpp conftest.$ac_ext"
11817 case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820 esac
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11823 ac_status=$?
11824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } >/dev/null && {
11829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11830 test ! -s conftest.err
11831 }; then
11832 ac_header_preproc=yes
11833 else
11834 echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11836
11837 ac_header_preproc=no
11838 fi
11839
11840 rm -f conftest.err conftest.$ac_ext
11841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11842 echo "${ECHO_T}$ac_header_preproc" >&6; }
11843
11844 # So? What about this header?
11845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11846 yes:no: )
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11851 ac_header_preproc=yes
11852 ;;
11853 no:yes:* )
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11861 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11866
11867 ;;
11868 esac
11869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874 eval "$as_ac_Header=\$ac_header_preproc"
11875 fi
11876 ac_res=`eval echo '${'$as_ac_Header'}'`
11877 { echo "$as_me:$LINENO: result: $ac_res" >&5
11878 echo "${ECHO_T}$ac_res" >&6; }
11879
11880 fi
11881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11882 cat >>confdefs.h <<_ACEOF
11883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11884 _ACEOF
11885
11886 fi
11887
11888 done
11889
11890
11891 for ac_header in pcap/usb.h
11892 do
11893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 fi
11900 ac_res=`eval echo '${'$as_ac_Header'}'`
11901 { echo "$as_me:$LINENO: result: $ac_res" >&5
11902 echo "${ECHO_T}$ac_res" >&6; }
11903 else
11904 # Is the header compilable?
11905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h. */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 $ac_includes_default
11914 #include <$ac_header>
11915 _ACEOF
11916 rm -f conftest.$ac_objext
11917 if { (ac_try="$ac_compile"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921 esac
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_compile") 2>conftest.er1
11924 ac_status=$?
11925 grep -v '^ *+' conftest.er1 >conftest.err
11926 rm -f conftest.er1
11927 cat conftest.err >&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } && {
11930 test -z "$ac_c_werror_flag" ||
11931 test ! -s conftest.err
11932 } && test -s conftest.$ac_objext; then
11933 ac_header_compiler=yes
11934 else
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11937
11938 ac_header_compiler=no
11939 fi
11940
11941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11943 echo "${ECHO_T}$ac_header_compiler" >&6; }
11944
11945 # Is the header present?
11946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11948 cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h. */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 #include <$ac_header>
11955 _ACEOF
11956 if { (ac_try="$ac_cpp conftest.$ac_ext"
11957 case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } >/dev/null && {
11969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11970 test ! -s conftest.err
11971 }; then
11972 ac_header_preproc=yes
11973 else
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977 ac_header_preproc=no
11978 fi
11979
11980 rm -f conftest.err conftest.$ac_ext
11981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11982 echo "${ECHO_T}$ac_header_preproc" >&6; }
11983
11984 # So? What about this header?
11985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11986 yes:no: )
11987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11991 ac_header_preproc=yes
11992 ;;
11993 no:yes:* )
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12006
12007 ;;
12008 esac
12009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 else
12014 eval "$as_ac_Header=\$ac_header_preproc"
12015 fi
12016 ac_res=`eval echo '${'$as_ac_Header'}'`
12017 { echo "$as_me:$LINENO: result: $ac_res" >&5
12018 echo "${ECHO_T}$ac_res" >&6; }
12019
12020 fi
12021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12022 cat >>confdefs.h <<_ACEOF
12023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12024 _ACEOF
12025
12026 fi
12027
12028 done
12029
12030 CPPFLAGS="$savedcppflags"
12031
12032
12033 for ac_header in sys/bitypes.h
12034 do
12035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12041 fi
12042 ac_res=`eval echo '${'$as_ac_Header'}'`
12043 { echo "$as_me:$LINENO: result: $ac_res" >&5
12044 echo "${ECHO_T}$ac_res" >&6; }
12045 else
12046 # Is the header compilable?
12047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12049 cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h. */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 $ac_includes_default
12056 #include <$ac_header>
12057 _ACEOF
12058 rm -f conftest.$ac_objext
12059 if { (ac_try="$ac_compile"
12060 case "(($ac_try" in
12061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062 *) ac_try_echo=$ac_try;;
12063 esac
12064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065 (eval "$ac_compile") 2>conftest.er1
12066 ac_status=$?
12067 grep -v '^ *+' conftest.er1 >conftest.err
12068 rm -f conftest.er1
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } && {
12072 test -z "$ac_c_werror_flag" ||
12073 test ! -s conftest.err
12074 } && test -s conftest.$ac_objext; then
12075 ac_header_compiler=yes
12076 else
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12079
12080 ac_header_compiler=no
12081 fi
12082
12083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12085 echo "${ECHO_T}$ac_header_compiler" >&6; }
12086
12087 # Is the header present?
12088 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12090 cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h. */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12096 #include <$ac_header>
12097 _ACEOF
12098 if { (ac_try="$ac_cpp conftest.$ac_ext"
12099 case "(($ac_try" in
12100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12101 *) ac_try_echo=$ac_try;;
12102 esac
12103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12105 ac_status=$?
12106 grep -v '^ *+' conftest.er1 >conftest.err
12107 rm -f conftest.er1
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } >/dev/null && {
12111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12112 test ! -s conftest.err
12113 }; then
12114 ac_header_preproc=yes
12115 else
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12118
12119 ac_header_preproc=no
12120 fi
12121
12122 rm -f conftest.err conftest.$ac_ext
12123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12124 echo "${ECHO_T}$ac_header_preproc" >&6; }
12125
12126 # So? What about this header?
12127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12128 yes:no: )
12129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12133 ac_header_preproc=yes
12134 ;;
12135 no:yes:* )
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12148
12149 ;;
12150 esac
12151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156 eval "$as_ac_Header=\$ac_header_preproc"
12157 fi
12158 ac_res=`eval echo '${'$as_ac_Header'}'`
12159 { echo "$as_me:$LINENO: result: $ac_res" >&5
12160 echo "${ECHO_T}$ac_res" >&6; }
12161
12162 fi
12163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12164 cat >>confdefs.h <<_ACEOF
12165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12166 _ACEOF
12167
12168 fi
12169
12170 done
12171
12172
12173 { echo "$as_me:$LINENO: checking for int8_t" >&5
12174 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
12175 if test "${ac_cv_type_int8_t+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178 cat >conftest.$ac_ext <<_ACEOF
12179 /* confdefs.h. */
12180 _ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12184 $ac_includes_default
12185 #ifdef HAVE_SYS_BITYPES_H
12186 #include <sys/bitypes.h>
12187 #endif
12188
12189 typedef int8_t ac__type_new_;
12190 int
12191 main ()
12192 {
12193 if ((ac__type_new_ *) 0)
12194 return 0;
12195 if (sizeof (ac__type_new_))
12196 return 0;
12197 ;
12198 return 0;
12199 }
12200 _ACEOF
12201 rm -f conftest.$ac_objext
12202 if { (ac_try="$ac_compile"
12203 case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12206 esac
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_compile") 2>conftest.er1
12209 ac_status=$?
12210 grep -v '^ *+' conftest.er1 >conftest.err
12211 rm -f conftest.er1
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } && {
12215 test -z "$ac_c_werror_flag" ||
12216 test ! -s conftest.err
12217 } && test -s conftest.$ac_objext; then
12218 ac_cv_type_int8_t=yes
12219 else
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12222
12223 ac_cv_type_int8_t=no
12224 fi
12225
12226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12227 fi
12228 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
12229 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
12230 if test $ac_cv_type_int8_t = yes; then
12231 :
12232 else
12233
12234 cat >>confdefs.h <<\_ACEOF
12235 #define int8_t signed char
12236 _ACEOF
12237
12238 fi
12239
12240 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
12241 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
12242 if test "${ac_cv_type_u_int8_t+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h. */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12251 $ac_includes_default
12252 #ifdef HAVE_SYS_BITYPES_H
12253 #include <sys/bitypes.h>
12254 #endif
12255
12256 typedef u_int8_t ac__type_new_;
12257 int
12258 main ()
12259 {
12260 if ((ac__type_new_ *) 0)
12261 return 0;
12262 if (sizeof (ac__type_new_))
12263 return 0;
12264 ;
12265 return 0;
12266 }
12267 _ACEOF
12268 rm -f conftest.$ac_objext
12269 if { (ac_try="$ac_compile"
12270 case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12273 esac
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_compile") 2>conftest.er1
12276 ac_status=$?
12277 grep -v '^ *+' conftest.er1 >conftest.err
12278 rm -f conftest.er1
12279 cat conftest.err >&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } && {
12282 test -z "$ac_c_werror_flag" ||
12283 test ! -s conftest.err
12284 } && test -s conftest.$ac_objext; then
12285 ac_cv_type_u_int8_t=yes
12286 else
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289
12290 ac_cv_type_u_int8_t=no
12291 fi
12292
12293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12294 fi
12295 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
12296 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
12297 if test $ac_cv_type_u_int8_t = yes; then
12298 :
12299 else
12300
12301 cat >>confdefs.h <<\_ACEOF
12302 #define u_int8_t unsigned char
12303 _ACEOF
12304
12305 fi
12306
12307 { echo "$as_me:$LINENO: checking for int16_t" >&5
12308 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
12309 if test "${ac_cv_type_int16_t+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h. */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 $ac_includes_default
12319 typedef int16_t ac__type_new_;
12320 int
12321 main ()
12322 {
12323 if ((ac__type_new_ *) 0)
12324 return 0;
12325 if (sizeof (ac__type_new_))
12326 return 0;
12327 ;
12328 return 0;
12329 }
12330 _ACEOF
12331 rm -f conftest.$ac_objext
12332 if { (ac_try="$ac_compile"
12333 case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_compile") 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest.$ac_objext; then
12348 ac_cv_type_int16_t=yes
12349 else
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353 ac_cv_type_int16_t=no
12354 fi
12355
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357 fi
12358 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
12359 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
12360 if test $ac_cv_type_int16_t = yes; then
12361 :
12362 else
12363
12364 cat >>confdefs.h <<\_ACEOF
12365 #define int16_t short
12366 _ACEOF
12367
12368 $ac_includes_default
12369 #ifdef HAVE_SYS_BITYPES_H
12370 #include <sys/bitypes.h>
12371 #endif
12372 fi
12373
12374 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
12375 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
12376 if test "${ac_cv_type_u_int16_t+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h. */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 $ac_includes_default
12386 #ifdef HAVE_SYS_BITYPES_H
12387 #include <sys/bitypes.h>
12388 #endif
12389
12390 typedef u_int16_t ac__type_new_;
12391 int
12392 main ()
12393 {
12394 if ((ac__type_new_ *) 0)
12395 return 0;
12396 if (sizeof (ac__type_new_))
12397 return 0;
12398 ;
12399 return 0;
12400 }
12401 _ACEOF
12402 rm -f conftest.$ac_objext
12403 if { (ac_try="$ac_compile"
12404 case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12407 esac
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_compile") 2>conftest.er1
12410 ac_status=$?
12411 grep -v '^ *+' conftest.er1 >conftest.err
12412 rm -f conftest.er1
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } && {
12416 test -z "$ac_c_werror_flag" ||
12417 test ! -s conftest.err
12418 } && test -s conftest.$ac_objext; then
12419 ac_cv_type_u_int16_t=yes
12420 else
12421 echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 ac_cv_type_u_int16_t=no
12425 fi
12426
12427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428 fi
12429 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
12430 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
12431 if test $ac_cv_type_u_int16_t = yes; then
12432 :
12433 else
12434
12435 cat >>confdefs.h <<\_ACEOF
12436 #define u_int16_t unsigned short
12437 _ACEOF
12438
12439 fi
12440
12441 { echo "$as_me:$LINENO: checking for int32_t" >&5
12442 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
12443 if test "${ac_cv_type_int32_t+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 else
12446 cat >conftest.$ac_ext <<_ACEOF
12447 /* confdefs.h. */
12448 _ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12452 $ac_includes_default
12453 #ifdef HAVE_SYS_BITYPES_H
12454 #include <sys/bitypes.h>
12455 #endif
12456
12457 typedef int32_t ac__type_new_;
12458 int
12459 main ()
12460 {
12461 if ((ac__type_new_ *) 0)
12462 return 0;
12463 if (sizeof (ac__type_new_))
12464 return 0;
12465 ;
12466 return 0;
12467 }
12468 _ACEOF
12469 rm -f conftest.$ac_objext
12470 if { (ac_try="$ac_compile"
12471 case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12474 esac
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_compile") 2>conftest.er1
12477 ac_status=$?
12478 grep -v '^ *+' conftest.er1 >conftest.err
12479 rm -f conftest.er1
12480 cat conftest.err >&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } && {
12483 test -z "$ac_c_werror_flag" ||
12484 test ! -s conftest.err
12485 } && test -s conftest.$ac_objext; then
12486 ac_cv_type_int32_t=yes
12487 else
12488 echo "$as_me: failed program was:" >&5
12489 sed 's/^/| /' conftest.$ac_ext >&5
12490
12491 ac_cv_type_int32_t=no
12492 fi
12493
12494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12495 fi
12496 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12497 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
12498 if test $ac_cv_type_int32_t = yes; then
12499 :
12500 else
12501
12502 cat >>confdefs.h <<\_ACEOF
12503 #define int32_t int
12504 _ACEOF
12505
12506 fi
12507
12508 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
12509 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
12510 if test "${ac_cv_type_u_int32_t+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 else
12513 cat >conftest.$ac_ext <<_ACEOF
12514 /* confdefs.h. */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519 $ac_includes_default
12520 #ifdef HAVE_SYS_BITYPES_H
12521 #include <sys/bitypes.h>
12522 #endif
12523
12524 typedef u_int32_t ac__type_new_;
12525 int
12526 main ()
12527 {
12528 if ((ac__type_new_ *) 0)
12529 return 0;
12530 if (sizeof (ac__type_new_))
12531 return 0;
12532 ;
12533 return 0;
12534 }
12535 _ACEOF
12536 rm -f conftest.$ac_objext
12537 if { (ac_try="$ac_compile"
12538 case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12541 esac
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_compile") 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } && {
12550 test -z "$ac_c_werror_flag" ||
12551 test ! -s conftest.err
12552 } && test -s conftest.$ac_objext; then
12553 ac_cv_type_u_int32_t=yes
12554 else
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12557
12558 ac_cv_type_u_int32_t=no
12559 fi
12560
12561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562 fi
12563 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12564 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
12565 if test $ac_cv_type_u_int32_t = yes; then
12566 :
12567 else
12568
12569 cat >>confdefs.h <<\_ACEOF
12570 #define u_int32_t unsigned int
12571 _ACEOF
12572
12573 fi
12574
12575 { echo "$as_me:$LINENO: checking for int64_t" >&5
12576 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12577 if test "${ac_cv_type_int64_t+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580 cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h. */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 $ac_includes_default
12587 #ifdef HAVE_SYS_BITYPES_H
12588 #include <sys/bitypes.h>
12589 #endif
12590
12591 typedef int64_t ac__type_new_;
12592 int
12593 main ()
12594 {
12595 if ((ac__type_new_ *) 0)
12596 return 0;
12597 if (sizeof (ac__type_new_))
12598 return 0;
12599 ;
12600 return 0;
12601 }
12602 _ACEOF
12603 rm -f conftest.$ac_objext
12604 if { (ac_try="$ac_compile"
12605 case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608 esac
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_compile") 2>conftest.er1
12611 ac_status=$?
12612 grep -v '^ *+' conftest.er1 >conftest.err
12613 rm -f conftest.er1
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } && {
12617 test -z "$ac_c_werror_flag" ||
12618 test ! -s conftest.err
12619 } && test -s conftest.$ac_objext; then
12620 ac_cv_type_int64_t=yes
12621 else
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12624
12625 ac_cv_type_int64_t=no
12626 fi
12627
12628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12629 fi
12630 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12631 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12632 if test $ac_cv_type_int64_t = yes; then
12633 :
12634 else
12635
12636 cat >>confdefs.h <<\_ACEOF
12637 #define int64_t long long
12638 _ACEOF
12639
12640 fi
12641
12642 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
12643 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
12644 if test "${ac_cv_type_u_int64_t+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 else
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h. */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12653 $ac_includes_default
12654 #ifdef HAVE_SYS_BITYPES_H
12655 #include <sys/bitypes.h>
12656 #endif
12657
12658 typedef u_int64_t ac__type_new_;
12659 int
12660 main ()
12661 {
12662 if ((ac__type_new_ *) 0)
12663 return 0;
12664 if (sizeof (ac__type_new_))
12665 return 0;
12666 ;
12667 return 0;
12668 }
12669 _ACEOF
12670 rm -f conftest.$ac_objext
12671 if { (ac_try="$ac_compile"
12672 case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12675 esac
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_compile") 2>conftest.er1
12678 ac_status=$?
12679 grep -v '^ *+' conftest.er1 >conftest.err
12680 rm -f conftest.er1
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } && {
12684 test -z "$ac_c_werror_flag" ||
12685 test ! -s conftest.err
12686 } && test -s conftest.$ac_objext; then
12687 ac_cv_type_u_int64_t=yes
12688 else
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692 ac_cv_type_u_int64_t=no
12693 fi
12694
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 fi
12697 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12698 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
12699 if test $ac_cv_type_u_int64_t = yes; then
12700 :
12701 else
12702
12703 cat >>confdefs.h <<\_ACEOF
12704 #define u_int64_t unsigned long long
12705 _ACEOF
12706
12707 fi
12708
12709
12710 #
12711 # We can't just check for <inttypes.h> - some systems have one that
12712 # doesn't define all the PRI[doxu]64 macros.
12713 #
12714
12715 for ac_header in inttypes.h
12716 do
12717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 fi
12724 ac_res=`eval echo '${'$as_ac_Header'}'`
12725 { echo "$as_me:$LINENO: result: $ac_res" >&5
12726 echo "${ECHO_T}$ac_res" >&6; }
12727 else
12728 # Is the header compilable?
12729 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12731 cat >conftest.$ac_ext <<_ACEOF
12732 /* confdefs.h. */
12733 _ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12737 $ac_includes_default
12738 #include <$ac_header>
12739 _ACEOF
12740 rm -f conftest.$ac_objext
12741 if { (ac_try="$ac_compile"
12742 case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12745 esac
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_compile") 2>conftest.er1
12748 ac_status=$?
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } && {
12754 test -z "$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12756 } && test -s conftest.$ac_objext; then
12757 ac_header_compiler=yes
12758 else
12759 echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12761
12762 ac_header_compiler=no
12763 fi
12764
12765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12767 echo "${ECHO_T}$ac_header_compiler" >&6; }
12768
12769 # Is the header present?
12770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12772 cat >conftest.$ac_ext <<_ACEOF
12773 /* confdefs.h. */
12774 _ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12778 #include <$ac_header>
12779 _ACEOF
12780 if { (ac_try="$ac_cpp conftest.$ac_ext"
12781 case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784 esac
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12787 ac_status=$?
12788 grep -v '^ *+' conftest.er1 >conftest.err
12789 rm -f conftest.er1
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } >/dev/null && {
12793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12794 test ! -s conftest.err
12795 }; then
12796 ac_header_preproc=yes
12797 else
12798 echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12800
12801 ac_header_preproc=no
12802 fi
12803
12804 rm -f conftest.err conftest.$ac_ext
12805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12806 echo "${ECHO_T}$ac_header_preproc" >&6; }
12807
12808 # So? What about this header?
12809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12810 yes:no: )
12811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12815 ac_header_preproc=yes
12816 ;;
12817 no:yes:* )
12818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12830
12831 ;;
12832 esac
12833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838 eval "$as_ac_Header=\$ac_header_preproc"
12839 fi
12840 ac_res=`eval echo '${'$as_ac_Header'}'`
12841 { echo "$as_me:$LINENO: result: $ac_res" >&5
12842 echo "${ECHO_T}$ac_res" >&6; }
12843
12844 fi
12845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12846 cat >>confdefs.h <<_ACEOF
12847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12848 _ACEOF
12849
12850 #
12851 # OK, we have inttypes.h, but does it define those macros?
12852 #
12853 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12854 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
12855 cat >conftest.$ac_ext <<_ACEOF
12856
12857 /* confdefs.h. */
12858 _ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12862
12863 #include <inttypes.h>
12864 #include <stdio.h>
12865 #include <sys/types.h>
12866 #ifdef HAVE_SYS_BITYPES_H
12867 #include <sys/bitypes.h>
12868 #endif
12869
12870 main()
12871 {
12872 printf("%" PRId64 "\n", (u_int64_t)1);
12873 printf("%" PRIo64 "\n", (u_int64_t)1);
12874 printf("%" PRIx64 "\n", (u_int64_t)1);
12875 printf("%" PRIu64 "\n", (u_int64_t)1);
12876 }
12877
12878
12879 _ACEOF
12880 rm -f conftest.$ac_objext
12881 if { (ac_try="$ac_compile"
12882 case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_compile") 2>conftest.er1
12888 ac_status=$?
12889 grep -v '^ *+' conftest.er1 >conftest.err
12890 rm -f conftest.er1
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } && {
12894 test -z "$ac_c_werror_flag" ||
12895 test ! -s conftest.err
12896 } && test -s conftest.$ac_objext; then
12897
12898 { echo "$as_me:$LINENO: result: yes" >&5
12899 echo "${ECHO_T}yes" >&6; }
12900 ac_lbl_inttypes_h_defines_formats=yes
12901
12902 else
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12905
12906
12907 { echo "$as_me:$LINENO: result: no" >&5
12908 echo "${ECHO_T}no" >&6; }
12909 ac_lbl_inttypes_h_defines_formats=no
12910
12911 fi
12912
12913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914
12915 else
12916
12917 #
12918 # We don't have inttypes.h, so it obviously can't define those
12919 # macros.
12920 #
12921 ac_lbl_inttypes_h_defines_formats=no
12922
12923 fi
12924
12925 done
12926
12927 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12928
12929 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12930 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12931 if test "$cross_compiling" = yes; then
12932 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12933 See \`config.log' for more details." >&5
12934 echo "$as_me: error: cannot run test program while cross compiling
12935 See \`config.log' for more details." >&2;}
12936 { (exit 1); exit 1; }; }
12937 else
12938 cat >conftest.$ac_ext <<_ACEOF
12939
12940 /* confdefs.h. */
12941 _ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h. */
12945
12946 # ifdef HAVE_INTTYPES_H
12947 #include <inttypes.h>
12948 # endif
12949 # ifdef HAVE_SYS_BITYPES_H
12950 #include <sys/bitypes.h>
12951 # endif
12952 #include <stdio.h>
12953 #include <sys/types.h>
12954
12955 main()
12956 {
12957 u_int64_t t = 1;
12958 char strbuf[16+1];
12959 sprintf(strbuf, "%016lx", t << 32);
12960 if (strcmp(strbuf, "0000000100000000") == 0)
12961 exit(0);
12962 else
12963 exit(1);
12964 }
12965
12966
12967 _ACEOF
12968 rm -f conftest$ac_exeext
12969 if { (ac_try="$ac_link"
12970 case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12973 esac
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_link") 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12979 { (case "(($ac_try" in
12980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12982 esac
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984 (eval "$ac_try") 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; }; then
12988
12989 cat >>confdefs.h <<\_ACEOF
12990 #define PRId64 "ld"
12991 _ACEOF
12992
12993 cat >>confdefs.h <<\_ACEOF
12994 #define PRIo64 "lo"
12995 _ACEOF
12996
12997 cat >>confdefs.h <<\_ACEOF
12998 #define PRIx64 "lx"
12999 _ACEOF
13000
13001 cat >>confdefs.h <<\_ACEOF
13002 #define PRIu64 "lu"
13003 _ACEOF
13004
13005 { echo "$as_me:$LINENO: result: yes" >&5
13006 echo "${ECHO_T}yes" >&6; }
13007
13008 else
13009 echo "$as_me: program exited with status $ac_status" >&5
13010 echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.$ac_ext >&5
13012
13013 ( exit $ac_status )
13014
13015 { echo "$as_me:$LINENO: result: no" >&5
13016 echo "${ECHO_T}no" >&6; }
13017
13018
13019 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
13020 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
13021 if test "$cross_compiling" = yes; then
13022 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13023 See \`config.log' for more details." >&5
13024 echo "$as_me: error: cannot run test program while cross compiling
13025 See \`config.log' for more details." >&2;}
13026 { (exit 1); exit 1; }; }
13027 else
13028 cat >conftest.$ac_ext <<_ACEOF
13029
13030 /* confdefs.h. */
13031 _ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h. */
13035
13036 # ifdef HAVE_INTTYPES_H
13037 #include <inttypes.h>
13038 # endif
13039 # ifdef HAVE_SYS_BITYPES_H
13040 #include <sys/bitypes.h>
13041 # endif
13042 #include <stdio.h>
13043 #include <sys/types.h>
13044
13045 main()
13046 {
13047 u_int64_t t = 1;
13048 char strbuf[16+1];
13049 sprintf(strbuf, "%016llx", t << 32);
13050 if (strcmp(strbuf, "0000000100000000") == 0)
13051 exit(0);
13052 else
13053 exit(1);
13054 }
13055
13056
13057 _ACEOF
13058 rm -f conftest$ac_exeext
13059 if { (ac_try="$ac_link"
13060 case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13063 esac
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_link") 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13069 { (case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072 esac
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_try") 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
13078
13079 cat >>confdefs.h <<\_ACEOF
13080 #define PRId64 "lld"
13081 _ACEOF
13082
13083 cat >>confdefs.h <<\_ACEOF
13084 #define PRIo64 "llo"
13085 _ACEOF
13086
13087 cat >>confdefs.h <<\_ACEOF
13088 #define PRIx64 "llx"
13089 _ACEOF
13090
13091 cat >>confdefs.h <<\_ACEOF
13092 #define PRIu64 "llu"
13093 _ACEOF
13094
13095 { echo "$as_me:$LINENO: result: yes" >&5
13096 echo "${ECHO_T}yes" >&6; }
13097
13098 else
13099 echo "$as_me: program exited with status $ac_status" >&5
13100 echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13102
13103 ( exit $ac_status )
13104
13105 { echo "$as_me:$LINENO: result: no" >&5
13106 echo "${ECHO_T}no" >&6; }
13107
13108
13109 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
13110 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
13111 if test "$cross_compiling" = yes; then
13112 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13113 See \`config.log' for more details." >&5
13114 echo "$as_me: error: cannot run test program while cross compiling
13115 See \`config.log' for more details." >&2;}
13116 { (exit 1); exit 1; }; }
13117 else
13118 cat >conftest.$ac_ext <<_ACEOF
13119
13120 /* confdefs.h. */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125
13126 # ifdef HAVE_INTTYPES_H
13127 #include <inttypes.h>
13128 # endif
13129 # ifdef HAVE_SYS_BITYPES_H
13130 #include <sys/bitypes.h>
13131 # endif
13132 #include <stdio.h>
13133 #include <sys/types.h>
13134
13135 main()
13136 {
13137 u_int64_t t = 1;
13138 char strbuf[16+1];
13139 sprintf(strbuf, "%016Lx", t << 32);
13140 if (strcmp(strbuf, "0000000100000000") == 0)
13141 exit(0);
13142 else
13143 exit(1);
13144 }
13145
13146
13147 _ACEOF
13148 rm -f conftest$ac_exeext
13149 if { (ac_try="$ac_link"
13150 case "(($ac_try" in
13151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152 *) ac_try_echo=$ac_try;;
13153 esac
13154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155 (eval "$ac_link") 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13159 { (case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_try") 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168
13169 cat >>confdefs.h <<\_ACEOF
13170 #define PRId64 "Ld"
13171 _ACEOF
13172
13173 cat >>confdefs.h <<\_ACEOF
13174 #define PRIo64 "Lo"
13175 _ACEOF
13176
13177 cat >>confdefs.h <<\_ACEOF
13178 #define PRIx64 "Lx"
13179 _ACEOF
13180
13181 cat >>confdefs.h <<\_ACEOF
13182 #define PRIu64 "Lu"
13183 _ACEOF
13184
13185 { echo "$as_me:$LINENO: result: yes" >&5
13186 echo "${ECHO_T}yes" >&6; }
13187
13188 else
13189 echo "$as_me: program exited with status $ac_status" >&5
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13192
13193 ( exit $ac_status )
13194
13195 { echo "$as_me:$LINENO: result: no" >&5
13196 echo "${ECHO_T}no" >&6; }
13197
13198
13199 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
13200 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
13201 if test "$cross_compiling" = yes; then
13202 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13203 See \`config.log' for more details." >&5
13204 echo "$as_me: error: cannot run test program while cross compiling
13205 See \`config.log' for more details." >&2;}
13206 { (exit 1); exit 1; }; }
13207 else
13208 cat >conftest.$ac_ext <<_ACEOF
13209
13210 /* confdefs.h. */
13211 _ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13215
13216 # ifdef HAVE_INTTYPES_H
13217 #include <inttypes.h>
13218 # endif
13219 # ifdef HAVE_SYS_BITYPES_H
13220 #include <sys/bitypes.h>
13221 # endif
13222 #include <stdio.h>
13223 #include <sys/types.h>
13224
13225 main()
13226 {
13227 u_int64_t t = 1;
13228 char strbuf[16+1];
13229 sprintf(strbuf, "%016qx", t << 32);
13230 if (strcmp(strbuf, "0000000100000000") == 0)
13231 exit(0);
13232 else
13233 exit(1);
13234 }
13235
13236
13237 _ACEOF
13238 rm -f conftest$ac_exeext
13239 if { (ac_try="$ac_link"
13240 case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13243 esac
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_link") 2>&5
13246 ac_status=$?
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13249 { (case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_try") 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13258
13259 cat >>confdefs.h <<\_ACEOF
13260 #define PRId64 "qd"
13261 _ACEOF
13262
13263 cat >>confdefs.h <<\_ACEOF
13264 #define PRIo64 "qo"
13265 _ACEOF
13266
13267 cat >>confdefs.h <<\_ACEOF
13268 #define PRIx64 "qx"
13269 _ACEOF
13270
13271 cat >>confdefs.h <<\_ACEOF
13272 #define PRIu64 "qu"
13273 _ACEOF
13274
13275 { echo "$as_me:$LINENO: result: yes" >&5
13276 echo "${ECHO_T}yes" >&6; }
13277
13278 else
13279 echo "$as_me: program exited with status $ac_status" >&5
13280 echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13282
13283 ( exit $ac_status )
13284
13285 { echo "$as_me:$LINENO: result: no" >&5
13286 echo "${ECHO_T}no" >&6; }
13287
13288 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
13289 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
13290 { (exit 1); exit 1; }; }
13291
13292
13293 fi
13294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13295 fi
13296
13297
13298
13299
13300
13301 fi
13302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13303 fi
13304
13305
13306
13307
13308
13309 fi
13310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13311 fi
13312
13313
13314
13315
13316
13317 fi
13318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13319 fi
13320
13321
13322
13323 fi
13324
13325 if test -n "$ac_tool_prefix"; then
13326 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13327 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13330 if test "${ac_cv_prog_RANLIB+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333 if test -n "$RANLIB"; then
13334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13335 else
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13338 do
13339 IFS=$as_save_IFS
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13343 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13345 break 2
13346 fi
13347 done
13348 done
13349 IFS=$as_save_IFS
13350
13351 fi
13352 fi
13353 RANLIB=$ac_cv_prog_RANLIB
13354 if test -n "$RANLIB"; then
13355 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13356 echo "${ECHO_T}$RANLIB" >&6; }
13357 else
13358 { echo "$as_me:$LINENO: result: no" >&5
13359 echo "${ECHO_T}no" >&6; }
13360 fi
13361
13362
13363 fi
13364 if test -z "$ac_cv_prog_RANLIB"; then
13365 ac_ct_RANLIB=$RANLIB
13366 # Extract the first word of "ranlib", so it can be a program name with args.
13367 set dummy ranlib; ac_word=$2
13368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13370 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373 if test -n "$ac_ct_RANLIB"; then
13374 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13375 else
13376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13377 for as_dir in $PATH
13378 do
13379 IFS=$as_save_IFS
13380 test -z "$as_dir" && as_dir=.
13381 for ac_exec_ext in '' $ac_executable_extensions; do
13382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13383 ac_cv_prog_ac_ct_RANLIB="ranlib"
13384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13385 break 2
13386 fi
13387 done
13388 done
13389 IFS=$as_save_IFS
13390
13391 fi
13392 fi
13393 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13394 if test -n "$ac_ct_RANLIB"; then
13395 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13396 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13397 else
13398 { echo "$as_me:$LINENO: result: no" >&5
13399 echo "${ECHO_T}no" >&6; }
13400 fi
13401
13402 if test "x$ac_ct_RANLIB" = x; then
13403 RANLIB=":"
13404 else
13405 case $cross_compiling:$ac_tool_warned in
13406 yes:)
13407 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13408 whose name does not start with the host triplet. If you think this
13409 configuration is useful to you, please write to autoconf@gnu.org." >&5
13410 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13411 whose name does not start with the host triplet. If you think this
13412 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13413 ac_tool_warned=yes ;;
13414 esac
13415 RANLIB=$ac_ct_RANLIB
13416 fi
13417 else
13418 RANLIB="$ac_cv_prog_RANLIB"
13419 fi
13420
13421
13422 rm -f os-proto.h
13423 if test "${LBL_CFLAGS+set}" = set; then
13424 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
13425 fi
13426 if test -f .devel ; then
13427 if test "$GCC" = yes ; then
13428 if test "${LBL_CFLAGS+set}" != set; then
13429 if test "$ac_cv_prog_cc_g" = yes ; then
13430 V_CCOPT="-g $V_CCOPT"
13431 fi
13432 V_CCOPT="$V_CCOPT -Wall"
13433 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
13434 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
13435 fi
13436 fi
13437 else
13438 case "$host_os" in
13439
13440 irix6*)
13441 V_CCOPT="$V_CCOPT -n32"
13442 ;;
13443
13444 *)
13445 ;;
13446 esac
13447 fi
13448 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
13449 name="lbl/os-$os.h"
13450 if test -f $name ; then
13451 ln -s $name os-proto.h
13452
13453 cat >>confdefs.h <<\_ACEOF
13454 #define HAVE_OS_PROTO_H 1
13455 _ACEOF
13456
13457 else
13458 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
13459 echo "$as_me: WARNING: can't find $name" >&2;}
13460 fi
13461 fi
13462
13463 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
13464 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
13465 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468 cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h. */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474
13475 # include <sys/types.h>
13476 # include <sys/socket.h>
13477 int
13478 main ()
13479 {
13480 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
13481 ;
13482 return 0;
13483 }
13484 _ACEOF
13485 rm -f conftest.$ac_objext
13486 if { (ac_try="$ac_compile"
13487 case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13490 esac
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_compile") 2>conftest.er1
13493 ac_status=$?
13494 grep -v '^ *+' conftest.er1 >conftest.err
13495 rm -f conftest.er1
13496 cat conftest.err >&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } && {
13499 test -z "$ac_c_werror_flag" ||
13500 test ! -s conftest.err
13501 } && test -s conftest.$ac_objext; then
13502 ac_cv_lbl_sockaddr_has_sa_len=yes
13503 else
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13506
13507 ac_cv_lbl_sockaddr_has_sa_len=no
13508 fi
13509
13510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13511 fi
13512
13513 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
13514 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
13515 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
13516
13517 cat >>confdefs.h <<\_ACEOF
13518 #define HAVE_SOCKADDR_SA_LEN 1
13519 _ACEOF
13520
13521 fi
13522
13523 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
13524 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
13525 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 else
13528 case "$host_cpu" in
13529
13530 #
13531 # These are CPU types where:
13532 #
13533 # the CPU faults on an unaligned access, but at least some
13534 # OSes that support that CPU catch the fault and simulate
13535 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
13536 # the simulation is slow, so we don't want to use it;
13537 #
13538 # the CPU, I infer (from the old
13539 #
13540 # XXX: should also check that they don't do weird things (like on arm)
13541 #
13542 # comment) doesn't fault on unaligned accesses, but doesn't
13543 # do a normal unaligned fetch, either (e.g., presumably, ARM);
13544 #
13545 # for whatever reason, the test program doesn't work
13546 # (this has been claimed to be the case for several of those
13547 # CPUs - I don't know what the problem is; the problem
13548 # was reported as "the test program dumps core" for SuperH,
13549 # but that's what the test program is *supposed* to do -
13550 # it dumps core before it writes anything, so the test
13551 # for an empty output file should find an empty output
13552 # file and conclude that unaligned accesses don't work).
13553 #
13554 # This run-time test won't work if you're cross-compiling, so
13555 # in order to support cross-compiling for a particular CPU,
13556 # we have to wire in the list of CPU types anyway, as far as
13557 # I know, so perhaps we should just have a set of CPUs on
13558 # which we know it doesn't work, a set of CPUs on which we
13559 # know it does work, and have the script just fail on other
13560 # cpu types and update it when such a failure occurs.
13561 #
13562 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13563 ac_cv_lbl_unaligned_fail=yes
13564 ;;
13565
13566 *)
13567 cat >conftest.c <<EOF
13568 # include <sys/types.h>
13569 # include <sys/wait.h>
13570 # include <stdio.h>
13571 unsigned char a[5] = { 1, 2, 3, 4, 5 };
13572 main() {
13573 unsigned int i;
13574 pid_t pid;
13575 int status;
13576 /* avoid "core dumped" message */
13577 pid = fork();
13578 if (pid < 0)
13579 exit(2);
13580 if (pid > 0) {
13581 /* parent */
13582 pid = waitpid(pid, &status, 0);
13583 if (pid < 0)
13584 exit(3);
13585 exit(!WIFEXITED(status));
13586 }
13587 /* child */
13588 i = *(unsigned int *)&a[1];
13589 printf("%d\n", i);
13590 exit(0);
13591 }
13592 EOF
13593 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13594 conftest.c $LIBS >/dev/null 2>&1
13595 if test ! -x conftest ; then
13596 ac_cv_lbl_unaligned_fail=yes
13597 else
13598 ./conftest >conftest.out
13599 if test ! -s conftest.out ; then
13600 ac_cv_lbl_unaligned_fail=yes
13601 else
13602 ac_cv_lbl_unaligned_fail=no
13603 fi
13604 fi
13605 rm -f -r conftest* core core.conftest
13606 ;;
13607 esac
13608 fi
13609
13610 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
13611 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
13612 if test $ac_cv_lbl_unaligned_fail = yes ; then
13613
13614 cat >>confdefs.h <<\_ACEOF
13615 #define LBL_ALIGN 1
13616 _ACEOF
13617
13618 fi
13619
13620
13621 { echo "$as_me:$LINENO: checking for h_errno" >&5
13622 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
13623 if test "${ac_cv_var_h_errno+set}" = set; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13625 else
13626 cat >conftest.$ac_ext <<_ACEOF
13627 /* confdefs.h. */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13632
13633 # include <sys/types.h>
13634 # include <netdb.h>
13635 int
13636 main ()
13637 {
13638 int foo = h_errno;
13639 ;
13640 return 0;
13641 }
13642 _ACEOF
13643 rm -f conftest.$ac_objext
13644 if { (ac_try="$ac_compile"
13645 case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_compile") 2>conftest.er1
13651 ac_status=$?
13652 grep -v '^ *+' conftest.er1 >conftest.err
13653 rm -f conftest.er1
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } && {
13657 test -z "$ac_c_werror_flag" ||
13658 test ! -s conftest.err
13659 } && test -s conftest.$ac_objext; then
13660 ac_cv_var_h_errno=yes
13661 else
13662 echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13664
13665 ac_cv_var_h_errno=no
13666 fi
13667
13668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13669 fi
13670
13671 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
13672 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
13673 if test "$ac_cv_var_h_errno" = "yes"; then
13674 cat >>confdefs.h <<\_ACEOF
13675 #define HAVE_H_ERRNO 1
13676 _ACEOF
13677
13678 fi
13679
13680
13681 # Check for SSLeay
13682 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
13683 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
13684 # Specify location for both includes and libraries.
13685 want_libcrypto=youmama
13686
13687 # Check whether --with-crypto was given.
13688 if test "${with_crypto+set}" = set; then
13689 withval=$with_crypto;
13690 if test $withval = no
13691 then
13692 want_libcrypto=no
13693 { echo "$as_me:$LINENO: result: no" >&5
13694 echo "${ECHO_T}no" >&6; }
13695 elif test $withval = yes
13696 then
13697 want_libcrypto=yes
13698 { echo "$as_me:$LINENO: result: yes" >&5
13699 echo "${ECHO_T}yes" >&6; }
13700 else
13701 want_libcrypto=yes
13702 { echo "$as_me:$LINENO: result: yes" >&5
13703 echo "${ECHO_T}yes" >&6; }
13704 crypto_dir=$withval
13705 fi
13706
13707 else
13708
13709 #
13710 # Use libcrypto if it's present, otherwise don't.
13711 #
13712 want_libcrypto=ifavailable
13713 { echo "$as_me:$LINENO: result: yes, if available" >&5
13714 echo "${ECHO_T}yes, if available" >&6; }
13715
13716 fi
13717
13718 if test "$want_libcrypto" != "no"; then
13719 ac_cv_ssleay_path=no
13720 incdir=no
13721 if test "x$crypto_dir" = x; then
13722 #
13723 # Location not specified; check the default locations.
13724 #
13725 { echo "$as_me:$LINENO: checking where SSLeay is located" >&5
13726 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
13727 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
13728 if test "x${host_alias}" != x; then
13729 dirs="/usr/${host_alias} $dirs"
13730 fi
13731 for dir in $dirs; do
13732
13733 #
13734 # Find the last component of $libdir; it's not necessarily
13735 # "lib" - it might be "lib64" on, for example, x86-64
13736 # Linux systems.
13737 #
13738 # We assume the directory in which we're looking for
13739 # libcrypto has a subdirectory with that as its name.
13740 #
13741 tmplib=`echo "$libdir" | sed 's,.*/,,'`
13742
13743 #
13744 # XXX - is there a better way to check if a given library is
13745 # in a given directory than checking each of the possible
13746 # shared library suffixes?
13747 #
13748 # Are there any other suffixes we need to look for? Do we
13749 # have to worry about ".so.{version}"?
13750 #
13751 # Or should we just look for "libcrypto.*"?
13752 #
13753 if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a" -o \
13754 -f "$dir/$tmplib/libcrypto.so" -o \
13755 -f "$dir/$tmplib/libcrypto.sl" -o \
13756 -f "$dir/$tmplib/libcrypto.dylib" \); then
13757 ac_cv_ssleay_path="$dir"
13758 fi
13759
13760 #
13761 # Make sure we have the headers as well.
13762 #
13763 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
13764 incdir="-I$dir/include"
13765 fi
13766
13767
13768 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
13769 break;
13770 else
13771 ac_cv_ssleay_path=no
13772 incdir=no
13773 fi
13774 done
13775 if test "$ac_cv_ssleay_path" != no; then
13776 { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
13777 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
13778 fi
13779 else
13780 { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
13781 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
13782
13783 #
13784 # Find the last component of $libdir; it's not necessarily
13785 # "lib" - it might be "lib64" on, for example, x86-64
13786 # Linux systems.
13787 #
13788 # We assume the directory in which we're looking for
13789 # libcrypto has a subdirectory with that as its name.
13790 #
13791 tmplib=`echo "$libdir" | sed 's,.*/,,'`
13792
13793 #
13794 # XXX - is there a better way to check if a given library is
13795 # in a given directory than checking each of the possible
13796 # shared library suffixes?
13797 #
13798 # Are there any other suffixes we need to look for? Do we
13799 # have to worry about ".so.{version}"?
13800 #
13801 # Or should we just look for "libcrypto.*"?
13802 #
13803 if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
13804 -f "$crypto_dir/$tmplib/libcrypto.so" -o \
13805 -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
13806 -f "$crypto_dir/$tmplib/libcrypto.dylib" \); then
13807 ac_cv_ssleay_path="$crypto_dir"
13808 fi
13809
13810 #
13811 # Make sure we have the headers as well.
13812 #
13813 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
13814 incdir="-I$crypto_dir/include"
13815 fi
13816
13817 if test "$ac_cv_ssleay_path" != no; then
13818 { echo "$as_me:$LINENO: result: found" >&5
13819 echo "${ECHO_T}found" >&6; }
13820 fi
13821 fi
13822 if test "$ac_cv_ssleay_path" != no; then
13823 V_INCLS="$V_INCLS $incdir"
13824 if test "$dir" != "/usr"; then
13825 LDFLAGS="-L$dir/lib $LDFLAGS"
13826 fi
13827 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
13828 LIBS="$LIBS -lRSAglue"
13829 fi
13830 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
13831 LIBS="$LIBS -lrsaref"
13832 fi
13833
13834 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
13835 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
13836 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839 ac_check_lib_save_LIBS=$LIBS
13840 LIBS="-lcrypto $LIBS"
13841 cat >conftest.$ac_ext <<_ACEOF
13842 /* confdefs.h. */
13843 _ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13847
13848 /* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13851 #ifdef __cplusplus
13852 extern "C"
13853 #endif
13854 char DES_cbc_encrypt ();
13855 int
13856 main ()
13857 {
13858 return DES_cbc_encrypt ();
13859 ;
13860 return 0;
13861 }
13862 _ACEOF
13863 rm -f conftest.$ac_objext conftest$ac_exeext
13864 if { (ac_try="$ac_link"
13865 case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13868 esac
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_link") 2>conftest.er1
13871 ac_status=$?
13872 grep -v '^ *+' conftest.er1 >conftest.err
13873 rm -f conftest.er1
13874 cat conftest.err >&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); } && {
13877 test -z "$ac_c_werror_flag" ||
13878 test ! -s conftest.err
13879 } && test -s conftest$ac_exeext &&
13880 $as_test_x conftest$ac_exeext; then
13881 ac_cv_lib_crypto_DES_cbc_encrypt=yes
13882 else
13883 echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13885
13886 ac_cv_lib_crypto_DES_cbc_encrypt=no
13887 fi
13888
13889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13890 conftest$ac_exeext conftest.$ac_ext
13891 LIBS=$ac_check_lib_save_LIBS
13892 fi
13893 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13894 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13895 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13896 cat >>confdefs.h <<_ACEOF
13897 #define HAVE_LIBCRYPTO 1
13898 _ACEOF
13899
13900 LIBS="-lcrypto $LIBS"
13901
13902 fi
13903
13904
13905 CPPFLAGS="$CPPFLAGS $V_INCLS"
13906
13907 for ac_header in openssl/evp.h
13908 do
13909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 fi
13916 ac_res=`eval echo '${'$as_ac_Header'}'`
13917 { echo "$as_me:$LINENO: result: $ac_res" >&5
13918 echo "${ECHO_T}$ac_res" >&6; }
13919 else
13920 # Is the header compilable?
13921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13923 cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h. */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13930 #include <$ac_header>
13931 _ACEOF
13932 rm -f conftest.$ac_objext
13933 if { (ac_try="$ac_compile"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13937 esac
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_compile") 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } && {
13946 test -z "$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 } && test -s conftest.$ac_objext; then
13949 ac_header_compiler=yes
13950 else
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13953
13954 ac_header_compiler=no
13955 fi
13956
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13959 echo "${ECHO_T}$ac_header_compiler" >&6; }
13960
13961 # Is the header present?
13962 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 #include <$ac_header>
13971 _ACEOF
13972 if { (ac_try="$ac_cpp conftest.$ac_ext"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976 esac
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } >/dev/null && {
13985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13986 test ! -s conftest.err
13987 }; then
13988 ac_header_preproc=yes
13989 else
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13992
13993 ac_header_preproc=no
13994 fi
13995
13996 rm -f conftest.err conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13998 echo "${ECHO_T}$ac_header_preproc" >&6; }
13999
14000 # So? What about this header?
14001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14002 yes:no: )
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14007 ac_header_preproc=yes
14008 ;;
14009 no:yes:* )
14010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14022
14023 ;;
14024 esac
14025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 else
14030 eval "$as_ac_Header=\$ac_header_preproc"
14031 fi
14032 ac_res=`eval echo '${'$as_ac_Header'}'`
14033 { echo "$as_me:$LINENO: result: $ac_res" >&5
14034 echo "${ECHO_T}$ac_res" >&6; }
14035
14036 fi
14037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14038 cat >>confdefs.h <<_ACEOF
14039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14040 _ACEOF
14041
14042 fi
14043
14044 done
14045
14046 else
14047 #
14048 # Not found. Did the user explicitly ask for it?
14049 #
14050 { echo "$as_me:$LINENO: result: not found" >&5
14051 echo "${ECHO_T}not found" >&6; }
14052 if test "$want_libcrypto" = yes; then
14053 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
14054 echo "$as_me: error: SSLeay not found" >&2;}
14055 { (exit 1); exit 1; }; }
14056 fi
14057 fi
14058 fi
14059
14060 if test "$missing_includes" = "yes"; then
14061 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
14062 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
14063 fi
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074 # Find a good install program. We prefer a C program (faster),
14075 # so one script is as good as another. But avoid the broken or
14076 # incompatible versions:
14077 # SysV /etc/install, /usr/sbin/install
14078 # SunOS /usr/etc/install
14079 # IRIX /sbin/install
14080 # AIX /bin/install
14081 # AmigaOS /C/install, which installs bootblocks on floppy discs
14082 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14083 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14084 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14085 # OS/2's system install, which has a completely different semantic
14086 # ./install, which can be erroneously created by make from ./install.sh.
14087 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14088 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
14089 if test -z "$INSTALL"; then
14090 if test "${ac_cv_path_install+set}" = set; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14092 else
14093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14094 for as_dir in $PATH
14095 do
14096 IFS=$as_save_IFS
14097 test -z "$as_dir" && as_dir=.
14098 # Account for people who put trailing slashes in PATH elements.
14099 case $as_dir/ in
14100 ./ | .// | /cC/* | \
14101 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14102 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14103 /usr/ucb/* ) ;;
14104 *)
14105 # OSF1 and SCO ODT 3.0 have their own names for install.
14106 # Don't use installbsd from OSF since it installs stuff as root
14107 # by default.
14108 for ac_prog in ginstall scoinst install; do
14109 for ac_exec_ext in '' $ac_executable_extensions; do
14110 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14111 if test $ac_prog = install &&
14112 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14113 # AIX install. It has an incompatible calling convention.
14114 :
14115 elif test $ac_prog = install &&
14116 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14117 # program-specific install script used by HP pwplus--don't use.
14118 :
14119 else
14120 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14121 break 3
14122 fi
14123 fi
14124 done
14125 done
14126 ;;
14127 esac
14128 done
14129 IFS=$as_save_IFS
14130
14131
14132 fi
14133 if test "${ac_cv_path_install+set}" = set; then
14134 INSTALL=$ac_cv_path_install
14135 else
14136 # As a last resort, use the slow shell script. Don't cache a
14137 # value for INSTALL within a source directory, because that will
14138 # break other packages using the cache if that directory is
14139 # removed, or if the value is a relative name.
14140 INSTALL=$ac_install_sh
14141 fi
14142 fi
14143 { echo "$as_me:$LINENO: result: $INSTALL" >&5
14144 echo "${ECHO_T}$INSTALL" >&6; }
14145
14146 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14147 # It thinks the first close brace ends the variable substitution.
14148 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14149
14150 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14151
14152 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14153
14154
14155 ac_config_headers="$ac_config_headers config.h"
14156
14157
14158 ac_config_commands="$ac_config_commands default-1"
14159
14160 ac_config_files="$ac_config_files Makefile tcpdump.1"
14161
14162 cat >confcache <<\_ACEOF
14163 # This file is a shell script that caches the results of configure
14164 # tests run on this system so they can be shared between configure
14165 # scripts and configure runs, see configure's option --config-cache.
14166 # It is not useful on other systems. If it contains results you don't
14167 # want to keep, you may remove or edit it.
14168 #
14169 # config.status only pays attention to the cache file if you give it
14170 # the --recheck option to rerun configure.
14171 #
14172 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14173 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14174 # following values.
14175
14176 _ACEOF
14177
14178 # The following way of writing the cache mishandles newlines in values,
14179 # but we know of no workaround that is simple, portable, and efficient.
14180 # So, we kill variables containing newlines.
14181 # Ultrix sh set writes to stderr and can't be redirected directly,
14182 # and sets the high bit in the cache file unless we assign to the vars.
14183 (
14184 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14185 eval ac_val=\$$ac_var
14186 case $ac_val in #(
14187 *${as_nl}*)
14188 case $ac_var in #(
14189 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14190 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14191 esac
14192 case $ac_var in #(
14193 _ | IFS | as_nl) ;; #(
14194 *) $as_unset $ac_var ;;
14195 esac ;;
14196 esac
14197 done
14198
14199 (set) 2>&1 |
14200 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14201 *${as_nl}ac_space=\ *)
14202 # `set' does not quote correctly, so add quotes (double-quote
14203 # substitution turns \\\\ into \\, and sed turns \\ into \).
14204 sed -n \
14205 "s/'/'\\\\''/g;
14206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14207 ;; #(
14208 *)
14209 # `set' quotes correctly as required by POSIX, so do not add quotes.
14210 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14211 ;;
14212 esac |
14213 sort
14214 ) |
14215 sed '
14216 /^ac_cv_env_/b end
14217 t clear
14218 :clear
14219 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14220 t end
14221 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14222 :end' >>confcache
14223 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14224 if test -w "$cache_file"; then
14225 test "x$cache_file" != "x/dev/null" &&
14226 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14227 echo "$as_me: updating cache $cache_file" >&6;}
14228 cat confcache >$cache_file
14229 else
14230 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14231 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14232 fi
14233 fi
14234 rm -f confcache
14235
14236 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14237 # Let make expand exec_prefix.
14238 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14239
14240 DEFS=-DHAVE_CONFIG_H
14241
14242 ac_libobjs=
14243 ac_ltlibobjs=
14244 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14245 # 1. Remove the extension, and $U if already installed.
14246 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14247 ac_i=`echo "$ac_i" | sed "$ac_script"`
14248 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14249 # will be set to the directory where LIBOBJS objects are built.
14250 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14251 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14252 done
14253 LIBOBJS=$ac_libobjs
14254
14255 LTLIBOBJS=$ac_ltlibobjs
14256
14257
14258
14259 : ${CONFIG_STATUS=./config.status}
14260 ac_clean_files_save=$ac_clean_files
14261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14262 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14263 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14264 cat >$CONFIG_STATUS <<_ACEOF
14265 #! $SHELL
14266 # Generated by $as_me.
14267 # Run this file to recreate the current configuration.
14268 # Compiler output produced by configure, useful for debugging
14269 # configure, is in config.log if it exists.
14270
14271 debug=false
14272 ac_cs_recheck=false
14273 ac_cs_silent=false
14274 SHELL=\${CONFIG_SHELL-$SHELL}
14275 _ACEOF
14276
14277 cat >>$CONFIG_STATUS <<\_ACEOF
14278 ## --------------------- ##
14279 ## M4sh Initialization. ##
14280 ## --------------------- ##
14281
14282 # Be more Bourne compatible
14283 DUALCASE=1; export DUALCASE # for MKS sh
14284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14285 emulate sh
14286 NULLCMD=:
14287 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14288 # is contrary to our usage. Disable this feature.
14289 alias -g '${1+"$@"}'='"$@"'
14290 setopt NO_GLOB_SUBST
14291 else
14292 case `(set -o) 2>/dev/null` in
14293 *posix*) set -o posix ;;
14294 esac
14295
14296 fi
14297
14298
14299
14300
14301 # PATH needs CR
14302 # Avoid depending upon Character Ranges.
14303 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14306 as_cr_digits='0123456789'
14307 as_cr_alnum=$as_cr_Letters$as_cr_digits
14308
14309 # The user is always right.
14310 if test "${PATH_SEPARATOR+set}" != set; then
14311 echo "#! /bin/sh" >conf$$.sh
14312 echo "exit 0" >>conf$$.sh
14313 chmod +x conf$$.sh
14314 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14315 PATH_SEPARATOR=';'
14316 else
14317 PATH_SEPARATOR=:
14318 fi
14319 rm -f conf$$.sh
14320 fi
14321
14322 # Support unset when possible.
14323 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14324 as_unset=unset
14325 else
14326 as_unset=false
14327 fi
14328
14329
14330 # IFS
14331 # We need space, tab and new line, in precisely that order. Quoting is
14332 # there to prevent editors from complaining about space-tab.
14333 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14334 # splitting by setting IFS to empty value.)
14335 as_nl='
14336 '
14337 IFS=" "" $as_nl"
14338
14339 # Find who we are. Look in the path if we contain no directory separator.
14340 case $0 in
14341 *[\\/]* ) as_myself=$0 ;;
14342 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343 for as_dir in $PATH
14344 do
14345 IFS=$as_save_IFS
14346 test -z "$as_dir" && as_dir=.
14347 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14348 done
14349 IFS=$as_save_IFS
14350
14351 ;;
14352 esac
14353 # We did not find ourselves, most probably we were run as `sh COMMAND'
14354 # in which case we are not to be found in the path.
14355 if test "x$as_myself" = x; then
14356 as_myself=$0
14357 fi
14358 if test ! -f "$as_myself"; then
14359 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14360 { (exit 1); exit 1; }
14361 fi
14362
14363 # Work around bugs in pre-3.0 UWIN ksh.
14364 for as_var in ENV MAIL MAILPATH
14365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14366 done
14367 PS1='$ '
14368 PS2='> '
14369 PS4='+ '
14370
14371 # NLS nuisances.
14372 for as_var in \
14373 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14374 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14375 LC_TELEPHONE LC_TIME
14376 do
14377 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14378 eval $as_var=C; export $as_var
14379 else
14380 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14381 fi
14382 done
14383
14384 # Required to use basename.
14385 if expr a : '\(a\)' >/dev/null 2>&1 &&
14386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14387 as_expr=expr
14388 else
14389 as_expr=false
14390 fi
14391
14392 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14393 as_basename=basename
14394 else
14395 as_basename=false
14396 fi
14397
14398
14399 # Name of the executable.
14400 as_me=`$as_basename -- "$0" ||
14401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14402 X"$0" : 'X\(//\)$' \| \
14403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14404 echo X/"$0" |
14405 sed '/^.*\/\([^/][^/]*\)\/*$/{
14406 s//\1/
14407 q
14408 }
14409 /^X\/\(\/\/\)$/{
14410 s//\1/
14411 q
14412 }
14413 /^X\/\(\/\).*/{
14414 s//\1/
14415 q
14416 }
14417 s/.*/./; q'`
14418
14419 # CDPATH.
14420 $as_unset CDPATH
14421
14422
14423
14424 as_lineno_1=$LINENO
14425 as_lineno_2=$LINENO
14426 test "x$as_lineno_1" != "x$as_lineno_2" &&
14427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14428
14429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14430 # uniformly replaced by the line number. The first 'sed' inserts a
14431 # line-number line after each line using $LINENO; the second 'sed'
14432 # does the real work. The second script uses 'N' to pair each
14433 # line-number line with the line containing $LINENO, and appends
14434 # trailing '-' during substitution so that $LINENO is not a special
14435 # case at line end.
14436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14437 # scripts with optimization help from Paolo Bonzini. Blame Lee
14438 # E. McMahon (1931-1989) for sed's syntax. :-)
14439 sed -n '
14440 p
14441 /[$]LINENO/=
14442 ' <$as_myself |
14443 sed '
14444 s/[$]LINENO.*/&-/
14445 t lineno
14446 b
14447 :lineno
14448 N
14449 :loop
14450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14451 t loop
14452 s/-\n.*//
14453 ' >$as_me.lineno &&
14454 chmod +x "$as_me.lineno" ||
14455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14456 { (exit 1); exit 1; }; }
14457
14458 # Don't try to exec as it changes $[0], causing all sort of problems
14459 # (the dirname of $[0] is not the place where we might find the
14460 # original and so on. Autoconf is especially sensitive to this).
14461 . "./$as_me.lineno"
14462 # Exit status is that of the last command.
14463 exit
14464 }
14465
14466
14467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14468 as_dirname=dirname
14469 else
14470 as_dirname=false
14471 fi
14472
14473 ECHO_C= ECHO_N= ECHO_T=
14474 case `echo -n x` in
14475 -n*)
14476 case `echo 'x\c'` in
14477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14478 *) ECHO_C='\c';;
14479 esac;;
14480 *)
14481 ECHO_N='-n';;
14482 esac
14483
14484 if expr a : '\(a\)' >/dev/null 2>&1 &&
14485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14486 as_expr=expr
14487 else
14488 as_expr=false
14489 fi
14490
14491 rm -f conf$$ conf$$.exe conf$$.file
14492 if test -d conf$$.dir; then
14493 rm -f conf$$.dir/conf$$.file
14494 else
14495 rm -f conf$$.dir
14496 mkdir conf$$.dir
14497 fi
14498 echo >conf$$.file
14499 if ln -s conf$$.file conf$$ 2>/dev/null; then
14500 as_ln_s='ln -s'
14501 # ... but there are two gotchas:
14502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14504 # In both cases, we have to default to `cp -p'.
14505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14506 as_ln_s='cp -p'
14507 elif ln conf$$.file conf$$ 2>/dev/null; then
14508 as_ln_s=ln
14509 else
14510 as_ln_s='cp -p'
14511 fi
14512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14513 rmdir conf$$.dir 2>/dev/null
14514
14515 if mkdir -p . 2>/dev/null; then
14516 as_mkdir_p=:
14517 else
14518 test -d ./-p && rmdir ./-p
14519 as_mkdir_p=false
14520 fi
14521
14522 if test -x / >/dev/null 2>&1; then
14523 as_test_x='test -x'
14524 else
14525 if ls -dL / >/dev/null 2>&1; then
14526 as_ls_L_option=L
14527 else
14528 as_ls_L_option=
14529 fi
14530 as_test_x='
14531 eval sh -c '\''
14532 if test -d "$1"; then
14533 test -d "$1/.";
14534 else
14535 case $1 in
14536 -*)set "./$1";;
14537 esac;
14538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14539 ???[sx]*):;;*)false;;esac;fi
14540 '\'' sh
14541 '
14542 fi
14543 as_executable_p=$as_test_x
14544
14545 # Sed expression to map a string onto a valid CPP name.
14546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14547
14548 # Sed expression to map a string onto a valid variable name.
14549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14550
14551
14552 exec 6>&1
14553
14554 # Save the log message, to keep $[0] and so on meaningful, and to
14555 # report actual input values of CONFIG_FILES etc. instead of their
14556 # values after options handling.
14557 ac_log="
14558 This file was extended by $as_me, which was
14559 generated by GNU Autoconf 2.61. Invocation command line was
14560
14561 CONFIG_FILES = $CONFIG_FILES
14562 CONFIG_HEADERS = $CONFIG_HEADERS
14563 CONFIG_LINKS = $CONFIG_LINKS
14564 CONFIG_COMMANDS = $CONFIG_COMMANDS
14565 $ $0 $@
14566
14567 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14568 "
14569
14570 _ACEOF
14571
14572 cat >>$CONFIG_STATUS <<_ACEOF
14573 # Files that config.status was made for.
14574 config_files="$ac_config_files"
14575 config_headers="$ac_config_headers"
14576 config_commands="$ac_config_commands"
14577
14578 _ACEOF
14579
14580 cat >>$CONFIG_STATUS <<\_ACEOF
14581 ac_cs_usage="\
14582 \`$as_me' instantiates files from templates according to the
14583 current configuration.
14584
14585 Usage: $0 [OPTIONS] [FILE]...
14586
14587 -h, --help print this help, then exit
14588 -V, --version print version number and configuration settings, then exit
14589 -q, --quiet do not print progress messages
14590 -d, --debug don't remove temporary files
14591 --recheck update $as_me by reconfiguring in the same conditions
14592 --file=FILE[:TEMPLATE]
14593 instantiate the configuration file FILE
14594 --header=FILE[:TEMPLATE]
14595 instantiate the configuration header FILE
14596
14597 Configuration files:
14598 $config_files
14599
14600 Configuration headers:
14601 $config_headers
14602
14603 Configuration commands:
14604 $config_commands
14605
14606 Report bugs to <bug-autoconf@gnu.org>."
14607
14608 _ACEOF
14609 cat >>$CONFIG_STATUS <<_ACEOF
14610 ac_cs_version="\\
14611 config.status
14612 configured by $0, generated by GNU Autoconf 2.61,
14613 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14614
14615 Copyright (C) 2006 Free Software Foundation, Inc.
14616 This config.status script is free software; the Free Software Foundation
14617 gives unlimited permission to copy, distribute and modify it."
14618
14619 ac_pwd='$ac_pwd'
14620 srcdir='$srcdir'
14621 INSTALL='$INSTALL'
14622 _ACEOF
14623
14624 cat >>$CONFIG_STATUS <<\_ACEOF
14625 # If no file are specified by the user, then we need to provide default
14626 # value. By we need to know if files were specified by the user.
14627 ac_need_defaults=:
14628 while test $# != 0
14629 do
14630 case $1 in
14631 --*=*)
14632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14633 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14634 ac_shift=:
14635 ;;
14636 *)
14637 ac_option=$1
14638 ac_optarg=$2
14639 ac_shift=shift
14640 ;;
14641 esac
14642
14643 case $ac_option in
14644 # Handling of the options.
14645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14646 ac_cs_recheck=: ;;
14647 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14648 echo "$ac_cs_version"; exit ;;
14649 --debug | --debu | --deb | --de | --d | -d )
14650 debug=: ;;
14651 --file | --fil | --fi | --f )
14652 $ac_shift
14653 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14654 ac_need_defaults=false;;
14655 --header | --heade | --head | --hea )
14656 $ac_shift
14657 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14658 ac_need_defaults=false;;
14659 --he | --h)
14660 # Conflict between --help and --header
14661 { echo "$as_me: error: ambiguous option: $1
14662 Try \`$0 --help' for more information." >&2
14663 { (exit 1); exit 1; }; };;
14664 --help | --hel | -h )
14665 echo "$ac_cs_usage"; exit ;;
14666 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14667 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14668 ac_cs_silent=: ;;
14669
14670 # This is an error.
14671 -*) { echo "$as_me: error: unrecognized option: $1
14672 Try \`$0 --help' for more information." >&2
14673 { (exit 1); exit 1; }; } ;;
14674
14675 *) ac_config_targets="$ac_config_targets $1"
14676 ac_need_defaults=false ;;
14677
14678 esac
14679 shift
14680 done
14681
14682 ac_configure_extra_args=
14683
14684 if $ac_cs_silent; then
14685 exec 6>/dev/null
14686 ac_configure_extra_args="$ac_configure_extra_args --silent"
14687 fi
14688
14689 _ACEOF
14690 cat >>$CONFIG_STATUS <<_ACEOF
14691 if \$ac_cs_recheck; then
14692 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14693 CONFIG_SHELL=$SHELL
14694 export CONFIG_SHELL
14695 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14696 fi
14697
14698 _ACEOF
14699 cat >>$CONFIG_STATUS <<\_ACEOF
14700 exec 5>>config.log
14701 {
14702 echo
14703 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14704 ## Running $as_me. ##
14705 _ASBOX
14706 echo "$ac_log"
14707 } >&5
14708
14709 _ACEOF
14710 cat >>$CONFIG_STATUS <<_ACEOF
14711 #
14712 # INIT-COMMANDS
14713 #
14714
14715
14716 _ACEOF
14717
14718 cat >>$CONFIG_STATUS <<\_ACEOF
14719
14720 # Handling of arguments.
14721 for ac_config_target in $ac_config_targets
14722 do
14723 case $ac_config_target in
14724 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14725 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14726 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14727 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
14728
14729 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14730 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14731 { (exit 1); exit 1; }; };;
14732 esac
14733 done
14734
14735
14736 # If the user did not use the arguments to specify the items to instantiate,
14737 # then the envvar interface is used. Set only those that are not.
14738 # We use the long form for the default assignment because of an extremely
14739 # bizarre bug on SunOS 4.1.3.
14740 if $ac_need_defaults; then
14741 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14742 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14743 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14744 fi
14745
14746 # Have a temporary directory for convenience. Make it in the build tree
14747 # simply because there is no reason against having it here, and in addition,
14748 # creating and moving files from /tmp can sometimes cause problems.
14749 # Hook for its removal unless debugging.
14750 # Note that there is a small window in which the directory will not be cleaned:
14751 # after its creation but before its name has been assigned to `$tmp'.
14752 $debug ||
14753 {
14754 tmp=
14755 trap 'exit_status=$?
14756 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14757 ' 0
14758 trap '{ (exit 1); exit 1; }' 1 2 13 15
14759 }
14760 # Create a (secure) tmp directory for tmp files.
14761
14762 {
14763 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14764 test -n "$tmp" && test -d "$tmp"
14765 } ||
14766 {
14767 tmp=./conf$$-$RANDOM
14768 (umask 077 && mkdir "$tmp")
14769 } ||
14770 {
14771 echo "$me: cannot create a temporary directory in ." >&2
14772 { (exit 1); exit 1; }
14773 }
14774
14775 #
14776 # Set up the sed scripts for CONFIG_FILES section.
14777 #
14778
14779 # No need to generate the scripts if there are no CONFIG_FILES.
14780 # This happens for instance when ./config.status config.h
14781 if test -n "$CONFIG_FILES"; then
14782
14783 _ACEOF
14784
14785
14786
14787 ac_delim='%!_!# '
14788 for ac_last_try in false false false false false :; do
14789 cat >conf$$subs.sed <<_ACEOF
14790 SHELL!$SHELL$ac_delim
14791 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14792 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14793 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14794 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14795 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14796 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14797 exec_prefix!$exec_prefix$ac_delim
14798 prefix!$prefix$ac_delim
14799 program_transform_name!$program_transform_name$ac_delim
14800 bindir!$bindir$ac_delim
14801 sbindir!$sbindir$ac_delim
14802 libexecdir!$libexecdir$ac_delim
14803 datarootdir!$datarootdir$ac_delim
14804 datadir!$datadir$ac_delim
14805 sysconfdir!$sysconfdir$ac_delim
14806 sharedstatedir!$sharedstatedir$ac_delim
14807 localstatedir!$localstatedir$ac_delim
14808 includedir!$includedir$ac_delim
14809 oldincludedir!$oldincludedir$ac_delim
14810 docdir!$docdir$ac_delim
14811 infodir!$infodir$ac_delim
14812 htmldir!$htmldir$ac_delim
14813 dvidir!$dvidir$ac_delim
14814 pdfdir!$pdfdir$ac_delim
14815 psdir!$psdir$ac_delim
14816 libdir!$libdir$ac_delim
14817 localedir!$localedir$ac_delim
14818 mandir!$mandir$ac_delim
14819 DEFS!$DEFS$ac_delim
14820 ECHO_C!$ECHO_C$ac_delim
14821 ECHO_N!$ECHO_N$ac_delim
14822 ECHO_T!$ECHO_T$ac_delim
14823 LIBS!$LIBS$ac_delim
14824 build_alias!$build_alias$ac_delim
14825 host_alias!$host_alias$ac_delim
14826 target_alias!$target_alias$ac_delim
14827 build!$build$ac_delim
14828 build_cpu!$build_cpu$ac_delim
14829 build_vendor!$build_vendor$ac_delim
14830 build_os!$build_os$ac_delim
14831 host!$host$ac_delim
14832 host_cpu!$host_cpu$ac_delim
14833 host_vendor!$host_vendor$ac_delim
14834 host_os!$host_os$ac_delim
14835 SHLICC2!$SHLICC2$ac_delim
14836 CC!$CC$ac_delim
14837 CFLAGS!$CFLAGS$ac_delim
14838 LDFLAGS!$LDFLAGS$ac_delim
14839 CPPFLAGS!$CPPFLAGS$ac_delim
14840 ac_ct_CC!$ac_ct_CC$ac_delim
14841 EXEEXT!$EXEEXT$ac_delim
14842 OBJEXT!$OBJEXT$ac_delim
14843 CPP!$CPP$ac_delim
14844 GREP!$GREP$ac_delim
14845 EGREP!$EGREP$ac_delim
14846 LIBOBJS!$LIBOBJS$ac_delim
14847 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
14848 RANLIB!$RANLIB$ac_delim
14849 V_CCOPT!$V_CCOPT$ac_delim
14850 V_DEFS!$V_DEFS$ac_delim
14851 V_GROUP!$V_GROUP$ac_delim
14852 V_INCLS!$V_INCLS$ac_delim
14853 V_PCAPDEP!$V_PCAPDEP$ac_delim
14854 LOCALSRC!$LOCALSRC$ac_delim
14855 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
14856 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
14857 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14858 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14859 INSTALL_DATA!$INSTALL_DATA$ac_delim
14860 LTLIBOBJS!$LTLIBOBJS$ac_delim
14861 _ACEOF
14862
14863 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
14864 break
14865 elif $ac_last_try; then
14866 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14867 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14868 { (exit 1); exit 1; }; }
14869 else
14870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14871 fi
14872 done
14873
14874 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14875 if test -n "$ac_eof"; then
14876 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14877 ac_eof=`expr $ac_eof + 1`
14878 fi
14879
14880 cat >>$CONFIG_STATUS <<_ACEOF
14881 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14882 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14883 _ACEOF
14884 sed '
14885 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14886 s/^/s,@/; s/!/@,|#_!!_#|/
14887 :n
14888 t n
14889 s/'"$ac_delim"'$/,g/; t
14890 s/$/\\/; p
14891 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14892 ' >>$CONFIG_STATUS <conf$$subs.sed
14893 rm -f conf$$subs.sed
14894 cat >>$CONFIG_STATUS <<_ACEOF
14895 :end
14896 s/|#_!!_#|//g
14897 CEOF$ac_eof
14898 _ACEOF
14899
14900
14901 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14902 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14903 # trailing colons and then remove the whole line if VPATH becomes empty
14904 # (actually we leave an empty line to preserve line numbers).
14905 if test "x$srcdir" = x.; then
14906 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14907 s/:*\$(srcdir):*/:/
14908 s/:*\${srcdir}:*/:/
14909 s/:*@srcdir@:*/:/
14910 s/^\([^=]*=[ ]*\):*/\1/
14911 s/:*$//
14912 s/^[^=]*=[ ]*$//
14913 }'
14914 fi
14915
14916 cat >>$CONFIG_STATUS <<\_ACEOF
14917 fi # test -n "$CONFIG_FILES"
14918
14919
14920 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14921 do
14922 case $ac_tag in
14923 :[FHLC]) ac_mode=$ac_tag; continue;;
14924 esac
14925 case $ac_mode$ac_tag in
14926 :[FHL]*:*);;
14927 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14928 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14929 { (exit 1); exit 1; }; };;
14930 :[FH]-) ac_tag=-:-;;
14931 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14932 esac
14933 ac_save_IFS=$IFS
14934 IFS=:
14935 set x $ac_tag
14936 IFS=$ac_save_IFS
14937 shift
14938 ac_file=$1
14939 shift
14940
14941 case $ac_mode in
14942 :L) ac_source=$1;;
14943 :[FH])
14944 ac_file_inputs=
14945 for ac_f
14946 do
14947 case $ac_f in
14948 -) ac_f="$tmp/stdin";;
14949 *) # Look for the file first in the build tree, then in the source tree
14950 # (if the path is not absolute). The absolute path cannot be DOS-style,
14951 # because $ac_f cannot contain `:'.
14952 test -f "$ac_f" ||
14953 case $ac_f in
14954 [\\/$]*) false;;
14955 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14956 esac ||
14957 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14958 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14959 { (exit 1); exit 1; }; };;
14960 esac
14961 ac_file_inputs="$ac_file_inputs $ac_f"
14962 done
14963
14964 # Let's still pretend it is `configure' which instantiates (i.e., don't
14965 # use $as_me), people would be surprised to read:
14966 # /* config.h. Generated by config.status. */
14967 configure_input="Generated from "`IFS=:
14968 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14969 if test x"$ac_file" != x-; then
14970 configure_input="$ac_file. $configure_input"
14971 { echo "$as_me:$LINENO: creating $ac_file" >&5
14972 echo "$as_me: creating $ac_file" >&6;}
14973 fi
14974
14975 case $ac_tag in
14976 *:-:* | *:-) cat >"$tmp/stdin";;
14977 esac
14978 ;;
14979 esac
14980
14981 ac_dir=`$as_dirname -- "$ac_file" ||
14982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14983 X"$ac_file" : 'X\(//\)[^/]' \| \
14984 X"$ac_file" : 'X\(//\)$' \| \
14985 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14986 echo X"$ac_file" |
14987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14988 s//\1/
14989 q
14990 }
14991 /^X\(\/\/\)[^/].*/{
14992 s//\1/
14993 q
14994 }
14995 /^X\(\/\/\)$/{
14996 s//\1/
14997 q
14998 }
14999 /^X\(\/\).*/{
15000 s//\1/
15001 q
15002 }
15003 s/.*/./; q'`
15004 { as_dir="$ac_dir"
15005 case $as_dir in #(
15006 -*) as_dir=./$as_dir;;
15007 esac
15008 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15009 as_dirs=
15010 while :; do
15011 case $as_dir in #(
15012 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15013 *) as_qdir=$as_dir;;
15014 esac
15015 as_dirs="'$as_qdir' $as_dirs"
15016 as_dir=`$as_dirname -- "$as_dir" ||
15017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15018 X"$as_dir" : 'X\(//\)[^/]' \| \
15019 X"$as_dir" : 'X\(//\)$' \| \
15020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15021 echo X"$as_dir" |
15022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15023 s//\1/
15024 q
15025 }
15026 /^X\(\/\/\)[^/].*/{
15027 s//\1/
15028 q
15029 }
15030 /^X\(\/\/\)$/{
15031 s//\1/
15032 q
15033 }
15034 /^X\(\/\).*/{
15035 s//\1/
15036 q
15037 }
15038 s/.*/./; q'`
15039 test -d "$as_dir" && break
15040 done
15041 test -z "$as_dirs" || eval "mkdir $as_dirs"
15042 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15043 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15044 { (exit 1); exit 1; }; }; }
15045 ac_builddir=.
15046
15047 case "$ac_dir" in
15048 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15049 *)
15050 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15051 # A ".." for each directory in $ac_dir_suffix.
15052 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15053 case $ac_top_builddir_sub in
15054 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15055 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15056 esac ;;
15057 esac
15058 ac_abs_top_builddir=$ac_pwd
15059 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15060 # for backward compatibility:
15061 ac_top_builddir=$ac_top_build_prefix
15062
15063 case $srcdir in
15064 .) # We are building in place.
15065 ac_srcdir=.
15066 ac_top_srcdir=$ac_top_builddir_sub
15067 ac_abs_top_srcdir=$ac_pwd ;;
15068 [\\/]* | ?:[\\/]* ) # Absolute name.
15069 ac_srcdir=$srcdir$ac_dir_suffix;
15070 ac_top_srcdir=$srcdir
15071 ac_abs_top_srcdir=$srcdir ;;
15072 *) # Relative name.
15073 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15074 ac_top_srcdir=$ac_top_build_prefix$srcdir
15075 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15076 esac
15077 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15078
15079
15080 case $ac_mode in
15081 :F)
15082 #
15083 # CONFIG_FILE
15084 #
15085
15086 case $INSTALL in
15087 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15088 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15089 esac
15090 _ACEOF
15091
15092 cat >>$CONFIG_STATUS <<\_ACEOF
15093 # If the template does not know about datarootdir, expand it.
15094 # FIXME: This hack should be removed a few years after 2.60.
15095 ac_datarootdir_hack=; ac_datarootdir_seen=
15096
15097 case `sed -n '/datarootdir/ {
15098 p
15099 q
15100 }
15101 /@datadir@/p
15102 /@docdir@/p
15103 /@infodir@/p
15104 /@localedir@/p
15105 /@mandir@/p
15106 ' $ac_file_inputs` in
15107 *datarootdir*) ac_datarootdir_seen=yes;;
15108 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15109 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15110 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15111 _ACEOF
15112 cat >>$CONFIG_STATUS <<_ACEOF
15113 ac_datarootdir_hack='
15114 s&@datadir@&$datadir&g
15115 s&@docdir@&$docdir&g
15116 s&@infodir@&$infodir&g
15117 s&@localedir@&$localedir&g
15118 s&@mandir@&$mandir&g
15119 s&\\\${datarootdir}&$datarootdir&g' ;;
15120 esac
15121 _ACEOF
15122
15123 # Neutralize VPATH when `$srcdir' = `.'.
15124 # Shell code in configure.ac might set extrasub.
15125 # FIXME: do we really want to maintain this feature?
15126 cat >>$CONFIG_STATUS <<_ACEOF
15127 sed "$ac_vpsub
15128 $extrasub
15129 _ACEOF
15130 cat >>$CONFIG_STATUS <<\_ACEOF
15131 :t
15132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15133 s&@configure_input@&$configure_input&;t t
15134 s&@top_builddir@&$ac_top_builddir_sub&;t t
15135 s&@srcdir@&$ac_srcdir&;t t
15136 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15137 s&@top_srcdir@&$ac_top_srcdir&;t t
15138 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15139 s&@builddir@&$ac_builddir&;t t
15140 s&@abs_builddir@&$ac_abs_builddir&;t t
15141 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15142 s&@INSTALL@&$ac_INSTALL&;t t
15143 $ac_datarootdir_hack
15144 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
15145
15146 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15147 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15148 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15149 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15150 which seems to be undefined. Please make sure it is defined." >&5
15151 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15152 which seems to be undefined. Please make sure it is defined." >&2;}
15153
15154 rm -f "$tmp/stdin"
15155 case $ac_file in
15156 -) cat "$tmp/out"; rm -f "$tmp/out";;
15157 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15158 esac
15159 ;;
15160 :H)
15161 #
15162 # CONFIG_HEADER
15163 #
15164 _ACEOF
15165
15166 # Transform confdefs.h into a sed script `conftest.defines', that
15167 # substitutes the proper values into config.h.in to produce config.h.
15168 rm -f conftest.defines conftest.tail
15169 # First, append a space to every undef/define line, to ease matching.
15170 echo 's/$/ /' >conftest.defines
15171 # Then, protect against being on the right side of a sed subst, or in
15172 # an unquoted here document, in config.status. If some macros were
15173 # called several times there might be several #defines for the same
15174 # symbol, which is useless. But do not sort them, since the last
15175 # AC_DEFINE must be honored.
15176 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15177 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15178 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15179 # PARAMS is the parameter list in the macro definition--in most cases, it's
15180 # just an empty string.
15181 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15182 ac_dB='\\)[ (].*,\\1define\\2'
15183 ac_dC=' '
15184 ac_dD=' ,'
15185
15186 uniq confdefs.h |
15187 sed -n '
15188 t rset
15189 :rset
15190 s/^[ ]*#[ ]*define[ ][ ]*//
15191 t ok
15192 d
15193 :ok
15194 s/[\\&,]/\\&/g
15195 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15196 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15197 ' >>conftest.defines
15198
15199 # Remove the space that was appended to ease matching.
15200 # Then replace #undef with comments. This is necessary, for
15201 # example, in the case of _POSIX_SOURCE, which is predefined and required
15202 # on some systems where configure will not decide to define it.
15203 # (The regexp can be short, since the line contains either #define or #undef.)
15204 echo 's/ $//
15205 s,^[ #]*u.*,/* & */,' >>conftest.defines
15206
15207 # Break up conftest.defines:
15208 ac_max_sed_lines=50
15209
15210 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15211 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15212 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15213 # et cetera.
15214 ac_in='$ac_file_inputs'
15215 ac_out='"$tmp/out1"'
15216 ac_nxt='"$tmp/out2"'
15217
15218 while :
15219 do
15220 # Write a here document:
15221 cat >>$CONFIG_STATUS <<_ACEOF
15222 # First, check the format of the line:
15223 cat >"\$tmp/defines.sed" <<\\CEOF
15224 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15225 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15226 b
15227 :def
15228 _ACEOF
15229 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15230 echo 'CEOF
15231 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15232 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15233 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15234 grep . conftest.tail >/dev/null || break
15235 rm -f conftest.defines
15236 mv conftest.tail conftest.defines
15237 done
15238 rm -f conftest.defines conftest.tail
15239
15240 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15241 cat >>$CONFIG_STATUS <<\_ACEOF
15242 if test x"$ac_file" != x-; then
15243 echo "/* $configure_input */" >"$tmp/config.h"
15244 cat "$ac_result" >>"$tmp/config.h"
15245 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15246 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15247 echo "$as_me: $ac_file is unchanged" >&6;}
15248 else
15249 rm -f $ac_file
15250 mv "$tmp/config.h" $ac_file
15251 fi
15252 else
15253 echo "/* $configure_input */"
15254 cat "$ac_result"
15255 fi
15256 rm -f "$tmp/out12"
15257 ;;
15258
15259 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15260 echo "$as_me: executing $ac_file commands" >&6;}
15261 ;;
15262 esac
15263
15264
15265 case $ac_file$ac_mode in
15266 "default-1":C) if test -f .devel; then
15267 echo timestamp > stamp-h
15268 cat Makefile-devel-adds >> Makefile
15269 make depend
15270 fi ;;
15271
15272 esac
15273 done # for ac_tag
15274
15275
15276 { (exit 0); exit 0; }
15277 _ACEOF
15278 chmod +x $CONFIG_STATUS
15279 ac_clean_files=$ac_clean_files_save
15280
15281
15282 # configure is writing to config.log, and then calls config.status.
15283 # config.status does its own redirection, appending to config.log.
15284 # Unfortunately, on DOS this fails, as config.log is still kept open
15285 # by configure, so config.status won't be able to write to it; its
15286 # output is simply discarded. So we exec the FD to /dev/null,
15287 # effectively closing config.log, so it can be properly (re)opened and
15288 # appended to by config.status. When coming back to configure, we
15289 # need to make the FD available again.
15290 if test "$no_create" != yes; then
15291 ac_cs_success=:
15292 ac_config_status_args=
15293 test "$silent" = yes &&
15294 ac_config_status_args="$ac_config_status_args --quiet"
15295 exec 5>/dev/null
15296 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15297 exec 5>>config.log
15298 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15299 # would make configure fail if this is the last instruction.
15300 $ac_cs_success || { (exit 1); exit 1; }
15301 fi
15302
15303 exit 0