]> The Tcpdump Group git mirrors - libpcap/blob - configure
Handle all protocol qualifiers in gen_host6().
[libpcap] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pcap 1.10.0-PRE-GIT.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='pcap'
579 PACKAGE_TARNAME='pcap'
580 PACKAGE_VERSION='1.10.0-PRE-GIT'
581 PACKAGE_STRING='pcap 1.10.0-PRE-GIT'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="pcap.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='LTLIBOBJS
623 INSTALL_DATA
624 INSTALL_SCRIPT
625 INSTALL_PROGRAM
626 RDMA_SRC
627 PCAP_SUPPORT_RDMASNIFF
628 DBUS_SRC
629 PCAP_SUPPORT_DBUS
630 PKGCONFIG
631 BT_MONITOR_SRC
632 BT_SRC
633 PCAP_SUPPORT_BT
634 NETMAP_SRC
635 PCAP_SUPPORT_NETMAP
636 NETFILTER_SRC
637 PCAP_SUPPORT_NETFILTER
638 USB_SRC
639 PCAP_SUPPORT_USB
640 EXTRA_NETWORK_LIBS
641 RPCAPD_LIBS
642 INSTALL_RPCAPD
643 BUILD_RPCAPD
644 PTHREAD_LIBS
645 MAN_ADMIN_COMMANDS
646 MAN_MISC_INFO
647 MAN_FILE_FORMATS
648 MAN_DEVICES
649 DYEXT
650 SSRC
651 ADDLARCHIVEOBJS
652 ADDLOBJS
653 V_YACC
654 V_RPATH_OPT
655 V_SONAME_OPT
656 V_SHLIB_OPT
657 V_SHLIB_CMD
658 V_SHLIB_CCOPT
659 V_PCAP
660 V_LEX
661 V_INCLS
662 V_FINDALLDEVS
663 V_DEFS
664 V_PROG_LDFLAGS_FAT
665 V_PROG_CCOPT_FAT
666 V_LIB_LDFLAGS_FAT
667 V_LIB_CCOPT_FAT
668 V_CCOPT
669 MKDEP
670 DEPENDENCY_CFLAG
671 LN_S
672 AR
673 RANLIB
674 YFLAGS
675 YACC
676 LEXLIB
677 LEX_OUTPUT_ROOT
678 LEX
679 PCAP_SUPPORT_PACKET_RING
680 VALGRINDTEST_SRC
681 LIBOBJS
682 EGREP
683 GREP
684 CPP
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
691 CC
692 SHLICC2
693 target_os
694 target_vendor
695 target_cpu
696 target
697 host_os
698 host_vendor
699 host_cpu
700 host
701 build_os
702 build_vendor
703 build_cpu
704 build
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files=''
744 ac_user_opts='
745 enable_option_checking
746 with_gcc
747 enable_largefile
748 enable_protochain
749 with_pcap
750 with_libnl
751 enable_packet_ring
752 enable_ipv6
753 with_dag
754 with_dag_includes
755 with_dag_libraries
756 with_septel
757 with_snf
758 with_snf_includes
759 with_snf_libraries
760 with_turbocap
761 enable_remote
762 enable_optimizer_dbg
763 enable_yydebug
764 enable_universal
765 enable_shared
766 enable_usb
767 enable_netmap
768 enable_bluetooth
769 enable_dbus
770 enable_rdma
771 '
772 ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CC
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
780 CPP
781 YACC
782 YFLAGS'
783
784
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 ac_unrecognized_opts=
789 ac_unrecognized_sep=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
792 cache_file=/dev/null
793 exec_prefix=NONE
794 no_create=
795 no_recursion=
796 prefix=NONE
797 program_prefix=NONE
798 program_suffix=NONE
799 program_transform_name=s,x,x,
800 silent=
801 site=
802 srcdir=
803 verbose=
804 x_includes=NONE
805 x_libraries=NONE
806
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
825 htmldir='${docdir}'
826 dvidir='${docdir}'
827 pdfdir='${docdir}'
828 psdir='${docdir}'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
832
833 ac_prev=
834 ac_dashdash=
835 for ac_option
836 do
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
840 ac_prev=
841 continue
842 fi
843
844 case $ac_option in
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *=) ac_optarg= ;;
847 *) ac_optarg=yes ;;
848 esac
849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
860
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
875
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
880
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
913
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
1133
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
1149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 ;;
1189
1190 esac
1191 done
1192
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $? "missing argument to $ac_option"
1196 fi
1197
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1204 fi
1205
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1211 do
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
1220 case $ac_val in
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 esac
1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
1284 srcdir=$ac_confdir
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 srcdir=..
1287 fi
1288 else
1289 ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures pcap 1.10.0-PRE-GIT to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/pcap]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1377
1378 cat <<\_ACEOF
1379
1380 System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1384 _ACEOF
1385 fi
1386
1387 if test -n "$ac_init_help"; then
1388 case $ac_init_help in
1389 short | recursive ) echo "Configuration of pcap 1.10.0-PRE-GIT:";;
1390 esac
1391 cat <<\_ACEOF
1392
1393 Optional Features:
1394 --disable-option-checking ignore unrecognized --enable/--with options
1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1397 --disable-largefile omit support for large files
1398 --disable-protochain disable \"protochain\" insn
1399 --enable-packet-ring enable packet ring support on Linux [default=yes]
1400 --enable-ipv6 build IPv6-capable version [default=yes]
1401 --enable-remote enable remote packet capture [default=no]
1402 --disable-remote disable remote packet capture
1403 --enable-optimizer-dbg build optimizer debugging code
1404 --enable-yydebug build parser debugging code
1405 --disable-universal don't build universal on macOS
1406 --enable-shared build shared libraries [default=yes, if support
1407 available]
1408 --enable-usb enable USB capture support [default=yes, if support
1409 available]
1410 --enable-netmap enable netmap support [default=yes, if support
1411 available]
1412 --enable-bluetooth enable Bluetooth support [default=yes, if support
1413 available]
1414 --enable-dbus enable D-Bus capture support [default=yes, if
1415 support available]
1416 --enable-rdma enable RDMA capture support [default=yes, if support
1417 available]
1418
1419 Optional Packages:
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422 --without-gcc don't use gcc
1423 --with-pcap=TYPE use packet capture TYPE
1424 --without-libnl disable libnl support [default=yes, on Linux, if
1425 present]
1426 --with-dag[=DIR] include Endace DAG support (located in directory
1427 DIR, if supplied). [default=yes, if present]
1428 --with-dag-includes=IDIR
1429 Endace DAG include directory, if not DIR/include
1430 --with-dag-libraries=LDIR
1431 Endace DAG library directory, if not DIR/lib
1432 --with-septel[=DIR] include Septel support (located in directory DIR, if
1433 supplied). [default=yes, if present]
1434 --with-snf[=DIR] include Myricom SNF support (located in directory
1435 DIR, if supplied). [default=yes, if present]
1436 --with-snf-includes=IDIR
1437 Myricom SNF include directory, if not DIR/include
1438 --with-snf-libraries=LDIR
1439 Myricom SNF library directory, if not DIR/lib
1440 --with-turbocap[=DIR] include Riverbed TurboCap support (located in
1441 directory DIR, if supplied). [default=yes, if
1442 present]
1443
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 CPP C preprocessor
1453 YACC The `Yet Another Compiler Compiler' implementation to use.
1454 Defaults to the first program found out of: `bison -y', `byacc',
1455 `yacc'.
1456 YFLAGS The list of arguments that will be passed by default to $YACC.
1457 This script will default YFLAGS to the empty string to avoid a
1458 default value of `-d' given by some make applications.
1459
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1462
1463 Report bugs to the package provider.
1464 _ACEOF
1465 ac_status=$?
1466 fi
1467
1468 if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473 continue
1474 ac_builddir=.
1475
1476 case "$ac_dir" in
1477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *)
1479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 esac ;;
1486 esac
1487 ac_abs_top_builddir=$ac_pwd
1488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489 # for backward compatibility:
1490 ac_top_builddir=$ac_top_build_prefix
1491
1492 case $srcdir in
1493 .) # We are building in place.
1494 ac_srcdir=.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1501 *) # Relative name.
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 esac
1506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for guested configure.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1516 else
1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 fi || ac_status=$?
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1520 done
1521 fi
1522
1523 test -n "$ac_init_help" && exit $ac_status
1524 if $ac_init_version; then
1525 cat <<\_ACEOF
1526 pcap configure 1.10.0-PRE-GIT
1527 generated by GNU Autoconf 2.69
1528
1529 Copyright (C) 2012 Free Software Foundation, Inc.
1530 This configure script is free software; the Free Software Foundation
1531 gives unlimited permission to copy, distribute and modify it.
1532 _ACEOF
1533 exit
1534 fi
1535
1536 ## ------------------------ ##
1537 ## Autoconf initialization. ##
1538 ## ------------------------ ##
1539
1540 # ac_fn_c_try_compile LINENO
1541 # --------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_compile ()
1544 {
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1548 case "(($ac_try" in
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1551 esac
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1555 ac_status=$?
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1560 fi
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1566 ac_retval=0
1567 else
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572 fi
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1575
1576 } # ac_fn_c_try_compile
1577
1578 # ac_fn_c_try_link LINENO
1579 # -----------------------
1580 # Try to link conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_link ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext conftest$ac_exeext
1585 if { { ac_try="$ac_link"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_link") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest$ac_exeext && {
1604 test "$cross_compiling" = yes ||
1605 test -x conftest$ac_exeext
1606 }; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1615 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1616 # interfere with the next link command; also delete a directory that is
1617 # left behind by Apple's compiler. We do this before executing the actions.
1618 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_link
1623
1624 # ac_fn_c_try_cpp LINENO
1625 # ----------------------
1626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_cpp ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_cpp conftest.$ac_ext"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } > conftest.i && {
1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 }; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655 fi
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_cpp
1660
1661 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1664 # the include files in INCLUDES and setting the cache variable VAR
1665 # accordingly.
1666 ac_fn_c_check_header_mongrel ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if eval \${$3+:} false; then :
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1674 fi
1675 eval ac_res=\$$3
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678 else
1679 # Is the header compilable?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1681 $as_echo_n "checking $2 usability... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1684 $4
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_compile "$LINENO"; then :
1688 ac_header_compiler=yes
1689 else
1690 ac_header_compiler=no
1691 fi
1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1694 $as_echo "$ac_header_compiler" >&6; }
1695
1696 # Is the header present?
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1698 $as_echo_n "checking $2 presence... " >&6; }
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1701 #include <$2>
1702 _ACEOF
1703 if ac_fn_c_try_cpp "$LINENO"; then :
1704 ac_header_preproc=yes
1705 else
1706 ac_header_preproc=no
1707 fi
1708 rm -f conftest.err conftest.i conftest.$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1710 $as_echo "$ac_header_preproc" >&6; }
1711
1712 # So? What about this header?
1713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1714 yes:no: )
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1716 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1719 ;;
1720 no:yes:* )
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1722 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1724 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1726 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1728 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1730 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1731 ;;
1732 esac
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1737 else
1738 eval "$3=\$ac_header_compiler"
1739 fi
1740 eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 $as_echo "$ac_res" >&6; }
1743 fi
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746 } # ac_fn_c_check_header_mongrel
1747
1748 # ac_fn_c_try_run LINENO
1749 # ----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751 # that executables *can* be run.
1752 ac_fn_c_try_run ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_link"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>&5
1763 ac_status=$?
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766 { { case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_try") 2>&5
1773 ac_status=$?
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; }; }; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: program exited with status $ac_status" >&5
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782 ac_retval=$ac_status
1783 fi
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1787
1788 } # ac_fn_c_try_run
1789
1790 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791 # -------------------------------------------------------
1792 # Tests whether HEADER exists and can be compiled using the include files in
1793 # INCLUDES, setting the cache variable VAR accordingly.
1794 ac_fn_c_check_header_compile ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1801 else
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 $4
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_compile "$LINENO"; then :
1808 eval "$3=yes"
1809 else
1810 eval "$3=no"
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 fi
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818
1819 } # ac_fn_c_check_header_compile
1820
1821 # ac_fn_c_check_func LINENO FUNC VAR
1822 # ----------------------------------
1823 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1824 ac_fn_c_check_func ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 $as_echo_n "checking for $2... " >&6; }
1829 if eval \${$3+:} false; then :
1830 $as_echo_n "(cached) " >&6
1831 else
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1836 #define $2 innocuous_$2
1837
1838 /* System header to define __stub macros and hopefully few prototypes,
1839 which can conflict with char $2 (); below.
1840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1841 <limits.h> exists even on freestanding compilers. */
1842
1843 #ifdef __STDC__
1844 # include <limits.h>
1845 #else
1846 # include <assert.h>
1847 #endif
1848
1849 #undef $2
1850
1851 /* Override any GCC internal prototype to avoid an error.
1852 Use char because int might match the return type of a GCC
1853 builtin and then its argument prototype would still apply. */
1854 #ifdef __cplusplus
1855 extern "C"
1856 #endif
1857 char $2 ();
1858 /* The GNU C library defines this for functions which it implements
1859 to always fail with ENOSYS. Some functions are actually named
1860 something starting with __ and the normal name is an alias. */
1861 #if defined __stub_$2 || defined __stub___$2
1862 choke me
1863 #endif
1864
1865 int
1866 main ()
1867 {
1868 return $2 ();
1869 ;
1870 return 0;
1871 }
1872 _ACEOF
1873 if ac_fn_c_try_link "$LINENO"; then :
1874 eval "$3=yes"
1875 else
1876 eval "$3=no"
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext \
1879 conftest$ac_exeext conftest.$ac_ext
1880 fi
1881 eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886 } # ac_fn_c_check_func
1887
1888 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1889 # ---------------------------------------------
1890 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1891 # accordingly.
1892 ac_fn_c_check_decl ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 as_decl_name=`echo $2|sed 's/ *(.*//'`
1896 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1898 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $4
1905 int
1906 main ()
1907 {
1908 #ifndef $as_decl_name
1909 #ifdef __cplusplus
1910 (void) $as_decl_use;
1911 #else
1912 (void) $as_decl_name;
1913 #endif
1914 #endif
1915
1916 ;
1917 return 0;
1918 }
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 eval "$3=yes"
1922 else
1923 eval "$3=no"
1924 fi
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 fi
1927 eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931
1932 } # ac_fn_c_check_decl
1933
1934 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1935 # -------------------------------------------
1936 # Tests whether TYPE exists after having included INCLUDES, setting cache
1937 # variable VAR accordingly.
1938 ac_fn_c_check_type ()
1939 {
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944 $as_echo_n "(cached) " >&6
1945 else
1946 eval "$3=no"
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1949 $4
1950 int
1951 main ()
1952 {
1953 if (sizeof ($2))
1954 return 0;
1955 ;
1956 return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1962 $4
1963 int
1964 main ()
1965 {
1966 if (sizeof (($2)))
1967 return 0;
1968 ;
1969 return 0;
1970 }
1971 _ACEOF
1972 if ac_fn_c_try_compile "$LINENO"; then :
1973
1974 else
1975 eval "$3=yes"
1976 fi
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 fi
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 fi
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986 } # ac_fn_c_check_type
1987
1988 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1989 # ----------------------------------------------------
1990 # Tries to find if the field MEMBER exists in type AGGR, after including
1991 # INCLUDES, setting cache variable VAR accordingly.
1992 ac_fn_c_check_member ()
1993 {
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1996 $as_echo_n "checking for $2.$3... " >&6; }
1997 if eval \${$4+:} false; then :
1998 $as_echo_n "(cached) " >&6
1999 else
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 $5
2003 int
2004 main ()
2005 {
2006 static $2 ac_aggr;
2007 if (ac_aggr.$3)
2008 return 0;
2009 ;
2010 return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 eval "$4=yes"
2015 else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 $5
2019 int
2020 main ()
2021 {
2022 static $2 ac_aggr;
2023 if (sizeof ac_aggr.$3)
2024 return 0;
2025 ;
2026 return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 eval "$4=yes"
2031 else
2032 eval "$4=no"
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 fi
2038 eval ac_res=\$$4
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043 } # ac_fn_c_check_member
2044 cat >config.log <<_ACEOF
2045 This file contains any messages produced by compilers while
2046 running configure, to aid debugging if configure makes a mistake.
2047
2048 It was created by pcap $as_me 1.10.0-PRE-GIT, which was
2049 generated by GNU Autoconf 2.69. Invocation command line was
2050
2051 $ $0 $@
2052
2053 _ACEOF
2054 exec 5>>config.log
2055 {
2056 cat <<_ASUNAME
2057 ## --------- ##
2058 ## Platform. ##
2059 ## --------- ##
2060
2061 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2062 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2063 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2064 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2065 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2066
2067 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2068 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2069
2070 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2071 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2072 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2073 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2074 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2075 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2076 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2077
2078 _ASUNAME
2079
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2082 do
2083 IFS=$as_save_IFS
2084 test -z "$as_dir" && as_dir=.
2085 $as_echo "PATH: $as_dir"
2086 done
2087 IFS=$as_save_IFS
2088
2089 } >&5
2090
2091 cat >&5 <<_ACEOF
2092
2093
2094 ## ----------- ##
2095 ## Core tests. ##
2096 ## ----------- ##
2097
2098 _ACEOF
2099
2100
2101 # Keep a trace of the command line.
2102 # Strip out --no-create and --no-recursion so they do not pile up.
2103 # Strip out --silent because we don't want to record it for future runs.
2104 # Also quote any args containing shell meta-characters.
2105 # Make two passes to allow for proper duplicate-argument suppression.
2106 ac_configure_args=
2107 ac_configure_args0=
2108 ac_configure_args1=
2109 ac_must_keep_next=false
2110 for ac_pass in 1 2
2111 do
2112 for ac_arg
2113 do
2114 case $ac_arg in
2115 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2117 | -silent | --silent | --silen | --sile | --sil)
2118 continue ;;
2119 *\'*)
2120 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2121 esac
2122 case $ac_pass in
2123 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2124 2)
2125 as_fn_append ac_configure_args1 " '$ac_arg'"
2126 if test $ac_must_keep_next = true; then
2127 ac_must_keep_next=false # Got value, back to normal.
2128 else
2129 case $ac_arg in
2130 *=* | --config-cache | -C | -disable-* | --disable-* \
2131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2133 | -with-* | --with-* | -without-* | --without-* | --x)
2134 case "$ac_configure_args0 " in
2135 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2136 esac
2137 ;;
2138 -* ) ac_must_keep_next=true ;;
2139 esac
2140 fi
2141 as_fn_append ac_configure_args " '$ac_arg'"
2142 ;;
2143 esac
2144 done
2145 done
2146 { ac_configure_args0=; unset ac_configure_args0;}
2147 { ac_configure_args1=; unset ac_configure_args1;}
2148
2149 # When interrupted or exit'd, cleanup temporary files, and complete
2150 # config.log. We remove comments because anyway the quotes in there
2151 # would cause problems or look ugly.
2152 # WARNING: Use '\'' to represent an apostrophe within the trap.
2153 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2154 trap 'exit_status=$?
2155 # Save into config.log some information that might help in debugging.
2156 {
2157 echo
2158
2159 $as_echo "## ---------------- ##
2160 ## Cache variables. ##
2161 ## ---------------- ##"
2162 echo
2163 # The following way of writing the cache mishandles newlines in values,
2164 (
2165 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2166 eval ac_val=\$$ac_var
2167 case $ac_val in #(
2168 *${as_nl}*)
2169 case $ac_var in #(
2170 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2171 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2172 esac
2173 case $ac_var in #(
2174 _ | IFS | as_nl) ;; #(
2175 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2176 *) { eval $ac_var=; unset $ac_var;} ;;
2177 esac ;;
2178 esac
2179 done
2180 (set) 2>&1 |
2181 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2182 *${as_nl}ac_space=\ *)
2183 sed -n \
2184 "s/'\''/'\''\\\\'\'''\''/g;
2185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2186 ;; #(
2187 *)
2188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2189 ;;
2190 esac |
2191 sort
2192 )
2193 echo
2194
2195 $as_echo "## ----------------- ##
2196 ## Output variables. ##
2197 ## ----------------- ##"
2198 echo
2199 for ac_var in $ac_subst_vars
2200 do
2201 eval ac_val=\$$ac_var
2202 case $ac_val in
2203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204 esac
2205 $as_echo "$ac_var='\''$ac_val'\''"
2206 done | sort
2207 echo
2208
2209 if test -n "$ac_subst_files"; then
2210 $as_echo "## ------------------- ##
2211 ## File substitutions. ##
2212 ## ------------------- ##"
2213 echo
2214 for ac_var in $ac_subst_files
2215 do
2216 eval ac_val=\$$ac_var
2217 case $ac_val in
2218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219 esac
2220 $as_echo "$ac_var='\''$ac_val'\''"
2221 done | sort
2222 echo
2223 fi
2224
2225 if test -s confdefs.h; then
2226 $as_echo "## ----------- ##
2227 ## confdefs.h. ##
2228 ## ----------- ##"
2229 echo
2230 cat confdefs.h
2231 echo
2232 fi
2233 test "$ac_signal" != 0 &&
2234 $as_echo "$as_me: caught signal $ac_signal"
2235 $as_echo "$as_me: exit $exit_status"
2236 } >&5
2237 rm -f core *.core core.conftest.* &&
2238 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2239 exit $exit_status
2240 ' 0
2241 for ac_signal in 1 2 13 15; do
2242 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2243 done
2244 ac_signal=0
2245
2246 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2247 rm -f -r conftest* confdefs.h
2248
2249 $as_echo "/* confdefs.h */" > confdefs.h
2250
2251 # Predefined preprocessor variables.
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_NAME "$PACKAGE_NAME"
2255 _ACEOF
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2259 _ACEOF
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2263 _ACEOF
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_STRING "$PACKAGE_STRING"
2267 _ACEOF
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_URL "$PACKAGE_URL"
2275 _ACEOF
2276
2277
2278 # Let the site file select an alternate cache file if it wants to.
2279 # Prefer an explicitly selected file to automatically selected ones.
2280 ac_site_file1=NONE
2281 ac_site_file2=NONE
2282 if test -n "$CONFIG_SITE"; then
2283 # We do not want a PATH search for config.site.
2284 case $CONFIG_SITE in #((
2285 -*) ac_site_file1=./$CONFIG_SITE;;
2286 */*) ac_site_file1=$CONFIG_SITE;;
2287 *) ac_site_file1=./$CONFIG_SITE;;
2288 esac
2289 elif test "x$prefix" != xNONE; then
2290 ac_site_file1=$prefix/share/config.site
2291 ac_site_file2=$prefix/etc/config.site
2292 else
2293 ac_site_file1=$ac_default_prefix/share/config.site
2294 ac_site_file2=$ac_default_prefix/etc/config.site
2295 fi
2296 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2297 do
2298 test "x$ac_site_file" = xNONE && continue
2299 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2301 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2302 sed 's/^/| /' "$ac_site_file" >&5
2303 . "$ac_site_file" \
2304 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306 as_fn_error $? "failed to load site script $ac_site_file
2307 See \`config.log' for more details" "$LINENO" 5; }
2308 fi
2309 done
2310
2311 if test -r "$cache_file"; then
2312 # Some versions of bash will fail to source /dev/null (special files
2313 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2314 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2316 $as_echo "$as_me: loading cache $cache_file" >&6;}
2317 case $cache_file in
2318 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2319 *) . "./$cache_file";;
2320 esac
2321 fi
2322 else
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2324 $as_echo "$as_me: creating cache $cache_file" >&6;}
2325 >$cache_file
2326 fi
2327
2328 # Check that the precious variables saved in the cache have kept the same
2329 # value.
2330 ac_cache_corrupted=false
2331 for ac_var in $ac_precious_vars; do
2332 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2333 eval ac_new_set=\$ac_env_${ac_var}_set
2334 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2335 eval ac_new_val=\$ac_env_${ac_var}_value
2336 case $ac_old_set,$ac_new_set in
2337 set,)
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2339 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2340 ac_cache_corrupted=: ;;
2341 ,set)
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2343 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2344 ac_cache_corrupted=: ;;
2345 ,);;
2346 *)
2347 if test "x$ac_old_val" != "x$ac_new_val"; then
2348 # differences in whitespace do not lead to failure.
2349 ac_old_val_w=`echo x $ac_old_val`
2350 ac_new_val_w=`echo x $ac_new_val`
2351 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2353 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2354 ac_cache_corrupted=:
2355 else
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2357 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2358 eval $ac_var=\$ac_old_val
2359 fi
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2361 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2363 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2364 fi;;
2365 esac
2366 # Pass precious variables to config.status.
2367 if test "$ac_new_set" = set; then
2368 case $ac_new_val in
2369 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2370 *) ac_arg=$ac_var=$ac_new_val ;;
2371 esac
2372 case " $ac_configure_args " in
2373 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2374 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2375 esac
2376 fi
2377 done
2378 if $ac_cache_corrupted; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2382 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2383 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2384 fi
2385 ## -------------------- ##
2386 ## Main body of script. ##
2387 ## -------------------- ##
2388
2389 ac_ext=c
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394
2395
2396
2397
2398
2399 ac_aux_dir=
2400 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2401 if test -f "$ac_dir/install-sh"; then
2402 ac_aux_dir=$ac_dir
2403 ac_install_sh="$ac_aux_dir/install-sh -c"
2404 break
2405 elif test -f "$ac_dir/install.sh"; then
2406 ac_aux_dir=$ac_dir
2407 ac_install_sh="$ac_aux_dir/install.sh -c"
2408 break
2409 elif test -f "$ac_dir/shtool"; then
2410 ac_aux_dir=$ac_dir
2411 ac_install_sh="$ac_aux_dir/shtool install -c"
2412 break
2413 fi
2414 done
2415 if test -z "$ac_aux_dir"; then
2416 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2417 fi
2418
2419 # These three variables are undocumented and unsupported,
2420 # and are intended to be withdrawn in a future Autoconf release.
2421 # They can cause serious problems if a builder's source tree is in a directory
2422 # whose full name contains unusual characters.
2423 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2424 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2425 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2426
2427
2428 # Make sure we can run config.sub.
2429 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2430 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2431
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2433 $as_echo_n "checking build system type... " >&6; }
2434 if ${ac_cv_build+:} false; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 ac_build_alias=$build_alias
2438 test "x$ac_build_alias" = x &&
2439 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2440 test "x$ac_build_alias" = x &&
2441 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2442 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2444
2445 fi
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2447 $as_echo "$ac_cv_build" >&6; }
2448 case $ac_cv_build in
2449 *-*-*) ;;
2450 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2451 esac
2452 build=$ac_cv_build
2453 ac_save_IFS=$IFS; IFS='-'
2454 set x $ac_cv_build
2455 shift
2456 build_cpu=$1
2457 build_vendor=$2
2458 shift; shift
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2461 build_os=$*
2462 IFS=$ac_save_IFS
2463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2464
2465
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2467 $as_echo_n "checking host system type... " >&6; }
2468 if ${ac_cv_host+:} false; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 if test "x$host_alias" = x; then
2472 ac_cv_host=$ac_cv_build
2473 else
2474 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2475 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2476 fi
2477
2478 fi
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2480 $as_echo "$ac_cv_host" >&6; }
2481 case $ac_cv_host in
2482 *-*-*) ;;
2483 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2484 esac
2485 host=$ac_cv_host
2486 ac_save_IFS=$IFS; IFS='-'
2487 set x $ac_cv_host
2488 shift
2489 host_cpu=$1
2490 host_vendor=$2
2491 shift; shift
2492 # Remember, the first character of IFS is used to create $*,
2493 # except with old shells:
2494 host_os=$*
2495 IFS=$ac_save_IFS
2496 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2497
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2500 $as_echo_n "checking target system type... " >&6; }
2501 if ${ac_cv_target+:} false; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test "x$target_alias" = x; then
2505 ac_cv_target=$ac_cv_host
2506 else
2507 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2508 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2509 fi
2510
2511 fi
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2513 $as_echo "$ac_cv_target" >&6; }
2514 case $ac_cv_target in
2515 *-*-*) ;;
2516 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2517 esac
2518 target=$ac_cv_target
2519 ac_save_IFS=$IFS; IFS='-'
2520 set x $ac_cv_target
2521 shift
2522 target_cpu=$1
2523 target_vendor=$2
2524 shift; shift
2525 # Remember, the first character of IFS is used to create $*,
2526 # except with old shells:
2527 target_os=$*
2528 IFS=$ac_save_IFS
2529 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2530
2531
2532 # The aliases save the names the user supplied, while $host etc.
2533 # will get canonicalized.
2534 test -n "$target_alias" &&
2535 test "$program_prefix$program_suffix$program_transform_name" = \
2536 NONENONEs,x,x, &&
2537 program_prefix=${target_alias}-
2538
2539
2540
2541
2542
2543
2544
2545
2546 # Check whether --with-gcc was given.
2547 if test "${with_gcc+set}" = set; then :
2548 withval=$with_gcc;
2549 fi
2550
2551 V_CCOPT=""
2552 if test "${srcdir}" != "." ; then
2553 V_CCOPT="-I\$(srcdir)"
2554 fi
2555 if test "${CFLAGS+set}" = set; then
2556 LBL_CFLAGS="$CFLAGS"
2557 fi
2558 if test -z "$CC" ; then
2559 case "$host_os" in
2560
2561 bsdi*)
2562 # Extract the first word of "shlicc2", so it can be a program name with args.
2563 set dummy shlicc2; ac_word=$2
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if ${ac_cv_prog_SHLICC2+:} false; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 if test -n "$SHLICC2"; then
2570 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2579 ac_cv_prog_SHLICC2="yes"
2580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2582 fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2588 fi
2589 fi
2590 SHLICC2=$ac_cv_prog_SHLICC2
2591 if test -n "$SHLICC2"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2593 $as_echo "$SHLICC2" >&6; }
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2597 fi
2598
2599
2600 if test $SHLICC2 = yes ; then
2601 CC=shlicc2
2602 export CC
2603 fi
2604 ;;
2605 esac
2606 fi
2607 if test -z "$CC" -a "$with_gcc" = no ; then
2608 CC=cc
2609 export CC
2610 fi
2611
2612 #
2613 # Try to enable as many C99 features as we can.
2614 # At minimum, we want C++/C99-style // comments.
2615 #
2616 ac_ext=c
2617 ac_cpp='$CPP $CPPFLAGS'
2618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621 if test -n "$ac_tool_prefix"; then
2622 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2623 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if ${ac_cv_prog_CC+:} false; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 if test -n "$CC"; then
2630 ac_cv_prog_CC="$CC" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2642 fi
2643 done
2644 done
2645 IFS=$as_save_IFS
2646
2647 fi
2648 fi
2649 CC=$ac_cv_prog_CC
2650 if test -n "$CC"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2652 $as_echo "$CC" >&6; }
2653 else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655 $as_echo "no" >&6; }
2656 fi
2657
2658
2659 fi
2660 if test -z "$ac_cv_prog_CC"; then
2661 ac_ct_CC=$CC
2662 # Extract the first word of "gcc", so it can be a program name with args.
2663 set dummy gcc; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$ac_ct_CC"; then
2670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679 ac_cv_prog_ac_ct_CC="gcc"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2690 if test -n "$ac_ct_CC"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2692 $as_echo "$ac_ct_CC" >&6; }
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698 if test "x$ac_ct_CC" = x; then
2699 CC=""
2700 else
2701 case $cross_compiling:$ac_tool_warned in
2702 yes:)
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705 ac_tool_warned=yes ;;
2706 esac
2707 CC=$ac_ct_CC
2708 fi
2709 else
2710 CC="$ac_cv_prog_CC"
2711 fi
2712
2713 if test -z "$CC"; then
2714 if test -n "$ac_tool_prefix"; then
2715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2716 set dummy ${ac_tool_prefix}cc; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_CC+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC="$CC" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_CC="${ac_tool_prefix}cc"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2735 fi
2736 done
2737 done
2738 IFS=$as_save_IFS
2739
2740 fi
2741 fi
2742 CC=$ac_cv_prog_CC
2743 if test -n "$CC"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2745 $as_echo "$CC" >&6; }
2746 else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2749 fi
2750
2751
2752 fi
2753 fi
2754 if test -z "$CC"; then
2755 # Extract the first word of "cc", so it can be a program name with args.
2756 set dummy cc; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_CC+:} false; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 if test -n "$CC"; then
2763 ac_cv_prog_CC="$CC" # Let the user override the test.
2764 else
2765 ac_prog_rejected=no
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2774 ac_prog_rejected=yes
2775 continue
2776 fi
2777 ac_cv_prog_CC="cc"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781 done
2782 done
2783 IFS=$as_save_IFS
2784
2785 if test $ac_prog_rejected = yes; then
2786 # We found a bogon in the path, so make sure we never use it.
2787 set dummy $ac_cv_prog_CC
2788 shift
2789 if test $# != 0; then
2790 # We chose a different compiler from the bogus one.
2791 # However, it has the same basename, so the bogon will be chosen
2792 # first if we set CC to just the basename; use the full file name.
2793 shift
2794 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2795 fi
2796 fi
2797 fi
2798 fi
2799 CC=$ac_cv_prog_CC
2800 if test -n "$CC"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2802 $as_echo "$CC" >&6; }
2803 else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808
2809 fi
2810 if test -z "$CC"; then
2811 if test -n "$ac_tool_prefix"; then
2812 for ac_prog in cl.exe
2813 do
2814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_CC+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test -n "$CC"; then
2822 ac_cv_prog_CC="$CC" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 CC=$ac_cv_prog_CC
2842 if test -n "$CC"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2844 $as_echo "$CC" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2848 fi
2849
2850
2851 test -n "$CC" && break
2852 done
2853 fi
2854 if test -z "$CC"; then
2855 ac_ct_CC=$CC
2856 for ac_prog in cl.exe
2857 do
2858 # Extract the first word of "$ac_prog", so it can be a program name with args.
2859 set dummy $ac_prog; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 if test -n "$ac_ct_CC"; then
2866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_ac_ct_CC="$ac_prog"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2878 fi
2879 done
2880 done
2881 IFS=$as_save_IFS
2882
2883 fi
2884 fi
2885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2886 if test -n "$ac_ct_CC"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2888 $as_echo "$ac_ct_CC" >&6; }
2889 else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2892 fi
2893
2894
2895 test -n "$ac_ct_CC" && break
2896 done
2897
2898 if test "x$ac_ct_CC" = x; then
2899 CC=""
2900 else
2901 case $cross_compiling:$ac_tool_warned in
2902 yes:)
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2905 ac_tool_warned=yes ;;
2906 esac
2907 CC=$ac_ct_CC
2908 fi
2909 fi
2910
2911 fi
2912
2913
2914 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2916 as_fn_error $? "no acceptable C compiler found in \$PATH
2917 See \`config.log' for more details" "$LINENO" 5; }
2918
2919 # Provide some information about the compiler.
2920 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2921 set X $ac_compile
2922 ac_compiler=$2
2923 for ac_option in --version -v -V -qversion; do
2924 { { ac_try="$ac_compiler $ac_option >&5"
2925 case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928 esac
2929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930 $as_echo "$ac_try_echo"; } >&5
2931 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2932 ac_status=$?
2933 if test -s conftest.err; then
2934 sed '10a\
2935 ... rest of stderr output deleted ...
2936 10q' conftest.err >conftest.er1
2937 cat conftest.er1 >&5
2938 fi
2939 rm -f conftest.er1 conftest.err
2940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2941 test $ac_status = 0; }
2942 done
2943
2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945 /* end confdefs.h. */
2946
2947 int
2948 main ()
2949 {
2950
2951 ;
2952 return 0;
2953 }
2954 _ACEOF
2955 ac_clean_files_save=$ac_clean_files
2956 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2957 # Try to create an executable without -o first, disregard a.out.
2958 # It will help us diagnose broken compilers, and finding out an intuition
2959 # of exeext.
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2961 $as_echo_n "checking whether the C compiler works... " >&6; }
2962 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2963
2964 # The possible output files:
2965 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2966
2967 ac_rmfiles=
2968 for ac_file in $ac_files
2969 do
2970 case $ac_file in
2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2972 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2973 esac
2974 done
2975 rm -f $ac_rmfiles
2976
2977 if { { ac_try="$ac_link_default"
2978 case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983 $as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_link_default") 2>&5
2985 ac_status=$?
2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987 test $ac_status = 0; }; then :
2988 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2989 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2990 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2991 # so that the user can short-circuit this test for compilers unknown to
2992 # Autoconf.
2993 for ac_file in $ac_files ''
2994 do
2995 test -f "$ac_file" || continue
2996 case $ac_file in
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2998 ;;
2999 [ab].out )
3000 # We found the default executable, but exeext='' is most
3001 # certainly right.
3002 break;;
3003 *.* )
3004 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3005 then :; else
3006 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3007 fi
3008 # We set ac_cv_exeext here because the later test for it is not
3009 # safe: cross compilers may not add the suffix if given an `-o'
3010 # argument, so we may need to know it at that point already.
3011 # Even if this section looks crufty: it has the advantage of
3012 # actually working.
3013 break;;
3014 * )
3015 break;;
3016 esac
3017 done
3018 test "$ac_cv_exeext" = no && ac_cv_exeext=
3019
3020 else
3021 ac_file=''
3022 fi
3023 if test -z "$ac_file"; then :
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3026 $as_echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3028
3029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031 as_fn_error 77 "C compiler cannot create executables
3032 See \`config.log' for more details" "$LINENO" 5; }
3033 else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3035 $as_echo "yes" >&6; }
3036 fi
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3038 $as_echo_n "checking for C compiler default output file name... " >&6; }
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3040 $as_echo "$ac_file" >&6; }
3041 ac_exeext=$ac_cv_exeext
3042
3043 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3044 ac_clean_files=$ac_clean_files_save
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3046 $as_echo_n "checking for suffix of executables... " >&6; }
3047 if { { ac_try="$ac_link"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 $as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_link") 2>&5
3055 ac_status=$?
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; then :
3058 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3059 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3060 # work properly (i.e., refer to `conftest.exe'), while it won't with
3061 # `rm'.
3062 for ac_file in conftest.exe conftest conftest.*; do
3063 test -f "$ac_file" || continue
3064 case $ac_file in
3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3067 break;;
3068 * ) break;;
3069 esac
3070 done
3071 else
3072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3075 See \`config.log' for more details" "$LINENO" 5; }
3076 fi
3077 rm -f conftest conftest$ac_cv_exeext
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3079 $as_echo "$ac_cv_exeext" >&6; }
3080
3081 rm -f conftest.$ac_ext
3082 EXEEXT=$ac_cv_exeext
3083 ac_exeext=$EXEEXT
3084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085 /* end confdefs.h. */
3086 #include <stdio.h>
3087 int
3088 main ()
3089 {
3090 FILE *f = fopen ("conftest.out", "w");
3091 return ferror (f) || fclose (f) != 0;
3092
3093 ;
3094 return 0;
3095 }
3096 _ACEOF
3097 ac_clean_files="$ac_clean_files conftest.out"
3098 # Check that the compiler produces executables we can run. If not, either
3099 # the compiler is broken, or we cross compile.
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3101 $as_echo_n "checking whether we are cross compiling... " >&6; }
3102 if test "$cross_compiling" != yes; then
3103 { { ac_try="$ac_link"
3104 case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link") 2>&5
3111 ac_status=$?
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }
3114 if { ac_try='./conftest$ac_cv_exeext'
3115 { { case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120 $as_echo "$ac_try_echo"; } >&5
3121 (eval "$ac_try") 2>&5
3122 ac_status=$?
3123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124 test $ac_status = 0; }; }; then
3125 cross_compiling=no
3126 else
3127 if test "$cross_compiling" = maybe; then
3128 cross_compiling=yes
3129 else
3130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 as_fn_error $? "cannot run C compiled programs.
3133 If you meant to cross compile, use \`--host'.
3134 See \`config.log' for more details" "$LINENO" 5; }
3135 fi
3136 fi
3137 fi
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3139 $as_echo "$cross_compiling" >&6; }
3140
3141 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3142 ac_clean_files=$ac_clean_files_save
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3144 $as_echo_n "checking for suffix of object files... " >&6; }
3145 if ${ac_cv_objext+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149 /* end confdefs.h. */
3150
3151 int
3152 main ()
3153 {
3154
3155 ;
3156 return 0;
3157 }
3158 _ACEOF
3159 rm -f conftest.o conftest.obj
3160 if { { ac_try="$ac_compile"
3161 case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166 $as_echo "$ac_try_echo"; } >&5
3167 (eval "$ac_compile") 2>&5
3168 ac_status=$?
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }; then :
3171 for ac_file in conftest.o conftest.obj conftest.*; do
3172 test -f "$ac_file" || continue;
3173 case $ac_file in
3174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3175 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3176 break;;
3177 esac
3178 done
3179 else
3180 $as_echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3182
3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error $? "cannot compute suffix of object files: cannot compile
3186 See \`config.log' for more details" "$LINENO" 5; }
3187 fi
3188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3189 fi
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3191 $as_echo "$ac_cv_objext" >&6; }
3192 OBJEXT=$ac_cv_objext
3193 ac_objext=$OBJEXT
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3195 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3196 if ${ac_cv_c_compiler_gnu+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3201
3202 int
3203 main ()
3204 {
3205 #ifndef __GNUC__
3206 choke me
3207 #endif
3208
3209 ;
3210 return 0;
3211 }
3212 _ACEOF
3213 if ac_fn_c_try_compile "$LINENO"; then :
3214 ac_compiler_gnu=yes
3215 else
3216 ac_compiler_gnu=no
3217 fi
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3220
3221 fi
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3223 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3224 if test $ac_compiler_gnu = yes; then
3225 GCC=yes
3226 else
3227 GCC=
3228 fi
3229 ac_test_CFLAGS=${CFLAGS+set}
3230 ac_save_CFLAGS=$CFLAGS
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3232 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3233 if ${ac_cv_prog_cc_g+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 ac_save_c_werror_flag=$ac_c_werror_flag
3237 ac_c_werror_flag=yes
3238 ac_cv_prog_cc_g=no
3239 CFLAGS="-g"
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3242
3243 int
3244 main ()
3245 {
3246
3247 ;
3248 return 0;
3249 }
3250 _ACEOF
3251 if ac_fn_c_try_compile "$LINENO"; then :
3252 ac_cv_prog_cc_g=yes
3253 else
3254 CFLAGS=""
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3257
3258 int
3259 main ()
3260 {
3261
3262 ;
3263 return 0;
3264 }
3265 _ACEOF
3266 if ac_fn_c_try_compile "$LINENO"; then :
3267
3268 else
3269 ac_c_werror_flag=$ac_save_c_werror_flag
3270 CFLAGS="-g"
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3273
3274 int
3275 main ()
3276 {
3277
3278 ;
3279 return 0;
3280 }
3281 _ACEOF
3282 if ac_fn_c_try_compile "$LINENO"; then :
3283 ac_cv_prog_cc_g=yes
3284 fi
3285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3286 fi
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 fi
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 ac_c_werror_flag=$ac_save_c_werror_flag
3291 fi
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3293 $as_echo "$ac_cv_prog_cc_g" >&6; }
3294 if test "$ac_test_CFLAGS" = set; then
3295 CFLAGS=$ac_save_CFLAGS
3296 elif test $ac_cv_prog_cc_g = yes; then
3297 if test "$GCC" = yes; then
3298 CFLAGS="-g -O2"
3299 else
3300 CFLAGS="-g"
3301 fi
3302 else
3303 if test "$GCC" = yes; then
3304 CFLAGS="-O2"
3305 else
3306 CFLAGS=
3307 fi
3308 fi
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3310 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3311 if ${ac_cv_prog_cc_c89+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 ac_cv_prog_cc_c89=no
3315 ac_save_CC=$CC
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3318 #include <stdarg.h>
3319 #include <stdio.h>
3320 struct stat;
3321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3322 struct buf { int x; };
3323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3324 static char *e (p, i)
3325 char **p;
3326 int i;
3327 {
3328 return p[i];
3329 }
3330 static char *f (char * (*g) (char **, int), char **p, ...)
3331 {
3332 char *s;
3333 va_list v;
3334 va_start (v,p);
3335 s = g (p, va_arg (v,int));
3336 va_end (v);
3337 return s;
3338 }
3339
3340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3341 function prototypes and stuff, but not '\xHH' hex character constants.
3342 These don't provoke an error unfortunately, instead are silently treated
3343 as 'x'. The following induces an error, until -std is added to get
3344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3345 array size at least. It's necessary to write '\x00'==0 to get something
3346 that's true only with -std. */
3347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3348
3349 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3350 inside strings and character constants. */
3351 #define FOO(x) 'x'
3352 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3353
3354 int test (int i, double x);
3355 struct s1 {int (*f) (int a);};
3356 struct s2 {int (*f) (double a);};
3357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3358 int argc;
3359 char **argv;
3360 int
3361 main ()
3362 {
3363 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3370 do
3371 CC="$ac_save_CC $ac_arg"
3372 if ac_fn_c_try_compile "$LINENO"; then :
3373 ac_cv_prog_cc_c89=$ac_arg
3374 fi
3375 rm -f core conftest.err conftest.$ac_objext
3376 test "x$ac_cv_prog_cc_c89" != "xno" && break
3377 done
3378 rm -f conftest.$ac_ext
3379 CC=$ac_save_CC
3380
3381 fi
3382 # AC_CACHE_VAL
3383 case "x$ac_cv_prog_cc_c89" in
3384 x)
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3386 $as_echo "none needed" >&6; } ;;
3387 xno)
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3389 $as_echo "unsupported" >&6; } ;;
3390 *)
3391 CC="$CC $ac_cv_prog_cc_c89"
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3393 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3394 esac
3395 if test "x$ac_cv_prog_cc_c89" != xno; then :
3396
3397 fi
3398
3399 ac_ext=c
3400 ac_cpp='$CPP $CPPFLAGS'
3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3406 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3407 if ${ac_cv_prog_cc_c99+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 ac_cv_prog_cc_c99=no
3411 ac_save_CC=$CC
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3414 #include <stdarg.h>
3415 #include <stdbool.h>
3416 #include <stdlib.h>
3417 #include <wchar.h>
3418 #include <stdio.h>
3419
3420 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3421 #define debug(...) fprintf (stderr, __VA_ARGS__)
3422 #define showlist(...) puts (#__VA_ARGS__)
3423 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3424 static void
3425 test_varargs_macros (void)
3426 {
3427 int x = 1234;
3428 int y = 5678;
3429 debug ("Flag");
3430 debug ("X = %d\n", x);
3431 showlist (The first, second, and third items.);
3432 report (x>y, "x is %d but y is %d", x, y);
3433 }
3434
3435 // Check long long types.
3436 #define BIG64 18446744073709551615ull
3437 #define BIG32 4294967295ul
3438 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3439 #if !BIG_OK
3440 your preprocessor is broken;
3441 #endif
3442 #if BIG_OK
3443 #else
3444 your preprocessor is broken;
3445 #endif
3446 static long long int bignum = -9223372036854775807LL;
3447 static unsigned long long int ubignum = BIG64;
3448
3449 struct incomplete_array
3450 {
3451 int datasize;
3452 double data[];
3453 };
3454
3455 struct named_init {
3456 int number;
3457 const wchar_t *name;
3458 double average;
3459 };
3460
3461 typedef const char *ccp;
3462
3463 static inline int
3464 test_restrict (ccp restrict text)
3465 {
3466 // See if C++-style comments work.
3467 // Iterate through items via the restricted pointer.
3468 // Also check for declarations in for loops.
3469 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3470 continue;
3471 return 0;
3472 }
3473
3474 // Check varargs and va_copy.
3475 static void
3476 test_varargs (const char *format, ...)
3477 {
3478 va_list args;
3479 va_start (args, format);
3480 va_list args_copy;
3481 va_copy (args_copy, args);
3482
3483 const char *str;
3484 int number;
3485 float fnumber;
3486
3487 while (*format)
3488 {
3489 switch (*format++)
3490 {
3491 case 's': // string
3492 str = va_arg (args_copy, const char *);
3493 break;
3494 case 'd': // int
3495 number = va_arg (args_copy, int);
3496 break;
3497 case 'f': // float
3498 fnumber = va_arg (args_copy, double);
3499 break;
3500 default:
3501 break;
3502 }
3503 }
3504 va_end (args_copy);
3505 va_end (args);
3506 }
3507
3508 int
3509 main ()
3510 {
3511
3512 // Check bool.
3513 _Bool success = false;
3514
3515 // Check restrict.
3516 if (test_restrict ("String literal") == 0)
3517 success = true;
3518 char *restrict newvar = "Another string";
3519
3520 // Check varargs.
3521 test_varargs ("s, d' f .", "string", 65, 34.234);
3522 test_varargs_macros ();
3523
3524 // Check flexible array members.
3525 struct incomplete_array *ia =
3526 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3527 ia->datasize = 10;
3528 for (int i = 0; i < ia->datasize; ++i)
3529 ia->data[i] = i * 1.234;
3530
3531 // Check named initializers.
3532 struct named_init ni = {
3533 .number = 34,
3534 .name = L"Test wide string",
3535 .average = 543.34343,
3536 };
3537
3538 ni.number = 58;
3539
3540 int dynamic_array[ni.number];
3541 dynamic_array[ni.number - 1] = 543;
3542
3543 // work around unused variable warnings
3544 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3545 || dynamic_array[ni.number - 1] != 543);
3546
3547 ;
3548 return 0;
3549 }
3550 _ACEOF
3551 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3552 do
3553 CC="$ac_save_CC $ac_arg"
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555 ac_cv_prog_cc_c99=$ac_arg
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext
3558 test "x$ac_cv_prog_cc_c99" != "xno" && break
3559 done
3560 rm -f conftest.$ac_ext
3561 CC=$ac_save_CC
3562
3563 fi
3564 # AC_CACHE_VAL
3565 case "x$ac_cv_prog_cc_c99" in
3566 x)
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3568 $as_echo "none needed" >&6; } ;;
3569 xno)
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3571 $as_echo "unsupported" >&6; } ;;
3572 *)
3573 CC="$CC $ac_cv_prog_cc_c99"
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3575 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3576 esac
3577 if test "x$ac_cv_prog_cc_c99" != xno; then :
3578
3579 fi
3580
3581
3582 if test "$ac_cv_prog_cc_c99" = "no"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The C compiler does not support C99; there may be compiler errors" >&5
3584 $as_echo "$as_me: WARNING: The C compiler does not support C99; there may be compiler errors" >&2;}
3585 fi
3586
3587
3588
3589
3590
3591 if test "$GCC" = yes ; then
3592 #
3593 # -Werror forces warnings to be errors.
3594 #
3595 ac_lbl_cc_force_warning_errors=-Werror
3596
3597 #
3598 # Try to have the compiler default to hiding symbols,
3599 # so that only symbols explicitly exported with
3600 # PCAP_API will be visible outside (shared) libraries.
3601 #
3602
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3604 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3605 save_CFLAGS="$CFLAGS"
3606 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3607 then
3608 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3609 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3610 then
3611 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3612 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3613 then
3614 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3615 else
3616 CFLAGS="$CFLAGS -fvisibility=hidden"
3617 fi
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620
3621 int
3622 main ()
3623 {
3624 return 0
3625 ;
3626 return 0;
3627 }
3628 _ACEOF
3629 if ac_fn_c_try_compile "$LINENO"; then :
3630
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3632 $as_echo "yes" >&6; }
3633 can_add_to_cflags=yes
3634 #
3635 # The compile supports this; do we have some C code for
3636 # which the warning should *not* appear?
3637 # We test the fourth argument because the third argument
3638 # could contain quotes, breaking the test.
3639 #
3640 if test "x" != "x"
3641 then
3642 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3644 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647
3648 _ACEOF
3649 if ac_fn_c_try_compile "$LINENO"; then :
3650
3651 #
3652 # Not a problem.
3653 #
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3656
3657 else
3658
3659 #
3660 # A problem.
3661 #
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3663 $as_echo "yes" >&6; }
3664 can_add_to_cflags=no
3665
3666 fi
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 fi
3669 CFLAGS="$save_CFLAGS"
3670 if test x"$can_add_to_cflags" = "xyes"
3671 then
3672 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3673 fi
3674
3675 else
3676
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 CFLAGS="$save_CFLAGS"
3680
3681 fi
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683
3684 else
3685 V_INCLS="$V_INCLS -I/usr/local/include"
3686 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3687
3688 case "$host_os" in
3689
3690 darwin*)
3691 #
3692 # This is assumed either to be GCC or clang, both
3693 # of which use -Werror to force warnings to be errors.
3694 #
3695 ac_lbl_cc_force_warning_errors=-Werror
3696
3697 #
3698 # Try to have the compiler default to hiding symbols,
3699 # so that only symbols explicitly exported with
3700 # PCAP_API will be visible outside (shared) libraries.
3701 #
3702
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3704 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3705 save_CFLAGS="$CFLAGS"
3706 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3707 then
3708 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3709 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3710 then
3711 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3712 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3713 then
3714 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3715 else
3716 CFLAGS="$CFLAGS -fvisibility=hidden"
3717 fi
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3720
3721 int
3722 main ()
3723 {
3724 return 0
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3732 $as_echo "yes" >&6; }
3733 can_add_to_cflags=yes
3734 #
3735 # The compile supports this; do we have some C code for
3736 # which the warning should *not* appear?
3737 # We test the fourth argument because the third argument
3738 # could contain quotes, breaking the test.
3739 #
3740 if test "x" != "x"
3741 then
3742 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3744 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747
3748 _ACEOF
3749 if ac_fn_c_try_compile "$LINENO"; then :
3750
3751 #
3752 # Not a problem.
3753 #
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756
3757 else
3758
3759 #
3760 # A problem.
3761 #
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3763 $as_echo "yes" >&6; }
3764 can_add_to_cflags=no
3765
3766 fi
3767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 fi
3769 CFLAGS="$save_CFLAGS"
3770 if test x"$can_add_to_cflags" = "xyes"
3771 then
3772 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3773 fi
3774
3775 else
3776
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3779 CFLAGS="$save_CFLAGS"
3780
3781 fi
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783
3784 ;;
3785
3786 hpux*)
3787 #
3788 # HP C, which is what we presume we're using, doesn't
3789 # exit with a non-zero exit status if we hand it an
3790 # invalid -W flag, can't be forced to do so even with
3791 # +We, and doesn't handle GCC-style -W flags, so we
3792 # don't want to try using GCC-style -W flags.
3793 #
3794 ac_lbl_cc_dont_try_gcc_dashW=yes
3795 ;;
3796
3797 irix*)
3798 #
3799 # MIPS C, which is what we presume we're using, doesn't
3800 # necessarily exit with a non-zero exit status if we
3801 # hand it an invalid -W flag, can't be forced to do
3802 # so, and doesn't handle GCC-style -W flags, so we
3803 # don't want to try using GCC-style -W flags.
3804 #
3805 ac_lbl_cc_dont_try_gcc_dashW=yes
3806 #
3807 # It also, apparently, defaults to "char" being
3808 # unsigned, unlike most other C implementations;
3809 # I suppose we could say "signed char" whenever
3810 # we want to guarantee a signed "char", but let's
3811 # just force signed chars.
3812 #
3813 # -xansi is normally the default, but the
3814 # configure script was setting it; perhaps -cckr
3815 # was the default in the Old Days. (Then again,
3816 # that would probably be for backwards compatibility
3817 # in the days when ANSI C was Shiny and New, i.e.
3818 # 1989 and the early '90's, so maybe we can just
3819 # drop support for those compilers.)
3820 #
3821 # -g is equivalent to -g2, which turns off
3822 # optimization; we choose -g3, which generates
3823 # debugging information but doesn't turn off
3824 # optimization (even if the optimization would
3825 # cause inaccuracies in debugging).
3826 #
3827 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3828 ;;
3829
3830 osf*)
3831 #
3832 # Presumed to be DEC OSF/1, Digital UNIX, or
3833 # Tru64 UNIX.
3834 #
3835 # The DEC C compiler, which is what we presume we're
3836 # using, doesn't exit with a non-zero exit status if we
3837 # hand it an invalid -W flag, can't be forced to do
3838 # so, and doesn't handle GCC-style -W flags, so we
3839 # don't want to try using GCC-style -W flags.
3840 #
3841 ac_lbl_cc_dont_try_gcc_dashW=yes
3842 #
3843 # -g is equivalent to -g2, which turns off
3844 # optimization; we choose -g3, which generates
3845 # debugging information but doesn't turn off
3846 # optimization (even if the optimization would
3847 # cause inaccuracies in debugging).
3848 #
3849 V_CCOPT="$V_CCOPT -g3"
3850 ;;
3851
3852 solaris*)
3853 #
3854 # Assumed to be Sun C, which requires -errwarn to force
3855 # warnings to be treated as errors.
3856 #
3857 ac_lbl_cc_force_warning_errors=-errwarn
3858
3859 #
3860 # Try to have the compiler default to hiding symbols,
3861 # so that only symbols explicitly exported with
3862 # PCAP_API will be visible outside (shared) libraries.
3863 #
3864
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3866 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3867 save_CFLAGS="$CFLAGS"
3868 if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3869 then
3870 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3871 elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3872 then
3873 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3874 elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3875 then
3876 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3877 else
3878 CFLAGS="$CFLAGS -xldscope=hidden"
3879 fi
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3882
3883 int
3884 main ()
3885 {
3886 return 0
3887 ;
3888 return 0;
3889 }
3890 _ACEOF
3891 if ac_fn_c_try_compile "$LINENO"; then :
3892
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3894 $as_echo "yes" >&6; }
3895 can_add_to_cflags=yes
3896 #
3897 # The compile supports this; do we have some C code for
3898 # which the warning should *not* appear?
3899 # We test the fourth argument because the third argument
3900 # could contain quotes, breaking the test.
3901 #
3902 if test "x" != "x"
3903 then
3904 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -xldscope=hidden " >&5
3906 $as_echo_n "checking whether -xldscope=hidden ... " >&6; }
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3909
3910 _ACEOF
3911 if ac_fn_c_try_compile "$LINENO"; then :
3912
3913 #
3914 # Not a problem.
3915 #
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3918
3919 else
3920
3921 #
3922 # A problem.
3923 #
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3925 $as_echo "yes" >&6; }
3926 can_add_to_cflags=no
3927
3928 fi
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 fi
3931 CFLAGS="$save_CFLAGS"
3932 if test x"$can_add_to_cflags" = "xyes"
3933 then
3934 V_CCOPT="$V_CCOPT -xldscope=hidden"
3935 fi
3936
3937 else
3938
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940 $as_echo "no" >&6; }
3941 CFLAGS="$save_CFLAGS"
3942
3943 fi
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945
3946 ;;
3947
3948 ultrix*)
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3950 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3951 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956 #include <sys/types.h>
3957 int
3958 main ()
3959 {
3960 struct a { int b; };
3961 void c(const struct a *)
3962 ;
3963 return 0;
3964 }
3965 _ACEOF
3966 if ac_fn_c_try_compile "$LINENO"; then :
3967 ac_cv_lbl_cc_const_proto=yes
3968 else
3969 ac_cv_lbl_cc_const_proto=no
3970 fi
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 fi
3973
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3975 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3976 if test $ac_cv_lbl_cc_const_proto = no ; then
3977
3978 $as_echo "#define const /**/" >>confdefs.h
3979
3980 fi
3981 ;;
3982 esac
3983 V_CCOPT="$V_CCOPT -O"
3984 fi
3985
3986
3987 if test "$GCC" = yes ; then
3988 #
3989 # On platforms where we build a shared library:
3990 #
3991 # add options to generate position-independent code,
3992 # if necessary (it's the default in AIX and Darwin/macOS);
3993 #
3994 # define option to set the soname of the shared library,
3995 # if the OS supports that;
3996 #
3997 # add options to specify, at link time, a directory to
3998 # add to the run-time search path, if that's necessary.
3999 #
4000 V_SHLIB_CMD="\$(CC)"
4001 V_SHLIB_OPT="-shared"
4002 case "$host_os" in
4003
4004 aix*)
4005 ;;
4006
4007 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
4008 #
4009 # Platforms where the linker is the GNU linker
4010 # or accepts command-line arguments like
4011 # those the GNU linker accepts.
4012 #
4013 # Some instruction sets require -fPIC on some
4014 # operating systems. Check for them. If you
4015 # have a combination that requires it, add it
4016 # here.
4017 #
4018 PIC_OPT=-fpic
4019 case "$host_cpu" in
4020
4021 sparc64*)
4022 case "$host_os" in
4023
4024 freebsd*|openbsd*)
4025 PIC_OPT=-fPIC
4026 ;;
4027 esac
4028 ;;
4029 esac
4030 V_SHLIB_CCOPT="$V_SHLIB_CCOPT $PIC_OPT"
4031 V_SONAME_OPT="-Wl,-soname,"
4032 V_RPATH_OPT="-Wl,-rpath,"
4033 ;;
4034
4035 hpux*)
4036 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4037 #
4038 # XXX - this assumes GCC is using the HP linker,
4039 # rather than the GNU linker, and that the "+h"
4040 # option is used on all HP-UX platforms, both .sl
4041 # and .so.
4042 #
4043 V_SONAME_OPT="-Wl,+h,"
4044 #
4045 # By default, directories specifed with -L
4046 # are added to the run-time search path, so
4047 # we don't add them in pcap-config.
4048 #
4049 ;;
4050
4051 solaris*)
4052 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4053 #
4054 # XXX - this assumes GCC is using the Sun linker,
4055 # rather than the GNU linker.
4056 #
4057 V_SONAME_OPT="-Wl,-h,"
4058 V_RPATH_OPT="-Wl,-R,"
4059 ;;
4060 esac
4061 else
4062 #
4063 # Set the appropriate compiler flags and, on platforms
4064 # where we build a shared library:
4065 #
4066 # add options to generate position-independent code,
4067 # if necessary (it's the default in Darwin/macOS);
4068 #
4069 # if we generate ".so" shared libraries, define the
4070 # appropriate options for building the shared library;
4071 #
4072 # add options to specify, at link time, a directory to
4073 # add to the run-time search path, if that's necessary.
4074 #
4075 # Note: spaces after V_SONAME_OPT are significant; on
4076 # some platforms the soname is passed with a GCC-like
4077 # "-Wl,-soname,{soname}" option, with the soname part
4078 # of the option, while on other platforms the C compiler
4079 # driver takes it as a regular option with the soname
4080 # following the option. The same applies to V_RPATH_OPT.
4081 #
4082 case "$host_os" in
4083
4084 aix*)
4085 V_SHLIB_CMD="\$(CC)"
4086 V_SHLIB_OPT="-G -bnoentry -bexpall"
4087 ;;
4088
4089 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
4090 #
4091 # "cc" is GCC.
4092 #
4093 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4094 V_SHLIB_CMD="\$(CC)"
4095 V_SHLIB_OPT="-shared"
4096 V_SONAME_OPT="-Wl,-soname,"
4097 V_RPATH_OPT="-Wl,-rpath,"
4098 ;;
4099
4100 hpux*)
4101 V_SHLIB_CCOPT="$V_SHLIB_CCOPT +z"
4102 V_SHLIB_CMD="\$(LD)"
4103 V_SHLIB_OPT="-b"
4104 V_SONAME_OPT="+h "
4105 #
4106 # By default, directories specifed with -L
4107 # are added to the run-time search path, so
4108 # we don't add them in pcap-config.
4109 #
4110 ;;
4111
4112 osf*)
4113 #
4114 # Presumed to be DEC OSF/1, Digital UNIX, or
4115 # Tru64 UNIX.
4116 #
4117 V_SHLIB_CMD="\$(CC)"
4118 V_SHLIB_OPT="-shared"
4119 V_SONAME_OPT="-soname "
4120 V_RPATH_OPT="-rpath "
4121 ;;
4122
4123 solaris*)
4124 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -Kpic"
4125 V_SHLIB_CMD="\$(CC)"
4126 V_SHLIB_OPT="-G"
4127 V_SONAME_OPT="-h "
4128 V_RPATH_OPT="-R"
4129 ;;
4130 esac
4131 fi
4132
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4134 $as_echo_n "checking for inline... " >&6; }
4135 save_CFLAGS="$CFLAGS"
4136 CFLAGS="$V_CCOPT"
4137 if ${ac_cv_lbl_inline+:} false; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140
4141 ac_cv_lbl_inline=""
4142 ac_lbl_cc_inline=no
4143 for ac_lbl_inline in inline __inline__ __inline
4144 do
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147 #define inline $ac_lbl_inline
4148 static inline struct iltest *foo(void);
4149 struct iltest {
4150 int iltest1;
4151 int iltest2;
4152 };
4153
4154 static inline struct iltest *
4155 foo()
4156 {
4157 static struct iltest xxx;
4158
4159 return &xxx;
4160 }
4161 int
4162 main ()
4163 {
4164
4165 ;
4166 return 0;
4167 }
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_lbl_cc_inline=yes
4171 fi
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 if test "$ac_lbl_cc_inline" = yes ; then
4174 break;
4175 fi
4176 done
4177 if test "$ac_lbl_cc_inline" = yes ; then
4178 ac_cv_lbl_inline=$ac_lbl_inline
4179 fi
4180 fi
4181
4182 CFLAGS="$save_CFLAGS"
4183 if test ! -z "$ac_cv_lbl_inline" ; then
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
4185 $as_echo "$ac_cv_lbl_inline" >&6; }
4186 else
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4189 fi
4190
4191 cat >>confdefs.h <<_ACEOF
4192 #define inline $ac_cv_lbl_inline
4193 _ACEOF
4194
4195
4196 #
4197 # Try to arrange for large file support.
4198 #
4199 # Check whether --enable-largefile was given.
4200 if test "${enable_largefile+set}" = set; then :
4201 enableval=$enable_largefile;
4202 fi
4203
4204 if test "$enable_largefile" != no; then
4205
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4207 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4208 if ${ac_cv_sys_largefile_CC+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 ac_cv_sys_largefile_CC=no
4212 if test "$GCC" != yes; then
4213 ac_save_CC=$CC
4214 while :; do
4215 # IRIX 6.2 and later do not support large files by default,
4216 # so use the C compiler's -n32 option if that helps.
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <sys/types.h>
4220 /* Check that off_t can represent 2**63 - 1 correctly.
4221 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4222 since some C++ compilers masquerading as C compilers
4223 incorrectly reject 9223372036854775807. */
4224 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4226 && LARGE_OFF_T % 2147483647 == 1)
4227 ? 1 : -1];
4228 int
4229 main ()
4230 {
4231
4232 ;
4233 return 0;
4234 }
4235 _ACEOF
4236 if ac_fn_c_try_compile "$LINENO"; then :
4237 break
4238 fi
4239 rm -f core conftest.err conftest.$ac_objext
4240 CC="$CC -n32"
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_sys_largefile_CC=' -n32'; break
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext
4245 break
4246 done
4247 CC=$ac_save_CC
4248 rm -f conftest.$ac_ext
4249 fi
4250 fi
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4252 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4253 if test "$ac_cv_sys_largefile_CC" != no; then
4254 CC=$CC$ac_cv_sys_largefile_CC
4255 fi
4256
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4258 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4259 if ${ac_cv_sys_file_offset_bits+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 while :; do
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265 #include <sys/types.h>
4266 /* Check that off_t can represent 2**63 - 1 correctly.
4267 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4268 since some C++ compilers masquerading as C compilers
4269 incorrectly reject 9223372036854775807. */
4270 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4271 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4272 && LARGE_OFF_T % 2147483647 == 1)
4273 ? 1 : -1];
4274 int
4275 main ()
4276 {
4277
4278 ;
4279 return 0;
4280 }
4281 _ACEOF
4282 if ac_fn_c_try_compile "$LINENO"; then :
4283 ac_cv_sys_file_offset_bits=no; break
4284 fi
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4288 #define _FILE_OFFSET_BITS 64
4289 #include <sys/types.h>
4290 /* Check that off_t can represent 2**63 - 1 correctly.
4291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4292 since some C++ compilers masquerading as C compilers
4293 incorrectly reject 9223372036854775807. */
4294 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4296 && LARGE_OFF_T % 2147483647 == 1)
4297 ? 1 : -1];
4298 int
4299 main ()
4300 {
4301
4302 ;
4303 return 0;
4304 }
4305 _ACEOF
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_cv_sys_file_offset_bits=64; break
4308 fi
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 ac_cv_sys_file_offset_bits=unknown
4311 break
4312 done
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4315 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4316 case $ac_cv_sys_file_offset_bits in #(
4317 no | unknown) ;;
4318 *)
4319 cat >>confdefs.h <<_ACEOF
4320 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4321 _ACEOF
4322 ;;
4323 esac
4324 rm -rf conftest*
4325 if test $ac_cv_sys_file_offset_bits = unknown; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4327 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4328 if ${ac_cv_sys_large_files+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 while :; do
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <sys/types.h>
4335 /* Check that off_t can represent 2**63 - 1 correctly.
4336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4337 since some C++ compilers masquerading as C compilers
4338 incorrectly reject 9223372036854775807. */
4339 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4341 && LARGE_OFF_T % 2147483647 == 1)
4342 ? 1 : -1];
4343 int
4344 main ()
4345 {
4346
4347 ;
4348 return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352 ac_cv_sys_large_files=no; break
4353 fi
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357 #define _LARGE_FILES 1
4358 #include <sys/types.h>
4359 /* Check that off_t can represent 2**63 - 1 correctly.
4360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4361 since some C++ compilers masquerading as C compilers
4362 incorrectly reject 9223372036854775807. */
4363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4365 && LARGE_OFF_T % 2147483647 == 1)
4366 ? 1 : -1];
4367 int
4368 main ()
4369 {
4370
4371 ;
4372 return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_c_try_compile "$LINENO"; then :
4376 ac_cv_sys_large_files=1; break
4377 fi
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 ac_cv_sys_large_files=unknown
4380 break
4381 done
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4384 $as_echo "$ac_cv_sys_large_files" >&6; }
4385 case $ac_cv_sys_large_files in #(
4386 no | unknown) ;;
4387 *)
4388 cat >>confdefs.h <<_ACEOF
4389 #define _LARGE_FILES $ac_cv_sys_large_files
4390 _ACEOF
4391 ;;
4392 esac
4393 rm -rf conftest*
4394 fi
4395
4396
4397 fi
4398
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4400 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4401 if ${ac_cv_sys_largefile_source+:} false; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 while :; do
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407 #include <sys/types.h> /* for off_t */
4408 #include <stdio.h>
4409 int
4410 main ()
4411 {
4412 int (*fp) (FILE *, off_t, int) = fseeko;
4413 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4414 ;
4415 return 0;
4416 }
4417 _ACEOF
4418 if ac_fn_c_try_link "$LINENO"; then :
4419 ac_cv_sys_largefile_source=no; break
4420 fi
4421 rm -f core conftest.err conftest.$ac_objext \
4422 conftest$ac_exeext conftest.$ac_ext
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 #define _LARGEFILE_SOURCE 1
4426 #include <sys/types.h> /* for off_t */
4427 #include <stdio.h>
4428 int
4429 main ()
4430 {
4431 int (*fp) (FILE *, off_t, int) = fseeko;
4432 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4433 ;
4434 return 0;
4435 }
4436 _ACEOF
4437 if ac_fn_c_try_link "$LINENO"; then :
4438 ac_cv_sys_largefile_source=1; break
4439 fi
4440 rm -f core conftest.err conftest.$ac_objext \
4441 conftest$ac_exeext conftest.$ac_ext
4442 ac_cv_sys_largefile_source=unknown
4443 break
4444 done
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4447 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4448 case $ac_cv_sys_largefile_source in #(
4449 no | unknown) ;;
4450 *)
4451 cat >>confdefs.h <<_ACEOF
4452 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4453 _ACEOF
4454 ;;
4455 esac
4456 rm -rf conftest*
4457
4458 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4459 # in glibc 2.1.3, but that breaks too many other things.
4460 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4461 if test $ac_cv_sys_largefile_source != unknown; then
4462
4463 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4464
4465 fi
4466
4467
4468 ac_ext=c
4469 ac_cpp='$CPP $CPPFLAGS'
4470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4474 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4475 # On Suns, sometimes $CPP names a directory.
4476 if test -n "$CPP" && test -d "$CPP"; then
4477 CPP=
4478 fi
4479 if test -z "$CPP"; then
4480 if ${ac_cv_prog_CPP+:} false; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 # Double quotes because CPP needs to be expanded
4484 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4485 do
4486 ac_preproc_ok=false
4487 for ac_c_preproc_warn_flag in '' yes
4488 do
4489 # Use a header file that comes with gcc, so configuring glibc
4490 # with a fresh cross-compiler works.
4491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4492 # <limits.h> exists even on freestanding compilers.
4493 # On the NeXT, cc -E runs the code through the compiler's parser,
4494 # not just through cpp. "Syntax error" is here to catch this case.
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #ifdef __STDC__
4498 # include <limits.h>
4499 #else
4500 # include <assert.h>
4501 #endif
4502 Syntax error
4503 _ACEOF
4504 if ac_fn_c_try_cpp "$LINENO"; then :
4505
4506 else
4507 # Broken: fails on valid input.
4508 continue
4509 fi
4510 rm -f conftest.err conftest.i conftest.$ac_ext
4511
4512 # OK, works on sane cases. Now check whether nonexistent headers
4513 # can be detected and how.
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4516 #include <ac_nonexistent.h>
4517 _ACEOF
4518 if ac_fn_c_try_cpp "$LINENO"; then :
4519 # Broken: success on invalid input.
4520 continue
4521 else
4522 # Passes both tests.
4523 ac_preproc_ok=:
4524 break
4525 fi
4526 rm -f conftest.err conftest.i conftest.$ac_ext
4527
4528 done
4529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4530 rm -f conftest.i conftest.err conftest.$ac_ext
4531 if $ac_preproc_ok; then :
4532 break
4533 fi
4534
4535 done
4536 ac_cv_prog_CPP=$CPP
4537
4538 fi
4539 CPP=$ac_cv_prog_CPP
4540 else
4541 ac_cv_prog_CPP=$CPP
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4544 $as_echo "$CPP" >&6; }
4545 ac_preproc_ok=false
4546 for ac_c_preproc_warn_flag in '' yes
4547 do
4548 # Use a header file that comes with gcc, so configuring glibc
4549 # with a fresh cross-compiler works.
4550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4551 # <limits.h> exists even on freestanding compilers.
4552 # On the NeXT, cc -E runs the code through the compiler's parser,
4553 # not just through cpp. "Syntax error" is here to catch this case.
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #ifdef __STDC__
4557 # include <limits.h>
4558 #else
4559 # include <assert.h>
4560 #endif
4561 Syntax error
4562 _ACEOF
4563 if ac_fn_c_try_cpp "$LINENO"; then :
4564
4565 else
4566 # Broken: fails on valid input.
4567 continue
4568 fi
4569 rm -f conftest.err conftest.i conftest.$ac_ext
4570
4571 # OK, works on sane cases. Now check whether nonexistent headers
4572 # can be detected and how.
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <ac_nonexistent.h>
4576 _ACEOF
4577 if ac_fn_c_try_cpp "$LINENO"; then :
4578 # Broken: success on invalid input.
4579 continue
4580 else
4581 # Passes both tests.
4582 ac_preproc_ok=:
4583 break
4584 fi
4585 rm -f conftest.err conftest.i conftest.$ac_ext
4586
4587 done
4588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4589 rm -f conftest.i conftest.err conftest.$ac_ext
4590 if $ac_preproc_ok; then :
4591
4592 else
4593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4595 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4596 See \`config.log' for more details" "$LINENO" 5; }
4597 fi
4598
4599 ac_ext=c
4600 ac_cpp='$CPP $CPPFLAGS'
4601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4607 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4608 if ${ac_cv_path_GREP+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -z "$GREP"; then
4612 ac_path_GREP_found=false
4613 # Loop through the user's path and test for each of PROGNAME-LIST
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4616 do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_prog in grep ggrep; do
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4622 as_fn_executable_p "$ac_path_GREP" || continue
4623 # Check for GNU ac_path_GREP and select it if it is found.
4624 # Check for GNU $ac_path_GREP
4625 case `"$ac_path_GREP" --version 2>&1` in
4626 *GNU*)
4627 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4628 *)
4629 ac_count=0
4630 $as_echo_n 0123456789 >"conftest.in"
4631 while :
4632 do
4633 cat "conftest.in" "conftest.in" >"conftest.tmp"
4634 mv "conftest.tmp" "conftest.in"
4635 cp "conftest.in" "conftest.nl"
4636 $as_echo 'GREP' >> "conftest.nl"
4637 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639 as_fn_arith $ac_count + 1 && ac_count=$as_val
4640 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4641 # Best one so far, save it but keep looking for a better one
4642 ac_cv_path_GREP="$ac_path_GREP"
4643 ac_path_GREP_max=$ac_count
4644 fi
4645 # 10*(2^10) chars as input seems more than enough
4646 test $ac_count -gt 10 && break
4647 done
4648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4649 esac
4650
4651 $ac_path_GREP_found && break 3
4652 done
4653 done
4654 done
4655 IFS=$as_save_IFS
4656 if test -z "$ac_cv_path_GREP"; then
4657 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4658 fi
4659 else
4660 ac_cv_path_GREP=$GREP
4661 fi
4662
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4665 $as_echo "$ac_cv_path_GREP" >&6; }
4666 GREP="$ac_cv_path_GREP"
4667
4668
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4670 $as_echo_n "checking for egrep... " >&6; }
4671 if ${ac_cv_path_EGREP+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4675 then ac_cv_path_EGREP="$GREP -E"
4676 else
4677 if test -z "$EGREP"; then
4678 ac_path_EGREP_found=false
4679 # Loop through the user's path and test for each of PROGNAME-LIST
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4682 do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_prog in egrep; do
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4688 as_fn_executable_p "$ac_path_EGREP" || continue
4689 # Check for GNU ac_path_EGREP and select it if it is found.
4690 # Check for GNU $ac_path_EGREP
4691 case `"$ac_path_EGREP" --version 2>&1` in
4692 *GNU*)
4693 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4694 *)
4695 ac_count=0
4696 $as_echo_n 0123456789 >"conftest.in"
4697 while :
4698 do
4699 cat "conftest.in" "conftest.in" >"conftest.tmp"
4700 mv "conftest.tmp" "conftest.in"
4701 cp "conftest.in" "conftest.nl"
4702 $as_echo 'EGREP' >> "conftest.nl"
4703 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4705 as_fn_arith $ac_count + 1 && ac_count=$as_val
4706 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4707 # Best one so far, save it but keep looking for a better one
4708 ac_cv_path_EGREP="$ac_path_EGREP"
4709 ac_path_EGREP_max=$ac_count
4710 fi
4711 # 10*(2^10) chars as input seems more than enough
4712 test $ac_count -gt 10 && break
4713 done
4714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4715 esac
4716
4717 $ac_path_EGREP_found && break 3
4718 done
4719 done
4720 done
4721 IFS=$as_save_IFS
4722 if test -z "$ac_cv_path_EGREP"; then
4723 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4724 fi
4725 else
4726 ac_cv_path_EGREP=$EGREP
4727 fi
4728
4729 fi
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4732 $as_echo "$ac_cv_path_EGREP" >&6; }
4733 EGREP="$ac_cv_path_EGREP"
4734
4735
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4737 $as_echo_n "checking for ANSI C header files... " >&6; }
4738 if ${ac_cv_header_stdc+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743 #include <stdlib.h>
4744 #include <stdarg.h>
4745 #include <string.h>
4746 #include <float.h>
4747
4748 int
4749 main ()
4750 {
4751
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 ac_cv_header_stdc=yes
4758 else
4759 ac_cv_header_stdc=no
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762
4763 if test $ac_cv_header_stdc = yes; then
4764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767 #include <string.h>
4768
4769 _ACEOF
4770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4771 $EGREP "memchr" >/dev/null 2>&1; then :
4772
4773 else
4774 ac_cv_header_stdc=no
4775 fi
4776 rm -f conftest*
4777
4778 fi
4779
4780 if test $ac_cv_header_stdc = yes; then
4781 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4784 #include <stdlib.h>
4785
4786 _ACEOF
4787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4788 $EGREP "free" >/dev/null 2>&1; then :
4789
4790 else
4791 ac_cv_header_stdc=no
4792 fi
4793 rm -f conftest*
4794
4795 fi
4796
4797 if test $ac_cv_header_stdc = yes; then
4798 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4799 if test "$cross_compiling" = yes; then :
4800 :
4801 else
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 #include <ctype.h>
4805 #include <stdlib.h>
4806 #if ((' ' & 0x0FF) == 0x020)
4807 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4808 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4809 #else
4810 # define ISLOWER(c) \
4811 (('a' <= (c) && (c) <= 'i') \
4812 || ('j' <= (c) && (c) <= 'r') \
4813 || ('s' <= (c) && (c) <= 'z'))
4814 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4815 #endif
4816
4817 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4818 int
4819 main ()
4820 {
4821 int i;
4822 for (i = 0; i < 256; i++)
4823 if (XOR (islower (i), ISLOWER (i))
4824 || toupper (i) != TOUPPER (i))
4825 return 2;
4826 return 0;
4827 }
4828 _ACEOF
4829 if ac_fn_c_try_run "$LINENO"; then :
4830
4831 else
4832 ac_cv_header_stdc=no
4833 fi
4834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4835 conftest.$ac_objext conftest.beam conftest.$ac_ext
4836 fi
4837
4838 fi
4839 fi
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4841 $as_echo "$ac_cv_header_stdc" >&6; }
4842 if test $ac_cv_header_stdc = yes; then
4843
4844 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4845
4846 fi
4847
4848 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4849 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4850 inttypes.h stdint.h unistd.h
4851 do :
4852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4853 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4854 "
4855 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4856 cat >>confdefs.h <<_ACEOF
4857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4858 _ACEOF
4859
4860 fi
4861
4862 done
4863
4864
4865 for ac_header in sys/ioccom.h sys/sockio.h
4866 do :
4867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4868 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4869 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4870 cat >>confdefs.h <<_ACEOF
4871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4872 _ACEOF
4873
4874 fi
4875
4876 done
4877
4878 for ac_header in netpacket/packet.h
4879 do :
4880 ac_fn_c_check_header_mongrel "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
4881 if test "x$ac_cv_header_netpacket_packet_h" = xyes; then :
4882 cat >>confdefs.h <<_ACEOF
4883 #define HAVE_NETPACKET_PACKET_H 1
4884 _ACEOF
4885
4886 fi
4887
4888 done
4889
4890 for ac_header in net/pfvar.h
4891 do :
4892 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4893 #include <sys/socket.h>
4894 #include <net/if.h>
4895 "
4896 if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
4897 cat >>confdefs.h <<_ACEOF
4898 #define HAVE_NET_PFVAR_H 1
4899 _ACEOF
4900
4901 fi
4902
4903 done
4904
4905 if test "$ac_cv_header_net_pfvar_h" = yes; then
4906 #
4907 # Check for various PF actions.
4908 #
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4910 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4913 #include <sys/types.h>
4914 #include <sys/socket.h>
4915 #include <net/if.h>
4916 #include <net/pfvar.h>
4917 int
4918 main ()
4919 {
4920 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4921 ;
4922 return 0;
4923 }
4924 _ACEOF
4925 if ac_fn_c_try_compile "$LINENO"; then :
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4928 $as_echo "yes" >&6; }
4929
4930 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4931
4932
4933 else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 fi
4939
4940 case "$host_os" in
4941 linux*|uclinux*)
4942 #
4943 # linux/if_bonding.h requires sys/socket.h.
4944 #
4945 for ac_header in linux/sockios.h linux/if_bonding.h
4946 do :
4947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4948 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4949 #include <sys/socket.h>
4950 #include <linux/if.h>
4951
4952 "
4953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4954 cat >>confdefs.h <<_ACEOF
4955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4956 _ACEOF
4957
4958 fi
4959
4960 done
4961
4962
4963 #
4964 # Check for the eventfd header.
4965 #
4966 for ac_header in sys/eventfd.h
4967 do :
4968 ac_fn_c_check_header_mongrel "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
4969 if test "x$ac_cv_header_sys_eventfd_h" = xyes; then :
4970 cat >>confdefs.h <<_ACEOF
4971 #define HAVE_SYS_EVENTFD_H 1
4972 _ACEOF
4973
4974 fi
4975
4976 done
4977
4978 ;;
4979 esac
4980
4981 if test "$GCC" = yes ; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4983 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4984 if ${ac_cv_lbl_gcc_fixincludes+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989 /*
4990 * This generates a "duplicate case value" when fixincludes
4991 * has not be run.
4992 */
4993 # include <sys/types.h>
4994 # include <sys/time.h>
4995 # include <sys/ioctl.h>
4996 # ifdef HAVE_SYS_IOCCOM_H
4997 # include <sys/ioccom.h>
4998 # endif
4999 int
5000 main ()
5001 {
5002 switch (0) {
5003 case _IO('A', 1):;
5004 case _IO('B', 1):;
5005 }
5006 ;
5007 return 0;
5008 }
5009 _ACEOF
5010 if ac_fn_c_try_compile "$LINENO"; then :
5011 ac_cv_lbl_gcc_fixincludes=yes
5012 else
5013 ac_cv_lbl_gcc_fixincludes=no
5014 fi
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 fi
5017
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
5019 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
5020 if test $ac_cv_lbl_gcc_fixincludes = no ; then
5021 # Don't cache failure
5022 unset ac_cv_lbl_gcc_fixincludes
5023 as_fn_error $? "see the INSTALL for more info" "$LINENO" 5
5024 fi
5025 fi
5026
5027 for ac_func in strerror strerror_r strerror_s
5028 do :
5029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5030 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5031 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5032 cat >>confdefs.h <<_ACEOF
5033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5034 _ACEOF
5035
5036 fi
5037 done
5038
5039
5040 needsnprintf=no
5041 for ac_func in vsnprintf snprintf
5042 do :
5043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5044 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5045 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5046 cat >>confdefs.h <<_ACEOF
5047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5048 _ACEOF
5049
5050 else
5051 needsnprintf=yes
5052 fi
5053 done
5054
5055 if test $needsnprintf = yes; then
5056 case " $LIBOBJS " in
5057 *" snprintf.$ac_objext "* ) ;;
5058 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5059 ;;
5060 esac
5061
5062 fi
5063
5064 needstrlcat=no
5065 for ac_func in strlcat
5066 do :
5067 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
5068 if test "x$ac_cv_func_strlcat" = xyes; then :
5069 cat >>confdefs.h <<_ACEOF
5070 #define HAVE_STRLCAT 1
5071 _ACEOF
5072
5073 else
5074 needstrlcat=yes
5075 fi
5076 done
5077
5078 if test $needstrlcat = yes; then
5079 case " $LIBOBJS " in
5080 *" strlcat.$ac_objext "* ) ;;
5081 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
5082 ;;
5083 esac
5084
5085 fi
5086
5087 needstrlcpy=no
5088 for ac_func in strlcpy
5089 do :
5090 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5091 if test "x$ac_cv_func_strlcpy" = xyes; then :
5092 cat >>confdefs.h <<_ACEOF
5093 #define HAVE_STRLCPY 1
5094 _ACEOF
5095
5096 else
5097 needstrlcpy=yes
5098 fi
5099 done
5100
5101 if test $needstrlcpy = yes; then
5102 case " $LIBOBJS " in
5103 *" strlcpy.$ac_objext "* ) ;;
5104 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
5105 ;;
5106 esac
5107
5108 fi
5109
5110 needstrtok_r=no
5111 for ac_func in strtok_r
5112 do :
5113 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
5114 if test "x$ac_cv_func_strtok_r" = xyes; then :
5115 cat >>confdefs.h <<_ACEOF
5116 #define HAVE_STRTOK_R 1
5117 _ACEOF
5118
5119 else
5120 needstrtok_r=yes
5121 fi
5122 done
5123
5124 if test $needstrtok_r = yes; then
5125 case " $LIBOBJS " in
5126 *" strtok_r.$ac_objext "* ) ;;
5127 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
5128 ;;
5129 esac
5130
5131 fi
5132
5133 #
5134 # Do we have ffs(), and is it declared in <strings.h>?
5135 #
5136 for ac_func in ffs
5137 do :
5138 ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
5139 if test "x$ac_cv_func_ffs" = xyes; then :
5140 cat >>confdefs.h <<_ACEOF
5141 #define HAVE_FFS 1
5142 _ACEOF
5143
5144 fi
5145 done
5146
5147 if test "$ac_cv_func_ffs" = yes; then
5148 #
5149 # We have ffs(); is it declared in <strings.h>?
5150 #
5151 # This test fails if we don't have <strings.h> or if we do
5152 # but it doesn't declare ffs().
5153 #
5154 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "
5155 #include <strings.h>
5156
5157 "
5158 if test "x$ac_cv_have_decl_ffs" = xyes; then :
5159
5160
5161 $as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h
5162
5163
5164 fi
5165
5166 fi
5167
5168 #
5169 # Do this before checking for ether_hostton(), as it's a
5170 # "getaddrinfo()-ish function".
5171 #
5172
5173 #
5174 # Most operating systems have getaddrinfo() in the default searched
5175 # libraries (i.e. libc). Check there first.
5176 #
5177 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5178 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
5179
5180 else
5181
5182 #
5183 # Not found in the standard system libraries.
5184 # Try libsocket, which requires libnsl.
5185 #
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
5187 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
5188 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 ac_check_lib_save_LIBS=$LIBS
5192 LIBS="-lsocket -lnsl $LIBS"
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195
5196 /* Override any GCC internal prototype to avoid an error.
5197 Use char because int might match the return type of a GCC
5198 builtin and then its argument prototype would still apply. */
5199 #ifdef __cplusplus
5200 extern "C"
5201 #endif
5202 char getaddrinfo ();
5203 int
5204 main ()
5205 {
5206 return getaddrinfo ();
5207 ;
5208 return 0;
5209 }
5210 _ACEOF
5211 if ac_fn_c_try_link "$LINENO"; then :
5212 ac_cv_lib_socket_getaddrinfo=yes
5213 else
5214 ac_cv_lib_socket_getaddrinfo=no
5215 fi
5216 rm -f core conftest.err conftest.$ac_objext \
5217 conftest$ac_exeext conftest.$ac_ext
5218 LIBS=$ac_check_lib_save_LIBS
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
5221 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
5222 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
5223
5224 #
5225 # OK, we found it in libsocket.
5226 #
5227 LIBS="-lsocket -lnsl $LIBS"
5228
5229 else
5230
5231 #
5232 # We didn't find it.
5233 #
5234 as_fn_error $? "getaddrinfo is required, but wasn't found" "$LINENO" 5
5235
5236 fi
5237
5238
5239 #
5240 # OK, do we have recvmsg() in libxnet?
5241 # We also link with libsocket and libnsl.
5242 #
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lxnet" >&5
5244 $as_echo_n "checking for recvmsg in -lxnet... " >&6; }
5245 if ${ac_cv_lib_xnet_recvmsg+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 ac_check_lib_save_LIBS=$LIBS
5249 LIBS="-lxnet -lsocket -lnsl $LIBS"
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5252
5253 /* Override any GCC internal prototype to avoid an error.
5254 Use char because int might match the return type of a GCC
5255 builtin and then its argument prototype would still apply. */
5256 #ifdef __cplusplus
5257 extern "C"
5258 #endif
5259 char recvmsg ();
5260 int
5261 main ()
5262 {
5263 return recvmsg ();
5264 ;
5265 return 0;
5266 }
5267 _ACEOF
5268 if ac_fn_c_try_link "$LINENO"; then :
5269 ac_cv_lib_xnet_recvmsg=yes
5270 else
5271 ac_cv_lib_xnet_recvmsg=no
5272 fi
5273 rm -f core conftest.err conftest.$ac_objext \
5274 conftest$ac_exeext conftest.$ac_ext
5275 LIBS=$ac_check_lib_save_LIBS
5276 fi
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_recvmsg" >&5
5278 $as_echo "$ac_cv_lib_xnet_recvmsg" >&6; }
5279 if test "x$ac_cv_lib_xnet_recvmsg" = xyes; then :
5280
5281 #
5282 # Yes - link with it as well.
5283 #
5284 LIBS="-lxnet $LIBS"
5285
5286 fi
5287
5288
5289 fi
5290
5291 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5293 $as_echo_n "checking for library containing putmsg... " >&6; }
5294 if ${ac_cv_search_putmsg+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 ac_func_search_save_LIBS=$LIBS
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300
5301 /* Override any GCC internal prototype to avoid an error.
5302 Use char because int might match the return type of a GCC
5303 builtin and then its argument prototype would still apply. */
5304 #ifdef __cplusplus
5305 extern "C"
5306 #endif
5307 char putmsg ();
5308 int
5309 main ()
5310 {
5311 return putmsg ();
5312 ;
5313 return 0;
5314 }
5315 _ACEOF
5316 for ac_lib in '' str; do
5317 if test -z "$ac_lib"; then
5318 ac_res="none required"
5319 else
5320 ac_res=-l$ac_lib
5321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5322 fi
5323 if ac_fn_c_try_link "$LINENO"; then :
5324 ac_cv_search_putmsg=$ac_res
5325 fi
5326 rm -f core conftest.err conftest.$ac_objext \
5327 conftest$ac_exeext
5328 if ${ac_cv_search_putmsg+:} false; then :
5329 break
5330 fi
5331 done
5332 if ${ac_cv_search_putmsg+:} false; then :
5333
5334 else
5335 ac_cv_search_putmsg=no
5336 fi
5337 rm conftest.$ac_ext
5338 LIBS=$ac_func_search_save_LIBS
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5341 $as_echo "$ac_cv_search_putmsg" >&6; }
5342 ac_res=$ac_cv_search_putmsg
5343 if test "$ac_res" != no; then :
5344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5345
5346 fi
5347
5348
5349
5350 #
5351 # Check for reentrant versions of getnetbyname_r(), as provided by
5352 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5353 # If we don't find one, we just use getnetbyname(), which uses
5354 # thread-specific data on many platforms, but doesn't use it on
5355 # NetBSD or OpenBSD, and may not use it on older versions of other
5356 # platforms.
5357 #
5358 # Only do the check if we have a declaration of getnetbyname_r();
5359 # without it, we can't check which API it has. (We assume that
5360 # if there's a declaration, it has a prototype, so that the API
5361 # can be checked.)
5362 #
5363 ac_fn_c_check_decl "$LINENO" "getnetbyname_r" "ac_cv_have_decl_getnetbyname_r" "#include <netdb.h>
5364 "
5365 if test "x$ac_cv_have_decl_getnetbyname_r" = xyes; then :
5366
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getnetbyname_r()" >&5
5368 $as_echo_n "checking for the Linux getnetbyname_r()... " >&6; }
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 #include <netdb.h>
5372 int
5373 main ()
5374 {
5375
5376 struct netent netent_buf;
5377 char buf[1024];
5378 struct netent *resultp;
5379 int h_errnoval;
5380
5381 return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval);
5382
5383 ;
5384 return 0;
5385 }
5386 _ACEOF
5387 if ac_fn_c_try_link "$LINENO"; then :
5388
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5390 $as_echo "yes" >&6; }
5391
5392 $as_echo "#define HAVE_LINUX_GETNETBYNAME_R 1" >>confdefs.h
5393
5394
5395 else
5396
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getnetbyname_r()" >&5
5401 $as_echo_n "checking for Solaris/IRIX getnetbyname_r()... " >&6; }
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #include <netdb.h>
5405 int
5406 main ()
5407 {
5408
5409 struct netent netent_buf;
5410 char buf[1024];
5411
5412 return getnetbyname_r((const char *)0, &netent_buf, buf, (int)sizeof buf) != NULL;
5413
5414 ;
5415 return 0;
5416 }
5417 _ACEOF
5418 if ac_fn_c_try_link "$LINENO"; then :
5419
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5421 $as_echo "yes" >&6; }
5422
5423 $as_echo "#define HAVE_SOLARIS_IRIX_GETNETBYNAME_R 1" >>confdefs.h
5424
5425
5426 else
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getnetbyname_r()" >&5
5432 $as_echo_n "checking for AIX getnetbyname_r()... " >&6; }
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 #include <netdb.h>
5436 int
5437 main ()
5438 {
5439
5440 struct netent netent_buf;
5441 struct netent_data net_data;
5442
5443 return getnetbyname_r((const char *)0, &netent_buf, &net_data);
5444
5445 ;
5446 return 0;
5447 }
5448 _ACEOF
5449 if ac_fn_c_try_link "$LINENO"; then :
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5452 $as_echo "yes" >&6; }
5453
5454 $as_echo "#define HAVE_AIX_GETNETBYNAME_R 1" >>confdefs.h
5455
5456
5457 else
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5461
5462 fi
5463 rm -f core conftest.err conftest.$ac_objext \
5464 conftest$ac_exeext conftest.$ac_ext
5465
5466 fi
5467 rm -f core conftest.err conftest.$ac_objext \
5468 conftest$ac_exeext conftest.$ac_ext
5469
5470 fi
5471 rm -f core conftest.err conftest.$ac_objext \
5472 conftest$ac_exeext conftest.$ac_ext
5473
5474 fi
5475
5476
5477 #
5478 # Check for reentrant versions of getprotobyname_r(), as provided by
5479 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5480 # If we don't find one, we just use getprotobyname(), which uses
5481 # thread-specific data on many platforms, but doesn't use it on
5482 # NetBSD or OpenBSD, and may not use it on older versions of other
5483 # platforms.
5484 #
5485 # Only do the check if we have a declaration of getprotobyname_r();
5486 # without it, we can't check which API it has. (We assume that
5487 # if there's a declaration, it has a prototype, so that the API
5488 # can be checked.)
5489 #
5490 ac_fn_c_check_decl "$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "#include <netdb.h>
5491 "
5492 if test "x$ac_cv_have_decl_getprotobyname_r" = xyes; then :
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getprotobyname_r()" >&5
5495 $as_echo_n "checking for the Linux getprotobyname_r()... " >&6; }
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5498 #include <netdb.h>
5499 int
5500 main ()
5501 {
5502
5503 struct protoent protoent_buf;
5504 char buf[1024];
5505 struct protoent *resultp;
5506
5507 return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp);
5508
5509 ;
5510 return 0;
5511 }
5512 _ACEOF
5513 if ac_fn_c_try_link "$LINENO"; then :
5514
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5516 $as_echo "yes" >&6; }
5517
5518 $as_echo "#define HAVE_LINUX_GETPROTOBYNAME_R 1" >>confdefs.h
5519
5520
5521 else
5522
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5525
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getprotobyname_r()" >&5
5527 $as_echo_n "checking for Solaris/IRIX getprotobyname_r()... " >&6; }
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #include <netdb.h>
5531 int
5532 main ()
5533 {
5534
5535 struct protoent protoent_buf;
5536 char buf[1024];
5537
5538 return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL;
5539
5540 ;
5541 return 0;
5542 }
5543 _ACEOF
5544 if ac_fn_c_try_link "$LINENO"; then :
5545
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547 $as_echo "yes" >&6; }
5548
5549 $as_echo "#define HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R 1" >>confdefs.h
5550
5551
5552 else
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getprotobyname_r()" >&5
5558 $as_echo_n "checking for AIX getprotobyname_r()... " >&6; }
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 #include <netdb.h>
5562 int
5563 main ()
5564 {
5565
5566 struct protoent protoent_buf;
5567 struct protoent_data proto_data;
5568
5569 return getprotobyname_r((const char *)0, &protoent_buf, &proto_data);
5570
5571 ;
5572 return 0;
5573 }
5574 _ACEOF
5575 if ac_fn_c_try_link "$LINENO"; then :
5576
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5578 $as_echo "yes" >&6; }
5579
5580 $as_echo "#define HAVE_AIX_GETPROTOBYNAME_R 1" >>confdefs.h
5581
5582
5583 else
5584
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587
5588 fi
5589 rm -f core conftest.err conftest.$ac_objext \
5590 conftest$ac_exeext conftest.$ac_ext
5591
5592 fi
5593 rm -f core conftest.err conftest.$ac_objext \
5594 conftest$ac_exeext conftest.$ac_ext
5595
5596 fi
5597 rm -f core conftest.err conftest.$ac_objext \
5598 conftest$ac_exeext conftest.$ac_ext
5599
5600 fi
5601
5602
5603 #
5604 # You are in a twisty little maze of UN*Xes, all different.
5605 # Some might not have ether_hostton().
5606 # Some might have it and declare it in <net/ethernet.h>.
5607 # Some might have it and declare it in <netinet/ether.h>
5608 # Some might have it and declare it in <sys/ethernet.h>.
5609 # Some might have it and declare it in <arpa/inet.h>.
5610 # Some might have it and declare it in <netinet/if_ether.h>.
5611 # Some might have it and not declare it in any header file.
5612 #
5613 # Before you is a C compiler.
5614 #
5615 for ac_func in ether_hostton
5616 do :
5617 ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5618 if test "x$ac_cv_func_ether_hostton" = xyes; then :
5619 cat >>confdefs.h <<_ACEOF
5620 #define HAVE_ETHER_HOSTTON 1
5621 _ACEOF
5622
5623 fi
5624 done
5625
5626 if test "$ac_cv_func_ether_hostton" = yes; then
5627 #
5628 # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>?
5629 #
5630 # This test fails if we don't have <net/ethernet.h> or if we do
5631 # but it doesn't declare ether_hostton().
5632 #
5633 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5634 #include <net/ethernet.h>
5635
5636 "
5637 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5638
5639
5640 $as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5641
5642
5643 fi
5644
5645 #
5646 # Did that succeed?
5647 #
5648 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5649 #
5650 # No, how about <netinet/ether.h>, as on Linux?
5651 #
5652 # This test fails if we don't have <netinet/ether.h>
5653 # or if we do but it doesn't declare ether_hostton().
5654 #
5655 # Unset ac_cv_have_decl_ether_hostton so we don't
5656 # treat the previous failure as a cached value and
5657 # suppress the next test.
5658 #
5659 unset ac_cv_have_decl_ether_hostton
5660 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5661 #include <netinet/ether.h>
5662
5663 "
5664 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5665
5666
5667 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5668
5669
5670 fi
5671
5672 fi
5673 #
5674 # Did that succeed?
5675 #
5676 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5677 #
5678 # No, how about <sys/ethernet.h>, as on Solaris 10
5679 # and later?
5680 #
5681 # This test fails if we don't have <sys/ethernet.h>
5682 # or if we do but it doesn't declare ether_hostton().
5683 #
5684 # Unset ac_cv_have_decl_ether_hostton so we don't
5685 # treat the previous failure as a cached value and
5686 # suppress the next test.
5687 #
5688 unset ac_cv_have_decl_ether_hostton
5689 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5690 #include <sys/ethernet.h>
5691
5692 "
5693 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5694
5695
5696 $as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5697
5698
5699 fi
5700
5701 fi
5702 #
5703 # Did that succeed?
5704 #
5705 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5706 #
5707 # No, how about <arpa/inet.h>, as in AIX?
5708 #
5709 # This test fails if we don't have <arpa/inet.h>
5710 # (if we have ether_hostton(), we should have
5711 # networking, and if we have networking, we should
5712 # have <arapa/inet.h>) or if we do but it doesn't
5713 # declare ether_hostton().
5714 #
5715 # Unset ac_cv_have_decl_ether_hostton so we don't
5716 # treat the previous failure as a cached value and
5717 # suppress the next test.
5718 #
5719 unset ac_cv_have_decl_ether_hostton
5720 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5721 #include <arpa/inet.h>
5722
5723 "
5724 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5725
5726
5727 $as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5728
5729
5730 fi
5731
5732 fi
5733 #
5734 # Did that succeed?
5735 #
5736 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5737 #
5738 # No, how about <netinet/if_ether.h>?
5739 # On some platforms, it requires <net/if.h> and
5740 # <netinet/in.h>, and we always include it with
5741 # both of them, so test it with both of them.
5742 #
5743 # This test fails if we don't have <netinet/if_ether.h>
5744 # and the headers we include before it, or if we do but
5745 # <netinet/if_ether.h> doesn't declare ether_hostton().
5746 #
5747 # Unset ac_cv_have_decl_ether_hostton so we don't
5748 # treat the previous failure as a cached value and
5749 # suppress the next test.
5750 #
5751 unset ac_cv_have_decl_ether_hostton
5752 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5753 #include <sys/types.h>
5754 #include <sys/socket.h>
5755 #include <net/if.h>
5756 #include <netinet/in.h>
5757 #include <netinet/if_ether.h>
5758
5759 "
5760 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5761
5762
5763 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5764
5765
5766 fi
5767
5768 fi
5769 #
5770 # After all that, is ether_hostton() declared?
5771 #
5772 if test "$ac_cv_have_decl_ether_hostton" = yes; then
5773 #
5774 # Yes.
5775 #
5776
5777 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5778
5779 else
5780 #
5781 # No, we'll have to declare it ourselves.
5782 # Do we have "struct ether_addr" if we include
5783 # <netinet/if_ether.h>?
5784 #
5785 ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5786 #include <sys/types.h>
5787 #include <sys/socket.h>
5788 #include <net/if.h>
5789 #include <netinet/in.h>
5790 #include <netinet/if_ether.h>
5791
5792 "
5793 if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
5794
5795 cat >>confdefs.h <<_ACEOF
5796 #define HAVE_STRUCT_ETHER_ADDR 1
5797 _ACEOF
5798
5799
5800 fi
5801
5802 fi
5803 fi
5804
5805 #
5806 # For various things that might use pthreads.
5807 #
5808 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5809 if test "x$ac_cv_header_pthread_h" = xyes; then :
5810
5811 #
5812 # OK, we have pthread.h. Do we have pthread_create in the
5813 # system libraries?
5814 #
5815 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
5816 if test "x$ac_cv_func_pthread_create" = xyes; then :
5817
5818 #
5819 # Yes.
5820 #
5821 ac_lbl_have_pthreads="found"
5822
5823 else
5824
5825 #
5826 # No - do we have it in -lpthreads?
5827 #
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
5829 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
5830 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 ac_check_lib_save_LIBS=$LIBS
5834 LIBS="-lpthreads $LIBS"
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837
5838 /* Override any GCC internal prototype to avoid an error.
5839 Use char because int might match the return type of a GCC
5840 builtin and then its argument prototype would still apply. */
5841 #ifdef __cplusplus
5842 extern "C"
5843 #endif
5844 char pthread_create ();
5845 int
5846 main ()
5847 {
5848 return pthread_create ();
5849 ;
5850 return 0;
5851 }
5852 _ACEOF
5853 if ac_fn_c_try_link "$LINENO"; then :
5854 ac_cv_lib_pthreads_pthread_create=yes
5855 else
5856 ac_cv_lib_pthreads_pthread_create=no
5857 fi
5858 rm -f core conftest.err conftest.$ac_objext \
5859 conftest$ac_exeext conftest.$ac_ext
5860 LIBS=$ac_check_lib_save_LIBS
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
5863 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
5864 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
5865
5866 #
5867 # Yes - add -lpthreads.
5868 #
5869 ac_lbl_have_pthreads="found"
5870 PTHREAD_LIBS="$PTHREAD_LIBS -lpthreads"
5871
5872 else
5873
5874 #
5875 # No - do we have it in -lpthread?
5876 #
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5878 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5879 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 ac_check_lib_save_LIBS=$LIBS
5883 LIBS="-lpthread $LIBS"
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886
5887 /* Override any GCC internal prototype to avoid an error.
5888 Use char because int might match the return type of a GCC
5889 builtin and then its argument prototype would still apply. */
5890 #ifdef __cplusplus
5891 extern "C"
5892 #endif
5893 char pthread_create ();
5894 int
5895 main ()
5896 {
5897 return pthread_create ();
5898 ;
5899 return 0;
5900 }
5901 _ACEOF
5902 if ac_fn_c_try_link "$LINENO"; then :
5903 ac_cv_lib_pthread_pthread_create=yes
5904 else
5905 ac_cv_lib_pthread_pthread_create=no
5906 fi
5907 rm -f core conftest.err conftest.$ac_objext \
5908 conftest$ac_exeext conftest.$ac_ext
5909 LIBS=$ac_check_lib_save_LIBS
5910 fi
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5912 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5913 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5914
5915 #
5916 # Yes - add -lpthread.
5917 #
5918 ac_lbl_have_pthreads="found"
5919 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
5920
5921 else
5922
5923 #
5924 # No.
5925 #
5926 ac_lbl_have_pthreads="not found"
5927
5928 fi
5929
5930
5931 fi
5932
5933
5934 fi
5935
5936
5937 else
5938
5939 #
5940 # We didn't find pthread.h.
5941 #
5942 ac_lbl_have_pthreads="not found"
5943
5944
5945 fi
5946
5947
5948
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5950 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5951 # Check whether --enable-protochain was given.
5952 if test "${enable_protochain+set}" = set; then :
5953 enableval=$enable_protochain;
5954 fi
5955
5956 case "x$enable_protochain" in
5957 xyes) enable_protochain=enabled ;;
5958 xno) enable_protochain=disabled ;;
5959 x) enable_protochain=enabled ;;
5960 esac
5961
5962 if test "$enable_protochain" = "disabled"; then
5963
5964 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5965
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5968 $as_echo "${enable_protochain}" >&6; }
5969
5970 #
5971 # valgrindtest directly uses the native capture mechanism, but
5972 # only tests with BPF and PF_PACKET sockets; only enable it if
5973 # we have BPF or PF_PACKET sockets.
5974 #
5975 VALGRINDTEST_SRC=
5976
5977
5978 # Check whether --with-pcap was given.
5979 if test "${with_pcap+set}" = set; then :
5980 withval=$with_pcap;
5981 fi
5982
5983 if test ! -z "$with_pcap" ; then
5984 V_PCAP="$withval"
5985 else
5986 #
5987 # Check for a bunch of headers for various packet
5988 # capture mechanisms.
5989 #
5990 for ac_header in net/bpf.h
5991 do :
5992 ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
5993 if test "x$ac_cv_header_net_bpf_h" = xyes; then :
5994 cat >>confdefs.h <<_ACEOF
5995 #define HAVE_NET_BPF_H 1
5996 _ACEOF
5997
5998 fi
5999
6000 done
6001
6002 if test "$ac_cv_header_net_bpf_h" = yes; then
6003 #
6004 # Does it define BIOCSETIF?
6005 # I.e., is it a header for an LBL/BSD-style capture
6006 # mechanism, or is it just a header for a BPF filter
6007 # engine? Some versions of Arch Linux, for example,
6008 # have a net/bpf.h that doesn't define BIOCSETIF;
6009 # as it's a Linux, it should use packet sockets,
6010 # instead.
6011 #
6012 # We need:
6013 #
6014 # sys/types.h, because FreeBSD 10's net/bpf.h
6015 # requires that various BSD-style integer types
6016 # be defined;
6017 #
6018 # sys/time.h, because AIX 5.2 and 5.3's net/bpf.h
6019 # doesn't include it but does use struct timeval
6020 # in ioctl definitions;
6021 #
6022 # sys/ioctl.h and, if we have it, sys/ioccom.h,
6023 # because net/bpf.h defines ioctls;
6024 #
6025 # net/if.h, because it defines some structures
6026 # used in ioctls defined by net/bpf.h;
6027 #
6028 # sys/socket.h, because OpenBSD 5.9's net/bpf.h
6029 # defines some structure fields as being
6030 # struct sockaddrs;
6031 #
6032 # and net/bpf.h doesn't necessarily include all
6033 # of those headers itself.
6034 #
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
6036 $as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; }
6037 if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042
6043 #include <sys/types.h>
6044 #include <sys/time.h>
6045 #include <sys/ioctl.h>
6046 #include <sys/socket.h>
6047 #ifdef HAVE_SYS_IOCCOM_H
6048 #include <sys/ioccom.h>
6049 #endif
6050 #include <net/bpf.h>
6051 #include <net/if.h>
6052
6053 int
6054 main ()
6055 {
6056 u_int i = BIOCSETIF;
6057 ;
6058 return 0;
6059 }
6060 _ACEOF
6061 if ac_fn_c_try_compile "$LINENO"; then :
6062 ac_cv_lbl_bpf_h_defines_biocsetif=yes
6063 else
6064 ac_cv_lbl_bpf_h_defines_biocsetif=no
6065 fi
6066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 fi
6068
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
6070 $as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; }
6071 fi
6072 for ac_header in net/pfilt.h net/enet.h
6073 do :
6074 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6075 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6076 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6077 cat >>confdefs.h <<_ACEOF
6078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6079 _ACEOF
6080
6081 fi
6082
6083 done
6084
6085 for ac_header in net/nit.h sys/net/nit.h
6086 do :
6087 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6088 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6089 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6090 cat >>confdefs.h <<_ACEOF
6091 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6092 _ACEOF
6093
6094 fi
6095
6096 done
6097
6098 for ac_header in linux/socket.h net/raw.h sys/dlpi.h
6099 do :
6100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6101 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6103 cat >>confdefs.h <<_ACEOF
6104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6105 _ACEOF
6106
6107 fi
6108
6109 done
6110
6111
6112 if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then
6113 #
6114 # BPF.
6115 # Check this before DLPI, so that we pick BPF on
6116 # Solaris 11 and later.
6117 #
6118 V_PCAP=bpf
6119
6120 #
6121 # We have BPF, so build valgrindtest with "make test"
6122 # on macOS and FreeBSD (add your OS once there's a
6123 # valgrind for it).
6124 #
6125 case "$host_os" in
6126
6127 freebsd*|darwin*|linux*)
6128 VALGRINDTEST_SRC=valgrindtest.c
6129 ;;
6130 esac
6131 elif test "$ac_cv_header_linux_socket_h" = yes; then
6132 #
6133 # No prizes for guessing this one.
6134 #
6135 V_PCAP=linux
6136
6137 #
6138 # XXX - this won't work with older kernels that have
6139 # SOCK_PACKET sockets but not PF_PACKET sockets.
6140 #
6141 VALGRINDTEST_SRC=valgrindtest.c
6142 elif test "$ac_cv_header_net_pfilt_h" = yes; then
6143 #
6144 # DEC OSF/1, Digital UNIX, Tru64 UNIX
6145 #
6146 V_PCAP=pf
6147 elif test "$ac_cv_header_net_enet_h" = yes; then
6148 #
6149 # Stanford Enetfilter.
6150 #
6151 V_PCAP=enet
6152 elif test "$ac_cv_header_net_nit_h" = yes; then
6153 #
6154 # SunOS 4.x STREAMS NIT.
6155 #
6156 V_PCAP=snit
6157 elif test "$ac_cv_header_sys_net_nit_h" = yes; then
6158 #
6159 # Pre-SunOS 4.x non-STREAMS NIT.
6160 #
6161 V_PCAP=nit
6162 elif test "$ac_cv_header_net_raw_h" = yes; then
6163 #
6164 # IRIX snoop.
6165 #
6166 V_PCAP=snoop
6167 elif test "$ac_cv_header_sys_dlpi_h" = yes; then
6168 #
6169 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
6170 #
6171 V_PCAP=dlpi
6172 else
6173 #
6174 # Nothing we support.
6175 #
6176 V_PCAP=null
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6178 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6180 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6181 fi
6182 fi
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
6184 $as_echo_n "checking packet capture type... " >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
6186 $as_echo "$V_PCAP" >&6; }
6187
6188
6189 #
6190 # Do capture-mechanism-dependent tests.
6191 #
6192 case "$V_PCAP" in
6193 dlpi)
6194 #
6195 # Needed for common functions used by pcap-[dlpi,libdlpi].c
6196 #
6197 SSRC="dlpisubs.c"
6198
6199 #
6200 # Checks for some header files.
6201 #
6202 for ac_header in sys/bufmod.h sys/dlpi_ext.h
6203 do :
6204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6205 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6206 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6207 cat >>confdefs.h <<_ACEOF
6208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6209 _ACEOF
6210
6211 fi
6212
6213 done
6214
6215
6216 #
6217 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6218 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6219 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6220 # private version also existed, which did not have the same APIs.
6221 # Due to a gcc bug, the default search path for 32-bit libraries does
6222 # not include /lib, we add it explicitly here.
6223 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6224 # Also, due to the bug above applications that link to libpcap with
6225 # libdlpi will have to add "-L/lib" option to "configure".
6226 #
6227 saved_ldflags=$LDFLAGS
6228 LDFLAGS="$LIBS -L/lib"
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
6230 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
6231 if ${ac_cv_lib_dlpi_dlpi_walk+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 ac_check_lib_save_LIBS=$LIBS
6235 LIBS="-ldlpi $LIBS"
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6238
6239 /* Override any GCC internal prototype to avoid an error.
6240 Use char because int might match the return type of a GCC
6241 builtin and then its argument prototype would still apply. */
6242 #ifdef __cplusplus
6243 extern "C"
6244 #endif
6245 char dlpi_walk ();
6246 int
6247 main ()
6248 {
6249 return dlpi_walk ();
6250 ;
6251 return 0;
6252 }
6253 _ACEOF
6254 if ac_fn_c_try_link "$LINENO"; then :
6255 ac_cv_lib_dlpi_dlpi_walk=yes
6256 else
6257 ac_cv_lib_dlpi_dlpi_walk=no
6258 fi
6259 rm -f core conftest.err conftest.$ac_objext \
6260 conftest$ac_exeext conftest.$ac_ext
6261 LIBS=$ac_check_lib_save_LIBS
6262 fi
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6264 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6265 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then :
6266
6267 LIBS="-ldlpi $LIBS"
6268 V_PCAP=libdlpi
6269
6270 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
6271
6272
6273 else
6274 V_PCAP=dlpi
6275 fi
6276
6277 LDFLAGS=$saved_ldflags
6278
6279 #
6280 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6281 # versions of DLPI.
6282 #
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
6284 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
6285 if ${ac_cv_sys_dlpi_usable+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290
6291 #include <sys/types.h>
6292 #include <sys/time.h>
6293 #include <sys/dlpi.h>
6294
6295 int
6296 main ()
6297 {
6298 int i = DL_PROMISC_PHYS;
6299 ;
6300 return 0;
6301 }
6302 _ACEOF
6303 if ac_fn_c_try_compile "$LINENO"; then :
6304 ac_cv_sys_dlpi_usable=yes
6305 else
6306 ac_cv_sys_dlpi_usable=no
6307 fi
6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 fi
6310
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
6312 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
6313 if test $ac_cv_sys_dlpi_usable = no ; then
6314 as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
6315 fi
6316
6317 #
6318 # Check to see if Solaris has the dl_passive_req_t struct defined
6319 # in <sys/dlpi.h>.
6320 # This check is for DLPI support for passive modes.
6321 # See dlpi(7P) for more details.
6322 #
6323 ac_fn_c_check_type "$LINENO" "dl_passive_req_t" "ac_cv_type_dl_passive_req_t" "
6324 #include <sys/types.h>
6325 #include <sys/dlpi.h>
6326
6327 "
6328 if test "x$ac_cv_type_dl_passive_req_t" = xyes; then :
6329
6330 cat >>confdefs.h <<_ACEOF
6331 #define HAVE_DL_PASSIVE_REQ_T 1
6332 _ACEOF
6333
6334
6335 fi
6336
6337 ;;
6338
6339 linux)
6340 #
6341 # Do we have the wireless extensions?
6342 #
6343 for ac_header in linux/wireless.h
6344 do :
6345 ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
6346 #include <sys/socket.h>
6347 #include <linux/if.h>
6348 #include <linux/types.h>
6349
6350 "
6351 if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
6352 cat >>confdefs.h <<_ACEOF
6353 #define HAVE_LINUX_WIRELESS_H 1
6354 _ACEOF
6355
6356 fi
6357
6358 done
6359
6360
6361 #
6362 # Do we have libnl?
6363 #
6364
6365 # Check whether --with-libnl was given.
6366 if test "${with_libnl+set}" = set; then :
6367 withval=$with_libnl; with_libnl=$withval
6368 else
6369 with_libnl=if_available
6370 fi
6371
6372
6373 if test x$with_libnl != xno ; then
6374 have_any_nl="no"
6375
6376 incdir=-I/usr/include/libnl3
6377 libnldir=
6378 case "$with_libnl" in
6379
6380 yes|if_available)
6381 ;;
6382
6383 *)
6384 if test -d $withval; then
6385 libnldir=-L${withval}/lib/.libs
6386 incdir=-I${withval}/include
6387 fi
6388 ;;
6389 esac
6390
6391 #
6392 # Try libnl 3.x first.
6393 #
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
6395 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
6396 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 ac_check_lib_save_LIBS=$LIBS
6400 LIBS="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6403
6404 /* Override any GCC internal prototype to avoid an error.
6405 Use char because int might match the return type of a GCC
6406 builtin and then its argument prototype would still apply. */
6407 #ifdef __cplusplus
6408 extern "C"
6409 #endif
6410 char nl_socket_alloc ();
6411 int
6412 main ()
6413 {
6414 return nl_socket_alloc ();
6415 ;
6416 return 0;
6417 }
6418 _ACEOF
6419 if ac_fn_c_try_link "$LINENO"; then :
6420 ac_cv_lib_nl_3_nl_socket_alloc=yes
6421 else
6422 ac_cv_lib_nl_3_nl_socket_alloc=no
6423 fi
6424 rm -f core conftest.err conftest.$ac_objext \
6425 conftest$ac_exeext conftest.$ac_ext
6426 LIBS=$ac_check_lib_save_LIBS
6427 fi
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
6429 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
6430 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes; then :
6431
6432 #
6433 # Yes, we have libnl 3.x.
6434 #
6435 LIBS="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6436
6437 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6438
6439
6440 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
6441
6442
6443 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6444
6445
6446 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6447
6448 V_INCLS="$V_INCLS ${incdir}"
6449 have_any_nl="yes"
6450
6451 fi
6452
6453
6454 if test x$have_any_nl = xno ; then
6455 #
6456 # Try libnl 2.x
6457 #
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
6459 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
6460 if ${ac_cv_lib_nl_nl_socket_alloc+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 ac_check_lib_save_LIBS=$LIBS
6464 LIBS="-lnl $LIBS"
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467
6468 /* Override any GCC internal prototype to avoid an error.
6469 Use char because int might match the return type of a GCC
6470 builtin and then its argument prototype would still apply. */
6471 #ifdef __cplusplus
6472 extern "C"
6473 #endif
6474 char nl_socket_alloc ();
6475 int
6476 main ()
6477 {
6478 return nl_socket_alloc ();
6479 ;
6480 return 0;
6481 }
6482 _ACEOF
6483 if ac_fn_c_try_link "$LINENO"; then :
6484 ac_cv_lib_nl_nl_socket_alloc=yes
6485 else
6486 ac_cv_lib_nl_nl_socket_alloc=no
6487 fi
6488 rm -f core conftest.err conftest.$ac_objext \
6489 conftest$ac_exeext conftest.$ac_ext
6490 LIBS=$ac_check_lib_save_LIBS
6491 fi
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
6493 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
6494 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes; then :
6495
6496 #
6497 # Yes, we have libnl 2.x.
6498 #
6499 LIBS="${libnldir} -lnl-genl -lnl $LIBS"
6500
6501 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6502
6503
6504 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
6505
6506
6507 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6508
6509
6510 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6511
6512 have_any_nl="yes"
6513
6514 fi
6515
6516 fi
6517
6518 if test x$have_any_nl = xno ; then
6519 #
6520 # No, we don't; do we have libnl 1.x?
6521 #
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
6523 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
6524 if ${ac_cv_lib_nl_nl_handle_alloc+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 ac_check_lib_save_LIBS=$LIBS
6528 LIBS="-lnl $LIBS"
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531
6532 /* Override any GCC internal prototype to avoid an error.
6533 Use char because int might match the return type of a GCC
6534 builtin and then its argument prototype would still apply. */
6535 #ifdef __cplusplus
6536 extern "C"
6537 #endif
6538 char nl_handle_alloc ();
6539 int
6540 main ()
6541 {
6542 return nl_handle_alloc ();
6543 ;
6544 return 0;
6545 }
6546 _ACEOF
6547 if ac_fn_c_try_link "$LINENO"; then :
6548 ac_cv_lib_nl_nl_handle_alloc=yes
6549 else
6550 ac_cv_lib_nl_nl_handle_alloc=no
6551 fi
6552 rm -f core conftest.err conftest.$ac_objext \
6553 conftest$ac_exeext conftest.$ac_ext
6554 LIBS=$ac_check_lib_save_LIBS
6555 fi
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
6557 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
6558 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes; then :
6559
6560 #
6561 # Yes.
6562 #
6563 LIBS="${libnldir} -lnl $LIBS"
6564
6565 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6566
6567 have_any_nl="yes"
6568
6569 fi
6570
6571 fi
6572
6573 if test x$have_any_nl = xno ; then
6574 #
6575 # No, we don't have libnl at all.
6576 #
6577 if test x$with_libnl = xyes ; then
6578 as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5
6579 fi
6580 fi
6581 fi
6582
6583 for ac_header in linux/ethtool.h
6584 do :
6585 ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
6586 $ac_includes_default
6587 #include <linux/types.h>
6588
6589 "
6590 if test "x$ac_cv_header_linux_ethtool_h" = xyes; then :
6591 cat >>confdefs.h <<_ACEOF
6592 #define HAVE_LINUX_ETHTOOL_H 1
6593 _ACEOF
6594
6595 fi
6596
6597 done
6598
6599
6600 #
6601 # Check to see if struct tpacket_stats is defined in
6602 # <linux/if_packet.h>. If so, then pcap-linux.c can use this
6603 # to report proper statistics.
6604 #
6605 # -Scott Barron
6606 #
6607 ac_fn_c_check_type "$LINENO" "struct tpacket_stats" "ac_cv_type_struct_tpacket_stats" "
6608 #include <linux/if_packet.h>
6609
6610 "
6611 if test "x$ac_cv_type_struct_tpacket_stats" = xyes; then :
6612
6613 cat >>confdefs.h <<_ACEOF
6614 #define HAVE_STRUCT_TPACKET_STATS 1
6615 _ACEOF
6616
6617
6618 fi
6619
6620
6621 #
6622 # Check to see if the tpacket_auxdata struct has a tp_vlan_tci member.
6623 #
6624 # NOTE: any failure means we conclude that it doesn't have that
6625 # member, so if we don't have tpacket_auxdata, we conclude it
6626 # doesn't have that member (which is OK, as either we won't be
6627 # using code that would use that member, or we wouldn't compile
6628 # in any case).
6629 ac_fn_c_check_member "$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "
6630 #include <sys/types.h>
6631 #include <linux/if_packet.h>
6632
6633 "
6634 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes; then :
6635
6636 cat >>confdefs.h <<_ACEOF
6637 #define HAVE_STRUCT_TPACKET_AUXDATA_TP_VLAN_TCI 1
6638 _ACEOF
6639
6640
6641 fi
6642
6643 ;;
6644
6645 bpf)
6646 #
6647 # Check whether we have the *BSD-style ioctls.
6648 #
6649 for ac_header in net/if_media.h
6650 do :
6651 ac_fn_c_check_header_mongrel "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
6652 if test "x$ac_cv_header_net_if_media_h" = xyes; then :
6653 cat >>confdefs.h <<_ACEOF
6654 #define HAVE_NET_IF_MEDIA_H 1
6655 _ACEOF
6656
6657 fi
6658
6659 done
6660
6661
6662 #
6663 # Check whether we have struct BPF_TIMEVAL.
6664 #
6665 ac_fn_c_check_type "$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
6666 #include <sys/types.h>
6667 #include <sys/ioctl.h>
6668 #ifdef HAVE_SYS_IOCCOM_H
6669 #include <sys/ioccom.h>
6670 #endif
6671 #include <net/bpf.h>
6672
6673 "
6674 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes; then :
6675
6676 cat >>confdefs.h <<_ACEOF
6677 #define HAVE_STRUCT_BPF_TIMEVAL 1
6678 _ACEOF
6679
6680
6681 fi
6682
6683 ;;
6684
6685 dag)
6686 #
6687 # --with-pcap=dag is the only way to get here, and it means
6688 # "DAG support but nothing else"
6689 #
6690 V_DEFS="$V_DEFS -DDAG_ONLY"
6691 xxx_only=yes
6692 ;;
6693
6694 septel)
6695 #
6696 # --with-pcap=septel is the only way to get here, and it means
6697 # "Septel support but nothing else"
6698 #
6699 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
6700 xxx_only=yes
6701 ;;
6702
6703 snf)
6704 #
6705 # --with-pcap=snf is the only way to get here, and it means
6706 # "SNF support but nothing else"
6707 #
6708 V_DEFS="$V_DEFS -DSNF_ONLY"
6709 xxx_only=yes
6710 ;;
6711
6712 null)
6713 ;;
6714
6715 *)
6716 as_fn_error $? "$V_PCAP is not a valid pcap type" "$LINENO" 5
6717 ;;
6718 esac
6719
6720 if test "$V_PCAP" != null
6721 then
6722 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6723 if test "x$ac_cv_func_getifaddrs" = xyes; then :
6724
6725 #
6726 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
6727 # as well, just in case some platform is really weird.
6728 #
6729 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6730 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6731
6732 #
6733 # We have the header, so we use "getifaddrs()" to
6734 # get the list of interfaces.
6735 #
6736 V_FINDALLDEVS=fad-getad.c
6737
6738 else
6739
6740 #
6741 # We don't have the header - give up.
6742 # XXX - we could also fall back on some other
6743 # mechanism, but, for now, this'll catch this
6744 # problem so that we can at least try to figure
6745 # out something to do on systems with "getifaddrs()"
6746 # but without "ifaddrs.h", if there is something
6747 # we can do on those systems.
6748 #
6749 as_fn_error $? "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
6750
6751 fi
6752
6753
6754
6755 else
6756
6757 #
6758 # Well, we don't have "getifaddrs()", at least not with the
6759 # libraries with which we've decided we need to link
6760 # libpcap with, so we have to use some other mechanism.
6761 #
6762 # Note that this may happen on Solaris, which has
6763 # getifaddrs(), but in -lsocket, not in -lxnet, so we
6764 # won't find it if we link with -lxnet, which we want
6765 # to do for other reasons.
6766 #
6767 # For now, we use either the SIOCGIFCONF ioctl or the
6768 # SIOCGLIFCONF ioctl, preferring the latter if we have
6769 # it; the latter is a Solarisism that first appeared
6770 # in Solaris 8. (Solaris's getifaddrs() appears to
6771 # be built atop SIOCGLIFCONF; using it directly
6772 # avoids a not-all-that-useful middleman.)
6773 #
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6775 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6776 if ${ac_cv_lbl_have_siocglifconf+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 #include <sys/param.h>
6782 #include <sys/file.h>
6783 #include <sys/ioctl.h>
6784 #include <sys/socket.h>
6785 #include <sys/sockio.h>
6786 int
6787 main ()
6788 {
6789 ioctl(0, SIOCGLIFCONF, (char *)0);
6790 ;
6791 return 0;
6792 }
6793 _ACEOF
6794 if ac_fn_c_try_compile "$LINENO"; then :
6795 ac_cv_lbl_have_siocglifconf=yes
6796 else
6797 ac_cv_lbl_have_siocglifconf=no
6798 fi
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800 fi
6801
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6803 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6804 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6805 V_FINDALLDEVS=fad-glifc.c
6806 else
6807 V_FINDALLDEVS=fad-gifc.c
6808 fi
6809
6810 fi
6811
6812 fi
6813
6814 case "$host_os" in
6815 linux*)
6816 for ac_header in linux/net_tstamp.h
6817 do :
6818 ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
6819 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
6820 cat >>confdefs.h <<_ACEOF
6821 #define HAVE_LINUX_NET_TSTAMP_H 1
6822 _ACEOF
6823
6824 fi
6825
6826 done
6827
6828 ;;
6829 *)
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
6831 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
6832 ;;
6833 esac
6834
6835 # Check whether --enable-packet-ring was given.
6836 if test "${enable_packet_ring+set}" = set; then :
6837 enableval=$enable_packet_ring;
6838 else
6839 enable_packet_ring=yes
6840 fi
6841
6842
6843 if test "x$enable_packet_ring" != "xno" ; then
6844
6845 $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
6846
6847
6848 fi
6849
6850 #
6851 # Check for socklen_t.
6852 #
6853 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
6854 #include <sys/types.h>
6855 #include <sys/socket.h>
6856
6857 "
6858 if test "x$ac_cv_type_socklen_t" = xyes; then :
6859
6860 cat >>confdefs.h <<_ACEOF
6861 #define HAVE_SOCKLEN_T 1
6862 _ACEOF
6863
6864
6865 fi
6866
6867
6868 # Check whether --enable-ipv6 was given.
6869 if test "${enable_ipv6+set}" = set; then :
6870 enableval=$enable_ipv6;
6871 else
6872 enable_ipv6=yes
6873 fi
6874
6875 if test "$enable_ipv6" != "no"; then
6876 #
6877 # We've already made sure we have getaddrinfo above in
6878 # AC_LBL_LIBRARY_NET.
6879 #
6880
6881 $as_echo "#define INET6 1" >>confdefs.h
6882
6883 fi
6884
6885 # Check for Endace DAG card support.
6886
6887 # Check whether --with-dag was given.
6888 if test "${with_dag+set}" = set; then :
6889 withval=$with_dag;
6890 if test "$withval" = no
6891 then
6892 # User doesn't want DAG support.
6893 want_dag=no
6894 elif test "$withval" = yes
6895 then
6896 # User wants DAG support but hasn't specified a directory.
6897 want_dag=yes
6898 else
6899 # User wants DAG support and has specified a directory, so use the provided value.
6900 want_dag=yes
6901 dag_root=$withval
6902 fi
6903
6904 else
6905
6906 if test "$V_PCAP" = dag; then
6907 # User requested DAG-only libpcap, so we'd better have
6908 # the DAG API.
6909 want_dag=yes
6910 elif test "xxx_only" = yes; then
6911 # User requested something-else-only pcap, so they don't
6912 # want DAG support.
6913 want_dag=no
6914 else
6915 #
6916 # Use DAG API if present, otherwise don't
6917 #
6918 want_dag=ifpresent
6919 fi
6920
6921 fi
6922
6923
6924
6925 # Check whether --with-dag-includes was given.
6926 if test "${with_dag_includes+set}" = set; then :
6927 withval=$with_dag_includes;
6928 # User wants DAG support and has specified a header directory, so use the provided value.
6929 want_dag=yes
6930 dag_include_dir=$withval
6931
6932 fi
6933
6934
6935
6936 # Check whether --with-dag-libraries was given.
6937 if test "${with_dag_libraries+set}" = set; then :
6938 withval=$with_dag_libraries;
6939 # User wants DAG support and has specified a library directory, so use the provided value.
6940 want_dag=yes
6941 dag_lib_dir=$withval
6942
6943 fi
6944
6945
6946 if test "$want_dag" != no; then
6947
6948 # If necessary, set default paths for DAG API headers and libraries.
6949 if test -z "$dag_root"; then
6950 dag_root=/usr/local
6951 fi
6952
6953 if test -z "$dag_include_dir"; then
6954 dag_include_dir="$dag_root/include"
6955 fi
6956
6957 if test -z "$dag_lib_dir"; then
6958 dag_lib_dir="$dag_root/lib"
6959 fi
6960
6961 V_INCLS="$V_INCLS -I$dag_include_dir"
6962
6963 for ac_header in dagapi.h
6964 do :
6965 ac_fn_c_check_header_mongrel "$LINENO" "dagapi.h" "ac_cv_header_dagapi_h" "$ac_includes_default"
6966 if test "x$ac_cv_header_dagapi_h" = xyes; then :
6967 cat >>confdefs.h <<_ACEOF
6968 #define HAVE_DAGAPI_H 1
6969 _ACEOF
6970
6971 fi
6972
6973 done
6974
6975
6976 if test "$ac_cv_header_dagapi_h" = yes; then
6977
6978 if test $V_PCAP != dag ; then
6979 SSRC="$SSRC pcap-dag.c"
6980 fi
6981
6982 # Check for various DAG API functions.
6983 # Don't need to save and restore LIBS to prevent -ldag being
6984 # included if there's a found-action (arg 3).
6985 saved_ldflags=$LDFLAGS
6986 LDFLAGS="-L$dag_lib_dir"
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
6988 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
6989 if ${ac_cv_lib_dag_dag_attach_stream+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 ac_check_lib_save_LIBS=$LIBS
6993 LIBS="-ldag $LIBS"
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996
6997 /* Override any GCC internal prototype to avoid an error.
6998 Use char because int might match the return type of a GCC
6999 builtin and then its argument prototype would still apply. */
7000 #ifdef __cplusplus
7001 extern "C"
7002 #endif
7003 char dag_attach_stream ();
7004 int
7005 main ()
7006 {
7007 return dag_attach_stream ();
7008 ;
7009 return 0;
7010 }
7011 _ACEOF
7012 if ac_fn_c_try_link "$LINENO"; then :
7013 ac_cv_lib_dag_dag_attach_stream=yes
7014 else
7015 ac_cv_lib_dag_dag_attach_stream=no
7016 fi
7017 rm -f core conftest.err conftest.$ac_objext \
7018 conftest$ac_exeext conftest.$ac_ext
7019 LIBS=$ac_check_lib_save_LIBS
7020 fi
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
7022 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
7023 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes; then :
7024 cat >>confdefs.h <<_ACEOF
7025 #define HAVE_LIBDAG 1
7026 _ACEOF
7027
7028 LIBS="-ldag $LIBS"
7029
7030 else
7031 as_fn_error $? "DAG library lacks streams support" "$LINENO" 5
7032 fi
7033
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
7035 $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
7036 if ${ac_cv_lib_dag_dag_attach_stream64+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 ac_check_lib_save_LIBS=$LIBS
7040 LIBS="-ldag $LIBS"
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7043
7044 /* Override any GCC internal prototype to avoid an error.
7045 Use char because int might match the return type of a GCC
7046 builtin and then its argument prototype would still apply. */
7047 #ifdef __cplusplus
7048 extern "C"
7049 #endif
7050 char dag_attach_stream64 ();
7051 int
7052 main ()
7053 {
7054 return dag_attach_stream64 ();
7055 ;
7056 return 0;
7057 }
7058 _ACEOF
7059 if ac_fn_c_try_link "$LINENO"; then :
7060 ac_cv_lib_dag_dag_attach_stream64=yes
7061 else
7062 ac_cv_lib_dag_dag_attach_stream64=no
7063 fi
7064 rm -f core conftest.err conftest.$ac_objext \
7065 conftest$ac_exeext conftest.$ac_ext
7066 LIBS=$ac_check_lib_save_LIBS
7067 fi
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
7069 $as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
7070 if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes; then :
7071 dag_large_streams="1"
7072 else
7073 dag_large_streams="0"
7074 fi
7075
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
7077 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
7078 if ${ac_cv_lib_dag_dag_get_erf_types+:} false; then :
7079 $as_echo_n "(cached) " >&6
7080 else
7081 ac_check_lib_save_LIBS=$LIBS
7082 LIBS="-ldag $LIBS"
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7085
7086 /* Override any GCC internal prototype to avoid an error.
7087 Use char because int might match the return type of a GCC
7088 builtin and then its argument prototype would still apply. */
7089 #ifdef __cplusplus
7090 extern "C"
7091 #endif
7092 char dag_get_erf_types ();
7093 int
7094 main ()
7095 {
7096 return dag_get_erf_types ();
7097 ;
7098 return 0;
7099 }
7100 _ACEOF
7101 if ac_fn_c_try_link "$LINENO"; then :
7102 ac_cv_lib_dag_dag_get_erf_types=yes
7103 else
7104 ac_cv_lib_dag_dag_get_erf_types=no
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext \
7107 conftest$ac_exeext conftest.$ac_ext
7108 LIBS=$ac_check_lib_save_LIBS
7109 fi
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
7111 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
7112 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes; then :
7113
7114
7115 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
7116
7117 fi
7118
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
7120 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
7121 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 ac_check_lib_save_LIBS=$LIBS
7125 LIBS="-ldag $LIBS"
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128
7129 /* Override any GCC internal prototype to avoid an error.
7130 Use char because int might match the return type of a GCC
7131 builtin and then its argument prototype would still apply. */
7132 #ifdef __cplusplus
7133 extern "C"
7134 #endif
7135 char dag_get_stream_erf_types ();
7136 int
7137 main ()
7138 {
7139 return dag_get_stream_erf_types ();
7140 ;
7141 return 0;
7142 }
7143 _ACEOF
7144 if ac_fn_c_try_link "$LINENO"; then :
7145 ac_cv_lib_dag_dag_get_stream_erf_types=yes
7146 else
7147 ac_cv_lib_dag_dag_get_stream_erf_types=no
7148 fi
7149 rm -f core conftest.err conftest.$ac_objext \
7150 conftest$ac_exeext conftest.$ac_ext
7151 LIBS=$ac_check_lib_save_LIBS
7152 fi
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
7154 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
7155 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes; then :
7156
7157
7158 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
7159
7160 fi
7161
7162
7163 LDFLAGS=$saved_ldflags
7164
7165 #
7166 # We assume that if we have libdag we have libdagconf,
7167 # as they're installed at the same time from the same
7168 # package.
7169 #
7170 LIBS="$LIBS -ldag -ldagconf"
7171 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
7172
7173 if test "$dag_large_streams" = 1; then
7174
7175 $as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
7176
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
7178 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
7179 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false; then :
7180 $as_echo_n "(cached) " >&6
7181 else
7182 ac_check_lib_save_LIBS=$LIBS
7183 LIBS="-lvdag $LIBS"
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7186
7187 /* Override any GCC internal prototype to avoid an error.
7188 Use char because int might match the return type of a GCC
7189 builtin and then its argument prototype would still apply. */
7190 #ifdef __cplusplus
7191 extern "C"
7192 #endif
7193 char vdag_set_device_info ();
7194 int
7195 main ()
7196 {
7197 return vdag_set_device_info ();
7198 ;
7199 return 0;
7200 }
7201 _ACEOF
7202 if ac_fn_c_try_link "$LINENO"; then :
7203 ac_cv_lib_vdag_vdag_set_device_info=yes
7204 else
7205 ac_cv_lib_vdag_vdag_set_device_info=no
7206 fi
7207 rm -f core conftest.err conftest.$ac_objext \
7208 conftest$ac_exeext conftest.$ac_ext
7209 LIBS=$ac_check_lib_save_LIBS
7210 fi
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
7212 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
7213 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes; then :
7214 ac_dag_have_vdag="1"
7215 else
7216 ac_dag_have_vdag="0"
7217 fi
7218
7219 if test "$ac_dag_have_vdag" = 1; then
7220
7221 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
7222
7223 if test "$ac_lbl_have_pthreads" != "found"; then
7224 as_fn_error $? "DAG requires pthreads, but we didn't find them" "$LINENO" 5
7225 fi
7226 LIBS="$LIBS $PTHREAD_LIBS"
7227 fi
7228 fi
7229
7230
7231 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
7232
7233 else
7234
7235 if test "$V_PCAP" = dag; then
7236 # User requested "dag" capture type but we couldn't
7237 # find the DAG API support.
7238 as_fn_error $? "DAG support requested with --with-pcap=dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5
7239 fi
7240
7241 if test "$want_dag" = yes; then
7242 # User wanted DAG support but we couldn't find it.
7243 as_fn_error $? "DAG support requested with --with-dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5
7244 fi
7245 fi
7246 fi
7247
7248
7249 # Check whether --with-septel was given.
7250 if test "${with_septel+set}" = set; then :
7251 withval=$with_septel;
7252 if test "$withval" = no
7253 then
7254 want_septel=no
7255 elif test "$withval" = yes
7256 then
7257 want_septel=yes
7258 septel_root=
7259 else
7260 want_septel=yes
7261 septel_root=$withval
7262 fi
7263
7264 else
7265
7266 if test "$V_PCAP" = septel; then
7267 # User requested Septel-only libpcap, so we'd better have
7268 # the Septel API.
7269 want_septel=yes
7270 elif test "xxx_only" = yes; then
7271 # User requested something-else-only pcap, so they don't
7272 # want Septel support.
7273 want_septel=no
7274 else
7275 #
7276 # Use Septel API if present, otherwise don't
7277 #
7278 want_septel=ifpresent
7279 fi
7280
7281 fi
7282
7283
7284 ac_cv_lbl_septel_api=no
7285 if test "$with_septel" != no; then
7286
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
7288 $as_echo_n "checking whether we have Septel API headers... " >&6; }
7289
7290 # If necessary, set default paths for Septel API headers and libraries.
7291 if test -z "$septel_root"; then
7292 septel_root=$srcdir/../septel
7293 fi
7294
7295 septel_tools_dir="$septel_root"
7296 septel_include_dir="$septel_root/INC"
7297
7298 if test -r "$septel_include_dir/msg.h"; then
7299 ac_cv_lbl_septel_api=yes
7300 fi
7301
7302 if test "$ac_cv_lbl_septel_api" = yes; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
7304 $as_echo "yes ($septel_include_dir)" >&6; }
7305
7306 V_INCLS="$V_INCLS -I$septel_include_dir"
7307 ADDLOBJS="$ADDLOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
7308 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
7309
7310 if test "$V_PCAP" != septel ; then
7311 SSRC="$SSRC pcap-septel.c"
7312 fi
7313
7314
7315 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
7316
7317 else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7320
7321 if test "$V_PCAP" = septel; then
7322 # User requested "septel" capture type but
7323 # we couldn't find the Septel API support.
7324 as_fn_error $? "Septel support requested with --with-pcap=septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5
7325 fi
7326
7327 if test "$want_septel" = yes; then
7328 # User wanted Septel support but we couldn't find it.
7329 as_fn_error $? "Septel support requested with --with-septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5
7330 fi
7331 fi
7332 fi
7333
7334 # Check for Myricom SNF support.
7335
7336 # Check whether --with-snf was given.
7337 if test "${with_snf+set}" = set; then :
7338 withval=$with_snf;
7339 if test "$withval" = no
7340 then
7341 # User explicitly doesn't want SNF
7342 want_snf=no
7343 elif test "$withval" = yes
7344 then
7345 # User wants SNF support but hasn't specified a directory.
7346 want_snf=yes
7347 else
7348 # User wants SNF support with a specified directory.
7349 want_snf=yes
7350 snf_root=$withval
7351 fi
7352
7353 else
7354
7355 if test "$V_PCAP" = snf; then
7356 # User requested Sniffer-only libpcap, so we'd better have
7357 # the Sniffer API.
7358 want_snf=yes
7359 elif test "xxx_only" = yes; then
7360 # User requested something-else-only pcap, so they don't
7361 # want SNF support.
7362 want_snf=no
7363 else
7364 #
7365 # Use Sniffer API if present, otherwise don't
7366 #
7367 want_snf=ifpresent
7368 fi
7369
7370 fi
7371
7372
7373
7374 # Check whether --with-snf-includes was given.
7375 if test "${with_snf_includes+set}" = set; then :
7376 withval=$with_snf_includes;
7377 # User wants SNF with specific header directory
7378 want_snf=yes
7379 snf_include_dir=$withval
7380
7381 fi
7382
7383
7384
7385 # Check whether --with-snf-libraries was given.
7386 if test "${with_snf_libraries+set}" = set; then :
7387 withval=$with_snf_libraries;
7388 # User wants SNF with specific lib directory
7389 want_snf=yes
7390 snf_lib_dir=$withval
7391
7392 fi
7393
7394
7395 ac_cv_lbl_snf_api=no
7396 if test "$with_snf" != no; then
7397
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
7399 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
7400
7401 # If necessary, set default paths for Sniffer headers and libraries.
7402 if test -z "$snf_root"; then
7403 snf_root=/opt/snf
7404 fi
7405
7406 if test -z "$snf_include_dir"; then
7407 snf_include_dir="$snf_root/include"
7408 fi
7409
7410 if test -z "$snf_lib_dir"; then
7411 snf_lib_dir="$snf_root/lib"
7412 fi
7413
7414 if test -f "$snf_include_dir/snf.h"; then
7415 # We found a header; make sure we can link with the library
7416 saved_ldflags=$LDFLAGS
7417 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
7419 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
7420 if ${ac_cv_lib_snf_snf_init+:} false; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423 ac_check_lib_save_LIBS=$LIBS
7424 LIBS="-lsnf $LIBS"
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7427
7428 /* Override any GCC internal prototype to avoid an error.
7429 Use char because int might match the return type of a GCC
7430 builtin and then its argument prototype would still apply. */
7431 #ifdef __cplusplus
7432 extern "C"
7433 #endif
7434 char snf_init ();
7435 int
7436 main ()
7437 {
7438 return snf_init ();
7439 ;
7440 return 0;
7441 }
7442 _ACEOF
7443 if ac_fn_c_try_link "$LINENO"; then :
7444 ac_cv_lib_snf_snf_init=yes
7445 else
7446 ac_cv_lib_snf_snf_init=no
7447 fi
7448 rm -f core conftest.err conftest.$ac_objext \
7449 conftest$ac_exeext conftest.$ac_ext
7450 LIBS=$ac_check_lib_save_LIBS
7451 fi
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
7453 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
7454 if test "x$ac_cv_lib_snf_snf_init" = xyes; then :
7455 ac_cv_lbl_snf_api="yes"
7456 fi
7457
7458 LDFLAGS="$saved_ldflags"
7459 if test "$ac_cv_lbl_snf_api" = no; then
7460 as_fn_error $? "SNF API cannot correctly be linked; check config.log" "$LINENO" 5
7461 fi
7462 fi
7463
7464 if test "$ac_cv_lbl_snf_api" = yes; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
7466 $as_echo "yes ($snf_root)" >&6; }
7467
7468 V_INCLS="$V_INCLS -I$snf_include_dir"
7469 LIBS="$LIBS -lsnf"
7470 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
7471
7472 if test "$V_PCAP" != snf ; then
7473 SSRC="$SSRC pcap-snf.c"
7474 fi
7475
7476
7477 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
7478
7479 else
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7482
7483 if test "$want_snf" = yes; then
7484 # User requested "snf" capture type but
7485 # we couldn't find the Sniffer API support.
7486 as_fn_error $? "Myricom Sniffer support requested with --with-pcap=snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5
7487 fi
7488
7489 if test "$want_snf" = yes; then
7490 as_fn_error $? "Myricom Sniffer support requested with --with-snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5
7491 fi
7492 fi
7493 fi
7494
7495 # Check for Riverbed TurboCap support.
7496
7497 # Check whether --with-turbocap was given.
7498 if test "${with_turbocap+set}" = set; then :
7499 withval=$with_turbocap;
7500 if test "$withval" = no
7501 then
7502 # User explicitly doesn't want TurboCap
7503 want_turbocap=no
7504 elif test "$withval" = yes
7505 then
7506 # User wants TurboCap support but hasn't specified a directory.
7507 want_turbocap=yes
7508 else
7509 # User wants TurboCap support with a specified directory.
7510 want_turbocap=yes
7511 turbocap_root=$withval
7512 fi
7513
7514 else
7515
7516 if test "xxx_only" = yes; then
7517 # User requested something-else-only pcap, so they don't
7518 # want TurboCap support.
7519 want_turbocap=no
7520 else
7521 #
7522 # Use TurboCap API if present, otherwise don't
7523 #
7524 want_turbocap=ifpresent
7525 fi
7526
7527 fi
7528
7529
7530 ac_cv_lbl_turbocap_api=no
7531 if test "$want_turbocap" != no; then
7532
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
7534 $as_echo_n "checking whether TurboCap is supported... " >&6; }
7535
7536 save_CFLAGS="$CFLAGS"
7537 save_LIBS="$LIBS"
7538 if test ! -z "$turbocap_root"; then
7539 TURBOCAP_CFLAGS="-I$turbocap_root/include"
7540 TURBOCAP_LIBS="-L$turbocap_root/lib"
7541 CFLAGS="$CFLAGS $TURBOCAP_CFLAGS"
7542 fi
7543
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546
7547 #include <TcApi.h>
7548
7549 int
7550 main ()
7551 {
7552
7553 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
7554 TC_INSTANCE i;
7555 (void)TcInstanceCreateByName("foo", &i);
7556
7557 ;
7558 return 0;
7559 }
7560 _ACEOF
7561 if ac_fn_c_try_compile "$LINENO"; then :
7562 ac_cv_lbl_turbocap_api=yes
7563 fi
7564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565
7566 CFLAGS="$save_CFLAGS"
7567 if test $ac_cv_lbl_turbocap_api = yes; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7569 $as_echo "yes" >&6; }
7570
7571 SSRC="$SSRC pcap-tc.c"
7572 V_INCLS="$V_INCLS $TURBOCAP_CFLAGS"
7573 LIBS="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
7574
7575
7576 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
7577
7578 else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7581
7582 if test "$want_turbocap" = yes; then
7583 # User wanted Turbo support but we couldn't find it.
7584 as_fn_error $? "TurboCap support requested with --with-turbocap, but the TurboCap headers weren't found: make sure the TurboCap support is installed or don't request TurboCap support" "$LINENO" 5
7585 fi
7586 fi
7587 fi
7588
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
7590 $as_echo_n "checking whether to enable remote packet capture... " >&6; }
7591 # Check whether --enable-remote was given.
7592 if test "${enable_remote+set}" = set; then :
7593 enableval=$enable_remote;
7594 else
7595 enableval=no
7596 fi
7597
7598 case "$enableval" in
7599 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7600 $as_echo "yes" >&6; }
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
7602 $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
7604 $as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
7605 #
7606 # rpcapd requires pthreads on UN*X.
7607 #
7608 if test "$ac_lbl_have_pthreads" != "found"; then
7609 as_fn_error $? "rpcapd requires pthreads, but we didn't find them" "$LINENO" 5
7610 fi
7611 #
7612 # It also requires crypt().
7613 # Do we have it in the system libraries?
7614 #
7615 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
7616 if test "x$ac_cv_func_crypt" = xyes; then :
7617
7618 else
7619
7620 #
7621 # No. Do we have it in -lcrypt?
7622 #
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7624 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7625 if ${ac_cv_lib_crypt_crypt+:} false; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 ac_check_lib_save_LIBS=$LIBS
7629 LIBS="-lcrypt $LIBS"
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7632
7633 /* Override any GCC internal prototype to avoid an error.
7634 Use char because int might match the return type of a GCC
7635 builtin and then its argument prototype would still apply. */
7636 #ifdef __cplusplus
7637 extern "C"
7638 #endif
7639 char crypt ();
7640 int
7641 main ()
7642 {
7643 return crypt ();
7644 ;
7645 return 0;
7646 }
7647 _ACEOF
7648 if ac_fn_c_try_link "$LINENO"; then :
7649 ac_cv_lib_crypt_crypt=yes
7650 else
7651 ac_cv_lib_crypt_crypt=no
7652 fi
7653 rm -f core conftest.err conftest.$ac_objext \
7654 conftest$ac_exeext conftest.$ac_ext
7655 LIBS=$ac_check_lib_save_LIBS
7656 fi
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7658 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7659 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
7660
7661 #
7662 # Yes; add -lcrypt to the libraries for rpcapd.
7663 #
7664 RPCAPD_LIBS="$RPCAPD_LIBS -lcrypt"
7665
7666 else
7667
7668 as_fn_error $? "rpcapd requires crypt(), but we didn't find it" "$LINENO" 5
7669
7670 fi
7671
7672
7673 fi
7674
7675
7676 #
7677 # OK, we have crypt(). Do we have getspnam()?
7678 #
7679 for ac_func in getspnam
7680 do :
7681 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7682 if test "x$ac_cv_func_getspnam" = xyes; then :
7683 cat >>confdefs.h <<_ACEOF
7684 #define HAVE_GETSPNAM 1
7685 _ACEOF
7686
7687 fi
7688 done
7689
7690
7691 #
7692 # Check for various members of struct msghdr.
7693 #
7694 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
7695 #include \"ftmacros.h\"
7696 #include <sys/socket.h>
7697
7698 "
7699 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
7700
7701 cat >>confdefs.h <<_ACEOF
7702 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
7703 _ACEOF
7704
7705
7706 fi
7707
7708 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" "
7709 #include \"ftmacros.h\"
7710 #include <sys/socket.h>
7711
7712 "
7713 if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes; then :
7714
7715 cat >>confdefs.h <<_ACEOF
7716 #define HAVE_STRUCT_MSGHDR_MSG_FLAGS 1
7717 _ACEOF
7718
7719
7720 fi
7721
7722
7723
7724 $as_echo "#define ENABLE_REMOTE /**/" >>confdefs.h
7725
7726 SSRC="$SSRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c"
7727 BUILD_RPCAPD=build-rpcapd
7728 INSTALL_RPCAPD=install-rpcapd
7729 ;;
7730 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7732 ;;
7733 esac
7734
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
7736 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
7737 # Check whether --enable-optimizer-dbg was given.
7738 if test "${enable_optimizer_dbg+set}" = set; then :
7739 enableval=$enable_optimizer_dbg;
7740 fi
7741
7742 if test "$enable_optimizer_dbg" = "yes"; then
7743
7744 $as_echo "#define BDEBUG 1" >>confdefs.h
7745
7746 fi
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
7748 $as_echo "${enable_optimizer_dbg-no}" >&6; }
7749
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
7751 $as_echo_n "checking whether to build parser debugging code... " >&6; }
7752 # Check whether --enable-yydebug was given.
7753 if test "${enable_yydebug+set}" = set; then :
7754 enableval=$enable_yydebug;
7755 fi
7756
7757 if test "$enable_yydebug" = "yes"; then
7758
7759 $as_echo "#define YYDEBUG 1" >>confdefs.h
7760
7761 fi
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
7763 $as_echo "${enable_yydebug-no}" >&6; }
7764
7765 #
7766 # Look for {f}lex.
7767 #
7768 for ac_prog in flex lex
7769 do
7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if ${ac_cv_prog_LEX+:} false; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 if test -n "$LEX"; then
7778 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_LEX="$ac_prog"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 LEX=$ac_cv_prog_LEX
7798 if test -n "$LEX"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7800 $as_echo "$LEX" >&6; }
7801 else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7804 fi
7805
7806
7807 test -n "$LEX" && break
7808 done
7809 test -n "$LEX" || LEX=":"
7810
7811 if test "x$LEX" != "x:"; then
7812 cat >conftest.l <<_ACEOF
7813 %%
7814 a { ECHO; }
7815 b { REJECT; }
7816 c { yymore (); }
7817 d { yyless (1); }
7818 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
7819 yyless ((input () != 0)); }
7820 f { unput (yytext[0]); }
7821 . { BEGIN INITIAL; }
7822 %%
7823 #ifdef YYTEXT_POINTER
7824 extern char *yytext;
7825 #endif
7826 int
7827 main (void)
7828 {
7829 return ! yylex () + ! yywrap ();
7830 }
7831 _ACEOF
7832 { { ac_try="$LEX conftest.l"
7833 case "(($ac_try" in
7834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7836 esac
7837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7838 $as_echo "$ac_try_echo"; } >&5
7839 (eval "$LEX conftest.l") 2>&5
7840 ac_status=$?
7841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7842 test $ac_status = 0; }
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
7844 $as_echo_n "checking lex output file root... " >&6; }
7845 if ${ac_cv_prog_lex_root+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848
7849 if test -f lex.yy.c; then
7850 ac_cv_prog_lex_root=lex.yy
7851 elif test -f lexyy.c; then
7852 ac_cv_prog_lex_root=lexyy
7853 else
7854 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7855 fi
7856 fi
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
7858 $as_echo "$ac_cv_prog_lex_root" >&6; }
7859 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7860
7861 if test -z "${LEXLIB+set}"; then
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
7863 $as_echo_n "checking lex library... " >&6; }
7864 if ${ac_cv_lib_lex+:} false; then :
7865 $as_echo_n "(cached) " >&6
7866 else
7867
7868 ac_save_LIBS=$LIBS
7869 ac_cv_lib_lex='none needed'
7870 for ac_lib in '' -lfl -ll; do
7871 LIBS="$ac_lib $ac_save_LIBS"
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 `cat $LEX_OUTPUT_ROOT.c`
7875 _ACEOF
7876 if ac_fn_c_try_link "$LINENO"; then :
7877 ac_cv_lib_lex=$ac_lib
7878 fi
7879 rm -f core conftest.err conftest.$ac_objext \
7880 conftest$ac_exeext conftest.$ac_ext
7881 test "$ac_cv_lib_lex" != 'none needed' && break
7882 done
7883 LIBS=$ac_save_LIBS
7884
7885 fi
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
7887 $as_echo "$ac_cv_lib_lex" >&6; }
7888 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7889 fi
7890
7891
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
7893 $as_echo_n "checking whether yytext is a pointer... " >&6; }
7894 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 # POSIX says lex can declare yytext either as a pointer or an array; the
7898 # default is implementation-dependent. Figure out which it is, since
7899 # not all implementations provide the %pointer and %array declarations.
7900 ac_cv_prog_lex_yytext_pointer=no
7901 ac_save_LIBS=$LIBS
7902 LIBS="$LEXLIB $ac_save_LIBS"
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905
7906 #define YYTEXT_POINTER 1
7907 `cat $LEX_OUTPUT_ROOT.c`
7908 _ACEOF
7909 if ac_fn_c_try_link "$LINENO"; then :
7910 ac_cv_prog_lex_yytext_pointer=yes
7911 fi
7912 rm -f core conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914 LIBS=$ac_save_LIBS
7915
7916 fi
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
7918 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7919 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7920
7921 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
7922
7923 fi
7924 rm -f conftest.l $LEX_OUTPUT_ROOT.c
7925
7926 fi
7927 if test "$LEX" = ":"; then
7928 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
7929 fi
7930
7931 #
7932 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
7933 # and supports processing our scanner.l.
7934 #
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
7936 $as_echo_n "checking for capable lex... " >&6; }
7937 if ${tcpdump_cv_capable_lex+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
7941 tcpdump_cv_capable_lex=yes
7942 else
7943 tcpdump_cv_capable_lex=insufficient
7944 fi
7945 fi
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
7947 $as_echo "$tcpdump_cv_capable_lex" >&6; }
7948 if test $tcpdump_cv_capable_lex = insufficient ; then
7949 as_fn_error $? "$LEX is insufficient to compile libpcap.
7950 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
7951 fi
7952
7953 #
7954 # Look for yacc/bison/byacc.
7955 #
7956 for ac_prog in 'bison -y' byacc
7957 do
7958 # Extract the first word of "$ac_prog", so it can be a program name with args.
7959 set dummy $ac_prog; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if ${ac_cv_prog_YACC+:} false; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 if test -n "$YACC"; then
7966 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_prog_YACC="$ac_prog"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979 done
7980 done
7981 IFS=$as_save_IFS
7982
7983 fi
7984 fi
7985 YACC=$ac_cv_prog_YACC
7986 if test -n "$YACC"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7988 $as_echo "$YACC" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7992 fi
7993
7994
7995 test -n "$YACC" && break
7996 done
7997 test -n "$YACC" || YACC="yacc"
7998
7999
8000 #
8001 # Make sure it supports the -p flag and supports processing our
8002 # grammar.y.
8003 #
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
8005 $as_echo_n "checking for capable yacc/bison... " >&6; }
8006 if ${tcpdump_cv_capable_yacc+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
8010 tcpdump_cv_capable_yacc=yes
8011 else
8012 tcpdump_cv_capable_yacc=insufficient
8013 fi
8014 fi
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
8016 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
8017 if test $tcpdump_cv_capable_yacc = insufficient ; then
8018 as_fn_error $? "$YACC is insufficient to compile libpcap.
8019 libpcap requires Bison, a newer version of Berkeley YACC with support
8020 for reentrant parsers, or another YACC compatible with them." "$LINENO" 5
8021 fi
8022
8023 #
8024 # Do various checks for various OSes and versions of those OSes.
8025 #
8026 # Assume, by default, no support for shared libraries and V7/BSD
8027 # convention for man pages (devices in section 4, file formats in
8028 # section 5, miscellaneous info in section 7, administrative commands
8029 # and daemons in section 8). Individual cases can override this.
8030 #
8031 DYEXT="none"
8032 MAN_DEVICES=4
8033 MAN_FILE_FORMATS=5
8034 MAN_MISC_INFO=7
8035 MAN_ADMIN_COMMANDS=8
8036 case "$host_os" in
8037
8038 aix*)
8039
8040 $as_echo "#define _SUN 1" >>confdefs.h
8041
8042
8043 #
8044 # AIX makes it fun to build shared and static libraries,
8045 # because they're *both* ".a" archive libraries. We
8046 # build the static library for the benefit of the traditional
8047 # scheme of building libpcap and tcpdump in subdirectories of
8048 # the same directory, with tcpdump statically linked with the
8049 # libpcap in question, but we also build a shared library as
8050 # "libpcap.shareda" and install *it*, rather than the static
8051 # library, as "libpcap.a".
8052 #
8053 DYEXT="shareda"
8054
8055 case "$V_PCAP" in
8056
8057 dlpi)
8058 #
8059 # If we're using DLPI, applications will need to
8060 # use /lib/pse.exp if present, as we use the
8061 # STREAMS routines.
8062 #
8063 pseexe="/lib/pse.exp"
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
8065 $as_echo_n "checking for $pseexe... " >&6; }
8066 if test -f $pseexe ; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8068 $as_echo "yes" >&6; }
8069 LIBS="-I:$pseexe"
8070 fi
8071 ;;
8072
8073 bpf)
8074 #
8075 # If we're using BPF, we need "-lodm" and "-lcfg", as
8076 # we use them to load the BPF module.
8077 #
8078 LIBS="-lodm -lcfg"
8079 ;;
8080 esac
8081 ;;
8082
8083 darwin*)
8084 DYEXT="dylib"
8085 V_CCOPT="$V_CCOPT -fno-common"
8086 # Check whether --enable-universal was given.
8087 if test "${enable_universal+set}" = set; then :
8088 enableval=$enable_universal;
8089 fi
8090
8091 if test "$enable_universal" != "no"; then
8092 case "$host_os" in
8093
8094 darwin[0-7].*)
8095 #
8096 # Pre-Tiger. Build only for 32-bit PowerPC; no
8097 # need for any special compiler or linker flags.
8098 #
8099 ;;
8100
8101 darwin8.[0123]|darwin8.[0123].*)
8102 #
8103 # Tiger, prior to Intel support. Build
8104 # libraries and executables for 32-bit PowerPC
8105 # and 64-bit PowerPC, with 32-bit PowerPC first.
8106 # (I'm guessing that's what Apple does.)
8107 #
8108 # (The double brackets are needed because
8109 # autotools/m4 use brackets as a quoting
8110 # character; the double brackets turn into
8111 # single brackets in the generated configure
8112 # file.)
8113 #
8114 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64"
8115 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64"
8116 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64"
8117 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64"
8118 ;;
8119
8120 darwin8.[456]|darwin.[456].*)
8121 #
8122 # Tiger, subsequent to Intel support but prior
8123 # to x86-64 support. Build libraries and
8124 # executables for 32-bit PowerPC, 64-bit
8125 # PowerPC, and 32-bit x86, with 32-bit PowerPC
8126 # first. (I'm guessing that's what Apple does.)
8127 #
8128 # (The double brackets are needed because
8129 # autotools/m4 use brackets as a quoting
8130 # character; the double brackets turn into
8131 # single brackets in the generated configure
8132 # file.)
8133 #
8134 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8135 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8136 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8137 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8138 ;;
8139
8140 darwin8.*)
8141 #
8142 # All other Tiger, so subsequent to x86-64
8143 # support. Build libraries and executables for
8144 # 32-bit PowerPC, 64-bit PowerPC, 32-bit x86,
8145 # and x86-64, with 32-bit PowerPC first. (I'm
8146 # guessing that's what Apple does.)
8147 #
8148 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8149 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8150 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8151 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8152 ;;
8153
8154 darwin9.*)
8155 #
8156 # Leopard. Build libraries for 32-bit PowerPC,
8157 # 64-bit PowerPC, 32-bit x86, and x86-64, with
8158 # 32-bit PowerPC first, and build executables
8159 # for 32-bit x86 and 32-bit PowerPC, with 32-bit
8160 # x86 first. (That's what Apple does.)
8161 #
8162 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8163 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8164 V_PROG_CCOPT_FAT="-arch i386 -arch ppc"
8165 V_PROG_LDFLAGS_FAT="-arch i386 -arch ppc"
8166 ;;
8167
8168 darwin10.*)
8169 #
8170 # Snow Leopard. Build libraries for x86-64,
8171 # 32-bit x86, and 32-bit PowerPC, with x86-64
8172 # first, and build executables for x86-64 and
8173 # 32-bit x86, with x86-64 first. (That's what
8174 # Apple does, even though Snow Leopard doesn't
8175 # run on PPC, so PPC libpcap runs under Rosetta,
8176 # and Rosetta doesn't support BPF ioctls, so PPC
8177 # programs can't do live captures.)
8178 #
8179 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386 -arch ppc"
8180 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386 -arch ppc"
8181 V_PROG_CCOPT_FAT="-arch x86_64 -arch i386"
8182 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch i386"
8183 ;;
8184
8185 darwin*)
8186 #
8187 # Post-Snow Leopard. Build libraries for x86-64
8188 # and 32-bit x86, with x86-64 first, and build
8189 # executables only for x86-64. (That's what
8190 # Apple does.) This requires no special flags
8191 # for programs.
8192 # XXX - update if and when Apple drops support
8193 # for 32-bit x86 code and if and when Apple adds
8194 # ARM-based Macs. (You're on your own for iOS
8195 # etc.)
8196 #
8197 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386"
8198 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386"
8199 ;;
8200 esac
8201 fi
8202 ;;
8203
8204 hpux9*)
8205
8206 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
8207
8208
8209 #
8210 # Use System V conventions for man pages.
8211 #
8212 MAN_ADMIN_COMMANDS=1m
8213 MAN_FILE_FORMATS=4
8214 MAN_MISC_INFO=5
8215 ;;
8216
8217 hpux10.0*)
8218
8219 #
8220 # Use System V conventions for man pages.
8221 #
8222 MAN_ADMIN_COMMANDS=1m
8223 MAN_FILE_FORMATS=4
8224 MAN_MISC_INFO=5
8225 ;;
8226
8227 hpux10.1*)
8228
8229 #
8230 # Use System V conventions for man pages.
8231 #
8232 MAN_ADMIN_COMMANDS=1m
8233 MAN_FILE_FORMATS=4
8234 MAN_MISC_INFO=5
8235 ;;
8236
8237 hpux*)
8238
8239 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
8240
8241 if test "`uname -m`" = "ia64"; then
8242 DYEXT="so"
8243 else
8244 DYEXT="sl"
8245 fi
8246
8247 #
8248 # "-b" builds a shared library; "+h" sets the soname.
8249 #
8250 SHLIB_OPT="-b"
8251 SONAME_OPT="+h"
8252
8253 #
8254 # Use System V conventions for man pages.
8255 #
8256 MAN_FILE_FORMATS=4
8257 MAN_MISC_INFO=5
8258 ;;
8259
8260 irix*)
8261 #
8262 # Use IRIX conventions for man pages; they're the same as the
8263 # System V conventions, except that they use section 8 for
8264 # administrative commands and daemons.
8265 #
8266 MAN_FILE_FORMATS=4
8267 MAN_MISC_INFO=5
8268 ;;
8269
8270 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
8271 DYEXT="so"
8272
8273 #
8274 # Compiler assumed to be GCC; run-time linker may require a -R
8275 # flag.
8276 #
8277 if test "$libdir" != "/usr/lib"; then
8278 V_RFLAGS=-Wl,-R$libdir
8279 fi
8280 ;;
8281
8282 osf*)
8283 DYEXT="so"
8284
8285 #
8286 # DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX.
8287 # Use Tru64 UNIX conventions for man pages; they're the same as
8288 # the System V conventions except that they use section 8 for
8289 # administrative commands and daemons.
8290 #
8291 MAN_FILE_FORMATS=4
8292 MAN_MISC_INFO=5
8293 MAN_DEVICES=7
8294 ;;
8295
8296 sinix*)
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
8298 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
8299 if ${ac_cv_cc_sinix_defined+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8304
8305 int
8306 main ()
8307 {
8308 int i = sinix;
8309 ;
8310 return 0;
8311 }
8312 _ACEOF
8313 if ac_fn_c_try_compile "$LINENO"; then :
8314 ac_cv_cc_sinix_defined=yes
8315 else
8316 ac_cv_cc_sinix_defined=no
8317 fi
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 fi
8320
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
8322 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
8323 if test $ac_cv_cc_sinix_defined = no ; then
8324
8325 $as_echo "#define sinix 1" >>confdefs.h
8326
8327 fi
8328 ;;
8329
8330 solaris*)
8331
8332 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
8333
8334
8335 DYEXT="so"
8336
8337 #
8338 # Make sure errno is thread-safe, in case we're called in
8339 # a multithreaded program. We don't guarantee that two
8340 # threads can use the *same* pcap_t safely, but the
8341 # current version does guarantee that you can use different
8342 # pcap_t's in different threads, and even that pcap_compile()
8343 # is thread-safe (it wasn't thread-safe in some older versions).
8344 #
8345 V_CCOPT="$V_CCOPT -D_TS_ERRNO"
8346
8347 case "`uname -r`" in
8348
8349 5.12)
8350 ;;
8351
8352 *)
8353 #
8354 # Use System V conventions for man pages.
8355 #
8356 MAN_ADMIN_COMMANDS=1m
8357 MAN_FILE_FORMATS=4
8358 MAN_MISC_INFO=5
8359 MAN_DEVICES=7D
8360 esac
8361 ;;
8362 esac
8363
8364 # Check whether --enable-shared was given.
8365 if test "${enable_shared+set}" = set; then :
8366 enableval=$enable_shared;
8367 fi
8368
8369 test "x$enable_shared" = "xno" && DYEXT="none"
8370
8371 if test -n "$ac_tool_prefix"; then
8372 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8373 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if ${ac_cv_prog_RANLIB+:} false; then :
8377 $as_echo_n "(cached) " >&6
8378 else
8379 if test -n "$RANLIB"; then
8380 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8381 else
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8384 do
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8389 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 break 2
8392 fi
8393 done
8394 done
8395 IFS=$as_save_IFS
8396
8397 fi
8398 fi
8399 RANLIB=$ac_cv_prog_RANLIB
8400 if test -n "$RANLIB"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8402 $as_echo "$RANLIB" >&6; }
8403 else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8406 fi
8407
8408
8409 fi
8410 if test -z "$ac_cv_prog_RANLIB"; then
8411 ac_ct_RANLIB=$RANLIB
8412 # Extract the first word of "ranlib", so it can be a program name with args.
8413 set dummy ranlib; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 if test -n "$ac_ct_RANLIB"; then
8420 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8421 else
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 for as_dir in $PATH
8424 do
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8429 ac_cv_prog_ac_ct_RANLIB="ranlib"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 break 2
8432 fi
8433 done
8434 done
8435 IFS=$as_save_IFS
8436
8437 fi
8438 fi
8439 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8440 if test -n "$ac_ct_RANLIB"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8442 $as_echo "$ac_ct_RANLIB" >&6; }
8443 else
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8446 fi
8447
8448 if test "x$ac_ct_RANLIB" = x; then
8449 RANLIB=":"
8450 else
8451 case $cross_compiling:$ac_tool_warned in
8452 yes:)
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8455 ac_tool_warned=yes ;;
8456 esac
8457 RANLIB=$ac_ct_RANLIB
8458 fi
8459 else
8460 RANLIB="$ac_cv_prog_RANLIB"
8461 fi
8462
8463 if test -n "$ac_tool_prefix"; then
8464 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8465 set dummy ${ac_tool_prefix}ar; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if ${ac_cv_prog_AR+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 if test -n "$AR"; then
8472 ac_cv_prog_AR="$AR" # Let the user override the test.
8473 else
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8476 do
8477 IFS=$as_save_IFS
8478 test -z "$as_dir" && as_dir=.
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8481 ac_cv_prog_AR="${ac_tool_prefix}ar"
8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483 break 2
8484 fi
8485 done
8486 done
8487 IFS=$as_save_IFS
8488
8489 fi
8490 fi
8491 AR=$ac_cv_prog_AR
8492 if test -n "$AR"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8494 $as_echo "$AR" >&6; }
8495 else
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8498 fi
8499
8500
8501 fi
8502 if test -z "$ac_cv_prog_AR"; then
8503 ac_ct_AR=$AR
8504 # Extract the first word of "ar", so it can be a program name with args.
8505 set dummy ar; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 if test -n "$ac_ct_AR"; then
8512 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8516 do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521 ac_cv_prog_ac_ct_AR="ar"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8524 fi
8525 done
8526 done
8527 IFS=$as_save_IFS
8528
8529 fi
8530 fi
8531 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8532 if test -n "$ac_ct_AR"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8534 $as_echo "$ac_ct_AR" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8538 fi
8539
8540 if test "x$ac_ct_AR" = x; then
8541 AR=""
8542 else
8543 case $cross_compiling:$ac_tool_warned in
8544 yes:)
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8547 ac_tool_warned=yes ;;
8548 esac
8549 AR=$ac_ct_AR
8550 fi
8551 else
8552 AR="$ac_cv_prog_AR"
8553 fi
8554
8555
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8557 $as_echo_n "checking whether ln -s works... " >&6; }
8558 LN_S=$as_ln_s
8559 if test "$LN_S" = "ln -s"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8561 $as_echo "yes" >&6; }
8562 else
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8564 $as_echo "no, using $LN_S" >&6; }
8565 fi
8566
8567
8568
8569 rm -f os-proto.h
8570 if test "${LBL_CFLAGS+set}" = set; then
8571 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8572 fi
8573 if test -f .devel ; then
8574 #
8575 # Skip all the warning option stuff on some compilers.
8576 #
8577 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
8578
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
8580 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
8581 save_CFLAGS="$CFLAGS"
8582 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8585
8586 int
8587 main ()
8588 {
8589 return 0
8590 ;
8591 return 0;
8592 }
8593 _ACEOF
8594 if ac_fn_c_try_compile "$LINENO"; then :
8595
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597 $as_echo "no" >&6; }
8598 #
8599 # We're assuming this is clang, where
8600 # -Werror=unknown-warning-option is the appropriate
8601 # option to force the compiler to fail.
8602 #
8603 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
8604
8605 else
8606
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8608 $as_echo "yes" >&6; }
8609
8610 fi
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 CFLAGS="$save_CFLAGS"
8613
8614
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5
8616 $as_echo_n "checking whether the compiler supports the -W option... " >&6; }
8617 save_CFLAGS="$CFLAGS"
8618 if expr "x-W" : "x-W.*" >/dev/null
8619 then
8620 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
8621 elif expr "x-W" : "x-f.*" >/dev/null
8622 then
8623 CFLAGS="$CFLAGS -Werror -W"
8624 elif expr "x-W" : "x-m.*" >/dev/null
8625 then
8626 CFLAGS="$CFLAGS -Werror -W"
8627 else
8628 CFLAGS="$CFLAGS -W"
8629 fi
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632
8633 int
8634 main ()
8635 {
8636 return 0
8637 ;
8638 return 0;
8639 }
8640 _ACEOF
8641 if ac_fn_c_try_compile "$LINENO"; then :
8642
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8644 $as_echo "yes" >&6; }
8645 can_add_to_cflags=yes
8646 #
8647 # The compile supports this; do we have some C code for
8648 # which the warning should *not* appear?
8649 # We test the fourth argument because the third argument
8650 # could contain quotes, breaking the test.
8651 #
8652 if test "x" != "x"
8653 then
8654 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -W " >&5
8656 $as_echo_n "checking whether -W ... " >&6; }
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659
8660 _ACEOF
8661 if ac_fn_c_try_compile "$LINENO"; then :
8662
8663 #
8664 # Not a problem.
8665 #
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8668
8669 else
8670
8671 #
8672 # A problem.
8673 #
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8675 $as_echo "yes" >&6; }
8676 can_add_to_cflags=no
8677
8678 fi
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 fi
8681 CFLAGS="$save_CFLAGS"
8682 if test x"$can_add_to_cflags" = "xyes"
8683 then
8684 V_CCOPT="$V_CCOPT -W"
8685 fi
8686
8687 else
8688
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690 $as_echo "no" >&6; }
8691 CFLAGS="$save_CFLAGS"
8692
8693 fi
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695
8696
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
8698 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
8699 save_CFLAGS="$CFLAGS"
8700 if expr "x-Wall" : "x-W.*" >/dev/null
8701 then
8702 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
8703 elif expr "x-Wall" : "x-f.*" >/dev/null
8704 then
8705 CFLAGS="$CFLAGS -Werror -Wall"
8706 elif expr "x-Wall" : "x-m.*" >/dev/null
8707 then
8708 CFLAGS="$CFLAGS -Werror -Wall"
8709 else
8710 CFLAGS="$CFLAGS -Wall"
8711 fi
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714
8715 int
8716 main ()
8717 {
8718 return 0
8719 ;
8720 return 0;
8721 }
8722 _ACEOF
8723 if ac_fn_c_try_compile "$LINENO"; then :
8724
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8726 $as_echo "yes" >&6; }
8727 can_add_to_cflags=yes
8728 #
8729 # The compile supports this; do we have some C code for
8730 # which the warning should *not* appear?
8731 # We test the fourth argument because the third argument
8732 # could contain quotes, breaking the test.
8733 #
8734 if test "x" != "x"
8735 then
8736 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wall " >&5
8738 $as_echo_n "checking whether -Wall ... " >&6; }
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741
8742 _ACEOF
8743 if ac_fn_c_try_compile "$LINENO"; then :
8744
8745 #
8746 # Not a problem.
8747 #
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8750
8751 else
8752
8753 #
8754 # A problem.
8755 #
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8757 $as_echo "yes" >&6; }
8758 can_add_to_cflags=no
8759
8760 fi
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762 fi
8763 CFLAGS="$save_CFLAGS"
8764 if test x"$can_add_to_cflags" = "xyes"
8765 then
8766 V_CCOPT="$V_CCOPT -Wall"
8767 fi
8768
8769 else
8770
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 $as_echo "no" >&6; }
8773 CFLAGS="$save_CFLAGS"
8774
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777
8778
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5
8780 $as_echo_n "checking whether the compiler supports the -Wcomma option... " >&6; }
8781 save_CFLAGS="$CFLAGS"
8782 if expr "x-Wcomma" : "x-W.*" >/dev/null
8783 then
8784 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wcomma"
8785 elif expr "x-Wcomma" : "x-f.*" >/dev/null
8786 then
8787 CFLAGS="$CFLAGS -Werror -Wcomma"
8788 elif expr "x-Wcomma" : "x-m.*" >/dev/null
8789 then
8790 CFLAGS="$CFLAGS -Werror -Wcomma"
8791 else
8792 CFLAGS="$CFLAGS -Wcomma"
8793 fi
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796
8797 int
8798 main ()
8799 {
8800 return 0
8801 ;
8802 return 0;
8803 }
8804 _ACEOF
8805 if ac_fn_c_try_compile "$LINENO"; then :
8806
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8808 $as_echo "yes" >&6; }
8809 can_add_to_cflags=yes
8810 #
8811 # The compile supports this; do we have some C code for
8812 # which the warning should *not* appear?
8813 # We test the fourth argument because the third argument
8814 # could contain quotes, breaking the test.
8815 #
8816 if test "x" != "x"
8817 then
8818 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wcomma " >&5
8820 $as_echo_n "checking whether -Wcomma ... " >&6; }
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8823
8824 _ACEOF
8825 if ac_fn_c_try_compile "$LINENO"; then :
8826
8827 #
8828 # Not a problem.
8829 #
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8832
8833 else
8834
8835 #
8836 # A problem.
8837 #
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8839 $as_echo "yes" >&6; }
8840 can_add_to_cflags=no
8841
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 fi
8845 CFLAGS="$save_CFLAGS"
8846 if test x"$can_add_to_cflags" = "xyes"
8847 then
8848 V_CCOPT="$V_CCOPT -Wcomma"
8849 fi
8850
8851 else
8852
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 $as_echo "no" >&6; }
8855 CFLAGS="$save_CFLAGS"
8856
8857 fi
8858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859
8860
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdocumentation option" >&5
8862 $as_echo_n "checking whether the compiler supports the -Wdocumentation option... " >&6; }
8863 save_CFLAGS="$CFLAGS"
8864 if expr "x-Wdocumentation" : "x-W.*" >/dev/null
8865 then
8866 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdocumentation"
8867 elif expr "x-Wdocumentation" : "x-f.*" >/dev/null
8868 then
8869 CFLAGS="$CFLAGS -Werror -Wdocumentation"
8870 elif expr "x-Wdocumentation" : "x-m.*" >/dev/null
8871 then
8872 CFLAGS="$CFLAGS -Werror -Wdocumentation"
8873 else
8874 CFLAGS="$CFLAGS -Wdocumentation"
8875 fi
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878
8879 int
8880 main ()
8881 {
8882 return 0
8883 ;
8884 return 0;
8885 }
8886 _ACEOF
8887 if ac_fn_c_try_compile "$LINENO"; then :
8888
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8890 $as_echo "yes" >&6; }
8891 can_add_to_cflags=yes
8892 #
8893 # The compile supports this; do we have some C code for
8894 # which the warning should *not* appear?
8895 # We test the fourth argument because the third argument
8896 # could contain quotes, breaking the test.
8897 #
8898 if test "x" != "x"
8899 then
8900 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdocumentation " >&5
8902 $as_echo_n "checking whether -Wdocumentation ... " >&6; }
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905
8906 _ACEOF
8907 if ac_fn_c_try_compile "$LINENO"; then :
8908
8909 #
8910 # Not a problem.
8911 #
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913 $as_echo "no" >&6; }
8914
8915 else
8916
8917 #
8918 # A problem.
8919 #
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8921 $as_echo "yes" >&6; }
8922 can_add_to_cflags=no
8923
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 fi
8927 CFLAGS="$save_CFLAGS"
8928 if test x"$can_add_to_cflags" = "xyes"
8929 then
8930 V_CCOPT="$V_CCOPT -Wdocumentation"
8931 fi
8932
8933 else
8934
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936 $as_echo "no" >&6; }
8937 CFLAGS="$save_CFLAGS"
8938
8939 fi
8940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8941
8942
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wformat-nonliteral option" >&5
8944 $as_echo_n "checking whether the compiler supports the -Wformat-nonliteral option... " >&6; }
8945 save_CFLAGS="$CFLAGS"
8946 if expr "x-Wformat-nonliteral" : "x-W.*" >/dev/null
8947 then
8948 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wformat-nonliteral"
8949 elif expr "x-Wformat-nonliteral" : "x-f.*" >/dev/null
8950 then
8951 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
8952 elif expr "x-Wformat-nonliteral" : "x-m.*" >/dev/null
8953 then
8954 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
8955 else
8956 CFLAGS="$CFLAGS -Wformat-nonliteral"
8957 fi
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960
8961 int
8962 main ()
8963 {
8964 return 0
8965 ;
8966 return 0;
8967 }
8968 _ACEOF
8969 if ac_fn_c_try_compile "$LINENO"; then :
8970
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8972 $as_echo "yes" >&6; }
8973 can_add_to_cflags=yes
8974 #
8975 # The compile supports this; do we have some C code for
8976 # which the warning should *not* appear?
8977 # We test the fourth argument because the third argument
8978 # could contain quotes, breaking the test.
8979 #
8980 if test "x" != "x"
8981 then
8982 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wformat-nonliteral " >&5
8984 $as_echo_n "checking whether -Wformat-nonliteral ... " >&6; }
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8987
8988 _ACEOF
8989 if ac_fn_c_try_compile "$LINENO"; then :
8990
8991 #
8992 # Not a problem.
8993 #
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8996
8997 else
8998
8999 #
9000 # A problem.
9001 #
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9003 $as_echo "yes" >&6; }
9004 can_add_to_cflags=no
9005
9006 fi
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008 fi
9009 CFLAGS="$save_CFLAGS"
9010 if test x"$can_add_to_cflags" = "xyes"
9011 then
9012 V_CCOPT="$V_CCOPT -Wformat-nonliteral"
9013 fi
9014
9015 else
9016
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018 $as_echo "no" >&6; }
9019 CFLAGS="$save_CFLAGS"
9020
9021 fi
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023
9024
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-noreturn option" >&5
9026 $as_echo_n "checking whether the compiler supports the -Wmissing-noreturn option... " >&6; }
9027 save_CFLAGS="$CFLAGS"
9028 if expr "x-Wmissing-noreturn" : "x-W.*" >/dev/null
9029 then
9030 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-noreturn"
9031 elif expr "x-Wmissing-noreturn" : "x-f.*" >/dev/null
9032 then
9033 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9034 elif expr "x-Wmissing-noreturn" : "x-m.*" >/dev/null
9035 then
9036 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9037 else
9038 CFLAGS="$CFLAGS -Wmissing-noreturn"
9039 fi
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042
9043 int
9044 main ()
9045 {
9046 return 0
9047 ;
9048 return 0;
9049 }
9050 _ACEOF
9051 if ac_fn_c_try_compile "$LINENO"; then :
9052
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9054 $as_echo "yes" >&6; }
9055 can_add_to_cflags=yes
9056 #
9057 # The compile supports this; do we have some C code for
9058 # which the warning should *not* appear?
9059 # We test the fourth argument because the third argument
9060 # could contain quotes, breaking the test.
9061 #
9062 if test "x" != "x"
9063 then
9064 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-noreturn " >&5
9066 $as_echo_n "checking whether -Wmissing-noreturn ... " >&6; }
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069
9070 _ACEOF
9071 if ac_fn_c_try_compile "$LINENO"; then :
9072
9073 #
9074 # Not a problem.
9075 #
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 $as_echo "no" >&6; }
9078
9079 else
9080
9081 #
9082 # A problem.
9083 #
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9085 $as_echo "yes" >&6; }
9086 can_add_to_cflags=no
9087
9088 fi
9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090 fi
9091 CFLAGS="$save_CFLAGS"
9092 if test x"$can_add_to_cflags" = "xyes"
9093 then
9094 V_CCOPT="$V_CCOPT -Wmissing-noreturn"
9095 fi
9096
9097 else
9098
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9101 CFLAGS="$save_CFLAGS"
9102
9103 fi
9104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105
9106
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
9108 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
9109 save_CFLAGS="$CFLAGS"
9110 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
9111 then
9112 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
9113 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
9114 then
9115 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9116 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
9117 then
9118 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9119 else
9120 CFLAGS="$CFLAGS -Wmissing-prototypes"
9121 fi
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9124
9125 int
9126 main ()
9127 {
9128 return 0
9129 ;
9130 return 0;
9131 }
9132 _ACEOF
9133 if ac_fn_c_try_compile "$LINENO"; then :
9134
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9136 $as_echo "yes" >&6; }
9137 can_add_to_cflags=yes
9138 #
9139 # The compile supports this; do we have some C code for
9140 # which the warning should *not* appear?
9141 # We test the fourth argument because the third argument
9142 # could contain quotes, breaking the test.
9143 #
9144 if test "x" != "x"
9145 then
9146 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-prototypes " >&5
9148 $as_echo_n "checking whether -Wmissing-prototypes ... " >&6; }
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9151
9152 _ACEOF
9153 if ac_fn_c_try_compile "$LINENO"; then :
9154
9155 #
9156 # Not a problem.
9157 #
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9160
9161 else
9162
9163 #
9164 # A problem.
9165 #
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9167 $as_echo "yes" >&6; }
9168 can_add_to_cflags=no
9169
9170 fi
9171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172 fi
9173 CFLAGS="$save_CFLAGS"
9174 if test x"$can_add_to_cflags" = "xyes"
9175 then
9176 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
9177 fi
9178
9179 else
9180
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9183 CFLAGS="$save_CFLAGS"
9184
9185 fi
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187
9188
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5
9190 $as_echo_n "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; }
9191 save_CFLAGS="$CFLAGS"
9192 if expr "x-Wmissing-variable-declarations" : "x-W.*" >/dev/null
9193 then
9194 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-variable-declarations"
9195 elif expr "x-Wmissing-variable-declarations" : "x-f.*" >/dev/null
9196 then
9197 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9198 elif expr "x-Wmissing-variable-declarations" : "x-m.*" >/dev/null
9199 then
9200 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9201 else
9202 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
9203 fi
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9206
9207 int
9208 main ()
9209 {
9210 return 0
9211 ;
9212 return 0;
9213 }
9214 _ACEOF
9215 if ac_fn_c_try_compile "$LINENO"; then :
9216
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9218 $as_echo "yes" >&6; }
9219 can_add_to_cflags=yes
9220 #
9221 # The compile supports this; do we have some C code for
9222 # which the warning should *not* appear?
9223 # We test the fourth argument because the third argument
9224 # could contain quotes, breaking the test.
9225 #
9226 if test "x" != "x"
9227 then
9228 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-variable-declarations " >&5
9230 $as_echo_n "checking whether -Wmissing-variable-declarations ... " >&6; }
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233
9234 _ACEOF
9235 if ac_fn_c_try_compile "$LINENO"; then :
9236
9237 #
9238 # Not a problem.
9239 #
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 $as_echo "no" >&6; }
9242
9243 else
9244
9245 #
9246 # A problem.
9247 #
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9249 $as_echo "yes" >&6; }
9250 can_add_to_cflags=no
9251
9252 fi
9253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254 fi
9255 CFLAGS="$save_CFLAGS"
9256 if test x"$can_add_to_cflags" = "xyes"
9257 then
9258 V_CCOPT="$V_CCOPT -Wmissing-variable-declarations"
9259 fi
9260
9261 else
9262
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9264 $as_echo "no" >&6; }
9265 CFLAGS="$save_CFLAGS"
9266
9267 fi
9268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269
9270
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
9272 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
9273 save_CFLAGS="$CFLAGS"
9274 if expr "x-Wshadow" : "x-W.*" >/dev/null
9275 then
9276 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
9277 elif expr "x-Wshadow" : "x-f.*" >/dev/null
9278 then
9279 CFLAGS="$CFLAGS -Werror -Wshadow"
9280 elif expr "x-Wshadow" : "x-m.*" >/dev/null
9281 then
9282 CFLAGS="$CFLAGS -Werror -Wshadow"
9283 else
9284 CFLAGS="$CFLAGS -Wshadow"
9285 fi
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288
9289 int
9290 main ()
9291 {
9292 return 0
9293 ;
9294 return 0;
9295 }
9296 _ACEOF
9297 if ac_fn_c_try_compile "$LINENO"; then :
9298
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9300 $as_echo "yes" >&6; }
9301 can_add_to_cflags=yes
9302 #
9303 # The compile supports this; do we have some C code for
9304 # which the warning should *not* appear?
9305 # We test the fourth argument because the third argument
9306 # could contain quotes, breaking the test.
9307 #
9308 if test "x" != "x"
9309 then
9310 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshadow " >&5
9312 $as_echo_n "checking whether -Wshadow ... " >&6; }
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315
9316 _ACEOF
9317 if ac_fn_c_try_compile "$LINENO"; then :
9318
9319 #
9320 # Not a problem.
9321 #
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9324
9325 else
9326
9327 #
9328 # A problem.
9329 #
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9331 $as_echo "yes" >&6; }
9332 can_add_to_cflags=no
9333
9334 fi
9335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336 fi
9337 CFLAGS="$save_CFLAGS"
9338 if test x"$can_add_to_cflags" = "xyes"
9339 then
9340 V_CCOPT="$V_CCOPT -Wshadow"
9341 fi
9342
9343 else
9344
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346 $as_echo "no" >&6; }
9347 CFLAGS="$save_CFLAGS"
9348
9349 fi
9350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9351
9352
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
9354 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
9355 save_CFLAGS="$CFLAGS"
9356 if expr "x-Wsign-compare" : "x-W.*" >/dev/null
9357 then
9358 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
9359 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
9360 then
9361 CFLAGS="$CFLAGS -Werror -Wsign-compare"
9362 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
9363 then
9364 CFLAGS="$CFLAGS -Werror -Wsign-compare"
9365 else
9366 CFLAGS="$CFLAGS -Wsign-compare"
9367 fi
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9370
9371 int
9372 main ()
9373 {
9374 return 0
9375 ;
9376 return 0;
9377 }
9378 _ACEOF
9379 if ac_fn_c_try_compile "$LINENO"; then :
9380
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9382 $as_echo "yes" >&6; }
9383 can_add_to_cflags=yes
9384 #
9385 # The compile supports this; do we have some C code for
9386 # which the warning should *not* appear?
9387 # We test the fourth argument because the third argument
9388 # could contain quotes, breaking the test.
9389 #
9390 if test "x" != "x"
9391 then
9392 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wsign-compare " >&5
9394 $as_echo_n "checking whether -Wsign-compare ... " >&6; }
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9397
9398 _ACEOF
9399 if ac_fn_c_try_compile "$LINENO"; then :
9400
9401 #
9402 # Not a problem.
9403 #
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9406
9407 else
9408
9409 #
9410 # A problem.
9411 #
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9413 $as_echo "yes" >&6; }
9414 can_add_to_cflags=no
9415
9416 fi
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418 fi
9419 CFLAGS="$save_CFLAGS"
9420 if test x"$can_add_to_cflags" = "xyes"
9421 then
9422 V_CCOPT="$V_CCOPT -Wsign-compare"
9423 fi
9424
9425 else
9426
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 $as_echo "no" >&6; }
9429 CFLAGS="$save_CFLAGS"
9430
9431 fi
9432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9433
9434
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
9436 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
9437 save_CFLAGS="$CFLAGS"
9438 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
9439 then
9440 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
9441 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
9442 then
9443 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
9444 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
9445 then
9446 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
9447 else
9448 CFLAGS="$CFLAGS -Wstrict-prototypes"
9449 fi
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452
9453 int
9454 main ()
9455 {
9456 return 0
9457 ;
9458 return 0;
9459 }
9460 _ACEOF
9461 if ac_fn_c_try_compile "$LINENO"; then :
9462
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9464 $as_echo "yes" >&6; }
9465 can_add_to_cflags=yes
9466 #
9467 # The compile supports this; do we have some C code for
9468 # which the warning should *not* appear?
9469 # We test the fourth argument because the third argument
9470 # could contain quotes, breaking the test.
9471 #
9472 if test "x" != "x"
9473 then
9474 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wstrict-prototypes " >&5
9476 $as_echo_n "checking whether -Wstrict-prototypes ... " >&6; }
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479
9480 _ACEOF
9481 if ac_fn_c_try_compile "$LINENO"; then :
9482
9483 #
9484 # Not a problem.
9485 #
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9488
9489 else
9490
9491 #
9492 # A problem.
9493 #
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9495 $as_echo "yes" >&6; }
9496 can_add_to_cflags=no
9497
9498 fi
9499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9500 fi
9501 CFLAGS="$save_CFLAGS"
9502 if test x"$can_add_to_cflags" = "xyes"
9503 then
9504 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
9505 fi
9506
9507 else
9508
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 $as_echo "no" >&6; }
9511 CFLAGS="$save_CFLAGS"
9512
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9515
9516
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-parameter option" >&5
9518 $as_echo_n "checking whether the compiler supports the -Wunused-parameter option... " >&6; }
9519 save_CFLAGS="$CFLAGS"
9520 if expr "x-Wunused-parameter" : "x-W.*" >/dev/null
9521 then
9522 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunused-parameter"
9523 elif expr "x-Wunused-parameter" : "x-f.*" >/dev/null
9524 then
9525 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
9526 elif expr "x-Wunused-parameter" : "x-m.*" >/dev/null
9527 then
9528 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
9529 else
9530 CFLAGS="$CFLAGS -Wunused-parameter"
9531 fi
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534
9535 int
9536 main ()
9537 {
9538 return 0
9539 ;
9540 return 0;
9541 }
9542 _ACEOF
9543 if ac_fn_c_try_compile "$LINENO"; then :
9544
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9546 $as_echo "yes" >&6; }
9547 can_add_to_cflags=yes
9548 #
9549 # The compile supports this; do we have some C code for
9550 # which the warning should *not* appear?
9551 # We test the fourth argument because the third argument
9552 # could contain quotes, breaking the test.
9553 #
9554 if test "x" != "x"
9555 then
9556 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-parameter " >&5
9558 $as_echo_n "checking whether -Wunused-parameter ... " >&6; }
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561
9562 _ACEOF
9563 if ac_fn_c_try_compile "$LINENO"; then :
9564
9565 #
9566 # Not a problem.
9567 #
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9569 $as_echo "no" >&6; }
9570
9571 else
9572
9573 #
9574 # A problem.
9575 #
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9577 $as_echo "yes" >&6; }
9578 can_add_to_cflags=no
9579
9580 fi
9581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9582 fi
9583 CFLAGS="$save_CFLAGS"
9584 if test x"$can_add_to_cflags" = "xyes"
9585 then
9586 V_CCOPT="$V_CCOPT -Wunused-parameter"
9587 fi
9588
9589 else
9590
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9593 CFLAGS="$save_CFLAGS"
9594
9595 fi
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9597
9598
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
9600 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
9601 save_CFLAGS="$CFLAGS"
9602 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
9603 then
9604 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
9605 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
9606 then
9607 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
9608 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
9609 then
9610 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
9611 else
9612 CFLAGS="$CFLAGS -Wused-but-marked-unused"
9613 fi
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9616
9617 int
9618 main ()
9619 {
9620 return 0
9621 ;
9622 return 0;
9623 }
9624 _ACEOF
9625 if ac_fn_c_try_compile "$LINENO"; then :
9626
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9628 $as_echo "yes" >&6; }
9629 can_add_to_cflags=yes
9630 #
9631 # The compile supports this; do we have some C code for
9632 # which the warning should *not* appear?
9633 # We test the fourth argument because the third argument
9634 # could contain quotes, breaking the test.
9635 #
9636 if test "x" != "x"
9637 then
9638 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wused-but-marked-unused " >&5
9640 $as_echo_n "checking whether -Wused-but-marked-unused ... " >&6; }
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9643
9644 _ACEOF
9645 if ac_fn_c_try_compile "$LINENO"; then :
9646
9647 #
9648 # Not a problem.
9649 #
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651 $as_echo "no" >&6; }
9652
9653 else
9654
9655 #
9656 # A problem.
9657 #
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9659 $as_echo "yes" >&6; }
9660 can_add_to_cflags=no
9661
9662 fi
9663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664 fi
9665 CFLAGS="$save_CFLAGS"
9666 if test x"$can_add_to_cflags" = "xyes"
9667 then
9668 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
9669 fi
9670
9671 else
9672
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9675 CFLAGS="$save_CFLAGS"
9676
9677 fi
9678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679
9680 # Warns about safeguards added in case the enums are
9681 # extended
9682 # AC_LBL_CHECK_COMPILER_OPT(V_CCOPT, -Wcovered-switch-default)
9683 #
9684 # This can cause problems with ntohs(), ntohl(),
9685 # htons(), and htonl() on some platforms, such
9686 # as OpenBSD 6.3 with Clang 5.0.1. I guess the
9687 # problem is that the macro that ultimately does
9688 # the byte-swapping involves a conditional
9689 # expression that tests whether the value being
9690 # swapped is a compile-time constant or not,
9691 # using __builtin_constant_p(), and, depending
9692 # on whether it is, does a compile-time swap or
9693 # a run-time swap; perhaps the compiler always
9694 # considers one of the two results of the
9695 # conditional expressin is never evaluated,
9696 # because the conditional check is done at
9697 # compile time, and thus always says "that
9698 # expression is never executed".
9699 #
9700 # (Perhaps there should be a way of flagging
9701 # an expression that you *want* evaluated at
9702 # compile time, so that the compiler 1) warns
9703 # if it *can't* be evaluated at compile time
9704 # and 2) *doesn't* warn that the true or false
9705 # branch will never be reached.)
9706 #
9707
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code option" >&5
9709 $as_echo_n "checking whether the compiler supports the -Wunreachable-code option... " >&6; }
9710 save_CFLAGS="$CFLAGS"
9711 if expr "x-Wunreachable-code" : "x-W.*" >/dev/null
9712 then
9713 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunreachable-code"
9714 elif expr "x-Wunreachable-code" : "x-f.*" >/dev/null
9715 then
9716 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
9717 elif expr "x-Wunreachable-code" : "x-m.*" >/dev/null
9718 then
9719 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
9720 else
9721 CFLAGS="$CFLAGS -Wunreachable-code"
9722 fi
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9725
9726 int
9727 main ()
9728 {
9729 return 0
9730 ;
9731 return 0;
9732 }
9733 _ACEOF
9734 if ac_fn_c_try_compile "$LINENO"; then :
9735
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9737 $as_echo "yes" >&6; }
9738 can_add_to_cflags=yes
9739 #
9740 # The compile supports this; do we have some C code for
9741 # which the warning should *not* appear?
9742 # We test the fourth argument because the third argument
9743 # could contain quotes, breaking the test.
9744 #
9745 if test "xgenerates warnings from ntohs()" != "x"
9746 then
9747 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunreachable-code generates warnings from ntohs()" >&5
9749 $as_echo_n "checking whether -Wunreachable-code generates warnings from ntohs()... " >&6; }
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 #include <arpa/inet.h>
9753
9754 unsigned short
9755 testme(unsigned short a)
9756 {
9757 return ntohs(a);
9758 }
9759
9760 _ACEOF
9761 if ac_fn_c_try_compile "$LINENO"; then :
9762
9763 #
9764 # Not a problem.
9765 #
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 $as_echo "no" >&6; }
9768
9769 else
9770
9771 #
9772 # A problem.
9773 #
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9775 $as_echo "yes" >&6; }
9776 can_add_to_cflags=no
9777
9778 fi
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 fi
9781 CFLAGS="$save_CFLAGS"
9782 if test x"$can_add_to_cflags" = "xyes"
9783 then
9784 V_CCOPT="$V_CCOPT -Wunreachable-code"
9785 fi
9786
9787 else
9788
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; }
9791 CFLAGS="$save_CFLAGS"
9792
9793 fi
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795
9796
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshorten-64-to-32 option" >&5
9798 $as_echo_n "checking whether the compiler supports the -Wshorten-64-to-32 option... " >&6; }
9799 save_CFLAGS="$CFLAGS"
9800 if expr "x-Wshorten-64-to-32" : "x-W.*" >/dev/null
9801 then
9802 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshorten-64-to-32"
9803 elif expr "x-Wshorten-64-to-32" : "x-f.*" >/dev/null
9804 then
9805 CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32"
9806 elif expr "x-Wshorten-64-to-32" : "x-m.*" >/dev/null
9807 then
9808 CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32"
9809 else
9810 CFLAGS="$CFLAGS -Wshorten-64-to-32"
9811 fi
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9814
9815 int
9816 main ()
9817 {
9818 return 0
9819 ;
9820 return 0;
9821 }
9822 _ACEOF
9823 if ac_fn_c_try_compile "$LINENO"; then :
9824
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9826 $as_echo "yes" >&6; }
9827 can_add_to_cflags=yes
9828 #
9829 # The compile supports this; do we have some C code for
9830 # which the warning should *not* appear?
9831 # We test the fourth argument because the third argument
9832 # could contain quotes, breaking the test.
9833 #
9834 if test "x" != "x"
9835 then
9836 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshorten-64-to-32 " >&5
9838 $as_echo_n "checking whether -Wshorten-64-to-32 ... " >&6; }
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841
9842 _ACEOF
9843 if ac_fn_c_try_compile "$LINENO"; then :
9844
9845 #
9846 # Not a problem.
9847 #
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9850
9851 else
9852
9853 #
9854 # A problem.
9855 #
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9857 $as_echo "yes" >&6; }
9858 can_add_to_cflags=no
9859
9860 fi
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862 fi
9863 CFLAGS="$save_CFLAGS"
9864 if test x"$can_add_to_cflags" = "xyes"
9865 then
9866 V_CCOPT="$V_CCOPT -Wshorten-64-to-32"
9867 fi
9868
9869 else
9870
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872 $as_echo "no" >&6; }
9873 CFLAGS="$save_CFLAGS"
9874
9875 fi
9876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9877
9878 fi
9879
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
9881 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
9882 if test "$GCC" = yes ; then
9883 #
9884 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
9885 # though it's not); we assume that, in this case, the flag
9886 # would be -M.
9887 #
9888 ac_lbl_dependency_flag="-M"
9889 else
9890 #
9891 # Not GCC or a compiler deemed to be GCC; what platform is
9892 # this? (We're assuming that if the compiler isn't GCC
9893 # it's the compiler from the vendor of the OS; that won't
9894 # necessarily be true for x86 platforms, where it might be
9895 # the Intel C compiler.)
9896 #
9897 case "$host_os" in
9898
9899 irix*|osf*|darwin*)
9900 #
9901 # MIPS C for IRIX, DEC C, and clang all use -M.
9902 #
9903 ac_lbl_dependency_flag="-M"
9904 ;;
9905
9906 solaris*)
9907 #
9908 # Sun C uses -xM.
9909 #
9910 ac_lbl_dependency_flag="-xM"
9911 ;;
9912
9913 hpux*)
9914 #
9915 # HP's older C compilers don't support this.
9916 # HP's newer C compilers support this with
9917 # either +M or +Make; the older compilers
9918 # interpret +M as something completely
9919 # different, so we use +Make so we don't
9920 # think it works with the older compilers.
9921 #
9922 ac_lbl_dependency_flag="+Make"
9923 ;;
9924
9925 *)
9926 #
9927 # Not one of the above; assume no support for
9928 # generating dependencies.
9929 #
9930 ac_lbl_dependency_flag=""
9931 ;;
9932 esac
9933 fi
9934
9935 #
9936 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
9937 # complain about it?
9938 #
9939 # Note: clang doesn't seem to exit with an error status when handed
9940 # an unknown non-warning error, even if you pass it
9941 # -Werror=unknown-warning-option. However, it always supports
9942 # -M, so the fact that this test always succeeds with clang
9943 # isn't an issue.
9944 #
9945 if test ! -z "$ac_lbl_dependency_flag"; then
9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9948 int main(void) { return 0; }
9949 _ACEOF
9950 if { { $as_echo "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5
9951 (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5
9952 ac_status=$?
9953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9954 test $ac_status = 0; }; then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
9956 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
9957 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
9958 MKDEP='${srcdir}/mkdep'
9959 else
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9961 $as_echo "no" >&6; }
9962 #
9963 # We can't run mkdep, so have "make depend" do
9964 # nothing.
9965 #
9966 MKDEP='${srcdir}/nomkdep'
9967 fi
9968 rm -rf conftest*
9969 else
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9971 $as_echo "no" >&6; }
9972 #
9973 # We can't run mkdep, so have "make depend" do
9974 # nothing.
9975 #
9976 MKDEP='${srcdir}/nomkdep'
9977 fi
9978
9979
9980
9981 #
9982 # We used to set -n32 for IRIX 6 when not using GCC (presumed
9983 # to mean that we're using MIPS C or MIPSpro C); it specified
9984 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
9985 # not sure why that would be something to do *only* with a
9986 # .devel file; why should the ABI for which we produce code
9987 # depend on .devel?
9988 #
9989 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9990 name="lbl/os-$os.h"
9991 if test -f $name ; then
9992 ln -s $name os-proto.h
9993
9994 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
9995
9996 else
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
9998 $as_echo "$as_me: WARNING: can't find $name" >&2;}
9999 fi
10000 fi
10001
10002 #
10003 # Check to see if the sockaddr struct has the 4.4 BSD sa_len member.
10004 #
10005 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
10006 #include <sys/types.h>
10007 #include <sys/socket.h>
10008
10009 "
10010 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10011
10012 cat >>confdefs.h <<_ACEOF
10013 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10014 _ACEOF
10015
10016
10017 fi
10018
10019
10020 #
10021 # Check to see if there's a sockaddr_storage structure.
10022 #
10023 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
10024 #include <sys/types.h>
10025 #include <sys/socket.h>
10026
10027 "
10028 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
10029
10030 cat >>confdefs.h <<_ACEOF
10031 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10032 _ACEOF
10033
10034
10035 fi
10036
10037
10038 #
10039 # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
10040 # dl_module_id_1 member.
10041 #
10042 # NOTE: any failure means we conclude that it doesn't have that member,
10043 # so if we don't have DLPI, don't have a <sys/dlpi_ext.h> header, or
10044 # have one that doesn't declare a dl_hp_ppa_info_t type, we conclude
10045 # it doesn't have that member (which is OK, as either we won't be
10046 # using code that would use that member, or we wouldn't compile in
10047 # any case).
10048 #
10049 ac_fn_c_check_member "$LINENO" "dl_hp_ppa_info_t" "dl_module_id_1" "ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" "
10050 #include <sys/types.h>
10051 #include <sys/dlpi.h>
10052 #include <sys/dlpi_ext.h>
10053
10054 "
10055 if test "x$ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" = xyes; then :
10056
10057 cat >>confdefs.h <<_ACEOF
10058 #define HAVE_DL_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10059 _ACEOF
10060
10061
10062 fi
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095 # Check whether --enable-usb was given.
10096 if test "${enable_usb+set}" = set; then :
10097 enableval=$enable_usb;
10098 else
10099 enable_usb=yes
10100 fi
10101
10102
10103 if test "xxx_only" = yes; then
10104 # User requested something-else-only pcap, so they don't
10105 # want USB support.
10106 enable_usb=no
10107 fi
10108
10109 if test "x$enable_usb" != "xno" ; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
10111 $as_echo_n "checking for USB sniffing support... " >&6; }
10112 case "$host_os" in
10113 linux*)
10114
10115 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
10116
10117 USB_SRC=pcap-usb-linux.c
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10119 $as_echo "yes" >&6; }
10120 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10121 if test $? -ne 0 ; then
10122 ac_usb_dev_name="usbmon"
10123 fi
10124
10125 cat >>confdefs.h <<_ACEOF
10126 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10127 _ACEOF
10128
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10130 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10131 #
10132 # Do we have a version of <linux/compiler.h> available?
10133 # If so, we might need it for <linux/usbdevice_fs.h>.
10134 #
10135 for ac_header in linux/compiler.h
10136 do :
10137 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
10138 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
10139 cat >>confdefs.h <<_ACEOF
10140 #define HAVE_LINUX_COMPILER_H 1
10141 _ACEOF
10142
10143 fi
10144
10145 done
10146
10147 if test "$ac_cv_header_linux_compiler_h" = yes; then
10148 #
10149 # Yes - include it when testing for <linux/usbdevice_fs.h>.
10150 #
10151 for ac_header in linux/usbdevice_fs.h
10152 do :
10153 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
10154 "
10155 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
10156 cat >>confdefs.h <<_ACEOF
10157 #define HAVE_LINUX_USBDEVICE_FS_H 1
10158 _ACEOF
10159
10160 fi
10161
10162 done
10163
10164 else
10165 for ac_header in linux/usbdevice_fs.h
10166 do :
10167 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
10168 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
10169 cat >>confdefs.h <<_ACEOF
10170 #define HAVE_LINUX_USBDEVICE_FS_H 1
10171 _ACEOF
10172
10173 fi
10174
10175 done
10176
10177 fi
10178 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10179 #
10180 # OK, does it define bRequestType? Older versions of the kernel
10181 # define fields with names like "requesttype, "request", and
10182 # "value", rather than "bRequestType", "bRequest", and
10183 # "wValue".
10184 #
10185 ac_fn_c_check_member "$LINENO" "struct usbdevfs_ctrltransfer" "bRequestType" "ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" "
10186 $ac_includes_default
10187 #ifdef HAVE_LINUX_COMPILER_H
10188 #include <linux/compiler.h>
10189 #endif
10190 #include <linux/usbdevice_fs.h>
10191
10192 "
10193 if test "x$ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" = xyes; then :
10194
10195 cat >>confdefs.h <<_ACEOF
10196 #define HAVE_STRUCT_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10197 _ACEOF
10198
10199
10200 fi
10201
10202 fi
10203 ;;
10204 freebsd*)
10205 #
10206 # This just uses BPF in FreeBSD 8.4 and later; we don't need
10207 # to check for anything special for capturing.
10208 #
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
10210 $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
10211 ;;
10212
10213 *)
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215 $as_echo "no" >&6; }
10216 ;;
10217 esac
10218 fi
10219
10220
10221
10222 if test "xxx_only" != yes; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
10224 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
10225 case "$host_os" in
10226 linux*)
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10228 $as_echo "yes" >&6; }
10229 #
10230 # Life's too short to deal with trying to get this to compile
10231 # if you don't get the right types defined with
10232 # __KERNEL_STRICT_NAMES getting defined by some other include.
10233 #
10234 # Check whether the includes Just Work. If not, don't turn on
10235 # netfilter support.
10236 #
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
10238 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
10239 if ${ac_cv_netfilter_can_compile+:} false; then :
10240 $as_echo_n "(cached) " >&6
10241 else
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10244
10245 $ac_includes_default
10246 #include <sys/socket.h>
10247 #include <netinet/in.h>
10248 #include <linux/types.h>
10249
10250 #include <linux/netlink.h>
10251 #include <linux/netfilter.h>
10252 #include <linux/netfilter/nfnetlink.h>
10253 #include <linux/netfilter/nfnetlink_log.h>
10254 #include <linux/netfilter/nfnetlink_queue.h>
10255 int
10256 main ()
10257 {
10258
10259 ;
10260 return 0;
10261 }
10262 _ACEOF
10263 if ac_fn_c_try_compile "$LINENO"; then :
10264 ac_cv_netfilter_can_compile=yes
10265 else
10266 ac_cv_netfilter_can_compile=no
10267 fi
10268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10269 fi
10270
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
10272 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
10273 if test $ac_cv_netfilter_can_compile = yes ; then
10274
10275 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
10276
10277 NETFILTER_SRC=pcap-netfilter-linux.c
10278 fi
10279 ;;
10280 *)
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10283 ;;
10284 esac
10285 fi
10286
10287
10288
10289 # Check whether --enable-netmap was given.
10290 if test "${enable_netmap+set}" = set; then :
10291 enableval=$enable_netmap;
10292 else
10293 enable_netmap=yes
10294 fi
10295
10296
10297 if test "x$enable_netmap" != "xno" ; then
10298 #
10299 # Check whether net/netmap_user.h is usable if NETMAP_WITH_LIBS is
10300 # defined; it's not usable on DragonFly BSD 4.6 if NETMAP_WITH_LIBS
10301 # is defined, for example, as it includes a non-existent malloc.h
10302 # header.
10303 #
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5
10305 $as_echo_n "checking whether we can compile the netmap support... " >&6; }
10306 if ${ac_cv_net_netmap_user_can_compile+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10311
10312 $ac_includes_default
10313 #define NETMAP_WITH_LIBS
10314 #include <net/netmap_user.h>
10315 int
10316 main ()
10317 {
10318
10319 ;
10320 return 0;
10321 }
10322 _ACEOF
10323 if ac_fn_c_try_compile "$LINENO"; then :
10324 ac_cv_net_netmap_user_can_compile=yes
10325 else
10326 ac_cv_net_netmap_user_can_compile=no
10327 fi
10328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10329 fi
10330
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5
10332 $as_echo "$ac_cv_net_netmap_user_can_compile" >&6; }
10333 if test $ac_cv_net_netmap_user_can_compile = yes ; then
10334
10335 $as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h
10336
10337 NETMAP_SRC=pcap-netmap.c
10338 fi
10339
10340
10341 fi
10342
10343
10344 # Check whether --enable-bluetooth was given.
10345 if test "${enable_bluetooth+set}" = set; then :
10346 enableval=$enable_bluetooth;
10347 else
10348 enable_bluetooth=ifsupportavailable
10349 fi
10350
10351
10352 if test "xxx_only" = yes; then
10353 # User requested something-else-only pcap, so they don't
10354 # want Bluetooth support.
10355 enable_bluetooth=no
10356 fi
10357
10358 if test "x$enable_bluetooth" != "xno" ; then
10359 case "$host_os" in
10360 linux*)
10361 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
10362 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
10363
10364 #
10365 # We have bluetooth.h, so we support Bluetooth
10366 # sniffing.
10367 #
10368
10369 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
10370
10371 BT_SRC=pcap-bt-linux.c
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
10373 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
10374 ac_lbl_bluetooth_available=yes
10375
10376 #
10377 # OK, does struct sockaddr_hci have an hci_channel
10378 # member?
10379 #
10380 ac_fn_c_check_member "$LINENO" "struct sockaddr_hci" "hci_channel" "ac_cv_member_struct_sockaddr_hci_hci_channel" "
10381 #include <bluetooth/bluetooth.h>
10382 #include <bluetooth/hci.h>
10383
10384 "
10385 if test "x$ac_cv_member_struct_sockaddr_hci_hci_channel" = xyes; then :
10386
10387 cat >>confdefs.h <<_ACEOF
10388 #define HAVE_STRUCT_SOCKADDR_HCI_HCI_CHANNEL 1
10389 _ACEOF
10390
10391
10392 #
10393 # Yes; is HCI_CHANNEL_MONITOR defined?
10394 #
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
10396 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
10397 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402
10403 #include <bluetooth/bluetooth.h>
10404 #include <bluetooth/hci.h>
10405
10406 int
10407 main ()
10408 {
10409
10410 u_int i = HCI_CHANNEL_MONITOR;
10411
10412 ;
10413 return 0;
10414 }
10415 _ACEOF
10416 if ac_fn_c_try_compile "$LINENO"; then :
10417
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10419 $as_echo "yes" >&6; }
10420
10421 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
10422
10423 BT_MONITOR_SRC=pcap-bt-monitor-linux.c
10424
10425 else
10426
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10429
10430 fi
10431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432 fi
10433
10434
10435 fi
10436
10437
10438 else
10439
10440 #
10441 # We don't have bluetooth.h, so we don't support
10442 # Bluetooth sniffing.
10443 #
10444 if test "x$enable_bluetooth" = "xyes" ; then
10445 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
10446 else
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10448 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10449 fi
10450
10451 fi
10452
10453
10454 ;;
10455 *)
10456 if test "x$enable_bluetooth" = "xyes" ; then
10457 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
10458 else
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
10460 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
10461 fi
10462 ;;
10463 esac
10464
10465
10466
10467 fi
10468
10469 # Check whether --enable-dbus was given.
10470 if test "${enable_dbus+set}" = set; then :
10471 enableval=$enable_dbus;
10472 else
10473 enable_dbus=ifavailable
10474 fi
10475
10476
10477 if test "xxx_only" = yes; then
10478 # User requested something-else-only pcap, so they don't
10479 # want D-Bus support.
10480 enable_dbus=no
10481 fi
10482
10483 if test "x$enable_dbus" != "xno"; then
10484 if test "x$enable_dbus" = "xyes"; then
10485 case "$host_os" in
10486
10487 darwin*)
10488 #
10489 # We don't support D-Bus sniffing on macOS; see
10490 #
10491 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
10492 #
10493 # The user requested it, so fail.
10494 #
10495 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
10496 esac
10497 else
10498 case "$host_os" in
10499
10500 darwin*)
10501 #
10502 # We don't support D-Bus sniffing on macOS; see
10503 #
10504 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
10505 #
10506 # The user dind't explicitly request it, so just
10507 # silently refuse to enable it.
10508 #
10509 enable_dbus="no"
10510 ;;
10511 esac
10512 fi
10513 fi
10514
10515 if test "x$enable_dbus" != "xno"; then
10516 # Extract the first word of "pkg-config", so it can be a program name with args.
10517 set dummy pkg-config; ac_word=$2
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if ${ac_cv_prog_PKGCONFIG+:} false; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 if test -n "$PKGCONFIG"; then
10524 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
10525 else
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10528 do
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10533 ac_cv_prog_PKGCONFIG="pkg-config"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 break 2
10536 fi
10537 done
10538 done
10539 IFS=$as_save_IFS
10540
10541 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
10542 fi
10543 fi
10544 PKGCONFIG=$ac_cv_prog_PKGCONFIG
10545 if test -n "$PKGCONFIG"; then
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
10547 $as_echo "$PKGCONFIG" >&6; }
10548 else
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; }
10551 fi
10552
10553
10554 if test "x$PKGCONFIG" != "xno"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
10556 $as_echo_n "checking for D-Bus... " >&6; }
10557 if "$PKGCONFIG" dbus-1; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10559 $as_echo "yes" >&6; }
10560 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1`
10561 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1`
10562 save_CFLAGS="$CFLAGS"
10563 save_LIBS="$LIBS"
10564 CFLAGS="$CFLAGS $DBUS_CFLAGS"
10565 LIBS="$LIBS $DBUS_LIBS"
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
10567 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10570 #include <string.h>
10571
10572 #include <time.h>
10573 #include <sys/time.h>
10574
10575 #include <dbus/dbus.h>
10576 int
10577 main ()
10578 {
10579 return dbus_connection_read_write(NULL, 0);
10580 ;
10581 return 0;
10582 }
10583 _ACEOF
10584 if ac_fn_c_try_link "$LINENO"; then :
10585
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10587 $as_echo "yes" >&6; }
10588
10589 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
10590
10591 DBUS_SRC=pcap-dbus.c
10592 V_INCLS="$V_INCLS $DBUS_CFLAGS"
10593
10594 else
10595
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597 $as_echo "no" >&6; }
10598 if test "x$enable_dbus" = "xyes"; then
10599 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
10600 fi
10601 LIBS="$save_LIBS"
10602
10603 fi
10604 rm -f core conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext conftest.$ac_ext
10606 CFLAGS="$save_CFLAGS"
10607 else
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10610 if test "x$enable_dbus" = "xyes"; then
10611 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
10612 fi
10613 fi
10614 fi
10615
10616
10617 fi
10618
10619 # Check whether --enable-rdma was given.
10620 if test "${enable_rdma+set}" = set; then :
10621 enableval=$enable_rdma;
10622 else
10623 enable_rdmasniff=ifavailable
10624 fi
10625
10626
10627 if test "xxx_only" = yes; then
10628 # User requested something-else-only pcap, so they don't
10629 # want RDMA support.
10630 enable_rdmasniff=no
10631 fi
10632
10633 if test "x$enable_rdmasniff" != "xno"; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
10635 $as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
10636 if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 ac_check_lib_save_LIBS=$LIBS
10640 LIBS="-libverbs $LIBS"
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10643
10644 /* Override any GCC internal prototype to avoid an error.
10645 Use char because int might match the return type of a GCC
10646 builtin and then its argument prototype would still apply. */
10647 #ifdef __cplusplus
10648 extern "C"
10649 #endif
10650 char ibv_get_device_list ();
10651 int
10652 main ()
10653 {
10654 return ibv_get_device_list ();
10655 ;
10656 return 0;
10657 }
10658 _ACEOF
10659 if ac_fn_c_try_link "$LINENO"; then :
10660 ac_cv_lib_ibverbs_ibv_get_device_list=yes
10661 else
10662 ac_cv_lib_ibverbs_ibv_get_device_list=no
10663 fi
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10667 fi
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
10669 $as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; }
10670 if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then :
10671
10672 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
10673 if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
10674
10675 #
10676 # ibv_create_flow may be defined as a static inline
10677 # function in infiniband/verbs.h, so we can't
10678 # use AC_CHECK_LIB.
10679 #
10680 # Too bad autoconf has no AC_SYMBOL_EXISTS()
10681 # macro that works like CMake's check_symbol_exists()
10682 # function, to check do a compile check like
10683 # this (they do a clever trick to avoid having
10684 # to know the function's signature).
10685 #
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
10687 $as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; }
10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689 /* end confdefs.h. */
10690
10691 #include <infiniband/verbs.h>
10692
10693 int
10694 main ()
10695 {
10696
10697 (void) ibv_create_flow((struct ibv_qp *) NULL,
10698 (struct ibv_flow_attr *) NULL);
10699
10700 ;
10701 return 0;
10702 }
10703 _ACEOF
10704 if ac_fn_c_try_link "$LINENO"; then :
10705
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10707 $as_echo "yes" >&6; }
10708
10709 $as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h
10710
10711 RDMA_SRC=pcap-rdmasniff.c
10712 LIBS="-libverbs $LIBS"
10713
10714 else
10715
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717 $as_echo "no" >&6; }
10718
10719
10720 fi
10721 rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723
10724 fi
10725
10726
10727
10728 fi
10729
10730
10731
10732 fi
10733
10734 # Find a good install program. We prefer a C program (faster),
10735 # so one script is as good as another. But avoid the broken or
10736 # incompatible versions:
10737 # SysV /etc/install, /usr/sbin/install
10738 # SunOS /usr/etc/install
10739 # IRIX /sbin/install
10740 # AIX /bin/install
10741 # AmigaOS /C/install, which installs bootblocks on floppy discs
10742 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10743 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10744 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10745 # OS/2's system install, which has a completely different semantic
10746 # ./install, which can be erroneously created by make from ./install.sh.
10747 # Reject install programs that cannot install multiple files.
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10749 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10750 if test -z "$INSTALL"; then
10751 if ${ac_cv_path_install+:} false; then :
10752 $as_echo_n "(cached) " >&6
10753 else
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10756 do
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 # Account for people who put trailing slashes in PATH elements.
10760 case $as_dir/ in #((
10761 ./ | .// | /[cC]/* | \
10762 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10763 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10764 /usr/ucb/* ) ;;
10765 *)
10766 # OSF1 and SCO ODT 3.0 have their own names for install.
10767 # Don't use installbsd from OSF since it installs stuff as root
10768 # by default.
10769 for ac_prog in ginstall scoinst install; do
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10772 if test $ac_prog = install &&
10773 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10774 # AIX install. It has an incompatible calling convention.
10775 :
10776 elif test $ac_prog = install &&
10777 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10778 # program-specific install script used by HP pwplus--don't use.
10779 :
10780 else
10781 rm -rf conftest.one conftest.two conftest.dir
10782 echo one > conftest.one
10783 echo two > conftest.two
10784 mkdir conftest.dir
10785 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10786 test -s conftest.one && test -s conftest.two &&
10787 test -s conftest.dir/conftest.one &&
10788 test -s conftest.dir/conftest.two
10789 then
10790 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10791 break 3
10792 fi
10793 fi
10794 fi
10795 done
10796 done
10797 ;;
10798 esac
10799
10800 done
10801 IFS=$as_save_IFS
10802
10803 rm -rf conftest.one conftest.two conftest.dir
10804
10805 fi
10806 if test "${ac_cv_path_install+set}" = set; then
10807 INSTALL=$ac_cv_path_install
10808 else
10809 # As a last resort, use the slow shell script. Don't cache a
10810 # value for INSTALL within a source directory, because that will
10811 # break other packages using the cache if that directory is
10812 # removed, or if the value is a relative name.
10813 INSTALL=$ac_install_sh
10814 fi
10815 fi
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10817 $as_echo "$INSTALL" >&6; }
10818
10819 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10820 # It thinks the first close brace ends the variable substitution.
10821 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10822
10823 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10824
10825 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10826
10827
10828 ac_config_headers="$ac_config_headers config.h"
10829
10830
10831 ac_config_commands="$ac_config_commands default-1"
10832
10833 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_immediate_mode.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap rpcapd/Makefile rpcapd/rpcapd.manadmin testprogs/Makefile"
10834
10835 cat >confcache <<\_ACEOF
10836 # This file is a shell script that caches the results of configure
10837 # tests run on this system so they can be shared between configure
10838 # scripts and configure runs, see configure's option --config-cache.
10839 # It is not useful on other systems. If it contains results you don't
10840 # want to keep, you may remove or edit it.
10841 #
10842 # config.status only pays attention to the cache file if you give it
10843 # the --recheck option to rerun configure.
10844 #
10845 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10846 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10847 # following values.
10848
10849 _ACEOF
10850
10851 # The following way of writing the cache mishandles newlines in values,
10852 # but we know of no workaround that is simple, portable, and efficient.
10853 # So, we kill variables containing newlines.
10854 # Ultrix sh set writes to stderr and can't be redirected directly,
10855 # and sets the high bit in the cache file unless we assign to the vars.
10856 (
10857 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10858 eval ac_val=\$$ac_var
10859 case $ac_val in #(
10860 *${as_nl}*)
10861 case $ac_var in #(
10862 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10864 esac
10865 case $ac_var in #(
10866 _ | IFS | as_nl) ;; #(
10867 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10868 *) { eval $ac_var=; unset $ac_var;} ;;
10869 esac ;;
10870 esac
10871 done
10872
10873 (set) 2>&1 |
10874 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10875 *${as_nl}ac_space=\ *)
10876 # `set' does not quote correctly, so add quotes: double-quote
10877 # substitution turns \\\\ into \\, and sed turns \\ into \.
10878 sed -n \
10879 "s/'/'\\\\''/g;
10880 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10881 ;; #(
10882 *)
10883 # `set' quotes correctly as required by POSIX, so do not add quotes.
10884 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10885 ;;
10886 esac |
10887 sort
10888 ) |
10889 sed '
10890 /^ac_cv_env_/b end
10891 t clear
10892 :clear
10893 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10894 t end
10895 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10896 :end' >>confcache
10897 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10898 if test -w "$cache_file"; then
10899 if test "x$cache_file" != "x/dev/null"; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10901 $as_echo "$as_me: updating cache $cache_file" >&6;}
10902 if test ! -f "$cache_file" || test -h "$cache_file"; then
10903 cat confcache >"$cache_file"
10904 else
10905 case $cache_file in #(
10906 */* | ?:*)
10907 mv -f confcache "$cache_file"$$ &&
10908 mv -f "$cache_file"$$ "$cache_file" ;; #(
10909 *)
10910 mv -f confcache "$cache_file" ;;
10911 esac
10912 fi
10913 fi
10914 else
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10916 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10917 fi
10918 fi
10919 rm -f confcache
10920
10921 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10922 # Let make expand exec_prefix.
10923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10924
10925 DEFS=-DHAVE_CONFIG_H
10926
10927 ac_libobjs=
10928 ac_ltlibobjs=
10929 U=
10930 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10931 # 1. Remove the extension, and $U if already installed.
10932 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10933 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10934 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10935 # will be set to the directory where LIBOBJS objects are built.
10936 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10937 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10938 done
10939 LIBOBJS=$ac_libobjs
10940
10941 LTLIBOBJS=$ac_ltlibobjs
10942
10943
10944
10945 : "${CONFIG_STATUS=./config.status}"
10946 ac_write_fail=0
10947 ac_clean_files_save=$ac_clean_files
10948 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10950 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10951 as_write_fail=0
10952 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10953 #! $SHELL
10954 # Generated by $as_me.
10955 # Run this file to recreate the current configuration.
10956 # Compiler output produced by configure, useful for debugging
10957 # configure, is in config.log if it exists.
10958
10959 debug=false
10960 ac_cs_recheck=false
10961 ac_cs_silent=false
10962
10963 SHELL=\${CONFIG_SHELL-$SHELL}
10964 export SHELL
10965 _ASEOF
10966 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10967 ## -------------------- ##
10968 ## M4sh Initialization. ##
10969 ## -------------------- ##
10970
10971 # Be more Bourne compatible
10972 DUALCASE=1; export DUALCASE # for MKS sh
10973 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10974 emulate sh
10975 NULLCMD=:
10976 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10977 # is contrary to our usage. Disable this feature.
10978 alias -g '${1+"$@"}'='"$@"'
10979 setopt NO_GLOB_SUBST
10980 else
10981 case `(set -o) 2>/dev/null` in #(
10982 *posix*) :
10983 set -o posix ;; #(
10984 *) :
10985 ;;
10986 esac
10987 fi
10988
10989
10990 as_nl='
10991 '
10992 export as_nl
10993 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10994 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10995 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10996 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10997 # Prefer a ksh shell builtin over an external printf program on Solaris,
10998 # but without wasting forks for bash or zsh.
10999 if test -z "$BASH_VERSION$ZSH_VERSION" \
11000 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11001 as_echo='print -r --'
11002 as_echo_n='print -rn --'
11003 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11004 as_echo='printf %s\n'
11005 as_echo_n='printf %s'
11006 else
11007 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11008 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11009 as_echo_n='/usr/ucb/echo -n'
11010 else
11011 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11012 as_echo_n_body='eval
11013 arg=$1;
11014 case $arg in #(
11015 *"$as_nl"*)
11016 expr "X$arg" : "X\\(.*\\)$as_nl";
11017 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11018 esac;
11019 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11020 '
11021 export as_echo_n_body
11022 as_echo_n='sh -c $as_echo_n_body as_echo'
11023 fi
11024 export as_echo_body
11025 as_echo='sh -c $as_echo_body as_echo'
11026 fi
11027
11028 # The user is always right.
11029 if test "${PATH_SEPARATOR+set}" != set; then
11030 PATH_SEPARATOR=:
11031 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11032 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11033 PATH_SEPARATOR=';'
11034 }
11035 fi
11036
11037
11038 # IFS
11039 # We need space, tab and new line, in precisely that order. Quoting is
11040 # there to prevent editors from complaining about space-tab.
11041 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11042 # splitting by setting IFS to empty value.)
11043 IFS=" "" $as_nl"
11044
11045 # Find who we are. Look in the path if we contain no directory separator.
11046 as_myself=
11047 case $0 in #((
11048 *[\\/]* ) as_myself=$0 ;;
11049 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11050 for as_dir in $PATH
11051 do
11052 IFS=$as_save_IFS
11053 test -z "$as_dir" && as_dir=.
11054 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11055 done
11056 IFS=$as_save_IFS
11057
11058 ;;
11059 esac
11060 # We did not find ourselves, most probably we were run as `sh COMMAND'
11061 # in which case we are not to be found in the path.
11062 if test "x$as_myself" = x; then
11063 as_myself=$0
11064 fi
11065 if test ! -f "$as_myself"; then
11066 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11067 exit 1
11068 fi
11069
11070 # Unset variables that we do not need and which cause bugs (e.g. in
11071 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11072 # suppresses any "Segmentation fault" message there. '((' could
11073 # trigger a bug in pdksh 5.2.14.
11074 for as_var in BASH_ENV ENV MAIL MAILPATH
11075 do eval test x\${$as_var+set} = xset \
11076 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11077 done
11078 PS1='$ '
11079 PS2='> '
11080 PS4='+ '
11081
11082 # NLS nuisances.
11083 LC_ALL=C
11084 export LC_ALL
11085 LANGUAGE=C
11086 export LANGUAGE
11087
11088 # CDPATH.
11089 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11090
11091
11092 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11093 # ----------------------------------------
11094 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11095 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11096 # script with STATUS, using 1 if that was 0.
11097 as_fn_error ()
11098 {
11099 as_status=$1; test $as_status -eq 0 && as_status=1
11100 if test "$4"; then
11101 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11102 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11103 fi
11104 $as_echo "$as_me: error: $2" >&2
11105 as_fn_exit $as_status
11106 } # as_fn_error
11107
11108
11109 # as_fn_set_status STATUS
11110 # -----------------------
11111 # Set $? to STATUS, without forking.
11112 as_fn_set_status ()
11113 {
11114 return $1
11115 } # as_fn_set_status
11116
11117 # as_fn_exit STATUS
11118 # -----------------
11119 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11120 as_fn_exit ()
11121 {
11122 set +e
11123 as_fn_set_status $1
11124 exit $1
11125 } # as_fn_exit
11126
11127 # as_fn_unset VAR
11128 # ---------------
11129 # Portably unset VAR.
11130 as_fn_unset ()
11131 {
11132 { eval $1=; unset $1;}
11133 }
11134 as_unset=as_fn_unset
11135 # as_fn_append VAR VALUE
11136 # ----------------------
11137 # Append the text in VALUE to the end of the definition contained in VAR. Take
11138 # advantage of any shell optimizations that allow amortized linear growth over
11139 # repeated appends, instead of the typical quadratic growth present in naive
11140 # implementations.
11141 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11142 eval 'as_fn_append ()
11143 {
11144 eval $1+=\$2
11145 }'
11146 else
11147 as_fn_append ()
11148 {
11149 eval $1=\$$1\$2
11150 }
11151 fi # as_fn_append
11152
11153 # as_fn_arith ARG...
11154 # ------------------
11155 # Perform arithmetic evaluation on the ARGs, and store the result in the
11156 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11157 # must be portable across $(()) and expr.
11158 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11159 eval 'as_fn_arith ()
11160 {
11161 as_val=$(( $* ))
11162 }'
11163 else
11164 as_fn_arith ()
11165 {
11166 as_val=`expr "$@" || test $? -eq 1`
11167 }
11168 fi # as_fn_arith
11169
11170
11171 if expr a : '\(a\)' >/dev/null 2>&1 &&
11172 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11173 as_expr=expr
11174 else
11175 as_expr=false
11176 fi
11177
11178 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11179 as_basename=basename
11180 else
11181 as_basename=false
11182 fi
11183
11184 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11185 as_dirname=dirname
11186 else
11187 as_dirname=false
11188 fi
11189
11190 as_me=`$as_basename -- "$0" ||
11191 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11192 X"$0" : 'X\(//\)$' \| \
11193 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11194 $as_echo X/"$0" |
11195 sed '/^.*\/\([^/][^/]*\)\/*$/{
11196 s//\1/
11197 q
11198 }
11199 /^X\/\(\/\/\)$/{
11200 s//\1/
11201 q
11202 }
11203 /^X\/\(\/\).*/{
11204 s//\1/
11205 q
11206 }
11207 s/.*/./; q'`
11208
11209 # Avoid depending upon Character Ranges.
11210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11213 as_cr_digits='0123456789'
11214 as_cr_alnum=$as_cr_Letters$as_cr_digits
11215
11216 ECHO_C= ECHO_N= ECHO_T=
11217 case `echo -n x` in #(((((
11218 -n*)
11219 case `echo 'xy\c'` in
11220 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11221 xy) ECHO_C='\c';;
11222 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11223 ECHO_T=' ';;
11224 esac;;
11225 *)
11226 ECHO_N='-n';;
11227 esac
11228
11229 rm -f conf$$ conf$$.exe conf$$.file
11230 if test -d conf$$.dir; then
11231 rm -f conf$$.dir/conf$$.file
11232 else
11233 rm -f conf$$.dir
11234 mkdir conf$$.dir 2>/dev/null
11235 fi
11236 if (echo >conf$$.file) 2>/dev/null; then
11237 if ln -s conf$$.file conf$$ 2>/dev/null; then
11238 as_ln_s='ln -s'
11239 # ... but there are two gotchas:
11240 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11241 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11242 # In both cases, we have to default to `cp -pR'.
11243 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11244 as_ln_s='cp -pR'
11245 elif ln conf$$.file conf$$ 2>/dev/null; then
11246 as_ln_s=ln
11247 else
11248 as_ln_s='cp -pR'
11249 fi
11250 else
11251 as_ln_s='cp -pR'
11252 fi
11253 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11254 rmdir conf$$.dir 2>/dev/null
11255
11256
11257 # as_fn_mkdir_p
11258 # -------------
11259 # Create "$as_dir" as a directory, including parents if necessary.
11260 as_fn_mkdir_p ()
11261 {
11262
11263 case $as_dir in #(
11264 -*) as_dir=./$as_dir;;
11265 esac
11266 test -d "$as_dir" || eval $as_mkdir_p || {
11267 as_dirs=
11268 while :; do
11269 case $as_dir in #(
11270 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11271 *) as_qdir=$as_dir;;
11272 esac
11273 as_dirs="'$as_qdir' $as_dirs"
11274 as_dir=`$as_dirname -- "$as_dir" ||
11275 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11276 X"$as_dir" : 'X\(//\)[^/]' \| \
11277 X"$as_dir" : 'X\(//\)$' \| \
11278 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11279 $as_echo X"$as_dir" |
11280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11281 s//\1/
11282 q
11283 }
11284 /^X\(\/\/\)[^/].*/{
11285 s//\1/
11286 q
11287 }
11288 /^X\(\/\/\)$/{
11289 s//\1/
11290 q
11291 }
11292 /^X\(\/\).*/{
11293 s//\1/
11294 q
11295 }
11296 s/.*/./; q'`
11297 test -d "$as_dir" && break
11298 done
11299 test -z "$as_dirs" || eval "mkdir $as_dirs"
11300 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11301
11302
11303 } # as_fn_mkdir_p
11304 if mkdir -p . 2>/dev/null; then
11305 as_mkdir_p='mkdir -p "$as_dir"'
11306 else
11307 test -d ./-p && rmdir ./-p
11308 as_mkdir_p=false
11309 fi
11310
11311
11312 # as_fn_executable_p FILE
11313 # -----------------------
11314 # Test if FILE is an executable regular file.
11315 as_fn_executable_p ()
11316 {
11317 test -f "$1" && test -x "$1"
11318 } # as_fn_executable_p
11319 as_test_x='test -x'
11320 as_executable_p=as_fn_executable_p
11321
11322 # Sed expression to map a string onto a valid CPP name.
11323 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11324
11325 # Sed expression to map a string onto a valid variable name.
11326 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11327
11328
11329 exec 6>&1
11330 ## ----------------------------------- ##
11331 ## Main body of $CONFIG_STATUS script. ##
11332 ## ----------------------------------- ##
11333 _ASEOF
11334 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11335
11336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11337 # Save the log message, to keep $0 and so on meaningful, and to
11338 # report actual input values of CONFIG_FILES etc. instead of their
11339 # values after options handling.
11340 ac_log="
11341 This file was extended by pcap $as_me 1.10.0-PRE-GIT, which was
11342 generated by GNU Autoconf 2.69. Invocation command line was
11343
11344 CONFIG_FILES = $CONFIG_FILES
11345 CONFIG_HEADERS = $CONFIG_HEADERS
11346 CONFIG_LINKS = $CONFIG_LINKS
11347 CONFIG_COMMANDS = $CONFIG_COMMANDS
11348 $ $0 $@
11349
11350 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11351 "
11352
11353 _ACEOF
11354
11355 case $ac_config_files in *"
11356 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11357 esac
11358
11359 case $ac_config_headers in *"
11360 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11361 esac
11362
11363
11364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11365 # Files that config.status was made for.
11366 config_files="$ac_config_files"
11367 config_headers="$ac_config_headers"
11368 config_commands="$ac_config_commands"
11369
11370 _ACEOF
11371
11372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11373 ac_cs_usage="\
11374 \`$as_me' instantiates files and other configuration actions
11375 from templates according to the current configuration. Unless the files
11376 and actions are specified as TAGs, all are instantiated by default.
11377
11378 Usage: $0 [OPTION]... [TAG]...
11379
11380 -h, --help print this help, then exit
11381 -V, --version print version number and configuration settings, then exit
11382 --config print configuration, then exit
11383 -q, --quiet, --silent
11384 do not print progress messages
11385 -d, --debug don't remove temporary files
11386 --recheck update $as_me by reconfiguring in the same conditions
11387 --file=FILE[:TEMPLATE]
11388 instantiate the configuration file FILE
11389 --header=FILE[:TEMPLATE]
11390 instantiate the configuration header FILE
11391
11392 Configuration files:
11393 $config_files
11394
11395 Configuration headers:
11396 $config_headers
11397
11398 Configuration commands:
11399 $config_commands
11400
11401 Report bugs to the package provider."
11402
11403 _ACEOF
11404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11405 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11406 ac_cs_version="\\
11407 pcap config.status 1.10.0-PRE-GIT
11408 configured by $0, generated by GNU Autoconf 2.69,
11409 with options \\"\$ac_cs_config\\"
11410
11411 Copyright (C) 2012 Free Software Foundation, Inc.
11412 This config.status script is free software; the Free Software Foundation
11413 gives unlimited permission to copy, distribute and modify it."
11414
11415 ac_pwd='$ac_pwd'
11416 srcdir='$srcdir'
11417 INSTALL='$INSTALL'
11418 test -n "\$AWK" || AWK=awk
11419 _ACEOF
11420
11421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11422 # The default lists apply if the user does not specify any file.
11423 ac_need_defaults=:
11424 while test $# != 0
11425 do
11426 case $1 in
11427 --*=?*)
11428 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11429 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11430 ac_shift=:
11431 ;;
11432 --*=)
11433 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11434 ac_optarg=
11435 ac_shift=:
11436 ;;
11437 *)
11438 ac_option=$1
11439 ac_optarg=$2
11440 ac_shift=shift
11441 ;;
11442 esac
11443
11444 case $ac_option in
11445 # Handling of the options.
11446 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11447 ac_cs_recheck=: ;;
11448 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11449 $as_echo "$ac_cs_version"; exit ;;
11450 --config | --confi | --conf | --con | --co | --c )
11451 $as_echo "$ac_cs_config"; exit ;;
11452 --debug | --debu | --deb | --de | --d | -d )
11453 debug=: ;;
11454 --file | --fil | --fi | --f )
11455 $ac_shift
11456 case $ac_optarg in
11457 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11458 '') as_fn_error $? "missing file argument" ;;
11459 esac
11460 as_fn_append CONFIG_FILES " '$ac_optarg'"
11461 ac_need_defaults=false;;
11462 --header | --heade | --head | --hea )
11463 $ac_shift
11464 case $ac_optarg in
11465 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11466 esac
11467 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11468 ac_need_defaults=false;;
11469 --he | --h)
11470 # Conflict between --help and --header
11471 as_fn_error $? "ambiguous option: \`$1'
11472 Try \`$0 --help' for more information.";;
11473 --help | --hel | -h )
11474 $as_echo "$ac_cs_usage"; exit ;;
11475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11476 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11477 ac_cs_silent=: ;;
11478
11479 # This is an error.
11480 -*) as_fn_error $? "unrecognized option: \`$1'
11481 Try \`$0 --help' for more information." ;;
11482
11483 *) as_fn_append ac_config_targets " $1"
11484 ac_need_defaults=false ;;
11485
11486 esac
11487 shift
11488 done
11489
11490 ac_configure_extra_args=
11491
11492 if $ac_cs_silent; then
11493 exec 6>/dev/null
11494 ac_configure_extra_args="$ac_configure_extra_args --silent"
11495 fi
11496
11497 _ACEOF
11498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11499 if \$ac_cs_recheck; then
11500 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11501 shift
11502 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11503 CONFIG_SHELL='$SHELL'
11504 export CONFIG_SHELL
11505 exec "\$@"
11506 fi
11507
11508 _ACEOF
11509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11510 exec 5>>config.log
11511 {
11512 echo
11513 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11514 ## Running $as_me. ##
11515 _ASBOX
11516 $as_echo "$ac_log"
11517 } >&5
11518
11519 _ACEOF
11520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11521 #
11522 # INIT-COMMANDS
11523 #
11524
11525
11526 _ACEOF
11527
11528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11529
11530 # Handling of arguments.
11531 for ac_config_target in $ac_config_targets
11532 do
11533 case $ac_config_target in
11534 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11535 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11536 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11537 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
11538 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
11539 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
11540 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
11541 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
11542 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
11543 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
11544 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11545 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
11546 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11547 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
11548 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11549 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11550 "pcap_set_immediate_mode.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_immediate_mode.3pcap" ;;
11551 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
11552 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
11553 "rpcapd/Makefile") CONFIG_FILES="$CONFIG_FILES rpcapd/Makefile" ;;
11554 "rpcapd/rpcapd.manadmin") CONFIG_FILES="$CONFIG_FILES rpcapd/rpcapd.manadmin" ;;
11555 "testprogs/Makefile") CONFIG_FILES="$CONFIG_FILES testprogs/Makefile" ;;
11556
11557 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11558 esac
11559 done
11560
11561
11562 # If the user did not use the arguments to specify the items to instantiate,
11563 # then the envvar interface is used. Set only those that are not.
11564 # We use the long form for the default assignment because of an extremely
11565 # bizarre bug on SunOS 4.1.3.
11566 if $ac_need_defaults; then
11567 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11568 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11569 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11570 fi
11571
11572 # Have a temporary directory for convenience. Make it in the build tree
11573 # simply because there is no reason against having it here, and in addition,
11574 # creating and moving files from /tmp can sometimes cause problems.
11575 # Hook for its removal unless debugging.
11576 # Note that there is a small window in which the directory will not be cleaned:
11577 # after its creation but before its name has been assigned to `$tmp'.
11578 $debug ||
11579 {
11580 tmp= ac_tmp=
11581 trap 'exit_status=$?
11582 : "${ac_tmp:=$tmp}"
11583 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11584 ' 0
11585 trap 'as_fn_exit 1' 1 2 13 15
11586 }
11587 # Create a (secure) tmp directory for tmp files.
11588
11589 {
11590 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11591 test -d "$tmp"
11592 } ||
11593 {
11594 tmp=./conf$$-$RANDOM
11595 (umask 077 && mkdir "$tmp")
11596 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11597 ac_tmp=$tmp
11598
11599 # Set up the scripts for CONFIG_FILES section.
11600 # No need to generate them if there are no CONFIG_FILES.
11601 # This happens for instance with `./config.status config.h'.
11602 if test -n "$CONFIG_FILES"; then
11603
11604
11605 ac_cr=`echo X | tr X '\015'`
11606 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11607 # But we know of no other shell where ac_cr would be empty at this
11608 # point, so we can use a bashism as a fallback.
11609 if test "x$ac_cr" = x; then
11610 eval ac_cr=\$\'\\r\'
11611 fi
11612 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11613 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11614 ac_cs_awk_cr='\\r'
11615 else
11616 ac_cs_awk_cr=$ac_cr
11617 fi
11618
11619 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11620 _ACEOF
11621
11622
11623 {
11624 echo "cat >conf$$subs.awk <<_ACEOF" &&
11625 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11626 echo "_ACEOF"
11627 } >conf$$subs.sh ||
11628 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11629 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11630 ac_delim='%!_!# '
11631 for ac_last_try in false false false false false :; do
11632 . ./conf$$subs.sh ||
11633 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11634
11635 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11636 if test $ac_delim_n = $ac_delim_num; then
11637 break
11638 elif $ac_last_try; then
11639 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11640 else
11641 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11642 fi
11643 done
11644 rm -f conf$$subs.sh
11645
11646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11647 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11648 _ACEOF
11649 sed -n '
11650 h
11651 s/^/S["/; s/!.*/"]=/
11652 p
11653 g
11654 s/^[^!]*!//
11655 :repl
11656 t repl
11657 s/'"$ac_delim"'$//
11658 t delim
11659 :nl
11660 h
11661 s/\(.\{148\}\)..*/\1/
11662 t more1
11663 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11664 p
11665 n
11666 b repl
11667 :more1
11668 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11669 p
11670 g
11671 s/.\{148\}//
11672 t nl
11673 :delim
11674 h
11675 s/\(.\{148\}\)..*/\1/
11676 t more2
11677 s/["\\]/\\&/g; s/^/"/; s/$/"/
11678 p
11679 b
11680 :more2
11681 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11682 p
11683 g
11684 s/.\{148\}//
11685 t delim
11686 ' <conf$$subs.awk | sed '
11687 /^[^""]/{
11688 N
11689 s/\n//
11690 }
11691 ' >>$CONFIG_STATUS || ac_write_fail=1
11692 rm -f conf$$subs.awk
11693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11694 _ACAWK
11695 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11696 for (key in S) S_is_set[key] = 1
11697 FS = "\a"
11698
11699 }
11700 {
11701 line = $ 0
11702 nfields = split(line, field, "@")
11703 substed = 0
11704 len = length(field[1])
11705 for (i = 2; i < nfields; i++) {
11706 key = field[i]
11707 keylen = length(key)
11708 if (S_is_set[key]) {
11709 value = S[key]
11710 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11711 len += length(value) + length(field[++i])
11712 substed = 1
11713 } else
11714 len += 1 + keylen
11715 }
11716
11717 print line
11718 }
11719
11720 _ACAWK
11721 _ACEOF
11722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11723 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11724 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11725 else
11726 cat
11727 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11728 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11729 _ACEOF
11730
11731 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11732 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11733 # trailing colons and then remove the whole line if VPATH becomes empty
11734 # (actually we leave an empty line to preserve line numbers).
11735 if test "x$srcdir" = x.; then
11736 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11737 h
11738 s///
11739 s/^/:/
11740 s/[ ]*$/:/
11741 s/:\$(srcdir):/:/g
11742 s/:\${srcdir}:/:/g
11743 s/:@srcdir@:/:/g
11744 s/^:*//
11745 s/:*$//
11746 x
11747 s/\(=[ ]*\).*/\1/
11748 G
11749 s/\n//
11750 s/^[^=]*=[ ]*$//
11751 }'
11752 fi
11753
11754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11755 fi # test -n "$CONFIG_FILES"
11756
11757 # Set up the scripts for CONFIG_HEADERS section.
11758 # No need to generate them if there are no CONFIG_HEADERS.
11759 # This happens for instance with `./config.status Makefile'.
11760 if test -n "$CONFIG_HEADERS"; then
11761 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11762 BEGIN {
11763 _ACEOF
11764
11765 # Transform confdefs.h into an awk script `defines.awk', embedded as
11766 # here-document in config.status, that substitutes the proper values into
11767 # config.h.in to produce config.h.
11768
11769 # Create a delimiter string that does not exist in confdefs.h, to ease
11770 # handling of long lines.
11771 ac_delim='%!_!# '
11772 for ac_last_try in false false :; do
11773 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11774 if test -z "$ac_tt"; then
11775 break
11776 elif $ac_last_try; then
11777 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11778 else
11779 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11780 fi
11781 done
11782
11783 # For the awk script, D is an array of macro values keyed by name,
11784 # likewise P contains macro parameters if any. Preserve backslash
11785 # newline sequences.
11786
11787 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11788 sed -n '
11789 s/.\{148\}/&'"$ac_delim"'/g
11790 t rset
11791 :rset
11792 s/^[ ]*#[ ]*define[ ][ ]*/ /
11793 t def
11794 d
11795 :def
11796 s/\\$//
11797 t bsnl
11798 s/["\\]/\\&/g
11799 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11800 D["\1"]=" \3"/p
11801 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11802 d
11803 :bsnl
11804 s/["\\]/\\&/g
11805 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11806 D["\1"]=" \3\\\\\\n"\\/p
11807 t cont
11808 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11809 t cont
11810 d
11811 :cont
11812 n
11813 s/.\{148\}/&'"$ac_delim"'/g
11814 t clear
11815 :clear
11816 s/\\$//
11817 t bsnlc
11818 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11819 d
11820 :bsnlc
11821 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11822 b cont
11823 ' <confdefs.h | sed '
11824 s/'"$ac_delim"'/"\\\
11825 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11826
11827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11828 for (key in D) D_is_set[key] = 1
11829 FS = "\a"
11830 }
11831 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11832 line = \$ 0
11833 split(line, arg, " ")
11834 if (arg[1] == "#") {
11835 defundef = arg[2]
11836 mac1 = arg[3]
11837 } else {
11838 defundef = substr(arg[1], 2)
11839 mac1 = arg[2]
11840 }
11841 split(mac1, mac2, "(") #)
11842 macro = mac2[1]
11843 prefix = substr(line, 1, index(line, defundef) - 1)
11844 if (D_is_set[macro]) {
11845 # Preserve the white space surrounding the "#".
11846 print prefix "define", macro P[macro] D[macro]
11847 next
11848 } else {
11849 # Replace #undef with comments. This is necessary, for example,
11850 # in the case of _POSIX_SOURCE, which is predefined and required
11851 # on some systems where configure will not decide to define it.
11852 if (defundef == "undef") {
11853 print "/*", prefix defundef, macro, "*/"
11854 next
11855 }
11856 }
11857 }
11858 { print }
11859 _ACAWK
11860 _ACEOF
11861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11862 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11863 fi # test -n "$CONFIG_HEADERS"
11864
11865
11866 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11867 shift
11868 for ac_tag
11869 do
11870 case $ac_tag in
11871 :[FHLC]) ac_mode=$ac_tag; continue;;
11872 esac
11873 case $ac_mode$ac_tag in
11874 :[FHL]*:*);;
11875 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11876 :[FH]-) ac_tag=-:-;;
11877 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11878 esac
11879 ac_save_IFS=$IFS
11880 IFS=:
11881 set x $ac_tag
11882 IFS=$ac_save_IFS
11883 shift
11884 ac_file=$1
11885 shift
11886
11887 case $ac_mode in
11888 :L) ac_source=$1;;
11889 :[FH])
11890 ac_file_inputs=
11891 for ac_f
11892 do
11893 case $ac_f in
11894 -) ac_f="$ac_tmp/stdin";;
11895 *) # Look for the file first in the build tree, then in the source tree
11896 # (if the path is not absolute). The absolute path cannot be DOS-style,
11897 # because $ac_f cannot contain `:'.
11898 test -f "$ac_f" ||
11899 case $ac_f in
11900 [\\/$]*) false;;
11901 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11902 esac ||
11903 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11904 esac
11905 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11906 as_fn_append ac_file_inputs " '$ac_f'"
11907 done
11908
11909 # Let's still pretend it is `configure' which instantiates (i.e., don't
11910 # use $as_me), people would be surprised to read:
11911 # /* config.h. Generated by config.status. */
11912 configure_input='Generated from '`
11913 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11914 `' by configure.'
11915 if test x"$ac_file" != x-; then
11916 configure_input="$ac_file. $configure_input"
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11918 $as_echo "$as_me: creating $ac_file" >&6;}
11919 fi
11920 # Neutralize special characters interpreted by sed in replacement strings.
11921 case $configure_input in #(
11922 *\&* | *\|* | *\\* )
11923 ac_sed_conf_input=`$as_echo "$configure_input" |
11924 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11925 *) ac_sed_conf_input=$configure_input;;
11926 esac
11927
11928 case $ac_tag in
11929 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11930 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11931 esac
11932 ;;
11933 esac
11934
11935 ac_dir=`$as_dirname -- "$ac_file" ||
11936 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11937 X"$ac_file" : 'X\(//\)[^/]' \| \
11938 X"$ac_file" : 'X\(//\)$' \| \
11939 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11940 $as_echo X"$ac_file" |
11941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11942 s//\1/
11943 q
11944 }
11945 /^X\(\/\/\)[^/].*/{
11946 s//\1/
11947 q
11948 }
11949 /^X\(\/\/\)$/{
11950 s//\1/
11951 q
11952 }
11953 /^X\(\/\).*/{
11954 s//\1/
11955 q
11956 }
11957 s/.*/./; q'`
11958 as_dir="$ac_dir"; as_fn_mkdir_p
11959 ac_builddir=.
11960
11961 case "$ac_dir" in
11962 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11963 *)
11964 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11965 # A ".." for each directory in $ac_dir_suffix.
11966 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11967 case $ac_top_builddir_sub in
11968 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11969 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11970 esac ;;
11971 esac
11972 ac_abs_top_builddir=$ac_pwd
11973 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11974 # for backward compatibility:
11975 ac_top_builddir=$ac_top_build_prefix
11976
11977 case $srcdir in
11978 .) # We are building in place.
11979 ac_srcdir=.
11980 ac_top_srcdir=$ac_top_builddir_sub
11981 ac_abs_top_srcdir=$ac_pwd ;;
11982 [\\/]* | ?:[\\/]* ) # Absolute name.
11983 ac_srcdir=$srcdir$ac_dir_suffix;
11984 ac_top_srcdir=$srcdir
11985 ac_abs_top_srcdir=$srcdir ;;
11986 *) # Relative name.
11987 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11988 ac_top_srcdir=$ac_top_build_prefix$srcdir
11989 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11990 esac
11991 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11992
11993
11994 case $ac_mode in
11995 :F)
11996 #
11997 # CONFIG_FILE
11998 #
11999
12000 case $INSTALL in
12001 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12002 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12003 esac
12004 _ACEOF
12005
12006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12007 # If the template does not know about datarootdir, expand it.
12008 # FIXME: This hack should be removed a few years after 2.60.
12009 ac_datarootdir_hack=; ac_datarootdir_seen=
12010 ac_sed_dataroot='
12011 /datarootdir/ {
12012 p
12013 q
12014 }
12015 /@datadir@/p
12016 /@docdir@/p
12017 /@infodir@/p
12018 /@localedir@/p
12019 /@mandir@/p'
12020 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12021 *datarootdir*) ac_datarootdir_seen=yes;;
12022 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12024 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12025 _ACEOF
12026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12027 ac_datarootdir_hack='
12028 s&@datadir@&$datadir&g
12029 s&@docdir@&$docdir&g
12030 s&@infodir@&$infodir&g
12031 s&@localedir@&$localedir&g
12032 s&@mandir@&$mandir&g
12033 s&\\\${datarootdir}&$datarootdir&g' ;;
12034 esac
12035 _ACEOF
12036
12037 # Neutralize VPATH when `$srcdir' = `.'.
12038 # Shell code in configure.ac might set extrasub.
12039 # FIXME: do we really want to maintain this feature?
12040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12041 ac_sed_extra="$ac_vpsub
12042 $extrasub
12043 _ACEOF
12044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12045 :t
12046 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12047 s|@configure_input@|$ac_sed_conf_input|;t t
12048 s&@top_builddir@&$ac_top_builddir_sub&;t t
12049 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12050 s&@srcdir@&$ac_srcdir&;t t
12051 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12052 s&@top_srcdir@&$ac_top_srcdir&;t t
12053 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12054 s&@builddir@&$ac_builddir&;t t
12055 s&@abs_builddir@&$ac_abs_builddir&;t t
12056 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12057 s&@INSTALL@&$ac_INSTALL&;t t
12058 $ac_datarootdir_hack
12059 "
12060 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12061 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12062
12063 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12064 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12065 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12066 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12068 which seems to be undefined. Please make sure it is defined" >&5
12069 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12070 which seems to be undefined. Please make sure it is defined" >&2;}
12071
12072 rm -f "$ac_tmp/stdin"
12073 case $ac_file in
12074 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12075 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12076 esac \
12077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12078 ;;
12079 :H)
12080 #
12081 # CONFIG_HEADER
12082 #
12083 if test x"$ac_file" != x-; then
12084 {
12085 $as_echo "/* $configure_input */" \
12086 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12087 } >"$ac_tmp/config.h" \
12088 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12089 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12091 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12092 else
12093 rm -f "$ac_file"
12094 mv "$ac_tmp/config.h" "$ac_file" \
12095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12096 fi
12097 else
12098 $as_echo "/* $configure_input */" \
12099 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12100 || as_fn_error $? "could not create -" "$LINENO" 5
12101 fi
12102 ;;
12103
12104 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12105 $as_echo "$as_me: executing $ac_file commands" >&6;}
12106 ;;
12107 esac
12108
12109
12110 case $ac_file$ac_mode in
12111 "default-1":C) if test -f .devel; then
12112 echo timestamp > stamp-h
12113 cat $srcdir/Makefile-devel-adds >> Makefile
12114 make depend
12115 fi ;;
12116
12117 esac
12118 done # for ac_tag
12119
12120
12121 as_fn_exit 0
12122 _ACEOF
12123 ac_clean_files=$ac_clean_files_save
12124
12125 test $ac_write_fail = 0 ||
12126 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12127
12128
12129 # configure is writing to config.log, and then calls config.status.
12130 # config.status does its own redirection, appending to config.log.
12131 # Unfortunately, on DOS this fails, as config.log is still kept open
12132 # by configure, so config.status won't be able to write to it; its
12133 # output is simply discarded. So we exec the FD to /dev/null,
12134 # effectively closing config.log, so it can be properly (re)opened and
12135 # appended to by config.status. When coming back to configure, we
12136 # need to make the FD available again.
12137 if test "$no_create" != yes; then
12138 ac_cs_success=:
12139 ac_config_status_args=
12140 test "$silent" = yes &&
12141 ac_config_status_args="$ac_config_status_args --quiet"
12142 exec 5>/dev/null
12143 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12144 exec 5>>config.log
12145 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12146 # would make configure fail if this is the last instruction.
12147 $ac_cs_success || as_fn_exit 1
12148 fi
12149 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12151 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12152 fi
12153
12154 exit 0