]> The Tcpdump Group git mirrors - tcpdump/blob - configure
Fix the pointer tests in the non-ndoified TTEST2() macro as well.
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.204 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
161 if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163 emulate sh
164 NULLCMD=:
165 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166 # is contrary to our usage. Disable this feature.
167 alias -g '\${1+\"\$@\"}'='\"\$@\"'
168 setopt NO_GLOB_SUBST
169 else
170 case \`(set -o) 2>/dev/null\` in #(
171 *posix*) :
172 set -o posix ;; #(
173 *) :
174 ;;
175 esac
176 fi
177 "
178 as_required="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
183
184 exitcode=0
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
192 exitcode=1; echo positional parameters were not saved.
193 fi
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test \$(( 1 + 1 )) = 2 || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203 else
204 as_have_required=no
205 fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208 else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 as_found=false
211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 do
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi; }
236 IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
259 fi
260
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272 fi
273 exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291 { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
298 as_fn_set_status ()
299 {
300 return $1
301 } # as_fn_set_status
302
303 # as_fn_exit STATUS
304 # -----------------
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306 as_fn_exit ()
307 {
308 set +e
309 as_fn_set_status $1
310 exit $1
311 } # as_fn_exit
312
313 # as_fn_mkdir_p
314 # -------------
315 # Create "$as_dir" as a directory, including parents if necessary.
316 as_fn_mkdir_p ()
317 {
318
319 case $as_dir in #(
320 -*) as_dir=./$as_dir;;
321 esac
322 test -d "$as_dir" || eval $as_mkdir_p || {
323 as_dirs=
324 while :; do
325 case $as_dir in #(
326 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
327 *) as_qdir=$as_dir;;
328 esac
329 as_dirs="'$as_qdir' $as_dirs"
330 as_dir=`$as_dirname -- "$as_dir" ||
331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
332 X"$as_dir" : 'X\(//\)[^/]' \| \
333 X"$as_dir" : 'X\(//\)$' \| \
334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
335 $as_echo X"$as_dir" |
336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
337 s//\1/
338 q
339 }
340 /^X\(\/\/\)[^/].*/{
341 s//\1/
342 q
343 }
344 /^X\(\/\/\)$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\).*/{
349 s//\1/
350 q
351 }
352 s/.*/./; q'`
353 test -d "$as_dir" && break
354 done
355 test -z "$as_dirs" || eval "mkdir $as_dirs"
356 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
357
358
359 } # as_fn_mkdir_p
360
361 # as_fn_executable_p FILE
362 # -----------------------
363 # Test if FILE is an executable regular file.
364 as_fn_executable_p ()
365 {
366 test -f "$1" && test -x "$1"
367 } # as_fn_executable_p
368 # as_fn_append VAR VALUE
369 # ----------------------
370 # Append the text in VALUE to the end of the definition contained in VAR. Take
371 # advantage of any shell optimizations that allow amortized linear growth over
372 # repeated appends, instead of the typical quadratic growth present in naive
373 # implementations.
374 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
375 eval 'as_fn_append ()
376 {
377 eval $1+=\$2
378 }'
379 else
380 as_fn_append ()
381 {
382 eval $1=\$$1\$2
383 }
384 fi # as_fn_append
385
386 # as_fn_arith ARG...
387 # ------------------
388 # Perform arithmetic evaluation on the ARGs, and store the result in the
389 # global $as_val. Take advantage of shells that can avoid forks. The arguments
390 # must be portable across $(()) and expr.
391 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
392 eval 'as_fn_arith ()
393 {
394 as_val=$(( $* ))
395 }'
396 else
397 as_fn_arith ()
398 {
399 as_val=`expr "$@" || test $? -eq 1`
400 }
401 fi # as_fn_arith
402
403
404 # as_fn_error STATUS ERROR [LINENO LOG_FD]
405 # ----------------------------------------
406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
408 # script with STATUS, using 1 if that was 0.
409 as_fn_error ()
410 {
411 as_status=$1; test $as_status -eq 0 && as_status=1
412 if test "$4"; then
413 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 fi
416 $as_echo "$as_me: error: $2" >&2
417 as_fn_exit $as_status
418 } # as_fn_error
419
420 if expr a : '\(a\)' >/dev/null 2>&1 &&
421 test "X`expr 00001 : '.*\(...\)'`" = X001; then
422 as_expr=expr
423 else
424 as_expr=false
425 fi
426
427 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
428 as_basename=basename
429 else
430 as_basename=false
431 fi
432
433 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
434 as_dirname=dirname
435 else
436 as_dirname=false
437 fi
438
439 as_me=`$as_basename -- "$0" ||
440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
441 X"$0" : 'X\(//\)$' \| \
442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 $as_echo X/"$0" |
444 sed '/^.*\/\([^/][^/]*\)\/*$/{
445 s//\1/
446 q
447 }
448 /^X\/\(\/\/\)$/{
449 s//\1/
450 q
451 }
452 /^X\/\(\/\).*/{
453 s//\1/
454 q
455 }
456 s/.*/./; q'`
457
458 # Avoid depending upon Character Ranges.
459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
462 as_cr_digits='0123456789'
463 as_cr_alnum=$as_cr_Letters$as_cr_digits
464
465
466 as_lineno_1=$LINENO as_lineno_1a=$LINENO
467 as_lineno_2=$LINENO as_lineno_2a=$LINENO
468 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
469 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
470 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
471 sed -n '
472 p
473 /[$]LINENO/=
474 ' <$as_myself |
475 sed '
476 s/[$]LINENO.*/&-/
477 t lineno
478 b
479 :lineno
480 N
481 :loop
482 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
483 t loop
484 s/-\n.*//
485 ' >$as_me.lineno &&
486 chmod +x "$as_me.lineno" ||
487 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488
489 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
490 # already done that, so ensure we don't try to do so again and fall
491 # in an infinite loop. This has already happened in practice.
492 _as_can_reexec=no; export _as_can_reexec
493 # Don't try to exec as it changes $[0], causing all sort of problems
494 # (the dirname of $[0] is not the place where we might find the
495 # original and so on. Autoconf is especially sensitive to this).
496 . "./$as_me.lineno"
497 # Exit status is that of the last command.
498 exit
499 }
500
501 ECHO_C= ECHO_N= ECHO_T=
502 case `echo -n x` in #(((((
503 -n*)
504 case `echo 'xy\c'` in
505 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 xy) ECHO_C='\c';;
507 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
508 ECHO_T=' ';;
509 esac;;
510 *)
511 ECHO_N='-n';;
512 esac
513
514 rm -f conf$$ conf$$.exe conf$$.file
515 if test -d conf$$.dir; then
516 rm -f conf$$.dir/conf$$.file
517 else
518 rm -f conf$$.dir
519 mkdir conf$$.dir 2>/dev/null
520 fi
521 if (echo >conf$$.file) 2>/dev/null; then
522 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 as_ln_s='ln -s'
524 # ... but there are two gotchas:
525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527 # In both cases, we have to default to `cp -pR'.
528 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 as_ln_s='cp -pR'
530 elif ln conf$$.file conf$$ 2>/dev/null; then
531 as_ln_s=ln
532 else
533 as_ln_s='cp -pR'
534 fi
535 else
536 as_ln_s='cp -pR'
537 fi
538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
539 rmdir conf$$.dir 2>/dev/null
540
541 if mkdir -p . 2>/dev/null; then
542 as_mkdir_p='mkdir -p "$as_dir"'
543 else
544 test -d ./-p && rmdir ./-p
545 as_mkdir_p=false
546 fi
547
548 as_test_x='test -x'
549 as_executable_p=as_fn_executable_p
550
551 # Sed expression to map a string onto a valid CPP name.
552 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553
554 # Sed expression to map a string onto a valid variable name.
555 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556
557
558 test -n "$DJDIR" || exec 7<&0 </dev/null
559 exec 6>&1
560
561 # Name of the host.
562 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
563 # so uname gets run too.
564 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565
566 #
567 # Initializations.
568 #
569 ac_default_prefix=/usr/local
570 ac_clean_files=
571 ac_config_libobj_dir=.
572 LIBOBJS=
573 cross_compiling=no
574 subdirs=
575 MFLAGS=
576 MAKEFLAGS=
577
578 # Identity of this package.
579 PACKAGE_NAME=
580 PACKAGE_TARNAME=
581 PACKAGE_VERSION=
582 PACKAGE_STRING=
583 PACKAGE_BUGREPORT=
584 PACKAGE_URL=
585
586 ac_unique_file="tcpdump.c"
587 # Factoring default headers for most tests.
588 ac_includes_default="\
589 #include <stdio.h>
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
592 #endif
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
595 #endif
596 #ifdef STDC_HEADERS
597 # include <stdlib.h>
598 # include <stddef.h>
599 #else
600 # ifdef HAVE_STDLIB_H
601 # include <stdlib.h>
602 # endif
603 #endif
604 #ifdef HAVE_STRING_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 # include <memory.h>
607 # endif
608 # include <string.h>
609 #endif
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
612 #endif
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
615 #endif
616 #ifdef HAVE_STDINT_H
617 # include <stdint.h>
618 #endif
619 #ifdef HAVE_UNISTD_H
620 # include <unistd.h>
621 #endif"
622
623 ac_subst_vars='LTLIBOBJS
624 INSTALL_DATA
625 INSTALL_SCRIPT
626 INSTALL_PROGRAM
627 MAN_MISC_INFO
628 MAN_FILE_FORMATS
629 LOCALSRC
630 V_PCAPDEP
631 V_INCLS
632 V_GROUP
633 V_DEFS
634 V_CCOPT
635 RANLIB
636 PCAP_CONFIG
637 LIBOBJS
638 EGREP
639 GREP
640 CPP
641 OBJEXT
642 EXEEXT
643 ac_ct_CC
644 CPPFLAGS
645 LDFLAGS
646 CFLAGS
647 CC
648 SHLICC2
649 host_os
650 host_vendor
651 host_cpu
652 host
653 build_os
654 build_vendor
655 build_cpu
656 build
657 target_alias
658 host_alias
659 build_alias
660 LIBS
661 ECHO_T
662 ECHO_N
663 ECHO_C
664 DEFS
665 mandir
666 localedir
667 libdir
668 psdir
669 pdfdir
670 dvidir
671 htmldir
672 infodir
673 docdir
674 oldincludedir
675 includedir
676 localstatedir
677 sharedstatedir
678 sysconfdir
679 datadir
680 datarootdir
681 libexecdir
682 sbindir
683 bindir
684 program_transform_name
685 prefix
686 exec_prefix
687 PACKAGE_URL
688 PACKAGE_BUGREPORT
689 PACKAGE_STRING
690 PACKAGE_VERSION
691 PACKAGE_TARNAME
692 PACKAGE_NAME
693 PATH_SEPARATOR
694 SHELL'
695 ac_subst_files=''
696 ac_user_opts='
697 enable_option_checking
698 with_gcc
699 with_smi
700 enable_smb
701 with_user
702 with_chroot
703 enable_ipv6
704 with_crypto
705 '
706 ac_precious_vars='build_alias
707 host_alias
708 target_alias
709 CC
710 CFLAGS
711 LDFLAGS
712 LIBS
713 CPPFLAGS
714 CPP'
715
716
717 # Initialize some variables set by options.
718 ac_init_help=
719 ac_init_version=false
720 ac_unrecognized_opts=
721 ac_unrecognized_sep=
722 # The variables have the same names as the options, with
723 # dashes changed to underlines.
724 cache_file=/dev/null
725 exec_prefix=NONE
726 no_create=
727 no_recursion=
728 prefix=NONE
729 program_prefix=NONE
730 program_suffix=NONE
731 program_transform_name=s,x,x,
732 silent=
733 site=
734 srcdir=
735 verbose=
736 x_includes=NONE
737 x_libraries=NONE
738
739 # Installation directory options.
740 # These are left unexpanded so users can "make install exec_prefix=/foo"
741 # and all the variables that are supposed to be based on exec_prefix
742 # by default will actually change.
743 # Use braces instead of parens because sh, perl, etc. also accept them.
744 # (The list follows the same order as the GNU Coding Standards.)
745 bindir='${exec_prefix}/bin'
746 sbindir='${exec_prefix}/sbin'
747 libexecdir='${exec_prefix}/libexec'
748 datarootdir='${prefix}/share'
749 datadir='${datarootdir}'
750 sysconfdir='${prefix}/etc'
751 sharedstatedir='${prefix}/com'
752 localstatedir='${prefix}/var'
753 includedir='${prefix}/include'
754 oldincludedir='/usr/include'
755 docdir='${datarootdir}/doc/${PACKAGE}'
756 infodir='${datarootdir}/info'
757 htmldir='${docdir}'
758 dvidir='${docdir}'
759 pdfdir='${docdir}'
760 psdir='${docdir}'
761 libdir='${exec_prefix}/lib'
762 localedir='${datarootdir}/locale'
763 mandir='${datarootdir}/man'
764
765 ac_prev=
766 ac_dashdash=
767 for ac_option
768 do
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
771 eval $ac_prev=\$ac_option
772 ac_prev=
773 continue
774 fi
775
776 case $ac_option in
777 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778 *=) ac_optarg= ;;
779 *) ac_optarg=yes ;;
780 esac
781
782 # Accept the important Cygnus configure options, so we can diagnose typos.
783
784 case $ac_dashdash$ac_option in
785 --)
786 ac_dashdash=yes ;;
787
788 -bindir | --bindir | --bindi | --bind | --bin | --bi)
789 ac_prev=bindir ;;
790 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
791 bindir=$ac_optarg ;;
792
793 -build | --build | --buil | --bui | --bu)
794 ac_prev=build_alias ;;
795 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
796 build_alias=$ac_optarg ;;
797
798 -cache-file | --cache-file | --cache-fil | --cache-fi \
799 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
800 ac_prev=cache_file ;;
801 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
802 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
803 cache_file=$ac_optarg ;;
804
805 --config-cache | -C)
806 cache_file=config.cache ;;
807
808 -datadir | --datadir | --datadi | --datad)
809 ac_prev=datadir ;;
810 -datadir=* | --datadir=* | --datadi=* | --datad=*)
811 datadir=$ac_optarg ;;
812
813 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
814 | --dataroo | --dataro | --datar)
815 ac_prev=datarootdir ;;
816 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
817 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
818 datarootdir=$ac_optarg ;;
819
820 -disable-* | --disable-*)
821 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
824 as_fn_error $? "invalid feature name: $ac_useropt"
825 ac_useropt_orig=$ac_useropt
826 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
827 case $ac_user_opts in
828 *"
829 "enable_$ac_useropt"
830 "*) ;;
831 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
832 ac_unrecognized_sep=', ';;
833 esac
834 eval enable_$ac_useropt=no ;;
835
836 -docdir | --docdir | --docdi | --doc | --do)
837 ac_prev=docdir ;;
838 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
839 docdir=$ac_optarg ;;
840
841 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
842 ac_prev=dvidir ;;
843 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
844 dvidir=$ac_optarg ;;
845
846 -enable-* | --enable-*)
847 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
848 # Reject names that are not valid shell variable names.
849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
850 as_fn_error $? "invalid feature name: $ac_useropt"
851 ac_useropt_orig=$ac_useropt
852 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
853 case $ac_user_opts in
854 *"
855 "enable_$ac_useropt"
856 "*) ;;
857 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
858 ac_unrecognized_sep=', ';;
859 esac
860 eval enable_$ac_useropt=\$ac_optarg ;;
861
862 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
863 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
864 | --exec | --exe | --ex)
865 ac_prev=exec_prefix ;;
866 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
867 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
868 | --exec=* | --exe=* | --ex=*)
869 exec_prefix=$ac_optarg ;;
870
871 -gas | --gas | --ga | --g)
872 # Obsolete; use --with-gas.
873 with_gas=yes ;;
874
875 -help | --help | --hel | --he | -h)
876 ac_init_help=long ;;
877 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
878 ac_init_help=recursive ;;
879 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
880 ac_init_help=short ;;
881
882 -host | --host | --hos | --ho)
883 ac_prev=host_alias ;;
884 -host=* | --host=* | --hos=* | --ho=*)
885 host_alias=$ac_optarg ;;
886
887 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
888 ac_prev=htmldir ;;
889 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
890 | --ht=*)
891 htmldir=$ac_optarg ;;
892
893 -includedir | --includedir | --includedi | --included | --include \
894 | --includ | --inclu | --incl | --inc)
895 ac_prev=includedir ;;
896 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
897 | --includ=* | --inclu=* | --incl=* | --inc=*)
898 includedir=$ac_optarg ;;
899
900 -infodir | --infodir | --infodi | --infod | --info | --inf)
901 ac_prev=infodir ;;
902 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
903 infodir=$ac_optarg ;;
904
905 -libdir | --libdir | --libdi | --libd)
906 ac_prev=libdir ;;
907 -libdir=* | --libdir=* | --libdi=* | --libd=*)
908 libdir=$ac_optarg ;;
909
910 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
911 | --libexe | --libex | --libe)
912 ac_prev=libexecdir ;;
913 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
914 | --libexe=* | --libex=* | --libe=*)
915 libexecdir=$ac_optarg ;;
916
917 -localedir | --localedir | --localedi | --localed | --locale)
918 ac_prev=localedir ;;
919 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
920 localedir=$ac_optarg ;;
921
922 -localstatedir | --localstatedir | --localstatedi | --localstated \
923 | --localstate | --localstat | --localsta | --localst | --locals)
924 ac_prev=localstatedir ;;
925 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
926 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
927 localstatedir=$ac_optarg ;;
928
929 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
930 ac_prev=mandir ;;
931 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
932 mandir=$ac_optarg ;;
933
934 -nfp | --nfp | --nf)
935 # Obsolete; use --without-fp.
936 with_fp=no ;;
937
938 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
939 | --no-cr | --no-c | -n)
940 no_create=yes ;;
941
942 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
943 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
944 no_recursion=yes ;;
945
946 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
947 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
948 | --oldin | --oldi | --old | --ol | --o)
949 ac_prev=oldincludedir ;;
950 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
951 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
952 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
953 oldincludedir=$ac_optarg ;;
954
955 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
956 ac_prev=prefix ;;
957 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
958 prefix=$ac_optarg ;;
959
960 -program-prefix | --program-prefix | --program-prefi | --program-pref \
961 | --program-pre | --program-pr | --program-p)
962 ac_prev=program_prefix ;;
963 -program-prefix=* | --program-prefix=* | --program-prefi=* \
964 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
965 program_prefix=$ac_optarg ;;
966
967 -program-suffix | --program-suffix | --program-suffi | --program-suff \
968 | --program-suf | --program-su | --program-s)
969 ac_prev=program_suffix ;;
970 -program-suffix=* | --program-suffix=* | --program-suffi=* \
971 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
972 program_suffix=$ac_optarg ;;
973
974 -program-transform-name | --program-transform-name \
975 | --program-transform-nam | --program-transform-na \
976 | --program-transform-n | --program-transform- \
977 | --program-transform | --program-transfor \
978 | --program-transfo | --program-transf \
979 | --program-trans | --program-tran \
980 | --progr-tra | --program-tr | --program-t)
981 ac_prev=program_transform_name ;;
982 -program-transform-name=* | --program-transform-name=* \
983 | --program-transform-nam=* | --program-transform-na=* \
984 | --program-transform-n=* | --program-transform-=* \
985 | --program-transform=* | --program-transfor=* \
986 | --program-transfo=* | --program-transf=* \
987 | --program-trans=* | --program-tran=* \
988 | --progr-tra=* | --program-tr=* | --program-t=*)
989 program_transform_name=$ac_optarg ;;
990
991 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
992 ac_prev=pdfdir ;;
993 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
994 pdfdir=$ac_optarg ;;
995
996 -psdir | --psdir | --psdi | --psd | --ps)
997 ac_prev=psdir ;;
998 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
999 psdir=$ac_optarg ;;
1000
1001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1002 | -silent | --silent | --silen | --sile | --sil)
1003 silent=yes ;;
1004
1005 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1006 ac_prev=sbindir ;;
1007 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1008 | --sbi=* | --sb=*)
1009 sbindir=$ac_optarg ;;
1010
1011 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1012 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1013 | --sharedst | --shareds | --shared | --share | --shar \
1014 | --sha | --sh)
1015 ac_prev=sharedstatedir ;;
1016 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1017 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1018 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1019 | --sha=* | --sh=*)
1020 sharedstatedir=$ac_optarg ;;
1021
1022 -site | --site | --sit)
1023 ac_prev=site ;;
1024 -site=* | --site=* | --sit=*)
1025 site=$ac_optarg ;;
1026
1027 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1028 ac_prev=srcdir ;;
1029 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1030 srcdir=$ac_optarg ;;
1031
1032 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1033 | --syscon | --sysco | --sysc | --sys | --sy)
1034 ac_prev=sysconfdir ;;
1035 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1036 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1037 sysconfdir=$ac_optarg ;;
1038
1039 -target | --target | --targe | --targ | --tar | --ta | --t)
1040 ac_prev=target_alias ;;
1041 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1042 target_alias=$ac_optarg ;;
1043
1044 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1045 verbose=yes ;;
1046
1047 -version | --version | --versio | --versi | --vers | -V)
1048 ac_init_version=: ;;
1049
1050 -with-* | --with-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid package name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1058 *"
1059 "with_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval with_$ac_useropt=\$ac_optarg ;;
1065
1066 -without-* | --without-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 as_fn_error $? "invalid package name: $ac_useropt"
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1074 *"
1075 "with_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval with_$ac_useropt=no ;;
1081
1082 --x)
1083 # Obsolete; use --with-x.
1084 with_x=yes ;;
1085
1086 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1087 | --x-incl | --x-inc | --x-in | --x-i)
1088 ac_prev=x_includes ;;
1089 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1090 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1091 x_includes=$ac_optarg ;;
1092
1093 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1094 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1095 ac_prev=x_libraries ;;
1096 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1097 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1098 x_libraries=$ac_optarg ;;
1099
1100 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1101 Try \`$0 --help' for more information"
1102 ;;
1103
1104 *=*)
1105 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 case $ac_envvar in #(
1108 '' | [0-9]* | *[!_$as_cr_alnum]* )
1109 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1110 esac
1111 eval $ac_envvar=\$ac_optarg
1112 export $ac_envvar ;;
1113
1114 *)
1115 # FIXME: should be removed in autoconf 3.0.
1116 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1118 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1119 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1120 ;;
1121
1122 esac
1123 done
1124
1125 if test -n "$ac_prev"; then
1126 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1127 as_fn_error $? "missing argument to $ac_option"
1128 fi
1129
1130 if test -n "$ac_unrecognized_opts"; then
1131 case $enable_option_checking in
1132 no) ;;
1133 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1134 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1135 esac
1136 fi
1137
1138 # Check all directory arguments for consistency.
1139 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
1143 do
1144 eval ac_val=\$$ac_var
1145 # Remove trailing slashes.
1146 case $ac_val in
1147 */ )
1148 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1149 eval $ac_var=\$ac_val;;
1150 esac
1151 # Be sure to have absolute directory names.
1152 case $ac_val in
1153 [\\/$]* | ?:[\\/]* ) continue;;
1154 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1155 esac
1156 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1157 done
1158
1159 # There might be people who depend on the old broken behavior: `$host'
1160 # used to hold the argument of --host etc.
1161 # FIXME: To remove some day.
1162 build=$build_alias
1163 host=$host_alias
1164 target=$target_alias
1165
1166 # FIXME: To remove some day.
1167 if test "x$host_alias" != x; then
1168 if test "x$build_alias" = x; then
1169 cross_compiling=maybe
1170 elif test "x$build_alias" != "x$host_alias"; then
1171 cross_compiling=yes
1172 fi
1173 fi
1174
1175 ac_tool_prefix=
1176 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1177
1178 test "$silent" = yes && exec 6>/dev/null
1179
1180
1181 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di=`ls -di .` &&
1183 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1184 as_fn_error $? "working directory cannot be determined"
1185 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1186 as_fn_error $? "pwd does not report name of working directory"
1187
1188
1189 # Find the source files, if location was not specified.
1190 if test -z "$srcdir"; then
1191 ac_srcdir_defaulted=yes
1192 # Try the directory containing this script, then the parent directory.
1193 ac_confdir=`$as_dirname -- "$as_myself" ||
1194 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1195 X"$as_myself" : 'X\(//\)[^/]' \| \
1196 X"$as_myself" : 'X\(//\)$' \| \
1197 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1198 $as_echo X"$as_myself" |
1199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1200 s//\1/
1201 q
1202 }
1203 /^X\(\/\/\)[^/].*/{
1204 s//\1/
1205 q
1206 }
1207 /^X\(\/\/\)$/{
1208 s//\1/
1209 q
1210 }
1211 /^X\(\/\).*/{
1212 s//\1/
1213 q
1214 }
1215 s/.*/./; q'`
1216 srcdir=$ac_confdir
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 srcdir=..
1219 fi
1220 else
1221 ac_srcdir_defaulted=no
1222 fi
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1224 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1225 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1226 fi
1227 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1228 ac_abs_confdir=`(
1229 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1230 pwd)`
1231 # When building in place, set srcdir=.
1232 if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 srcdir=.
1234 fi
1235 # Remove unnecessary trailing slashes from srcdir.
1236 # Double slashes in file names in object file debugging info
1237 # mess up M-x gdb in Emacs.
1238 case $srcdir in
1239 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1240 esac
1241 for ac_var in $ac_precious_vars; do
1242 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_${ac_var}_value=\$${ac_var}
1244 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1246 done
1247
1248 #
1249 # Report the --help message.
1250 #
1251 if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1254 cat <<_ACEOF
1255 \`configure' configures this package to adapt to many kinds of systems.
1256
1257 Usage: $0 [OPTION]... [VAR=VALUE]...
1258
1259 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260 VAR=VALUE. See below for descriptions of some of the useful variables.
1261
1262 Defaults for the options are specified in brackets.
1263
1264 Configuration:
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
1269 -q, --quiet, --silent do not print \`checking ...' messages
1270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1274
1275 Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
1277 [$ac_default_prefix]
1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1279 [PREFIX]
1280
1281 By default, \`make install' will install all the files in
1282 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284 for instance \`--prefix=\$HOME'.
1285
1286 For better control, use the options below.
1287
1288 Fine tuning of the installation directories:
1289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
1308 _ACEOF
1309
1310 cat <<\_ACEOF
1311
1312 System types:
1313 --build=BUILD configure for building on BUILD [guessed]
1314 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1315 _ACEOF
1316 fi
1317
1318 if test -n "$ac_init_help"; then
1319
1320 cat <<\_ACEOF
1321
1322 Optional Features:
1323 --disable-option-checking ignore unrecognized --enable/--with options
1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1326 --enable-smb enable possibly-buggy SMB printer default=yes
1327 --disable-smb disable possibly-buggy SMB printer
1328 --enable-ipv6 enable ipv6 (with ipv4) support
1329 --disable-ipv6 disable ipv6 support
1330
1331 Optional Packages:
1332 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1333 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1334 --without-gcc don't use gcc
1335 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1336 --without-smi don't link with libsmi
1337 --with-user=USERNAME drop privileges by default to USERNAME
1338 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1339 --with-crypto[=PATH] use SSLeay libcrypto (located in directory PATH, if
1340 supplied). [default=yes, if available]
1341
1342 Some influential environment variables:
1343 CC C compiler command
1344 CFLAGS C compiler flags
1345 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1346 nonstandard directory <lib dir>
1347 LIBS libraries to pass to the linker, e.g. -l<library>
1348 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1349 you have headers in a nonstandard directory <include dir>
1350 CPP C preprocessor
1351
1352 Use these variables to override the choices made by `configure' or to help
1353 it to find libraries and programs with nonstandard names/locations.
1354
1355 Report bugs to the package provider.
1356 _ACEOF
1357 ac_status=$?
1358 fi
1359
1360 if test "$ac_init_help" = "recursive"; then
1361 # If there are subdirs, report their specific --help.
1362 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1363 test -d "$ac_dir" ||
1364 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1365 continue
1366 ac_builddir=.
1367
1368 case "$ac_dir" in
1369 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1370 *)
1371 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1372 # A ".." for each directory in $ac_dir_suffix.
1373 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1374 case $ac_top_builddir_sub in
1375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1377 esac ;;
1378 esac
1379 ac_abs_top_builddir=$ac_pwd
1380 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1381 # for backward compatibility:
1382 ac_top_builddir=$ac_top_build_prefix
1383
1384 case $srcdir in
1385 .) # We are building in place.
1386 ac_srcdir=.
1387 ac_top_srcdir=$ac_top_builddir_sub
1388 ac_abs_top_srcdir=$ac_pwd ;;
1389 [\\/]* | ?:[\\/]* ) # Absolute name.
1390 ac_srcdir=$srcdir$ac_dir_suffix;
1391 ac_top_srcdir=$srcdir
1392 ac_abs_top_srcdir=$srcdir ;;
1393 *) # Relative name.
1394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1395 ac_top_srcdir=$ac_top_build_prefix$srcdir
1396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1397 esac
1398 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1399
1400 cd "$ac_dir" || { ac_status=$?; continue; }
1401 # Check for guested configure.
1402 if test -f "$ac_srcdir/configure.gnu"; then
1403 echo &&
1404 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1405 elif test -f "$ac_srcdir/configure"; then
1406 echo &&
1407 $SHELL "$ac_srcdir/configure" --help=recursive
1408 else
1409 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1410 fi || ac_status=$?
1411 cd "$ac_pwd" || { ac_status=$?; break; }
1412 done
1413 fi
1414
1415 test -n "$ac_init_help" && exit $ac_status
1416 if $ac_init_version; then
1417 cat <<\_ACEOF
1418 configure
1419 generated by GNU Autoconf 2.69
1420
1421 Copyright (C) 2012 Free Software Foundation, Inc.
1422 This configure script is free software; the Free Software Foundation
1423 gives unlimited permission to copy, distribute and modify it.
1424 _ACEOF
1425 exit
1426 fi
1427
1428 ## ------------------------ ##
1429 ## Autoconf initialization. ##
1430 ## ------------------------ ##
1431
1432 # ac_fn_c_try_compile LINENO
1433 # --------------------------
1434 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1435 ac_fn_c_try_compile ()
1436 {
1437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1438 rm -f conftest.$ac_objext
1439 if { { ac_try="$ac_compile"
1440 case "(($ac_try" in
1441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1442 *) ac_try_echo=$ac_try;;
1443 esac
1444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1445 $as_echo "$ac_try_echo"; } >&5
1446 (eval "$ac_compile") 2>conftest.err
1447 ac_status=$?
1448 if test -s conftest.err; then
1449 grep -v '^ *+' conftest.err >conftest.er1
1450 cat conftest.er1 >&5
1451 mv -f conftest.er1 conftest.err
1452 fi
1453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1454 test $ac_status = 0; } && {
1455 test -z "$ac_c_werror_flag" ||
1456 test ! -s conftest.err
1457 } && test -s conftest.$ac_objext; then :
1458 ac_retval=0
1459 else
1460 $as_echo "$as_me: failed program was:" >&5
1461 sed 's/^/| /' conftest.$ac_ext >&5
1462
1463 ac_retval=1
1464 fi
1465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1466 as_fn_set_status $ac_retval
1467
1468 } # ac_fn_c_try_compile
1469
1470 # ac_fn_c_try_cpp LINENO
1471 # ----------------------
1472 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1473 ac_fn_c_try_cpp ()
1474 {
1475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1476 if { { ac_try="$ac_cpp conftest.$ac_ext"
1477 case "(($ac_try" in
1478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1479 *) ac_try_echo=$ac_try;;
1480 esac
1481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1482 $as_echo "$ac_try_echo"; } >&5
1483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1484 ac_status=$?
1485 if test -s conftest.err; then
1486 grep -v '^ *+' conftest.err >conftest.er1
1487 cat conftest.er1 >&5
1488 mv -f conftest.er1 conftest.err
1489 fi
1490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1491 test $ac_status = 0; } > conftest.i && {
1492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1493 test ! -s conftest.err
1494 }; then :
1495 ac_retval=0
1496 else
1497 $as_echo "$as_me: failed program was:" >&5
1498 sed 's/^/| /' conftest.$ac_ext >&5
1499
1500 ac_retval=1
1501 fi
1502 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1503 as_fn_set_status $ac_retval
1504
1505 } # ac_fn_c_try_cpp
1506
1507 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1508 # -------------------------------------------------------
1509 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1510 # the include files in INCLUDES and setting the cache variable VAR
1511 # accordingly.
1512 ac_fn_c_check_header_mongrel ()
1513 {
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 if eval \${$3+:} false; then :
1516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1517 $as_echo_n "checking for $2... " >&6; }
1518 if eval \${$3+:} false; then :
1519 $as_echo_n "(cached) " >&6
1520 fi
1521 eval ac_res=\$$3
1522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1523 $as_echo "$ac_res" >&6; }
1524 else
1525 # Is the header compilable?
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1527 $as_echo_n "checking $2 usability... " >&6; }
1528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1529 /* end confdefs.h. */
1530 $4
1531 #include <$2>
1532 _ACEOF
1533 if ac_fn_c_try_compile "$LINENO"; then :
1534 ac_header_compiler=yes
1535 else
1536 ac_header_compiler=no
1537 fi
1538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1540 $as_echo "$ac_header_compiler" >&6; }
1541
1542 # Is the header present?
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1544 $as_echo_n "checking $2 presence... " >&6; }
1545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1546 /* end confdefs.h. */
1547 #include <$2>
1548 _ACEOF
1549 if ac_fn_c_try_cpp "$LINENO"; then :
1550 ac_header_preproc=yes
1551 else
1552 ac_header_preproc=no
1553 fi
1554 rm -f conftest.err conftest.i conftest.$ac_ext
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1556 $as_echo "$ac_header_preproc" >&6; }
1557
1558 # So? What about this header?
1559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1560 yes:no: )
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1562 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1564 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1565 ;;
1566 no:yes:* )
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1568 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1570 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1572 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1574 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1576 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1577 ;;
1578 esac
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1580 $as_echo_n "checking for $2... " >&6; }
1581 if eval \${$3+:} false; then :
1582 $as_echo_n "(cached) " >&6
1583 else
1584 eval "$3=\$ac_header_compiler"
1585 fi
1586 eval ac_res=\$$3
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588 $as_echo "$ac_res" >&6; }
1589 fi
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591
1592 } # ac_fn_c_check_header_mongrel
1593
1594 # ac_fn_c_try_run LINENO
1595 # ----------------------
1596 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1597 # that executables *can* be run.
1598 ac_fn_c_try_run ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_link"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_link") 2>&5
1609 ac_status=$?
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1612 { { case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_try") 2>&5
1619 ac_status=$?
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; }; }; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: program exited with status $ac_status" >&5
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=$ac_status
1629 fi
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_run
1635
1636 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists and can be compiled using the include files in
1639 # INCLUDES, setting the cache variable VAR accordingly.
1640 ac_fn_c_check_header_compile ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1647 else
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1650 $4
1651 #include <$2>
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"; then :
1654 eval "$3=yes"
1655 else
1656 eval "$3=no"
1657 fi
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 fi
1660 eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
1665 } # ac_fn_c_check_header_compile
1666
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_link ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext conftest$ac_exeext
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 test -x conftest$ac_exeext
1695 }; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=1
1702 fi
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_link
1712
1713 # ac_fn_c_check_func LINENO FUNC VAR
1714 # ----------------------------------
1715 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1716 ac_fn_c_check_func ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if eval \${$3+:} false; then :
1722 $as_echo_n "(cached) " >&6
1723 else
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1726 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1728 #define $2 innocuous_$2
1729
1730 /* System header to define __stub macros and hopefully few prototypes,
1731 which can conflict with char $2 (); below.
1732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1733 <limits.h> exists even on freestanding compilers. */
1734
1735 #ifdef __STDC__
1736 # include <limits.h>
1737 #else
1738 # include <assert.h>
1739 #endif
1740
1741 #undef $2
1742
1743 /* Override any GCC internal prototype to avoid an error.
1744 Use char because int might match the return type of a GCC
1745 builtin and then its argument prototype would still apply. */
1746 #ifdef __cplusplus
1747 extern "C"
1748 #endif
1749 char $2 ();
1750 /* The GNU C library defines this for functions which it implements
1751 to always fail with ENOSYS. Some functions are actually named
1752 something starting with __ and the normal name is an alias. */
1753 #if defined __stub_$2 || defined __stub___$2
1754 choke me
1755 #endif
1756
1757 int
1758 main ()
1759 {
1760 return $2 ();
1761 ;
1762 return 0;
1763 }
1764 _ACEOF
1765 if ac_fn_c_try_link "$LINENO"; then :
1766 eval "$3=yes"
1767 else
1768 eval "$3=no"
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext \
1771 conftest$ac_exeext conftest.$ac_ext
1772 fi
1773 eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_func
1779
1780 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1781 # --------------------------------------------
1782 # Tries to find the compile-time value of EXPR in a program that includes
1783 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1784 # computed
1785 ac_fn_c_compute_int ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if test "$cross_compiling" = yes; then
1789 # Depending upon the size, compute the lo and hi bounds.
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 int
1794 main ()
1795 {
1796 static int test_array [1 - 2 * !(($2) >= 0)];
1797 test_array [0] = 0;
1798 return test_array [0];
1799
1800 ;
1801 return 0;
1802 }
1803 _ACEOF
1804 if ac_fn_c_try_compile "$LINENO"; then :
1805 ac_lo=0 ac_mid=0
1806 while :; do
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1809 $4
1810 int
1811 main ()
1812 {
1813 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1814 test_array [0] = 0;
1815 return test_array [0];
1816
1817 ;
1818 return 0;
1819 }
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822 ac_hi=$ac_mid; break
1823 else
1824 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1825 if test $ac_lo -le $ac_mid; then
1826 ac_lo= ac_hi=
1827 break
1828 fi
1829 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 done
1833 else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 $4
1837 int
1838 main ()
1839 {
1840 static int test_array [1 - 2 * !(($2) < 0)];
1841 test_array [0] = 0;
1842 return test_array [0];
1843
1844 ;
1845 return 0;
1846 }
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 ac_hi=-1 ac_mid=-1
1850 while :; do
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 $4
1854 int
1855 main ()
1856 {
1857 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1858 test_array [0] = 0;
1859 return test_array [0];
1860
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"; then :
1866 ac_lo=$ac_mid; break
1867 else
1868 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1869 if test $ac_mid -le $ac_hi; then
1870 ac_lo= ac_hi=
1871 break
1872 fi
1873 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1874 fi
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 done
1877 else
1878 ac_lo= ac_hi=
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 # Binary search between lo and hi bounds.
1884 while test "x$ac_lo" != "x$ac_hi"; do
1885 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 $4
1889 int
1890 main ()
1891 {
1892 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1893 test_array [0] = 0;
1894 return test_array [0];
1895
1896 ;
1897 return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901 ac_hi=$ac_mid
1902 else
1903 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 done
1907 case $ac_lo in #((
1908 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1909 '') ac_retval=1 ;;
1910 esac
1911 else
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 $4
1915 static long int longval () { return $2; }
1916 static unsigned long int ulongval () { return $2; }
1917 #include <stdio.h>
1918 #include <stdlib.h>
1919 int
1920 main ()
1921 {
1922
1923 FILE *f = fopen ("conftest.val", "w");
1924 if (! f)
1925 return 1;
1926 if (($2) < 0)
1927 {
1928 long int i = longval ();
1929 if (i != ($2))
1930 return 1;
1931 fprintf (f, "%ld", i);
1932 }
1933 else
1934 {
1935 unsigned long int i = ulongval ();
1936 if (i != ($2))
1937 return 1;
1938 fprintf (f, "%lu", i);
1939 }
1940 /* Do not output a trailing newline, as this causes \r\n confusion
1941 on some platforms. */
1942 return ferror (f) || fclose (f) != 0;
1943
1944 ;
1945 return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_run "$LINENO"; then :
1949 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1950 else
1951 ac_retval=1
1952 fi
1953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1954 conftest.$ac_objext conftest.beam conftest.$ac_ext
1955 rm -f conftest.val
1956
1957 fi
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1960
1961 } # ac_fn_c_compute_int
1962
1963 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1964 # ---------------------------------------------
1965 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1966 # accordingly.
1967 ac_fn_c_check_decl ()
1968 {
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 as_decl_name=`echo $2|sed 's/ *(.*//'`
1971 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1973 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1974 if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1976 else
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1979 $4
1980 int
1981 main ()
1982 {
1983 #ifndef $as_decl_name
1984 #ifdef __cplusplus
1985 (void) $as_decl_use;
1986 #else
1987 (void) $as_decl_name;
1988 #endif
1989 #endif
1990
1991 ;
1992 return 0;
1993 }
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"; then :
1996 eval "$3=yes"
1997 else
1998 eval "$3=no"
1999 fi
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 fi
2002 eval ac_res=\$$3
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006
2007 } # ac_fn_c_check_decl
2008
2009 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2010 # -------------------------------------------
2011 # Tests whether TYPE exists after having included INCLUDES, setting cache
2012 # variable VAR accordingly.
2013 ac_fn_c_check_type ()
2014 {
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2020 else
2021 eval "$3=no"
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $4
2025 int
2026 main ()
2027 {
2028 if (sizeof ($2))
2029 return 0;
2030 ;
2031 return 0;
2032 }
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2037 $4
2038 int
2039 main ()
2040 {
2041 if (sizeof (($2)))
2042 return 0;
2043 ;
2044 return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048
2049 else
2050 eval "$3=yes"
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060
2061 } # ac_fn_c_check_type
2062 cat >config.log <<_ACEOF
2063 This file contains any messages produced by compilers while
2064 running configure, to aid debugging if configure makes a mistake.
2065
2066 It was created by $as_me, which was
2067 generated by GNU Autoconf 2.69. Invocation command line was
2068
2069 $ $0 $@
2070
2071 _ACEOF
2072 exec 5>>config.log
2073 {
2074 cat <<_ASUNAME
2075 ## --------- ##
2076 ## Platform. ##
2077 ## --------- ##
2078
2079 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2080 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2081 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2082 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2083 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2084
2085 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2086 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2087
2088 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2089 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2090 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2091 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2092 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2093 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2094 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2095
2096 _ASUNAME
2097
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 $as_echo "PATH: $as_dir"
2104 done
2105 IFS=$as_save_IFS
2106
2107 } >&5
2108
2109 cat >&5 <<_ACEOF
2110
2111
2112 ## ----------- ##
2113 ## Core tests. ##
2114 ## ----------- ##
2115
2116 _ACEOF
2117
2118
2119 # Keep a trace of the command line.
2120 # Strip out --no-create and --no-recursion so they do not pile up.
2121 # Strip out --silent because we don't want to record it for future runs.
2122 # Also quote any args containing shell meta-characters.
2123 # Make two passes to allow for proper duplicate-argument suppression.
2124 ac_configure_args=
2125 ac_configure_args0=
2126 ac_configure_args1=
2127 ac_must_keep_next=false
2128 for ac_pass in 1 2
2129 do
2130 for ac_arg
2131 do
2132 case $ac_arg in
2133 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2135 | -silent | --silent | --silen | --sile | --sil)
2136 continue ;;
2137 *\'*)
2138 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2139 esac
2140 case $ac_pass in
2141 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2142 2)
2143 as_fn_append ac_configure_args1 " '$ac_arg'"
2144 if test $ac_must_keep_next = true; then
2145 ac_must_keep_next=false # Got value, back to normal.
2146 else
2147 case $ac_arg in
2148 *=* | --config-cache | -C | -disable-* | --disable-* \
2149 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2150 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2151 | -with-* | --with-* | -without-* | --without-* | --x)
2152 case "$ac_configure_args0 " in
2153 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2154 esac
2155 ;;
2156 -* ) ac_must_keep_next=true ;;
2157 esac
2158 fi
2159 as_fn_append ac_configure_args " '$ac_arg'"
2160 ;;
2161 esac
2162 done
2163 done
2164 { ac_configure_args0=; unset ac_configure_args0;}
2165 { ac_configure_args1=; unset ac_configure_args1;}
2166
2167 # When interrupted or exit'd, cleanup temporary files, and complete
2168 # config.log. We remove comments because anyway the quotes in there
2169 # would cause problems or look ugly.
2170 # WARNING: Use '\'' to represent an apostrophe within the trap.
2171 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2172 trap 'exit_status=$?
2173 # Save into config.log some information that might help in debugging.
2174 {
2175 echo
2176
2177 $as_echo "## ---------------- ##
2178 ## Cache variables. ##
2179 ## ---------------- ##"
2180 echo
2181 # The following way of writing the cache mishandles newlines in values,
2182 (
2183 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2184 eval ac_val=\$$ac_var
2185 case $ac_val in #(
2186 *${as_nl}*)
2187 case $ac_var in #(
2188 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2189 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2190 esac
2191 case $ac_var in #(
2192 _ | IFS | as_nl) ;; #(
2193 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2194 *) { eval $ac_var=; unset $ac_var;} ;;
2195 esac ;;
2196 esac
2197 done
2198 (set) 2>&1 |
2199 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2200 *${as_nl}ac_space=\ *)
2201 sed -n \
2202 "s/'\''/'\''\\\\'\'''\''/g;
2203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2204 ;; #(
2205 *)
2206 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2207 ;;
2208 esac |
2209 sort
2210 )
2211 echo
2212
2213 $as_echo "## ----------------- ##
2214 ## Output variables. ##
2215 ## ----------------- ##"
2216 echo
2217 for ac_var in $ac_subst_vars
2218 do
2219 eval ac_val=\$$ac_var
2220 case $ac_val in
2221 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2222 esac
2223 $as_echo "$ac_var='\''$ac_val'\''"
2224 done | sort
2225 echo
2226
2227 if test -n "$ac_subst_files"; then
2228 $as_echo "## ------------------- ##
2229 ## File substitutions. ##
2230 ## ------------------- ##"
2231 echo
2232 for ac_var in $ac_subst_files
2233 do
2234 eval ac_val=\$$ac_var
2235 case $ac_val in
2236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2237 esac
2238 $as_echo "$ac_var='\''$ac_val'\''"
2239 done | sort
2240 echo
2241 fi
2242
2243 if test -s confdefs.h; then
2244 $as_echo "## ----------- ##
2245 ## confdefs.h. ##
2246 ## ----------- ##"
2247 echo
2248 cat confdefs.h
2249 echo
2250 fi
2251 test "$ac_signal" != 0 &&
2252 $as_echo "$as_me: caught signal $ac_signal"
2253 $as_echo "$as_me: exit $exit_status"
2254 } >&5
2255 rm -f core *.core core.conftest.* &&
2256 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2257 exit $exit_status
2258 ' 0
2259 for ac_signal in 1 2 13 15; do
2260 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2261 done
2262 ac_signal=0
2263
2264 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2265 rm -f -r conftest* confdefs.h
2266
2267 $as_echo "/* confdefs.h */" > confdefs.h
2268
2269 # Predefined preprocessor variables.
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_NAME "$PACKAGE_NAME"
2273 _ACEOF
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2277 _ACEOF
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2281 _ACEOF
2282
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_STRING "$PACKAGE_STRING"
2285 _ACEOF
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2289 _ACEOF
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_URL "$PACKAGE_URL"
2293 _ACEOF
2294
2295
2296 # Let the site file select an alternate cache file if it wants to.
2297 # Prefer an explicitly selected file to automatically selected ones.
2298 ac_site_file1=NONE
2299 ac_site_file2=NONE
2300 if test -n "$CONFIG_SITE"; then
2301 # We do not want a PATH search for config.site.
2302 case $CONFIG_SITE in #((
2303 -*) ac_site_file1=./$CONFIG_SITE;;
2304 */*) ac_site_file1=$CONFIG_SITE;;
2305 *) ac_site_file1=./$CONFIG_SITE;;
2306 esac
2307 elif test "x$prefix" != xNONE; then
2308 ac_site_file1=$prefix/share/config.site
2309 ac_site_file2=$prefix/etc/config.site
2310 else
2311 ac_site_file1=$ac_default_prefix/share/config.site
2312 ac_site_file2=$ac_default_prefix/etc/config.site
2313 fi
2314 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2315 do
2316 test "x$ac_site_file" = xNONE && continue
2317 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2319 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2320 sed 's/^/| /' "$ac_site_file" >&5
2321 . "$ac_site_file" \
2322 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2324 as_fn_error $? "failed to load site script $ac_site_file
2325 See \`config.log' for more details" "$LINENO" 5; }
2326 fi
2327 done
2328
2329 if test -r "$cache_file"; then
2330 # Some versions of bash will fail to source /dev/null (special files
2331 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2332 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2334 $as_echo "$as_me: loading cache $cache_file" >&6;}
2335 case $cache_file in
2336 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2337 *) . "./$cache_file";;
2338 esac
2339 fi
2340 else
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2342 $as_echo "$as_me: creating cache $cache_file" >&6;}
2343 >$cache_file
2344 fi
2345
2346 # Check that the precious variables saved in the cache have kept the same
2347 # value.
2348 ac_cache_corrupted=false
2349 for ac_var in $ac_precious_vars; do
2350 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2351 eval ac_new_set=\$ac_env_${ac_var}_set
2352 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2353 eval ac_new_val=\$ac_env_${ac_var}_value
2354 case $ac_old_set,$ac_new_set in
2355 set,)
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2357 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2358 ac_cache_corrupted=: ;;
2359 ,set)
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2361 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2362 ac_cache_corrupted=: ;;
2363 ,);;
2364 *)
2365 if test "x$ac_old_val" != "x$ac_new_val"; then
2366 # differences in whitespace do not lead to failure.
2367 ac_old_val_w=`echo x $ac_old_val`
2368 ac_new_val_w=`echo x $ac_new_val`
2369 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2371 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2372 ac_cache_corrupted=:
2373 else
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2375 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2376 eval $ac_var=\$ac_old_val
2377 fi
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2379 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2381 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2382 fi;;
2383 esac
2384 # Pass precious variables to config.status.
2385 if test "$ac_new_set" = set; then
2386 case $ac_new_val in
2387 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 *) ac_arg=$ac_var=$ac_new_val ;;
2389 esac
2390 case " $ac_configure_args " in
2391 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2392 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2393 esac
2394 fi
2395 done
2396 if $ac_cache_corrupted; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2400 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2401 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2402 fi
2403 ## -------------------- ##
2404 ## Main body of script. ##
2405 ## -------------------- ##
2406
2407 ac_ext=c
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412
2413
2414
2415 ac_aux_dir=
2416 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2417 if test -f "$ac_dir/install-sh"; then
2418 ac_aux_dir=$ac_dir
2419 ac_install_sh="$ac_aux_dir/install-sh -c"
2420 break
2421 elif test -f "$ac_dir/install.sh"; then
2422 ac_aux_dir=$ac_dir
2423 ac_install_sh="$ac_aux_dir/install.sh -c"
2424 break
2425 elif test -f "$ac_dir/shtool"; then
2426 ac_aux_dir=$ac_dir
2427 ac_install_sh="$ac_aux_dir/shtool install -c"
2428 break
2429 fi
2430 done
2431 if test -z "$ac_aux_dir"; then
2432 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2433 fi
2434
2435 # These three variables are undocumented and unsupported,
2436 # and are intended to be withdrawn in a future Autoconf release.
2437 # They can cause serious problems if a builder's source tree is in a directory
2438 # whose full name contains unusual characters.
2439 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2440 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2441 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2442
2443
2444 # Make sure we can run config.sub.
2445 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2446 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2447
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2449 $as_echo_n "checking build system type... " >&6; }
2450 if ${ac_cv_build+:} false; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 ac_build_alias=$build_alias
2454 test "x$ac_build_alias" = x &&
2455 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2456 test "x$ac_build_alias" = x &&
2457 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2458 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2459 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2460
2461 fi
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2463 $as_echo "$ac_cv_build" >&6; }
2464 case $ac_cv_build in
2465 *-*-*) ;;
2466 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2467 esac
2468 build=$ac_cv_build
2469 ac_save_IFS=$IFS; IFS='-'
2470 set x $ac_cv_build
2471 shift
2472 build_cpu=$1
2473 build_vendor=$2
2474 shift; shift
2475 # Remember, the first character of IFS is used to create $*,
2476 # except with old shells:
2477 build_os=$*
2478 IFS=$ac_save_IFS
2479 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2480
2481
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2483 $as_echo_n "checking host system type... " >&6; }
2484 if ${ac_cv_host+:} false; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 if test "x$host_alias" = x; then
2488 ac_cv_host=$ac_cv_build
2489 else
2490 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2491 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2492 fi
2493
2494 fi
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2496 $as_echo "$ac_cv_host" >&6; }
2497 case $ac_cv_host in
2498 *-*-*) ;;
2499 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2500 esac
2501 host=$ac_cv_host
2502 ac_save_IFS=$IFS; IFS='-'
2503 set x $ac_cv_host
2504 shift
2505 host_cpu=$1
2506 host_vendor=$2
2507 shift; shift
2508 # Remember, the first character of IFS is used to create $*,
2509 # except with old shells:
2510 host_os=$*
2511 IFS=$ac_save_IFS
2512 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522 # Check whether --with-gcc was given.
2523 if test "${with_gcc+set}" = set; then :
2524 withval=$with_gcc;
2525 fi
2526
2527 V_CCOPT="-O"
2528 V_INCLS=""
2529 if test "${srcdir}" != "." ; then
2530 V_INCLS="-I\$(srcdir)"
2531 fi
2532 if test "${CFLAGS+set}" = set; then
2533 LBL_CFLAGS="$CFLAGS"
2534 fi
2535 if test -z "$CC" ; then
2536 case "$host_os" in
2537
2538 bsdi*)
2539 # Extract the first word of "shlicc2", so it can be a program name with args.
2540 set dummy shlicc2; ac_word=$2
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if ${ac_cv_prog_SHLICC2+:} false; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 if test -n "$SHLICC2"; then
2547 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2556 ac_cv_prog_SHLICC2="yes"
2557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2559 fi
2560 done
2561 done
2562 IFS=$as_save_IFS
2563
2564 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2565 fi
2566 fi
2567 SHLICC2=$ac_cv_prog_SHLICC2
2568 if test -n "$SHLICC2"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2570 $as_echo "$SHLICC2" >&6; }
2571 else
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2574 fi
2575
2576
2577 if test $SHLICC2 = yes ; then
2578 CC=shlicc2
2579 export CC
2580 fi
2581 ;;
2582 esac
2583 fi
2584 if test -z "$CC" -a "$with_gcc" = no ; then
2585 CC=cc
2586 export CC
2587 fi
2588
2589 ac_ext=c
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594 if test -n "$ac_tool_prefix"; then
2595 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2596 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2598 $as_echo_n "checking for $ac_word... " >&6; }
2599 if ${ac_cv_prog_CC+:} false; then :
2600 $as_echo_n "(cached) " >&6
2601 else
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC="$CC" # Let the user override the test.
2604 else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2607 do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2612 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 break 2
2615 fi
2616 done
2617 done
2618 IFS=$as_save_IFS
2619
2620 fi
2621 fi
2622 CC=$ac_cv_prog_CC
2623 if test -n "$CC"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2625 $as_echo "$CC" >&6; }
2626 else
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628 $as_echo "no" >&6; }
2629 fi
2630
2631
2632 fi
2633 if test -z "$ac_cv_prog_CC"; then
2634 ac_ct_CC=$CC
2635 # Extract the first word of "gcc", so it can be a program name with args.
2636 set dummy gcc; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2640 $as_echo_n "(cached) " >&6
2641 else
2642 if test -n "$ac_ct_CC"; then
2643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_ac_ct_CC="gcc"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2655 fi
2656 done
2657 done
2658 IFS=$as_save_IFS
2659
2660 fi
2661 fi
2662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663 if test -n "$ac_ct_CC"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2665 $as_echo "$ac_ct_CC" >&6; }
2666 else
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2669 fi
2670
2671 if test "x$ac_ct_CC" = x; then
2672 CC=""
2673 else
2674 case $cross_compiling:$ac_tool_warned in
2675 yes:)
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2678 ac_tool_warned=yes ;;
2679 esac
2680 CC=$ac_ct_CC
2681 fi
2682 else
2683 CC="$ac_cv_prog_CC"
2684 fi
2685
2686 if test -z "$CC"; then
2687 if test -n "$ac_tool_prefix"; then
2688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2689 set dummy ${ac_tool_prefix}cc; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if ${ac_cv_prog_CC+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 if test -n "$CC"; then
2696 ac_cv_prog_CC="$CC" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705 ac_cv_prog_CC="${ac_tool_prefix}cc"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2708 fi
2709 done
2710 done
2711 IFS=$as_save_IFS
2712
2713 fi
2714 fi
2715 CC=$ac_cv_prog_CC
2716 if test -n "$CC"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2722 fi
2723
2724
2725 fi
2726 fi
2727 if test -z "$CC"; then
2728 # Extract the first word of "cc", so it can be a program name with args.
2729 set dummy cc; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if ${ac_cv_prog_CC+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734 else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 ac_prog_rejected=no
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2747 ac_prog_rejected=yes
2748 continue
2749 fi
2750 ac_cv_prog_CC="cc"
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 if test $ac_prog_rejected = yes; then
2759 # We found a bogon in the path, so make sure we never use it.
2760 set dummy $ac_cv_prog_CC
2761 shift
2762 if test $# != 0; then
2763 # We chose a different compiler from the bogus one.
2764 # However, it has the same basename, so the bogon will be chosen
2765 # first if we set CC to just the basename; use the full file name.
2766 shift
2767 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2768 fi
2769 fi
2770 fi
2771 fi
2772 CC=$ac_cv_prog_CC
2773 if test -n "$CC"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2775 $as_echo "$CC" >&6; }
2776 else
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2779 fi
2780
2781
2782 fi
2783 if test -z "$CC"; then
2784 if test -n "$ac_tool_prefix"; then
2785 for ac_prog in cl.exe
2786 do
2787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_CC+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817 $as_echo "$CC" >&6; }
2818 else
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2821 fi
2822
2823
2824 test -n "$CC" && break
2825 done
2826 fi
2827 if test -z "$CC"; then
2828 ac_ct_CC=$CC
2829 for ac_prog in cl.exe
2830 do
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832 set dummy $ac_prog; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$ac_ct_CC"; then
2839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_ac_ct_CC="$ac_prog"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2859 if test -n "$ac_ct_CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2861 $as_echo "$ac_ct_CC" >&6; }
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2865 fi
2866
2867
2868 test -n "$ac_ct_CC" && break
2869 done
2870
2871 if test "x$ac_ct_CC" = x; then
2872 CC=""
2873 else
2874 case $cross_compiling:$ac_tool_warned in
2875 yes:)
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878 ac_tool_warned=yes ;;
2879 esac
2880 CC=$ac_ct_CC
2881 fi
2882 fi
2883
2884 fi
2885
2886
2887 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2889 as_fn_error $? "no acceptable C compiler found in \$PATH
2890 See \`config.log' for more details" "$LINENO" 5; }
2891
2892 # Provide some information about the compiler.
2893 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2894 set X $ac_compile
2895 ac_compiler=$2
2896 for ac_option in --version -v -V -qversion; do
2897 { { ac_try="$ac_compiler $ac_option >&5"
2898 case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901 esac
2902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903 $as_echo "$ac_try_echo"; } >&5
2904 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2905 ac_status=$?
2906 if test -s conftest.err; then
2907 sed '10a\
2908 ... rest of stderr output deleted ...
2909 10q' conftest.err >conftest.er1
2910 cat conftest.er1 >&5
2911 fi
2912 rm -f conftest.er1 conftest.err
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; }
2915 done
2916
2917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2918 /* end confdefs.h. */
2919
2920 int
2921 main ()
2922 {
2923
2924 ;
2925 return 0;
2926 }
2927 _ACEOF
2928 ac_clean_files_save=$ac_clean_files
2929 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2930 # Try to create an executable without -o first, disregard a.out.
2931 # It will help us diagnose broken compilers, and finding out an intuition
2932 # of exeext.
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2934 $as_echo_n "checking whether the C compiler works... " >&6; }
2935 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2936
2937 # The possible output files:
2938 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2939
2940 ac_rmfiles=
2941 for ac_file in $ac_files
2942 do
2943 case $ac_file in
2944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2945 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2946 esac
2947 done
2948 rm -f $ac_rmfiles
2949
2950 if { { ac_try="$ac_link_default"
2951 case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954 esac
2955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2956 $as_echo "$ac_try_echo"; } >&5
2957 (eval "$ac_link_default") 2>&5
2958 ac_status=$?
2959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2960 test $ac_status = 0; }; then :
2961 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2962 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2963 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2964 # so that the user can short-circuit this test for compilers unknown to
2965 # Autoconf.
2966 for ac_file in $ac_files ''
2967 do
2968 test -f "$ac_file" || continue
2969 case $ac_file in
2970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2971 ;;
2972 [ab].out )
2973 # We found the default executable, but exeext='' is most
2974 # certainly right.
2975 break;;
2976 *.* )
2977 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2978 then :; else
2979 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2980 fi
2981 # We set ac_cv_exeext here because the later test for it is not
2982 # safe: cross compilers may not add the suffix if given an `-o'
2983 # argument, so we may need to know it at that point already.
2984 # Even if this section looks crufty: it has the advantage of
2985 # actually working.
2986 break;;
2987 * )
2988 break;;
2989 esac
2990 done
2991 test "$ac_cv_exeext" = no && ac_cv_exeext=
2992
2993 else
2994 ac_file=''
2995 fi
2996 if test -z "$ac_file"; then :
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 $as_echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004 as_fn_error 77 "C compiler cannot create executables
3005 See \`config.log' for more details" "$LINENO" 5; }
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008 $as_echo "yes" >&6; }
3009 fi
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3011 $as_echo_n "checking for C compiler default output file name... " >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3013 $as_echo "$ac_file" >&6; }
3014 ac_exeext=$ac_cv_exeext
3015
3016 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3017 ac_clean_files=$ac_clean_files_save
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3019 $as_echo_n "checking for suffix of executables... " >&6; }
3020 if { { ac_try="$ac_link"
3021 case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024 esac
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_link") 2>&5
3028 ac_status=$?
3029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030 test $ac_status = 0; }; then :
3031 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3032 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3033 # work properly (i.e., refer to `conftest.exe'), while it won't with
3034 # `rm'.
3035 for ac_file in conftest.exe conftest conftest.*; do
3036 test -f "$ac_file" || continue
3037 case $ac_file in
3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3039 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3040 break;;
3041 * ) break;;
3042 esac
3043 done
3044 else
3045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3048 See \`config.log' for more details" "$LINENO" 5; }
3049 fi
3050 rm -f conftest conftest$ac_cv_exeext
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3052 $as_echo "$ac_cv_exeext" >&6; }
3053
3054 rm -f conftest.$ac_ext
3055 EXEEXT=$ac_cv_exeext
3056 ac_exeext=$EXEEXT
3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058 /* end confdefs.h. */
3059 #include <stdio.h>
3060 int
3061 main ()
3062 {
3063 FILE *f = fopen ("conftest.out", "w");
3064 return ferror (f) || fclose (f) != 0;
3065
3066 ;
3067 return 0;
3068 }
3069 _ACEOF
3070 ac_clean_files="$ac_clean_files conftest.out"
3071 # Check that the compiler produces executables we can run. If not, either
3072 # the compiler is broken, or we cross compile.
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3074 $as_echo_n "checking whether we are cross compiling... " >&6; }
3075 if test "$cross_compiling" != yes; then
3076 { { ac_try="$ac_link"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_link") 2>&5
3084 ac_status=$?
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }
3087 if { ac_try='./conftest$ac_cv_exeext'
3088 { { case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093 $as_echo "$ac_try_echo"; } >&5
3094 (eval "$ac_try") 2>&5
3095 ac_status=$?
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }; }; then
3098 cross_compiling=no
3099 else
3100 if test "$cross_compiling" = maybe; then
3101 cross_compiling=yes
3102 else
3103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105 as_fn_error $? "cannot run C compiled programs.
3106 If you meant to cross compile, use \`--host'.
3107 See \`config.log' for more details" "$LINENO" 5; }
3108 fi
3109 fi
3110 fi
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3112 $as_echo "$cross_compiling" >&6; }
3113
3114 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3115 ac_clean_files=$ac_clean_files_save
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3117 $as_echo_n "checking for suffix of object files... " >&6; }
3118 if ${ac_cv_objext+:} false; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3123
3124 int
3125 main ()
3126 {
3127
3128 ;
3129 return 0;
3130 }
3131 _ACEOF
3132 rm -f conftest.o conftest.obj
3133 if { { ac_try="$ac_compile"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 $as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_compile") 2>&5
3141 ac_status=$?
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
3144 for ac_file in conftest.o conftest.obj conftest.*; do
3145 test -f "$ac_file" || continue;
3146 case $ac_file in
3147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3148 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3149 break;;
3150 esac
3151 done
3152 else
3153 $as_echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 as_fn_error $? "cannot compute suffix of object files: cannot compile
3159 See \`config.log' for more details" "$LINENO" 5; }
3160 fi
3161 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3162 fi
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3164 $as_echo "$ac_cv_objext" >&6; }
3165 OBJEXT=$ac_cv_objext
3166 ac_objext=$OBJEXT
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3168 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3169 if ${ac_cv_c_compiler_gnu+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3174
3175 int
3176 main ()
3177 {
3178 #ifndef __GNUC__
3179 choke me
3180 #endif
3181
3182 ;
3183 return 0;
3184 }
3185 _ACEOF
3186 if ac_fn_c_try_compile "$LINENO"; then :
3187 ac_compiler_gnu=yes
3188 else
3189 ac_compiler_gnu=no
3190 fi
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3193
3194 fi
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3196 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3197 if test $ac_compiler_gnu = yes; then
3198 GCC=yes
3199 else
3200 GCC=
3201 fi
3202 ac_test_CFLAGS=${CFLAGS+set}
3203 ac_save_CFLAGS=$CFLAGS
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3205 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3206 if ${ac_cv_prog_cc_g+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 ac_save_c_werror_flag=$ac_c_werror_flag
3210 ac_c_werror_flag=yes
3211 ac_cv_prog_cc_g=no
3212 CFLAGS="-g"
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3215
3216 int
3217 main ()
3218 {
3219
3220 ;
3221 return 0;
3222 }
3223 _ACEOF
3224 if ac_fn_c_try_compile "$LINENO"; then :
3225 ac_cv_prog_cc_g=yes
3226 else
3227 CFLAGS=""
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3230
3231 int
3232 main ()
3233 {
3234
3235 ;
3236 return 0;
3237 }
3238 _ACEOF
3239 if ac_fn_c_try_compile "$LINENO"; then :
3240
3241 else
3242 ac_c_werror_flag=$ac_save_c_werror_flag
3243 CFLAGS="-g"
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3246
3247 int
3248 main ()
3249 {
3250
3251 ;
3252 return 0;
3253 }
3254 _ACEOF
3255 if ac_fn_c_try_compile "$LINENO"; then :
3256 ac_cv_prog_cc_g=yes
3257 fi
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 fi
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 fi
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 ac_c_werror_flag=$ac_save_c_werror_flag
3264 fi
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3266 $as_echo "$ac_cv_prog_cc_g" >&6; }
3267 if test "$ac_test_CFLAGS" = set; then
3268 CFLAGS=$ac_save_CFLAGS
3269 elif test $ac_cv_prog_cc_g = yes; then
3270 if test "$GCC" = yes; then
3271 CFLAGS="-g -O2"
3272 else
3273 CFLAGS="-g"
3274 fi
3275 else
3276 if test "$GCC" = yes; then
3277 CFLAGS="-O2"
3278 else
3279 CFLAGS=
3280 fi
3281 fi
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3283 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3284 if ${ac_cv_prog_cc_c89+:} false; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 ac_cv_prog_cc_c89=no
3288 ac_save_CC=$CC
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3291 #include <stdarg.h>
3292 #include <stdio.h>
3293 struct stat;
3294 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3295 struct buf { int x; };
3296 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3297 static char *e (p, i)
3298 char **p;
3299 int i;
3300 {
3301 return p[i];
3302 }
3303 static char *f (char * (*g) (char **, int), char **p, ...)
3304 {
3305 char *s;
3306 va_list v;
3307 va_start (v,p);
3308 s = g (p, va_arg (v,int));
3309 va_end (v);
3310 return s;
3311 }
3312
3313 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3314 function prototypes and stuff, but not '\xHH' hex character constants.
3315 These don't provoke an error unfortunately, instead are silently treated
3316 as 'x'. The following induces an error, until -std is added to get
3317 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3318 array size at least. It's necessary to write '\x00'==0 to get something
3319 that's true only with -std. */
3320 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3321
3322 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3323 inside strings and character constants. */
3324 #define FOO(x) 'x'
3325 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3326
3327 int test (int i, double x);
3328 struct s1 {int (*f) (int a);};
3329 struct s2 {int (*f) (double a);};
3330 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3331 int argc;
3332 char **argv;
3333 int
3334 main ()
3335 {
3336 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3337 ;
3338 return 0;
3339 }
3340 _ACEOF
3341 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3342 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3343 do
3344 CC="$ac_save_CC $ac_arg"
3345 if ac_fn_c_try_compile "$LINENO"; then :
3346 ac_cv_prog_cc_c89=$ac_arg
3347 fi
3348 rm -f core conftest.err conftest.$ac_objext
3349 test "x$ac_cv_prog_cc_c89" != "xno" && break
3350 done
3351 rm -f conftest.$ac_ext
3352 CC=$ac_save_CC
3353
3354 fi
3355 # AC_CACHE_VAL
3356 case "x$ac_cv_prog_cc_c89" in
3357 x)
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3359 $as_echo "none needed" >&6; } ;;
3360 xno)
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3362 $as_echo "unsupported" >&6; } ;;
3363 *)
3364 CC="$CC $ac_cv_prog_cc_c89"
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3366 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3367 esac
3368 if test "x$ac_cv_prog_cc_c89" != xno; then :
3369
3370 fi
3371
3372 ac_ext=c
3373 ac_cpp='$CPP $CPPFLAGS'
3374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377
3378
3379
3380
3381
3382 if test "$GCC" = yes ; then
3383 if test "$SHLICC2" = yes ; then
3384 ac_cv_lbl_gcc_vers=2
3385 V_CCOPT="-O2"
3386 else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
3388 $as_echo_n "checking gcc version... " >&6; }
3389 if ${ac_cv_lbl_gcc_vers+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
3393 sed -e '/^gcc version /!d' \
3394 -e 's/^gcc version //' \
3395 -e 's/ .*//' -e 's/^[^0-9]*//' \
3396 -e 's/\..*//'`
3397 fi
3398
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_vers" >&5
3400 $as_echo "$ac_cv_lbl_gcc_vers" >&6; }
3401 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
3402 V_CCOPT="-O2"
3403 fi
3404 fi
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that $CC handles ansi prototypes" >&5
3407 $as_echo_n "checking that $CC handles ansi prototypes... " >&6; }
3408 if ${ac_cv_lbl_cc_ansi_prototypes+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3414 #include <sys/types.h>
3415 int
3416 main ()
3417 {
3418 int frob(int, char *)
3419 ;
3420 return 0;
3421 }
3422 _ACEOF
3423 if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_lbl_cc_ansi_prototypes=yes
3425 else
3426 ac_cv_lbl_cc_ansi_prototypes=no
3427 fi
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 fi
3430
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
3432 $as_echo "$ac_cv_lbl_cc_ansi_prototypes" >&6; }
3433 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
3434 case "$host_os" in
3435
3436 hpux*)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
3438 $as_echo_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... " >&6; }
3439 savedcflags="$CFLAGS"
3440 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
3441 if ${ac_cv_lbl_cc_hpux_cc_aa+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3446 #include <sys/types.h>
3447 int
3448 main ()
3449 {
3450 int frob(int, char *)
3451 ;
3452 return 0;
3453 }
3454 _ACEOF
3455 if ac_fn_c_try_compile "$LINENO"; then :
3456 ac_cv_lbl_cc_hpux_cc_aa=yes
3457 else
3458 ac_cv_lbl_cc_hpux_cc_aa=no
3459 fi
3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461 fi
3462
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3464 $as_echo "$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3465 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3466 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3467 fi
3468 CFLAGS="$savedcflags"
3469 V_CCOPT="-Aa $V_CCOPT"
3470
3471 $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
3472
3473 ;;
3474
3475 osf*)
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3477 $as_echo_n "checking for ansi mode in DEC compiler ($CC -std1)... " >&6; }
3478 savedcflags="$CFLAGS"
3479 CFLAGS="-std1"
3480 if ${ac_cv_lbl_cc_osf1_cc_std1+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3485 #include <sys/types.h>
3486 int
3487 main ()
3488 {
3489 int frob(int, char *)
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_cv_lbl_cc_osf1_cc_std1=yes
3496 else
3497 ac_cv_lbl_cc_osf1_cc_std1=no
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 fi
3501
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3503 $as_echo "$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3504 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3505 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3506 fi
3507 CFLAGS="$savedcflags"
3508 V_CCOPT="-std1 $V_CCOPT"
3509 ;;
3510
3511 *)
3512 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3513 ;;
3514 esac
3515 fi
3516 V_INCLS="$V_INCLS -I/usr/local/include"
3517 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3518
3519 case "$host_os" in
3520
3521 irix*)
3522 V_CCOPT="$V_CCOPT -xansi -signed -O"
3523 ;;
3524
3525 osf*)
3526 #
3527 # Presumed to be DEC OSF/1, Digital UNIX, or
3528 # Tru64 UNIX.
3529 #
3530 V_CCOPT="$V_CCOPT -O"
3531 ;;
3532
3533 ultrix*)
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3535 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3536 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3541 #include <sys/types.h>
3542 int
3543 main ()
3544 {
3545 struct a { int b; };
3546 void c(const struct a *)
3547 ;
3548 return 0;
3549 }
3550 _ACEOF
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552 ac_cv_lbl_cc_const_proto=yes
3553 else
3554 ac_cv_lbl_cc_const_proto=no
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 fi
3558
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3560 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3561 if test $ac_cv_lbl_cc_const_proto = no ; then
3562
3563 $as_echo "#define const /**/" >>confdefs.h
3564
3565 fi
3566 ;;
3567 esac
3568 fi
3569
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3571 $as_echo_n "checking for inline... " >&6; }
3572 save_CFLAGS="$CFLAGS"
3573 CFLAGS="$V_CCOPT"
3574 if ${ac_cv_lbl_inline+:} false; then :
3575 $as_echo_n "(cached) " >&6
3576 else
3577
3578 ac_cv_lbl_inline=""
3579 ac_lbl_cc_inline=no
3580 for ac_lbl_inline in inline __inline__ __inline
3581 do
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584 #define inline $ac_lbl_inline
3585 static inline struct iltest *foo(void);
3586 struct iltest {
3587 int iltest1;
3588 int iltest2;
3589 };
3590
3591 static inline struct iltest *
3592 foo()
3593 {
3594 static struct iltest xxx;
3595
3596 return &xxx;
3597 }
3598 int
3599 main ()
3600 {
3601
3602 ;
3603 return 0;
3604 }
3605 _ACEOF
3606 if ac_fn_c_try_compile "$LINENO"; then :
3607 ac_lbl_cc_inline=yes
3608 fi
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 if test "$ac_lbl_cc_inline" = yes ; then
3611 break;
3612 fi
3613 done
3614 if test "$ac_lbl_cc_inline" = yes ; then
3615 ac_cv_lbl_inline=$ac_lbl_inline
3616 fi
3617 fi
3618
3619 CFLAGS="$save_CFLAGS"
3620 if test ! -z "$ac_cv_lbl_inline" ; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
3622 $as_echo "$ac_cv_lbl_inline" >&6; }
3623 else
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3626 fi
3627
3628 cat >>confdefs.h <<_ACEOF
3629 #define inline $ac_cv_lbl_inline
3630 _ACEOF
3631
3632
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
3634 $as_echo_n "checking for __attribute__... " >&6; }
3635 if ${ac_cv___attribute__+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641
3642
3643 #include <stdlib.h>
3644
3645 static void foo(void) __attribute__ ((noreturn));
3646
3647 static void
3648 foo(void)
3649 {
3650 exit(1);
3651 }
3652
3653 int
3654 main(int argc, char **argv)
3655 {
3656 foo();
3657 }
3658
3659 _ACEOF
3660 if ac_fn_c_try_compile "$LINENO"; then :
3661 ac_cv___attribute__=yes
3662 else
3663 ac_cv___attribute__=no
3664 fi
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 fi
3667
3668 if test "$ac_cv___attribute__" = "yes"; then
3669
3670 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
3671
3672 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3673 else
3674 V_DEFS="$V_DEFS -D_U_=\"\""
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
3677 $as_echo "$ac_cv___attribute__" >&6; }
3678
3679 if test "$ac_cv___attribute__" = "yes"; then
3680
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) can be applied to function pointers" >&5
3682 $as_echo_n "checking whether __attribute__((format)) can be applied to function pointers... " >&6; }
3683 if ${ac_cv___attribute___format_function_pointer+:} false; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689
3690
3691 #include <stdlib.h>
3692
3693 extern int (*foo)(const char *fmt, ...)
3694 __attribute__ ((format (printf, 1, 2)));
3695
3696 int
3697 main(int argc, char **argv)
3698 {
3699 (*foo)("%s", "test");
3700 }
3701
3702 _ACEOF
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704 ac_cv___attribute___format_function_pointer=yes
3705 else
3706 ac_cv___attribute___format_function_pointer=no
3707 fi
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 fi
3710
3711 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3712
3713 $as_echo "#define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1" >>confdefs.h
3714
3715 fi
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___format_function_pointer" >&5
3717 $as_echo "$ac_cv___attribute___format_function_pointer" >&6; }
3718
3719 fi
3720 ac_ext=c
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3726 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3727 # On Suns, sometimes $CPP names a directory.
3728 if test -n "$CPP" && test -d "$CPP"; then
3729 CPP=
3730 fi
3731 if test -z "$CPP"; then
3732 if ${ac_cv_prog_CPP+:} false; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 # Double quotes because CPP needs to be expanded
3736 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3737 do
3738 ac_preproc_ok=false
3739 for ac_c_preproc_warn_flag in '' yes
3740 do
3741 # Use a header file that comes with gcc, so configuring glibc
3742 # with a fresh cross-compiler works.
3743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744 # <limits.h> exists even on freestanding compilers.
3745 # On the NeXT, cc -E runs the code through the compiler's parser,
3746 # not just through cpp. "Syntax error" is here to catch this case.
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3749 #ifdef __STDC__
3750 # include <limits.h>
3751 #else
3752 # include <assert.h>
3753 #endif
3754 Syntax error
3755 _ACEOF
3756 if ac_fn_c_try_cpp "$LINENO"; then :
3757
3758 else
3759 # Broken: fails on valid input.
3760 continue
3761 fi
3762 rm -f conftest.err conftest.i conftest.$ac_ext
3763
3764 # OK, works on sane cases. Now check whether nonexistent headers
3765 # can be detected and how.
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #include <ac_nonexistent.h>
3769 _ACEOF
3770 if ac_fn_c_try_cpp "$LINENO"; then :
3771 # Broken: success on invalid input.
3772 continue
3773 else
3774 # Passes both tests.
3775 ac_preproc_ok=:
3776 break
3777 fi
3778 rm -f conftest.err conftest.i conftest.$ac_ext
3779
3780 done
3781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782 rm -f conftest.i conftest.err conftest.$ac_ext
3783 if $ac_preproc_ok; then :
3784 break
3785 fi
3786
3787 done
3788 ac_cv_prog_CPP=$CPP
3789
3790 fi
3791 CPP=$ac_cv_prog_CPP
3792 else
3793 ac_cv_prog_CPP=$CPP
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3796 $as_echo "$CPP" >&6; }
3797 ac_preproc_ok=false
3798 for ac_c_preproc_warn_flag in '' yes
3799 do
3800 # Use a header file that comes with gcc, so configuring glibc
3801 # with a fresh cross-compiler works.
3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 # <limits.h> exists even on freestanding compilers.
3804 # On the NeXT, cc -E runs the code through the compiler's parser,
3805 # not just through cpp. "Syntax error" is here to catch this case.
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3808 #ifdef __STDC__
3809 # include <limits.h>
3810 #else
3811 # include <assert.h>
3812 #endif
3813 Syntax error
3814 _ACEOF
3815 if ac_fn_c_try_cpp "$LINENO"; then :
3816
3817 else
3818 # Broken: fails on valid input.
3819 continue
3820 fi
3821 rm -f conftest.err conftest.i conftest.$ac_ext
3822
3823 # OK, works on sane cases. Now check whether nonexistent headers
3824 # can be detected and how.
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827 #include <ac_nonexistent.h>
3828 _ACEOF
3829 if ac_fn_c_try_cpp "$LINENO"; then :
3830 # Broken: success on invalid input.
3831 continue
3832 else
3833 # Passes both tests.
3834 ac_preproc_ok=:
3835 break
3836 fi
3837 rm -f conftest.err conftest.i conftest.$ac_ext
3838
3839 done
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.i conftest.err conftest.$ac_ext
3842 if $ac_preproc_ok; then :
3843
3844 else
3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3848 See \`config.log' for more details" "$LINENO" 5; }
3849 fi
3850
3851 ac_ext=c
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3856
3857
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3859 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3860 if ${ac_cv_path_GREP+:} false; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 if test -z "$GREP"; then
3864 ac_path_GREP_found=false
3865 # Loop through the user's path and test for each of PROGNAME-LIST
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3868 do
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
3871 for ac_prog in grep ggrep; do
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3874 as_fn_executable_p "$ac_path_GREP" || continue
3875 # Check for GNU ac_path_GREP and select it if it is found.
3876 # Check for GNU $ac_path_GREP
3877 case `"$ac_path_GREP" --version 2>&1` in
3878 *GNU*)
3879 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3880 *)
3881 ac_count=0
3882 $as_echo_n 0123456789 >"conftest.in"
3883 while :
3884 do
3885 cat "conftest.in" "conftest.in" >"conftest.tmp"
3886 mv "conftest.tmp" "conftest.in"
3887 cp "conftest.in" "conftest.nl"
3888 $as_echo 'GREP' >> "conftest.nl"
3889 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3891 as_fn_arith $ac_count + 1 && ac_count=$as_val
3892 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3893 # Best one so far, save it but keep looking for a better one
3894 ac_cv_path_GREP="$ac_path_GREP"
3895 ac_path_GREP_max=$ac_count
3896 fi
3897 # 10*(2^10) chars as input seems more than enough
3898 test $ac_count -gt 10 && break
3899 done
3900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3901 esac
3902
3903 $ac_path_GREP_found && break 3
3904 done
3905 done
3906 done
3907 IFS=$as_save_IFS
3908 if test -z "$ac_cv_path_GREP"; then
3909 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3910 fi
3911 else
3912 ac_cv_path_GREP=$GREP
3913 fi
3914
3915 fi
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3917 $as_echo "$ac_cv_path_GREP" >&6; }
3918 GREP="$ac_cv_path_GREP"
3919
3920
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3922 $as_echo_n "checking for egrep... " >&6; }
3923 if ${ac_cv_path_EGREP+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3927 then ac_cv_path_EGREP="$GREP -E"
3928 else
3929 if test -z "$EGREP"; then
3930 ac_path_EGREP_found=false
3931 # Loop through the user's path and test for each of PROGNAME-LIST
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3934 do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_prog in egrep; do
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3940 as_fn_executable_p "$ac_path_EGREP" || continue
3941 # Check for GNU ac_path_EGREP and select it if it is found.
3942 # Check for GNU $ac_path_EGREP
3943 case `"$ac_path_EGREP" --version 2>&1` in
3944 *GNU*)
3945 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3946 *)
3947 ac_count=0
3948 $as_echo_n 0123456789 >"conftest.in"
3949 while :
3950 do
3951 cat "conftest.in" "conftest.in" >"conftest.tmp"
3952 mv "conftest.tmp" "conftest.in"
3953 cp "conftest.in" "conftest.nl"
3954 $as_echo 'EGREP' >> "conftest.nl"
3955 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3957 as_fn_arith $ac_count + 1 && ac_count=$as_val
3958 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3959 # Best one so far, save it but keep looking for a better one
3960 ac_cv_path_EGREP="$ac_path_EGREP"
3961 ac_path_EGREP_max=$ac_count
3962 fi
3963 # 10*(2^10) chars as input seems more than enough
3964 test $ac_count -gt 10 && break
3965 done
3966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3967 esac
3968
3969 $ac_path_EGREP_found && break 3
3970 done
3971 done
3972 done
3973 IFS=$as_save_IFS
3974 if test -z "$ac_cv_path_EGREP"; then
3975 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3976 fi
3977 else
3978 ac_cv_path_EGREP=$EGREP
3979 fi
3980
3981 fi
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3984 $as_echo "$ac_cv_path_EGREP" >&6; }
3985 EGREP="$ac_cv_path_EGREP"
3986
3987
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3989 $as_echo_n "checking for ANSI C header files... " >&6; }
3990 if ${ac_cv_header_stdc+:} false; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 #include <stdlib.h>
3996 #include <stdarg.h>
3997 #include <string.h>
3998 #include <float.h>
3999
4000 int
4001 main ()
4002 {
4003
4004 ;
4005 return 0;
4006 }
4007 _ACEOF
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009 ac_cv_header_stdc=yes
4010 else
4011 ac_cv_header_stdc=no
4012 fi
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014
4015 if test $ac_cv_header_stdc = yes; then
4016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019 #include <string.h>
4020
4021 _ACEOF
4022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4023 $EGREP "memchr" >/dev/null 2>&1; then :
4024
4025 else
4026 ac_cv_header_stdc=no
4027 fi
4028 rm -f conftest*
4029
4030 fi
4031
4032 if test $ac_cv_header_stdc = yes; then
4033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036 #include <stdlib.h>
4037
4038 _ACEOF
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040 $EGREP "free" >/dev/null 2>&1; then :
4041
4042 else
4043 ac_cv_header_stdc=no
4044 fi
4045 rm -f conftest*
4046
4047 fi
4048
4049 if test $ac_cv_header_stdc = yes; then
4050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4051 if test "$cross_compiling" = yes; then :
4052 :
4053 else
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056 #include <ctype.h>
4057 #include <stdlib.h>
4058 #if ((' ' & 0x0FF) == 0x020)
4059 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4060 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4061 #else
4062 # define ISLOWER(c) \
4063 (('a' <= (c) && (c) <= 'i') \
4064 || ('j' <= (c) && (c) <= 'r') \
4065 || ('s' <= (c) && (c) <= 'z'))
4066 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4067 #endif
4068
4069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4070 int
4071 main ()
4072 {
4073 int i;
4074 for (i = 0; i < 256; i++)
4075 if (XOR (islower (i), ISLOWER (i))
4076 || toupper (i) != TOUPPER (i))
4077 return 2;
4078 return 0;
4079 }
4080 _ACEOF
4081 if ac_fn_c_try_run "$LINENO"; then :
4082
4083 else
4084 ac_cv_header_stdc=no
4085 fi
4086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4087 conftest.$ac_objext conftest.beam conftest.$ac_ext
4088 fi
4089
4090 fi
4091 fi
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4093 $as_echo "$ac_cv_header_stdc" >&6; }
4094 if test $ac_cv_header_stdc = yes; then
4095
4096 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4097
4098 fi
4099
4100 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4101 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4102 inttypes.h stdint.h unistd.h
4103 do :
4104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4105 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4106 "
4107 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4108 cat >>confdefs.h <<_ACEOF
4109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4110 _ACEOF
4111
4112 fi
4113
4114 done
4115
4116
4117 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
4118 do :
4119 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4120 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4121 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4122 cat >>confdefs.h <<_ACEOF
4123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4124 _ACEOF
4125
4126 fi
4127
4128 done
4129
4130 for ac_header in net/pfvar.h
4131 do :
4132 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4133 #include <sys/socket.h>
4134 #include <net/if.h>
4135 "
4136 if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
4137 cat >>confdefs.h <<_ACEOF
4138 #define HAVE_NET_PFVAR_H 1
4139 _ACEOF
4140
4141 fi
4142
4143 done
4144
4145 if test "$ac_cv_header_net_pfvar_h" = yes; then
4146 LOCALSRC="print-pflog.c $LOCALSRC"
4147 fi
4148 for ac_header in netinet/if_ether.h
4149 do :
4150 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4151 #include <sys/socket.h>
4152 "
4153 if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
4154 cat >>confdefs.h <<_ACEOF
4155 #define HAVE_NETINET_IF_ETHER_H 1
4156 _ACEOF
4157
4158 fi
4159
4160 done
4161
4162 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4163 #
4164 # The simple test didn't work.
4165 # Do we need to include <net/if.h> first?
4166 # Unset ac_cv_header_netinet_if_ether_h so we don't
4167 # treat the previous failure as a cached value and
4168 # suppress the next test.
4169 #
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5
4171 $as_echo "$as_me: Rechecking with some additional includes" >&6;}
4172 unset ac_cv_header_netinet_if_ether_h
4173 for ac_header in netinet/if_ether.h
4174 do :
4175 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4176 #include <sys/socket.h>
4177 #include <netinet/in.h>
4178 struct mbuf;
4179 struct rtentry;
4180 #include <net/if.h>
4181 "
4182 if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
4183 cat >>confdefs.h <<_ACEOF
4184 #define HAVE_NETINET_IF_ETHER_H 1
4185 _ACEOF
4186
4187 fi
4188
4189 done
4190
4191 fi
4192
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4194 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4195 if ${ac_cv_header_time+:} false; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200 #include <sys/types.h>
4201 #include <sys/time.h>
4202 #include <time.h>
4203
4204 int
4205 main ()
4206 {
4207 if ((struct tm *) 0)
4208 return 0;
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 if ac_fn_c_try_compile "$LINENO"; then :
4214 ac_cv_header_time=yes
4215 else
4216 ac_cv_header_time=no
4217 fi
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4221 $as_echo "$ac_cv_header_time" >&6; }
4222 if test $ac_cv_header_time = yes; then
4223
4224 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4225
4226 fi
4227
4228
4229 case "$host_os" in
4230
4231 linux*)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Linux kernel version" >&5
4233 $as_echo_n "checking Linux kernel version... " >&6; }
4234 if test "$cross_compiling" = yes; then
4235 if ${ac_cv_linux_vers+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 ac_cv_linux_vers=unknown
4239 fi
4240
4241 else
4242 if ${ac_cv_linux_vers+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 ac_cv_linux_vers=`uname -r 2>&1 | \
4246 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4247 fi
4248
4249 fi
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_vers" >&5
4251 $as_echo "$ac_cv_linux_vers" >&6; }
4252 if test $ac_cv_linux_vers = unknown ; then
4253 as_fn_error $? "cannot determine linux version when cross-compiling" "$LINENO" 5
4254 fi
4255 if test $ac_cv_linux_vers -lt 2 ; then
4256 as_fn_error $? "version 2 or higher required; see the INSTALL doc for more info" "$LINENO" 5
4257 fi
4258 ;;
4259
4260 *)
4261 ;;
4262 esac
4263
4264
4265
4266 # Check whether --with-smi was given.
4267 if test "${with_smi+set}" = set; then :
4268 withval=$with_smi;
4269 else
4270 with_smi=yes
4271 fi
4272
4273
4274 if test "x$with_smi" != "xno" ; then
4275 for ac_header in smi.h
4276 do :
4277 ac_fn_c_check_header_mongrel "$LINENO" "smi.h" "ac_cv_header_smi_h" "$ac_includes_default"
4278 if test "x$ac_cv_header_smi_h" = xyes; then :
4279 cat >>confdefs.h <<_ACEOF
4280 #define HAVE_SMI_H 1
4281 _ACEOF
4282
4283 fi
4284
4285 done
4286
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smiInit in -lsmi" >&5
4288 $as_echo_n "checking for smiInit in -lsmi... " >&6; }
4289 if ${ac_cv_lib_smi_smiInit+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 ac_check_lib_save_LIBS=$LIBS
4293 LIBS="-lsmi $LIBS"
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296
4297 /* Override any GCC internal prototype to avoid an error.
4298 Use char because int might match the return type of a GCC
4299 builtin and then its argument prototype would still apply. */
4300 #ifdef __cplusplus
4301 extern "C"
4302 #endif
4303 char smiInit ();
4304 int
4305 main ()
4306 {
4307 return smiInit ();
4308 ;
4309 return 0;
4310 }
4311 _ACEOF
4312 if ac_fn_c_try_link "$LINENO"; then :
4313 ac_cv_lib_smi_smiInit=yes
4314 else
4315 ac_cv_lib_smi_smiInit=no
4316 fi
4317 rm -f core conftest.err conftest.$ac_objext \
4318 conftest$ac_exeext conftest.$ac_ext
4319 LIBS=$ac_check_lib_save_LIBS
4320 fi
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smi_smiInit" >&5
4322 $as_echo "$ac_cv_lib_smi_smiInit" >&6; }
4323 if test "x$ac_cv_lib_smi_smiInit" = xyes; then :
4324 cat >>confdefs.h <<_ACEOF
4325 #define HAVE_LIBSMI 1
4326 _ACEOF
4327
4328 LIBS="-lsmi $LIBS"
4329
4330 fi
4331
4332 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4333 then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libsmi" >&5
4335 $as_echo_n "checking whether to enable libsmi... " >&6; }
4336 if test "$cross_compiling" = yes; then :
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not when cross-compiling" >&5
4338 $as_echo "not when cross-compiling" >&6; }
4339 libsmi=no
4340
4341 else
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 /* libsmi available check */
4345 #include <smi.h>
4346 main()
4347 {
4348 int current, revision, age, n;
4349 const int required = 2;
4350 if (smiInit(""))
4351 exit(1);
4352 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4353 exit(2);
4354 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4355 if (n != 3)
4356 exit(3);
4357 if (required < current - age || required > current)
4358 exit(4);
4359 exit(0);
4360 }
4361
4362 _ACEOF
4363 if ac_fn_c_try_run "$LINENO"; then :
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4365 $as_echo "yes" >&6; }
4366 $as_echo "#define LIBSMI 1" >>confdefs.h
4367
4368 libsmi=yes
4369 else
4370 case $? in
4371 1) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - smiInit failed" >&5
4372 $as_echo "no - smiInit failed" >&6; } ;;
4373 2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - header/library version mismatch" >&5
4374 $as_echo "no - header/library version mismatch" >&6; } ;;
4375 3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - can't determine library version" >&5
4376 $as_echo "no - can't determine library version" >&6; } ;;
4377 4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - too old" >&5
4378 $as_echo "no - too old" >&6; } ;;
4379 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; } ;;
4381 esac
4382 libsmi=no
4383 fi
4384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4385 conftest.$ac_objext conftest.beam conftest.$ac_ext
4386 fi
4387
4388 fi
4389 fi
4390
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the possibly-buggy SMB printer" >&5
4392 $as_echo_n "checking whether to enable the possibly-buggy SMB printer... " >&6; }
4393 # Check whether --enable-smb was given.
4394 if test "${enable_smb+set}" = set; then :
4395 enableval=$enable_smb;
4396 else
4397 enableval=yes
4398 fi
4399
4400 case "$enableval" in
4401 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4402 $as_echo "yes" >&6; }
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4404 $as_echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4405 $as_echo "#define TCPDUMP_DO_SMB 1" >>confdefs.h
4406
4407 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4408 ;;
4409 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 ;;
4412 esac
4413
4414
4415 # Check whether --with-user was given.
4416 if test "${with_user+set}" = set; then :
4417 withval=$with_user;
4418 fi
4419
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to drop root privileges by default" >&5
4421 $as_echo_n "checking whether to drop root privileges by default... " >&6; }
4422 if test ! -z "$with_user" ; then
4423 cat >>confdefs.h <<_ACEOF
4424 #define WITH_USER "$withval"
4425 _ACEOF
4426
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: to \"$withval\"" >&5
4428 $as_echo "to \"$withval\"" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 fi
4433
4434
4435 # Check whether --with-chroot was given.
4436 if test "${with_chroot+set}" = set; then :
4437 withval=$with_chroot;
4438 fi
4439
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to chroot" >&5
4441 $as_echo_n "checking whether to chroot... " >&6; }
4442 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4443 cat >>confdefs.h <<_ACEOF
4444 #define WITH_CHROOT "$withval"
4445 _ACEOF
4446
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: to \"$withval\"" >&5
4448 $as_echo "to \"$withval\"" >&6; }
4449 else
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4452 fi
4453
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5
4455 $as_echo_n "checking whether to enable ipv6... " >&6; }
4456 # Check whether --enable-ipv6 was given.
4457 if test "${enable_ipv6+set}" = set; then :
4458 enableval=$enable_ipv6; case "$enableval" in
4459 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460 $as_echo "yes" >&6; }
4461 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
4462 $as_echo "#define INET6 1" >>confdefs.h
4463
4464 ipv6=yes
4465 ;;
4466 *)
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 $as_echo "no" >&6; }
4469 ipv6=no
4470 ;;
4471 esac
4472 else
4473 if test "$cross_compiling" = yes; then :
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4476 ipv6=no
4477
4478 else
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4481 /* AF_INET6 available check */
4482 #include <sys/types.h>
4483 #include <sys/socket.h>
4484 main()
4485 {
4486 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4487 exit(1);
4488 else
4489 exit(0);
4490 }
4491
4492 _ACEOF
4493 if ac_fn_c_try_run "$LINENO"; then :
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4495 $as_echo "yes" >&6; }
4496 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
4497 $as_echo "#define INET6 1" >>confdefs.h
4498
4499 ipv6=yes
4500 else
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4503 ipv6=no
4504 fi
4505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4506 conftest.$ac_objext conftest.beam conftest.$ac_ext
4507 fi
4508
4509 fi
4510
4511
4512 ipv6type=unknown
4513 ipv6lib=none
4514 ipv6trylibc=no
4515
4516 if test "$ipv6" = "yes"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
4518 $as_echo_n "checking ipv6 stack type... " >&6; }
4519 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4520 case $i in
4521 inria)
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <netinet/in.h>
4525 #ifdef IPV6_INRIA_VERSION
4526 yes
4527 #endif
4528 _ACEOF
4529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4530 $EGREP "yes" >/dev/null 2>&1; then :
4531 ipv6type=$i;
4532 CFLAGS="-DINET6 $CFLAGS"
4533 fi
4534 rm -f conftest*
4535
4536 ;;
4537 kame)
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540 #include <netinet/in.h>
4541 #ifdef __KAME__
4542 yes
4543 #endif
4544 _ACEOF
4545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4546 $EGREP "yes" >/dev/null 2>&1; then :
4547 ipv6type=$i;
4548 ipv6lib=inet6;
4549 ipv6libdir=/usr/local/v6/lib;
4550 ipv6trylibc=yes;
4551 CFLAGS="-DINET6 $CFLAGS"
4552 fi
4553 rm -f conftest*
4554
4555 ;;
4556 linux-glibc)
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559 #include <features.h>
4560 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4561 yes
4562 #endif
4563 _ACEOF
4564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565 $EGREP "yes" >/dev/null 2>&1; then :
4566 ipv6type=$i;
4567 CFLAGS="-DINET6 $CFLAGS"
4568 fi
4569 rm -f conftest*
4570
4571 ;;
4572 linux-libinet6)
4573 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4574 ipv6type=$i
4575 ipv6lib=inet6
4576 ipv6libdir=/usr/inet6/lib
4577 ipv6trylibc=yes;
4578 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4579 fi
4580 ;;
4581 toshiba)
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584 #include <sys/param.h>
4585 #ifdef _TOSHIBA_INET6
4586 yes
4587 #endif
4588 _ACEOF
4589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4590 $EGREP "yes" >/dev/null 2>&1; then :
4591 ipv6type=$i;
4592 ipv6lib=inet6;
4593 ipv6libdir=/usr/local/v6/lib;
4594 CFLAGS="-DINET6 $CFLAGS"
4595 fi
4596 rm -f conftest*
4597
4598 ;;
4599 v6d)
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #include </usr/local/v6/include/sys/v6config.h>
4603 #ifdef __V6D__
4604 yes
4605 #endif
4606 _ACEOF
4607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4608 $EGREP "yes" >/dev/null 2>&1; then :
4609 ipv6type=$i;
4610 ipv6lib=v6;
4611 ipv6libdir=/usr/local/v6/lib;
4612 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4613 fi
4614 rm -f conftest*
4615
4616 ;;
4617 zeta)
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4620 #include <sys/param.h>
4621 #ifdef _ZETA_MINAMI_INET6
4622 yes
4623 #endif
4624 _ACEOF
4625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "yes" >/dev/null 2>&1; then :
4627 ipv6type=$i;
4628 ipv6lib=inet6;
4629 ipv6libdir=/usr/local/v6/lib;
4630 CFLAGS="-DINET6 $CFLAGS"
4631 fi
4632 rm -f conftest*
4633
4634 ;;
4635 esac
4636 if test "$ipv6type" != "unknown"; then
4637 break
4638 fi
4639 done
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
4641 $as_echo "$ipv6type" >&6; }
4642 fi
4643
4644 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4645 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4646 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4647 echo "You have $ipv6lib library, using it"
4648 else
4649 if test "$ipv6trylibc" = "yes"; then
4650 echo "You do not have $ipv6lib library, using libc"
4651 else
4652 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4653 echo "You need to fetch lib$ipv6lib.a from appropriate"
4654 echo 'ipv6 kit and compile beforehand.'
4655 exit 1
4656 fi
4657 fi
4658 fi
4659
4660
4661 if test "$ipv6" = "yes"; then
4662 #
4663 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4664 # function in libc; there are "ngetaddrinfo()" and
4665 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4666 # "getaddrinfo" to be either "ngetaddrinfo" or
4667 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4668 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4669 #
4670 # So this test doesn't work on Tru64 5.1, and possibly
4671 # on other 5.x releases. This causes the configure
4672 # script to become confused, and results in libpcap
4673 # being unbuildable.
4674 #
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
4676 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
4677 if ${ac_cv_search_getaddrinfo+:} false; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 ac_func_search_save_LIBS=$LIBS
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683
4684 /* Override any GCC internal prototype to avoid an error.
4685 Use char because int might match the return type of a GCC
4686 builtin and then its argument prototype would still apply. */
4687 #ifdef __cplusplus
4688 extern "C"
4689 #endif
4690 char getaddrinfo ();
4691 int
4692 main ()
4693 {
4694 return getaddrinfo ();
4695 ;
4696 return 0;
4697 }
4698 _ACEOF
4699 for ac_lib in '' socket; do
4700 if test -z "$ac_lib"; then
4701 ac_res="none required"
4702 else
4703 ac_res=-l$ac_lib
4704 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4705 fi
4706 if ac_fn_c_try_link "$LINENO"; then :
4707 ac_cv_search_getaddrinfo=$ac_res
4708 fi
4709 rm -f core conftest.err conftest.$ac_objext \
4710 conftest$ac_exeext
4711 if ${ac_cv_search_getaddrinfo+:} false; then :
4712 break
4713 fi
4714 done
4715 if ${ac_cv_search_getaddrinfo+:} false; then :
4716
4717 else
4718 ac_cv_search_getaddrinfo=no
4719 fi
4720 rm conftest.$ac_ext
4721 LIBS=$ac_func_search_save_LIBS
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
4724 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
4725 ac_res=$ac_cv_search_getaddrinfo
4726 if test "$ac_res" != no; then :
4727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
4729 $as_echo_n "checking getaddrinfo bug... " >&6; }
4730 if ${td_cv_buggygetaddrinfo+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 if test "$cross_compiling" = yes; then :
4734 td_cv_buggygetaddrinfo=yes
4735 else
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738
4739 #include <sys/types.h>
4740 #include <netdb.h>
4741 #include <string.h>
4742 #include <sys/socket.h>
4743 #include <netinet/in.h>
4744
4745 main()
4746 {
4747 int passive, gaierr, inet4 = 0, inet6 = 0;
4748 struct addrinfo hints, *ai, *aitop;
4749 char straddr[INET6_ADDRSTRLEN], strport[16];
4750
4751 for (passive = 0; passive <= 1; passive++) {
4752 memset(&hints, 0, sizeof(hints));
4753 hints.ai_family = AF_UNSPEC;
4754 hints.ai_flags = passive ? AI_PASSIVE : 0;
4755 hints.ai_socktype = SOCK_STREAM;
4756 hints.ai_protocol = IPPROTO_TCP;
4757 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4758 (void)gai_strerror(gaierr);
4759 goto bad;
4760 }
4761 for (ai = aitop; ai; ai = ai->ai_next) {
4762 if (ai->ai_addr == NULL ||
4763 ai->ai_addrlen == 0 ||
4764 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4765 straddr, sizeof(straddr), strport, sizeof(strport),
4766 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4767 goto bad;
4768 }
4769 switch (ai->ai_family) {
4770 case AF_INET:
4771 if (strcmp(strport, "54321") != 0) {
4772 goto bad;
4773 }
4774 if (passive) {
4775 if (strcmp(straddr, "0.0.0.0") != 0) {
4776 goto bad;
4777 }
4778 } else {
4779 if (strcmp(straddr, "127.0.0.1") != 0) {
4780 goto bad;
4781 }
4782 }
4783 inet4++;
4784 break;
4785 case AF_INET6:
4786 if (strcmp(strport, "54321") != 0) {
4787 goto bad;
4788 }
4789 if (passive) {
4790 if (strcmp(straddr, "::") != 0) {
4791 goto bad;
4792 }
4793 } else {
4794 if (strcmp(straddr, "::1") != 0) {
4795 goto bad;
4796 }
4797 }
4798 inet6++;
4799 break;
4800 case AF_UNSPEC:
4801 goto bad;
4802 break;
4803 #ifdef AF_UNIX
4804 case AF_UNIX:
4805 #else
4806 #ifdef AF_LOCAL
4807 case AF_LOCAL:
4808 #endif
4809 #endif
4810 default:
4811 /* another family support? */
4812 break;
4813 }
4814 }
4815 }
4816
4817 /* supported family should be 2, unsupported family should be 0 */
4818 if (!(inet4 == 0 || inet4 == 2))
4819 goto bad;
4820 if (!(inet6 == 0 || inet6 == 2))
4821 goto bad;
4822
4823 if (aitop)
4824 freeaddrinfo(aitop);
4825 exit(0);
4826
4827 bad:
4828 if (aitop)
4829 freeaddrinfo(aitop);
4830 exit(1);
4831 }
4832
4833 _ACEOF
4834 if ac_fn_c_try_run "$LINENO"; then :
4835 td_cv_buggygetaddrinfo=no
4836 else
4837 td_cv_buggygetaddrinfo=yes
4838 fi
4839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4840 conftest.$ac_objext conftest.beam conftest.$ac_ext
4841 fi
4842
4843 fi
4844
4845 if test "$td_cv_buggygetaddrinfo" = no; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: good" >&5
4847 $as_echo "good" >&6; }
4848 else
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
4850 $as_echo "buggy" >&6; }
4851 fi
4852
4853 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4854 #
4855 # XXX - it doesn't appear that "ipv6type" can ever be
4856 # set to "linux". Should this be testing for
4857 # "linux-glibc", or for that *or* "linux-libinet6"?
4858 # If the latter, note that "linux-libinet6" is also
4859 # the type given to some non-Linux OSes.
4860 #
4861 if test "$ipv6type" != "linux"; then
4862 echo 'Fatal: You must get working getaddrinfo() function.'
4863 echo ' or you can specify "--disable-ipv6"'.
4864 exit 1
4865 else
4866 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4867 echo ' Better upgrade your system library to newest version'
4868 echo ' of GNU C library (aka glibc).'
4869 fi
4870 fi
4871
4872 fi
4873
4874 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
4875 if test "x$ac_cv_func_getnameinfo" = xyes; then :
4876 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
4877
4878 else
4879 case " $LIBOBJS " in
4880 *" getnameinfo.$ac_objext "* ) ;;
4881 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
4882 ;;
4883 esac
4884
4885 fi
4886
4887
4888 fi
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4891 $as_echo_n "checking for dnet_htoa declaration in netdnet/dnetdb.h... " >&6; }
4892 if ${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897 #include <netdnet/dnetdb.h>
4898
4899 _ACEOF
4900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4901 $EGREP "dnet_htoa" >/dev/null 2>&1; then :
4902 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4903 else
4904 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4905 fi
4906 rm -f conftest*
4907
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4910 $as_echo "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
4911 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4912 $as_echo "#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1" >>confdefs.h
4913
4914 fi
4915
4916 # The cast to long int works around a bug in the HP C Compiler
4917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4919 # This bug is HP SR number 8606223364.
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
4921 $as_echo_n "checking size of char... " >&6; }
4922 if ${ac_cv_sizeof_char+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
4926
4927 else
4928 if test "$ac_cv_type_char" = yes; then
4929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4931 as_fn_error 77 "cannot compute sizeof (char)
4932 See \`config.log' for more details" "$LINENO" 5; }
4933 else
4934 ac_cv_sizeof_char=0
4935 fi
4936 fi
4937
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
4940 $as_echo "$ac_cv_sizeof_char" >&6; }
4941
4942
4943
4944 cat >>confdefs.h <<_ACEOF
4945 #define SIZEOF_CHAR $ac_cv_sizeof_char
4946 _ACEOF
4947
4948
4949 # The cast to long int works around a bug in the HP C Compiler
4950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4952 # This bug is HP SR number 8606223364.
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
4954 $as_echo_n "checking size of short... " >&6; }
4955 if ${ac_cv_sizeof_short+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
4959
4960 else
4961 if test "$ac_cv_type_short" = yes; then
4962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4964 as_fn_error 77 "cannot compute sizeof (short)
4965 See \`config.log' for more details" "$LINENO" 5; }
4966 else
4967 ac_cv_sizeof_short=0
4968 fi
4969 fi
4970
4971 fi
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
4973 $as_echo "$ac_cv_sizeof_short" >&6; }
4974
4975
4976
4977 cat >>confdefs.h <<_ACEOF
4978 #define SIZEOF_SHORT $ac_cv_sizeof_short
4979 _ACEOF
4980
4981
4982 # The cast to long int works around a bug in the HP C Compiler
4983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4985 # This bug is HP SR number 8606223364.
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4987 $as_echo_n "checking size of int... " >&6; }
4988 if ${ac_cv_sizeof_int+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
4992
4993 else
4994 if test "$ac_cv_type_int" = yes; then
4995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4997 as_fn_error 77 "cannot compute sizeof (int)
4998 See \`config.log' for more details" "$LINENO" 5; }
4999 else
5000 ac_cv_sizeof_int=0
5001 fi
5002 fi
5003
5004 fi
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5006 $as_echo "$ac_cv_sizeof_int" >&6; }
5007
5008
5009
5010 cat >>confdefs.h <<_ACEOF
5011 #define SIZEOF_INT $ac_cv_sizeof_int
5012 _ACEOF
5013
5014
5015 # The cast to long int works around a bug in the HP C Compiler
5016 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5017 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5018 # This bug is HP SR number 8606223364.
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5020 $as_echo_n "checking size of long... " >&6; }
5021 if ${ac_cv_sizeof_long+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5025
5026 else
5027 if test "$ac_cv_type_long" = yes; then
5028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5030 as_fn_error 77 "cannot compute sizeof (long)
5031 See \`config.log' for more details" "$LINENO" 5; }
5032 else
5033 ac_cv_sizeof_long=0
5034 fi
5035 fi
5036
5037 fi
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5039 $as_echo "$ac_cv_sizeof_long" >&6; }
5040
5041
5042
5043 cat >>confdefs.h <<_ACEOF
5044 #define SIZEOF_LONG $ac_cv_sizeof_long
5045 _ACEOF
5046
5047
5048 # The cast to long int works around a bug in the HP C Compiler
5049 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5050 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5051 # This bug is HP SR number 8606223364.
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5053 $as_echo_n "checking size of long long... " >&6; }
5054 if ${ac_cv_sizeof_long_long+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5058
5059 else
5060 if test "$ac_cv_type_long_long" = yes; then
5061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5063 as_fn_error 77 "cannot compute sizeof (long long)
5064 See \`config.log' for more details" "$LINENO" 5; }
5065 else
5066 ac_cv_sizeof_long_long=0
5067 fi
5068 fi
5069
5070 fi
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5072 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5073
5074
5075
5076 cat >>confdefs.h <<_ACEOF
5077 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5078 _ACEOF
5079
5080
5081
5082
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
5084 $as_echo_n "checking for addrinfo... " >&6; }
5085 if ${ac_cv_addrinfo+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5090
5091 # include <netdb.h>
5092 int
5093 main ()
5094 {
5095 struct addrinfo a
5096 ;
5097 return 0;
5098 }
5099 _ACEOF
5100 if ac_fn_c_try_compile "$LINENO"; then :
5101 ac_cv_addrinfo=yes
5102 else
5103 ac_cv_addrinfo=no
5104 fi
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 fi
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_addrinfo" >&5
5109 $as_echo "$ac_cv_addrinfo" >&6; }
5110 if test $ac_cv_addrinfo = yes; then
5111 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
5112
5113 else
5114 $as_echo "#define NEED_ADDRINFO_H 1" >>confdefs.h
5115
5116 fi
5117
5118 if test "$ac_cv_addrinfo" = no; then
5119 missing_includes=yes
5120 fi
5121
5122
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NI_MAXSERV" >&5
5124 $as_echo_n "checking for NI_MAXSERV... " >&6; }
5125 if ${ac_cv_maxserv+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 #include <netdb.h>
5131 #ifdef NI_MAXSERV
5132 yes
5133 #endif
5134 _ACEOF
5135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5136 $EGREP "yes" >/dev/null 2>&1; then :
5137 ac_cv_maxserv=yes
5138 else
5139 ac_cv_maxserv=no
5140 fi
5141 rm -f conftest*
5142
5143 fi
5144
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_maxserv" >&5
5146 $as_echo "$ac_cv_maxserv" >&6; }
5147 if test $ac_cv_maxserv != yes; then
5148 $as_echo "#define NEED_ADDRINFO_H 1" >>confdefs.h
5149
5150 fi
5151
5152 if test "$ac_cv_maxserv" = no; then
5153 missing_includes=yes
5154 fi
5155
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NI_NAMEREQD" >&5
5158 $as_echo_n "checking for NI_NAMEREQD... " >&6; }
5159 if ${ac_cv_namereqd+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164 #include <netdb.h>
5165 #ifdef NI_NOFQDN
5166 yes
5167 #endif
5168 _ACEOF
5169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5170 $EGREP "yes" >/dev/null 2>&1; then :
5171 ac_cv_namereqd=yes
5172 else
5173 ac_cv_namereqd=no
5174 fi
5175 rm -f conftest*
5176
5177 fi
5178
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namereqd" >&5
5180 $as_echo "$ac_cv_namereqd" >&6; }
5181 if test $ac_cv_namereqd != yes; then
5182 $as_echo "#define NEED_ADDRINFO_H 1" >>confdefs.h
5183
5184 fi
5185
5186 if test "$ac_cv_namereqd" = no; then
5187 missing_includes=yes
5188 fi
5189
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
5192 $as_echo_n "checking for sockaddr_storage... " >&6; }
5193 if ${ac_cv_sa_storage+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198
5199 # include <sys/types.h>
5200 # include <sys/socket.h>
5201 int
5202 main ()
5203 {
5204 struct sockaddr_storage s
5205 ;
5206 return 0;
5207 }
5208 _ACEOF
5209 if ac_fn_c_try_compile "$LINENO"; then :
5210 ac_cv_sa_storage=yes
5211 else
5212 ac_cv_sa_storage=no
5213 fi
5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 fi
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sa_storage" >&5
5218 $as_echo "$ac_cv_sa_storage" >&6; }
5219 if test $ac_cv_sa_storage = yes; then
5220 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
5221
5222 fi
5223
5224 if test "$ac_cv_sa_storage" = no; then
5225 missing_includes=yes
5226 fi
5227
5228 ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
5229 if test "x$ac_cv_func_vfprintf" = xyes; then :
5230 $as_echo "#define HAVE_VFPRINTF 1" >>confdefs.h
5231
5232 else
5233 case " $LIBOBJS " in
5234 *" vfprintf.$ac_objext "* ) ;;
5235 *) LIBOBJS="$LIBOBJS vfprintf.$ac_objext"
5236 ;;
5237 esac
5238
5239 fi
5240
5241 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
5242 if test "x$ac_cv_func_strcasecmp" = xyes; then :
5243 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
5244
5245 else
5246 case " $LIBOBJS " in
5247 *" strcasecmp.$ac_objext "* ) ;;
5248 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
5249 ;;
5250 esac
5251
5252 fi
5253
5254 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
5255 if test "x$ac_cv_func_strlcat" = xyes; then :
5256 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
5257
5258 else
5259 case " $LIBOBJS " in
5260 *" strlcat.$ac_objext "* ) ;;
5261 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
5262 ;;
5263 esac
5264
5265 fi
5266
5267 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5268 if test "x$ac_cv_func_strlcpy" = xyes; then :
5269 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
5270
5271 else
5272 case " $LIBOBJS " in
5273 *" strlcpy.$ac_objext "* ) ;;
5274 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
5275 ;;
5276 esac
5277
5278 fi
5279
5280 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
5281 if test "x$ac_cv_func_strdup" = xyes; then :
5282 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
5283
5284 else
5285 case " $LIBOBJS " in
5286 *" strdup.$ac_objext "* ) ;;
5287 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
5288 ;;
5289 esac
5290
5291 fi
5292
5293 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
5294 if test "x$ac_cv_func_strsep" = xyes; then :
5295 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
5296
5297 else
5298 case " $LIBOBJS " in
5299 *" strsep.$ac_objext "* ) ;;
5300 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
5301 ;;
5302 esac
5303
5304 fi
5305
5306
5307 for ac_func in fork vfork strftime
5308 do :
5309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5310 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5311 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5312 cat >>confdefs.h <<_ACEOF
5313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5314 _ACEOF
5315
5316 fi
5317 done
5318
5319 for ac_func in setlinebuf alarm
5320 do :
5321 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5322 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5323 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5324 cat >>confdefs.h <<_ACEOF
5325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5326 _ACEOF
5327
5328 fi
5329 done
5330
5331
5332 needsnprintf=no
5333 for ac_func in vsnprintf snprintf
5334 do :
5335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5336 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5337 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5338 cat >>confdefs.h <<_ACEOF
5339 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5340 _ACEOF
5341
5342 else
5343 needsnprintf=yes
5344 fi
5345 done
5346
5347 if test $needsnprintf = yes; then
5348 case " $LIBOBJS " in
5349 *" snprintf.$ac_objext "* ) ;;
5350 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5351 ;;
5352 esac
5353
5354 fi
5355
5356
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5358 $as_echo_n "checking return type of signal handlers... " >&6; }
5359 if ${ac_cv_type_signal+:} false; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 #include <sys/types.h>
5365 #include <signal.h>
5366
5367 int
5368 main ()
5369 {
5370 return *(signal (0, 0)) (0) == 1;
5371 ;
5372 return 0;
5373 }
5374 _ACEOF
5375 if ac_fn_c_try_compile "$LINENO"; then :
5376 ac_cv_type_signal=int
5377 else
5378 ac_cv_type_signal=void
5379 fi
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 fi
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5383 $as_echo "$ac_cv_type_signal" >&6; }
5384
5385 cat >>confdefs.h <<_ACEOF
5386 #define RETSIGTYPE $ac_cv_type_signal
5387 _ACEOF
5388
5389
5390 if test "$ac_cv_type_signal" = void ; then
5391
5392 $as_echo "#define RETSIGVAL /**/" >>confdefs.h
5393
5394 else
5395
5396 $as_echo "#define RETSIGVAL (0)" >>confdefs.h
5397
5398 fi
5399 case "$host_os" in
5400
5401 irix*)
5402
5403 $as_echo "#define _BSD_SIGNALS 1" >>confdefs.h
5404
5405 ;;
5406
5407 *)
5408 for ac_func in sigaction
5409 do :
5410 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5411 if test "x$ac_cv_func_sigaction" = xyes; then :
5412 cat >>confdefs.h <<_ACEOF
5413 #define HAVE_SIGACTION 1
5414 _ACEOF
5415
5416 fi
5417 done
5418
5419 if test $ac_cv_func_sigaction = no ; then
5420 for ac_func in sigset
5421 do :
5422 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5423 if test "x$ac_cv_func_sigset" = xyes; then :
5424 cat >>confdefs.h <<_ACEOF
5425 #define HAVE_SIGSET 1
5426 _ACEOF
5427
5428 fi
5429 done
5430
5431 fi
5432 ;;
5433 esac
5434
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dnet_htoa" >&5
5436 $as_echo_n "checking for library containing dnet_htoa... " >&6; }
5437 if ${ac_cv_search_dnet_htoa+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 ac_func_search_save_LIBS=$LIBS
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443
5444 /* Override any GCC internal prototype to avoid an error.
5445 Use char because int might match the return type of a GCC
5446 builtin and then its argument prototype would still apply. */
5447 #ifdef __cplusplus
5448 extern "C"
5449 #endif
5450 char dnet_htoa ();
5451 int
5452 main ()
5453 {
5454 return dnet_htoa ();
5455 ;
5456 return 0;
5457 }
5458 _ACEOF
5459 for ac_lib in '' dnet; do
5460 if test -z "$ac_lib"; then
5461 ac_res="none required"
5462 else
5463 ac_res=-l$ac_lib
5464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5465 fi
5466 if ac_fn_c_try_link "$LINENO"; then :
5467 ac_cv_search_dnet_htoa=$ac_res
5468 fi
5469 rm -f core conftest.err conftest.$ac_objext \
5470 conftest$ac_exeext
5471 if ${ac_cv_search_dnet_htoa+:} false; then :
5472 break
5473 fi
5474 done
5475 if ${ac_cv_search_dnet_htoa+:} false; then :
5476
5477 else
5478 ac_cv_search_dnet_htoa=no
5479 fi
5480 rm conftest.$ac_ext
5481 LIBS=$ac_func_search_save_LIBS
5482 fi
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dnet_htoa" >&5
5484 $as_echo "$ac_cv_search_dnet_htoa" >&6; }
5485 ac_res=$ac_cv_search_dnet_htoa
5486 if test "$ac_res" != no; then :
5487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5488 $as_echo "#define HAVE_DNET_HTOA 1" >>confdefs.h
5489
5490 fi
5491
5492
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrpc" >&5
5494 $as_echo_n "checking for main in -lrpc... " >&6; }
5495 if ${ac_cv_lib_rpc_main+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 ac_check_lib_save_LIBS=$LIBS
5499 LIBS="-lrpc $LIBS"
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502
5503
5504 int
5505 main ()
5506 {
5507 return main ();
5508 ;
5509 return 0;
5510 }
5511 _ACEOF
5512 if ac_fn_c_try_link "$LINENO"; then :
5513 ac_cv_lib_rpc_main=yes
5514 else
5515 ac_cv_lib_rpc_main=no
5516 fi
5517 rm -f core conftest.err conftest.$ac_objext \
5518 conftest$ac_exeext conftest.$ac_ext
5519 LIBS=$ac_check_lib_save_LIBS
5520 fi
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpc_main" >&5
5522 $as_echo "$ac_cv_lib_rpc_main" >&6; }
5523 if test "x$ac_cv_lib_rpc_main" = xyes; then :
5524 cat >>confdefs.h <<_ACEOF
5525 #define HAVE_LIBRPC 1
5526 _ACEOF
5527
5528 LIBS="-lrpc $LIBS"
5529
5530 fi
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrpcbynumber" >&5
5533 $as_echo_n "checking for library containing getrpcbynumber... " >&6; }
5534 if ${ac_cv_search_getrpcbynumber+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 ac_func_search_save_LIBS=$LIBS
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540
5541 /* Override any GCC internal prototype to avoid an error.
5542 Use char because int might match the return type of a GCC
5543 builtin and then its argument prototype would still apply. */
5544 #ifdef __cplusplus
5545 extern "C"
5546 #endif
5547 char getrpcbynumber ();
5548 int
5549 main ()
5550 {
5551 return getrpcbynumber ();
5552 ;
5553 return 0;
5554 }
5555 _ACEOF
5556 for ac_lib in '' nsl; do
5557 if test -z "$ac_lib"; then
5558 ac_res="none required"
5559 else
5560 ac_res=-l$ac_lib
5561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5562 fi
5563 if ac_fn_c_try_link "$LINENO"; then :
5564 ac_cv_search_getrpcbynumber=$ac_res
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext \
5567 conftest$ac_exeext
5568 if ${ac_cv_search_getrpcbynumber+:} false; then :
5569 break
5570 fi
5571 done
5572 if ${ac_cv_search_getrpcbynumber+:} false; then :
5573
5574 else
5575 ac_cv_search_getrpcbynumber=no
5576 fi
5577 rm conftest.$ac_ext
5578 LIBS=$ac_func_search_save_LIBS
5579 fi
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrpcbynumber" >&5
5581 $as_echo "$ac_cv_search_getrpcbynumber" >&6; }
5582 ac_res=$ac_cv_search_getrpcbynumber
5583 if test "$ac_res" != no; then :
5584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5585 $as_echo "#define HAVE_GETRPCBYNUMBER 1" >>confdefs.h
5586
5587 fi
5588
5589
5590
5591
5592 # Most operating systems have gethostbyname() in the default searched
5593 # libraries (i.e. libc):
5594 # Some OSes (eg. Solaris) place it in libnsl
5595 # Some strange OSes (SINIX) have it in libsocket:
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5597 $as_echo_n "checking for library containing gethostbyname... " >&6; }
5598 if ${ac_cv_search_gethostbyname+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 ac_func_search_save_LIBS=$LIBS
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604
5605 /* Override any GCC internal prototype to avoid an error.
5606 Use char because int might match the return type of a GCC
5607 builtin and then its argument prototype would still apply. */
5608 #ifdef __cplusplus
5609 extern "C"
5610 #endif
5611 char gethostbyname ();
5612 int
5613 main ()
5614 {
5615 return gethostbyname ();
5616 ;
5617 return 0;
5618 }
5619 _ACEOF
5620 for ac_lib in '' nsl socket resolv; do
5621 if test -z "$ac_lib"; then
5622 ac_res="none required"
5623 else
5624 ac_res=-l$ac_lib
5625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5626 fi
5627 if ac_fn_c_try_link "$LINENO"; then :
5628 ac_cv_search_gethostbyname=$ac_res
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext \
5631 conftest$ac_exeext
5632 if ${ac_cv_search_gethostbyname+:} false; then :
5633 break
5634 fi
5635 done
5636 if ${ac_cv_search_gethostbyname+:} false; then :
5637
5638 else
5639 ac_cv_search_gethostbyname=no
5640 fi
5641 rm conftest.$ac_ext
5642 LIBS=$ac_func_search_save_LIBS
5643 fi
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5645 $as_echo "$ac_cv_search_gethostbyname" >&6; }
5646 ac_res=$ac_cv_search_gethostbyname
5647 if test "$ac_res" != no; then :
5648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5649
5650 fi
5651
5652 # Unfortunately libsocket sometimes depends on libnsl and
5653 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
5654 if test "$ac_cv_search_gethostbyname" = "no"
5655 then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
5657 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
5658 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 ac_check_lib_save_LIBS=$LIBS
5662 LIBS="-lsocket -lnsl $LIBS"
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5665
5666 /* Override any GCC internal prototype to avoid an error.
5667 Use char because int might match the return type of a GCC
5668 builtin and then its argument prototype would still apply. */
5669 #ifdef __cplusplus
5670 extern "C"
5671 #endif
5672 char gethostbyname ();
5673 int
5674 main ()
5675 {
5676 return gethostbyname ();
5677 ;
5678 return 0;
5679 }
5680 _ACEOF
5681 if ac_fn_c_try_link "$LINENO"; then :
5682 ac_cv_lib_socket_gethostbyname=yes
5683 else
5684 ac_cv_lib_socket_gethostbyname=no
5685 fi
5686 rm -f core conftest.err conftest.$ac_objext \
5687 conftest$ac_exeext conftest.$ac_ext
5688 LIBS=$ac_check_lib_save_LIBS
5689 fi
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
5691 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
5692 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
5693 LIBS="-lsocket -lnsl $LIBS"
5694 fi
5695
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5698 $as_echo_n "checking for library containing socket... " >&6; }
5699 if ${ac_cv_search_socket+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 ac_func_search_save_LIBS=$LIBS
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5705
5706 /* Override any GCC internal prototype to avoid an error.
5707 Use char because int might match the return type of a GCC
5708 builtin and then its argument prototype would still apply. */
5709 #ifdef __cplusplus
5710 extern "C"
5711 #endif
5712 char socket ();
5713 int
5714 main ()
5715 {
5716 return socket ();
5717 ;
5718 return 0;
5719 }
5720 _ACEOF
5721 for ac_lib in '' socket; do
5722 if test -z "$ac_lib"; then
5723 ac_res="none required"
5724 else
5725 ac_res=-l$ac_lib
5726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5727 fi
5728 if ac_fn_c_try_link "$LINENO"; then :
5729 ac_cv_search_socket=$ac_res
5730 fi
5731 rm -f core conftest.err conftest.$ac_objext \
5732 conftest$ac_exeext
5733 if ${ac_cv_search_socket+:} false; then :
5734 break
5735 fi
5736 done
5737 if ${ac_cv_search_socket+:} false; then :
5738
5739 else
5740 ac_cv_search_socket=no
5741 fi
5742 rm conftest.$ac_ext
5743 LIBS=$ac_func_search_save_LIBS
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5746 $as_echo "$ac_cv_search_socket" >&6; }
5747 ac_res=$ac_cv_search_socket
5748 if test "$ac_res" != no; then :
5749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5750
5751 else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5753 $as_echo_n "checking for socket in -lsocket... " >&6; }
5754 if ${ac_cv_lib_socket_socket+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 ac_check_lib_save_LIBS=$LIBS
5758 LIBS="-lsocket -lnsl $LIBS"
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761
5762 /* Override any GCC internal prototype to avoid an error.
5763 Use char because int might match the return type of a GCC
5764 builtin and then its argument prototype would still apply. */
5765 #ifdef __cplusplus
5766 extern "C"
5767 #endif
5768 char socket ();
5769 int
5770 main ()
5771 {
5772 return socket ();
5773 ;
5774 return 0;
5775 }
5776 _ACEOF
5777 if ac_fn_c_try_link "$LINENO"; then :
5778 ac_cv_lib_socket_socket=yes
5779 else
5780 ac_cv_lib_socket_socket=no
5781 fi
5782 rm -f core conftest.err conftest.$ac_objext \
5783 conftest$ac_exeext conftest.$ac_ext
5784 LIBS=$ac_check_lib_save_LIBS
5785 fi
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5787 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5788 if test "x$ac_cv_lib_socket_socket" = xyes; then :
5789 LIBS="-lsocket -lnsl $LIBS"
5790 fi
5791
5792 fi
5793
5794 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5796 $as_echo_n "checking for library containing putmsg... " >&6; }
5797 if ${ac_cv_search_putmsg+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 ac_func_search_save_LIBS=$LIBS
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803
5804 /* Override any GCC internal prototype to avoid an error.
5805 Use char because int might match the return type of a GCC
5806 builtin and then its argument prototype would still apply. */
5807 #ifdef __cplusplus
5808 extern "C"
5809 #endif
5810 char putmsg ();
5811 int
5812 main ()
5813 {
5814 return putmsg ();
5815 ;
5816 return 0;
5817 }
5818 _ACEOF
5819 for ac_lib in '' str; do
5820 if test -z "$ac_lib"; then
5821 ac_res="none required"
5822 else
5823 ac_res=-l$ac_lib
5824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5825 fi
5826 if ac_fn_c_try_link "$LINENO"; then :
5827 ac_cv_search_putmsg=$ac_res
5828 fi
5829 rm -f core conftest.err conftest.$ac_objext \
5830 conftest$ac_exeext
5831 if ${ac_cv_search_putmsg+:} false; then :
5832 break
5833 fi
5834 done
5835 if ${ac_cv_search_putmsg+:} false; then :
5836
5837 else
5838 ac_cv_search_putmsg=no
5839 fi
5840 rm conftest.$ac_ext
5841 LIBS=$ac_func_search_save_LIBS
5842 fi
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5844 $as_echo "$ac_cv_search_putmsg" >&6; }
5845 ac_res=$ac_cv_search_putmsg
5846 if test "$ac_res" != no; then :
5847 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5848
5849 fi
5850
5851
5852
5853 LBL_LIBS="$LIBS"
5854 pfopen=/usr/examples/packetfilter/pfopen.c
5855 if test -f $pfopen ; then
5856 for ac_func in pfopen
5857 do :
5858 ac_fn_c_check_func "$LINENO" "pfopen" "ac_cv_func_pfopen"
5859 if test "x$ac_cv_func_pfopen" = xyes; then :
5860 cat >>confdefs.h <<_ACEOF
5861 #define HAVE_PFOPEN 1
5862 _ACEOF
5863
5864 fi
5865 done
5866
5867 if test $ac_cv_func_pfopen = "no" ; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $pfopen" >&5
5869 $as_echo "Using $pfopen" >&6; }
5870 LIBS="$LIBS $pfopen"
5871 fi
5872 fi
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local pcap library" >&5
5874 $as_echo_n "checking for local pcap library... " >&6; }
5875 libpcap=FAIL
5876 lastdir=FAIL
5877 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
5878 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
5879 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
5880 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
5881 sed -e 's/-PRE-GIT$//' `
5882 if test $lastdir = $basedir ; then
5883 continue;
5884 fi
5885 lastdir=$dir
5886 if test -r $dir/libpcap.a ; then
5887 libpcap=$dir/libpcap.a
5888 d=$dir
5889 fi
5890 done
5891 if test $libpcap = FAIL ; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5893 $as_echo "not found" >&6; }
5894
5895 #
5896 # Look for pcap-config.
5897 #
5898 if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
5900 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if ${ac_cv_path_PCAP_CONFIG+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 case $PCAP_CONFIG in
5907 [\\/]* | ?:[\\/]*)
5908 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
5909 ;;
5910 *)
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5921 fi
5922 done
5923 done
5924 IFS=$as_save_IFS
5925
5926 ;;
5927 esac
5928 fi
5929 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
5930 if test -n "$PCAP_CONFIG"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
5932 $as_echo "$PCAP_CONFIG" >&6; }
5933 else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938
5939 fi
5940 if test -z "$ac_cv_path_PCAP_CONFIG"; then
5941 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
5942 # Extract the first word of "pcap-config", so it can be a program name with args.
5943 set dummy pcap-config; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_path_ac_pt_PCAP_CONFIG+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 case $ac_pt_PCAP_CONFIG in
5950 [\\/]* | ?:[\\/]*)
5951 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
5952 ;;
5953 *)
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5964 fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969 ;;
5970 esac
5971 fi
5972 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
5973 if test -n "$ac_pt_PCAP_CONFIG"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
5975 $as_echo "$ac_pt_PCAP_CONFIG" >&6; }
5976 else
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5979 fi
5980
5981 if test "x$ac_pt_PCAP_CONFIG" = x; then
5982 PCAP_CONFIG=""
5983 else
5984 case $cross_compiling:$ac_tool_warned in
5985 yes:)
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5988 ac_tool_warned=yes ;;
5989 esac
5990 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
5991 fi
5992 else
5993 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
5994 fi
5995
5996 if test -n "$PCAP_CONFIG" ; then
5997 #
5998 # Found - use it to get the include flags for
5999 # libpcap and the flags to link with libpcap.
6000 #
6001 # Please read section 11.6 "Shell Substitutions"
6002 # in the autoconf manual before doing anything
6003 # to this that involves quoting. Especially note
6004 # the statement "There is just no portable way to use
6005 # double-quoted strings inside double-quoted back-quoted
6006 # expressions (pfew!)."
6007 #
6008 cflags=`"$PCAP_CONFIG" --cflags`
6009 V_INCLS="$cflags $V_INCLS"
6010 libpcap=`"$PCAP_CONFIG" --libs`
6011 else
6012 #
6013 # Not found; look for pcap.
6014 #
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcap" >&5
6016 $as_echo_n "checking for main in -lpcap... " >&6; }
6017 if ${ac_cv_lib_pcap_main+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 ac_check_lib_save_LIBS=$LIBS
6021 LIBS="-lpcap $LIBS"
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024
6025
6026 int
6027 main ()
6028 {
6029 return main ();
6030 ;
6031 return 0;
6032 }
6033 _ACEOF
6034 if ac_fn_c_try_link "$LINENO"; then :
6035 ac_cv_lib_pcap_main=yes
6036 else
6037 ac_cv_lib_pcap_main=no
6038 fi
6039 rm -f core conftest.err conftest.$ac_objext \
6040 conftest$ac_exeext conftest.$ac_ext
6041 LIBS=$ac_check_lib_save_LIBS
6042 fi
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_main" >&5
6044 $as_echo "$ac_cv_lib_pcap_main" >&6; }
6045 if test "x$ac_cv_lib_pcap_main" = xyes; then :
6046 libpcap="-lpcap"
6047 fi
6048
6049 if test $libpcap = FAIL ; then
6050 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
6051 fi
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extraneous pcap header directories" >&5
6053 $as_echo_n "checking for extraneous pcap header directories... " >&6; }
6054 if test \( ! -r /usr/local/include/pcap.h \) -a \
6055 \( ! -r /usr/include/pcap.h \); then
6056 if test -r /usr/local/include/pcap/pcap.h; then
6057 d="/usr/local/include/pcap"
6058 elif test -r /usr/include/pcap/pcap.h; then
6059 d="/usr/include/pcap"
6060 fi
6061 fi
6062 if test -z "$d" ; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6064 $as_echo "not found" >&6; }
6065 else
6066 V_INCLS="-I$d $V_INCLS"
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found -- -I$d added" >&5
6068 $as_echo "found -- -I$d added" >&6; }
6069 fi
6070 fi
6071 else
6072 V_PCAPDEP=$libpcap
6073 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
6074 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
6075 if test -r $d/pcap.h; then
6076 V_INCLS="-I$d $V_INCLS"
6077 elif test -r $places/pcap.h; then
6078 V_INCLS="-I$places $V_INCLS"
6079 else
6080 as_fn_error see INSTALL "cannot find pcap.h" "$LINENO" 5
6081 fi
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpcap" >&5
6083 $as_echo "$libpcap" >&6; }
6084 # Extract the first word of "pcap-config", so it can be a program name with args.
6085 set dummy pcap-config; ac_word=$2
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 $as_echo_n "checking for $ac_word... " >&6; }
6088 if ${ac_cv_path_PCAP_CONFIG+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 case $PCAP_CONFIG in
6092 [\\/]* | ?:[\\/]*)
6093 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
6094 ;;
6095 *)
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $d
6098 do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6103 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6106 fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111 ;;
6112 esac
6113 fi
6114 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
6115 if test -n "$PCAP_CONFIG"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
6117 $as_echo "$PCAP_CONFIG" >&6; }
6118 else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 fi
6122
6123
6124 if test -n "$PCAP_CONFIG"; then
6125 #
6126 # The libpcap directory has a pcap-config script.
6127 # Use it to get any additioal libraries needed
6128 # to link with the libpcap archive library in
6129 # that directory.
6130 #
6131 # Please read section 11.6 "Shell Substitutions"
6132 # in the autoconf manual before doing anything
6133 # to this that involves quoting. Especially note
6134 # the statement "There is just no portable way to use
6135 # double-quoted strings inside double-quoted back-quoted
6136 # expressions (pfew!)."
6137 #
6138 additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
6139 libpcap="$libpcap $additional_libs"
6140 fi
6141 fi
6142 LIBS="$libpcap $LIBS"
6143 if ! test -n "$PCAP_CONFIG" ; then
6144 #
6145 # We don't have pcap-config; find out any additional link flags
6146 # we need. (If we have pcap-config, we assume it tells us what
6147 # we need.)
6148 #
6149 case "$host_os" in
6150
6151 aix*)
6152 #
6153 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
6154 # present, as we use the STREAMS routines.
6155 #
6156 # (XXX - true only if we're linking with a static libpcap?)
6157 #
6158 pseexe="/lib/pse.exp"
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
6160 $as_echo_n "checking for $pseexe... " >&6; }
6161 if test -f $pseexe ; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6163 $as_echo "yes" >&6; }
6164 LIBS="$LIBS -I:$pseexe"
6165 fi
6166
6167 #
6168 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
6169 # we use them to load the BPF module.
6170 #
6171 # (XXX - true only if we're linking with a static libpcap?)
6172 #
6173 LIBS="$LIBS -lodm -lcfg"
6174 ;;
6175 esac
6176 fi
6177
6178 ac_fn_c_check_func "$LINENO" "pcap_loop" "ac_cv_func_pcap_loop"
6179 if test "x$ac_cv_func_pcap_loop" = xyes; then :
6180
6181 else
6182
6183 as_fn_error $? "Report this to tcpdump-workers@lists.tcpdump.org, and include the
6184 config.log file in your report" "$LINENO" 5
6185
6186 fi
6187
6188
6189 ac_fn_c_check_func "$LINENO" "pcap_list_datalinks" "ac_cv_func_pcap_list_datalinks"
6190 if test "x$ac_cv_func_pcap_list_datalinks" = xyes; then :
6191 $as_echo "#define HAVE_PCAP_LIST_DATALINKS 1" >>confdefs.h
6192
6193 else
6194
6195 case " $LIBOBJS " in
6196 *" datalinks.$ac_objext "* ) ;;
6197 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
6198 ;;
6199 esac
6200
6201
6202 fi
6203
6204 ac_fn_c_check_func "$LINENO" "pcap_set_datalink" "ac_cv_func_pcap_set_datalink"
6205 if test "x$ac_cv_func_pcap_set_datalink" = xyes; then :
6206 $as_echo "#define HAVE_PCAP_SET_DATALINK 1" >>confdefs.h
6207
6208 fi
6209
6210 ac_fn_c_check_func "$LINENO" "pcap_datalink_name_to_val" "ac_cv_func_pcap_datalink_name_to_val"
6211 if test "x$ac_cv_func_pcap_datalink_name_to_val" = xyes; then :
6212
6213 $as_echo "#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1" >>confdefs.h
6214
6215 ac_fn_c_check_func "$LINENO" "pcap_datalink_val_to_description" "ac_cv_func_pcap_datalink_val_to_description"
6216 if test "x$ac_cv_func_pcap_datalink_val_to_description" = xyes; then :
6217 $as_echo "#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1" >>confdefs.h
6218
6219 else
6220
6221 case " $LIBOBJS " in
6222 *" dlnames.$ac_objext "* ) ;;
6223 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
6224 ;;
6225 esac
6226
6227
6228 fi
6229
6230
6231 else
6232
6233 case " $LIBOBJS " in
6234 *" dlnames.$ac_objext "* ) ;;
6235 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
6236 ;;
6237 esac
6238
6239
6240 fi
6241
6242
6243 for ac_func in pcap_breakloop
6244 do :
6245 ac_fn_c_check_func "$LINENO" "pcap_breakloop" "ac_cv_func_pcap_breakloop"
6246 if test "x$ac_cv_func_pcap_breakloop" = xyes; then :
6247 cat >>confdefs.h <<_ACEOF
6248 #define HAVE_PCAP_BREAKLOOP 1
6249 _ACEOF
6250
6251 fi
6252 done
6253
6254
6255 ac_fn_c_check_func "$LINENO" "pcap_dump_ftell" "ac_cv_func_pcap_dump_ftell"
6256 if test "x$ac_cv_func_pcap_dump_ftell" = xyes; then :
6257 $as_echo "#define HAVE_PCAP_DUMP_FTELL 1" >>confdefs.h
6258
6259 else
6260
6261 case " $LIBOBJS " in
6262 *" pcap_dump_ftell.$ac_objext "* ) ;;
6263 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
6264 ;;
6265 esac
6266
6267
6268 fi
6269
6270
6271
6272 #
6273 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
6274 # libraries (e.g., "-lsocket -lnsl" on Solaris).
6275 #
6276 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
6277 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
6278 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
6279 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
6280 # it does not ship with a libc symbol "inet_ntop()", it ships with
6281 # "_inet_ntop()", and has a #define macro in one of the system headers
6282 # to rename it.
6283 #
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5
6285 $as_echo_n "checking for inet_ntop... " >&6; }
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 #include <sys/types.h>
6289 #include <sys/socket.h>
6290 #include <netinet/in.h>
6291 #include <arpa/inet.h>
6292 int
6293 main ()
6294 {
6295 char src[4], dst[128];
6296 inet_ntop(AF_INET, src, dst, sizeof(dst));
6297 ;
6298 return 0;
6299 }
6300 _ACEOF
6301 if ac_fn_c_try_link "$LINENO"; then :
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6303 $as_echo "yes" >&6; }
6304 else
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6307 case " $LIBOBJS " in
6308 *" inet_ntop.$ac_objext "* ) ;;
6309 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
6310 ;;
6311 esac
6312
6313 fi
6314 rm -f core conftest.err conftest.$ac_objext \
6315 conftest$ac_exeext conftest.$ac_ext
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
6317 $as_echo_n "checking for inet_pton... " >&6; }
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6320 #include <sys/types.h>
6321 #include <sys/socket.h>
6322 #include <netinet/in.h>
6323 #include <arpa/inet.h>
6324 int
6325 main ()
6326 {
6327 char src[128], dst[4];
6328 inet_pton(AF_INET, src, dst);
6329 ;
6330 return 0;
6331 }
6332 _ACEOF
6333 if ac_fn_c_try_link "$LINENO"; then :
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6335 $as_echo "yes" >&6; }
6336 else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 case " $LIBOBJS " in
6340 *" inet_pton.$ac_objext "* ) ;;
6341 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
6342 ;;
6343 esac
6344
6345 fi
6346 rm -f core conftest.err conftest.$ac_objext \
6347 conftest$ac_exeext conftest.$ac_ext
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
6349 $as_echo_n "checking for inet_aton... " >&6; }
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 #include <sys/types.h>
6353 #include <netinet/in.h>
6354 #include <arpa/inet.h>
6355 int
6356 main ()
6357 {
6358 char src[128];
6359 struct in_addr dst;
6360 inet_aton(src, &dst);
6361 ;
6362 return 0;
6363 }
6364 _ACEOF
6365 if ac_fn_c_try_link "$LINENO"; then :
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6367 $as_echo "yes" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 case " $LIBOBJS " in
6372 *" inet_aton.$ac_objext "* ) ;;
6373 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
6374 ;;
6375 esac
6376
6377 fi
6378 rm -f core conftest.err conftest.$ac_objext \
6379 conftest$ac_exeext conftest.$ac_ext
6380
6381 #
6382 # Check for these after AC_LBL_LIBPCAP, for the same reason.
6383 #
6384 # You are in a twisty little maze of UN*Xes, all different.
6385 # Some might not have ether_ntohost().
6386 # Some might have it, but not declare it in any header file.
6387 # Some might have it, but declare it in <netinet/if_ether.h>.
6388 # Some might have it, but declare it in <netinet/ether.h>
6389 # (And some might have it but document it as something declared in
6390 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6391 #
6392 # Before you is a C compiler.
6393 #
6394 for ac_func in ether_ntohost
6395 do :
6396 ac_fn_c_check_func "$LINENO" "ether_ntohost" "ac_cv_func_ether_ntohost"
6397 if test "x$ac_cv_func_ether_ntohost" = xyes; then :
6398 cat >>confdefs.h <<_ACEOF
6399 #define HAVE_ETHER_NTOHOST 1
6400 _ACEOF
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy ether_ntohost" >&5
6403 $as_echo_n "checking for buggy ether_ntohost... " >&6; }
6404 if ${ac_cv_buggy_ether_ntohost+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407
6408 if test "$cross_compiling" = yes; then :
6409 ac_cv_buggy_ether_ntohost="not while cross-compiling"
6410 else
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6413
6414 #include <netdb.h>
6415 #include <sys/types.h>
6416 #include <sys/param.h>
6417 #include <sys/socket.h>
6418
6419 int
6420 main(int argc, char **argv)
6421 {
6422 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
6423 char name[MAXHOSTNAMELEN];
6424
6425 ether_ntohost(name, (struct ether_addr *)ea);
6426 exit(0);
6427 }
6428
6429 _ACEOF
6430 if ac_fn_c_try_run "$LINENO"; then :
6431 ac_cv_buggy_ether_ntohost=no
6432 else
6433 ac_cv_buggy_ether_ntohost=yes
6434 fi
6435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6436 conftest.$ac_objext conftest.beam conftest.$ac_ext
6437 fi
6438
6439 fi
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_ether_ntohost" >&5
6441 $as_echo "$ac_cv_buggy_ether_ntohost" >&6; }
6442 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
6443 $as_echo "#define USE_ETHER_NTOHOST 1" >>confdefs.h
6444
6445 fi
6446
6447 fi
6448 done
6449
6450 if test "$ac_cv_func_ether_ntohost" = yes -a \
6451 "$ac_cv_buggy_ether_ntohost" = "no"; then
6452 #
6453 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
6454 #
6455 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6456 #
6457 # Yes. Does it declare ether_ntohost()?
6458 #
6459 ac_fn_c_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
6460 #include <sys/types.h>
6461 #include <sys/socket.h>
6462 #include <netinet/in.h>
6463 #include <arpa/inet.h>
6464 struct mbuf;
6465 struct rtentry;
6466 #include <net/if.h>
6467 #include <netinet/if_ether.h>
6468
6469 "
6470 if test "x$ac_cv_have_decl_ether_ntohost" = xyes; then :
6471
6472
6473 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
6474
6475
6476 fi
6477
6478 fi
6479 #
6480 # Did that succeed?
6481 #
6482 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
6483 #
6484 # No, how about <netinet/ether.h>, as on Linux?
6485 #
6486 for ac_header in netinet/ether.h
6487 do :
6488 ac_fn_c_check_header_mongrel "$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default"
6489 if test "x$ac_cv_header_netinet_ether_h" = xyes; then :
6490 cat >>confdefs.h <<_ACEOF
6491 #define HAVE_NETINET_ETHER_H 1
6492 _ACEOF
6493
6494 fi
6495
6496 done
6497
6498 if test "$ac_cv_header_netinet_ether_h" = yes; then
6499 #
6500 # We have it - does it declare ether_ntohost()?
6501 # Unset ac_cv_have_decl_ether_ntohost so we don't
6502 # treat the previous failure as a cached value and
6503 # suppress the next test.
6504 #
6505 unset ac_cv_have_decl_ether_ntohost
6506 ac_fn_c_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
6507 #include <netinet/ether.h>
6508
6509 "
6510 if test "x$ac_cv_have_decl_ether_ntohost" = xyes; then :
6511
6512
6513 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
6514
6515
6516 fi
6517
6518 fi
6519 fi
6520 #
6521 # Is ether_ntohost() declared?
6522 #
6523 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
6524 #
6525 # No, we'll have to declare it ourselves.
6526 # Do we have "struct ether_addr"?
6527 #
6528 ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
6529 #include <sys/types.h>
6530 #include <sys/socket.h>
6531 #include <netinet/in.h>
6532 #include <arpa/inet.h>
6533 struct mbuf;
6534 struct rtentry;
6535 #include <net/if.h>
6536 #include <netinet/if_ether.h>
6537
6538 "
6539 if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
6540
6541 cat >>confdefs.h <<_ACEOF
6542 #define HAVE_STRUCT_ETHER_ADDR 1
6543 _ACEOF
6544
6545
6546 fi
6547
6548
6549 $as_echo "#define HAVE_DECL_ETHER_NTOHOST 0" >>confdefs.h
6550
6551 else
6552
6553 $as_echo "#define HAVE_DECL_ETHER_NTOHOST 1" >>confdefs.h
6554
6555 fi
6556 fi
6557
6558 # libdlpi is needed for Solaris 11 and later.
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
6560 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
6561 if ${ac_cv_lib_dlpi_dlpi_walk+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 ac_check_lib_save_LIBS=$LIBS
6565 LIBS="-ldlpi -L/lib $LIBS"
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568
6569 /* Override any GCC internal prototype to avoid an error.
6570 Use char because int might match the return type of a GCC
6571 builtin and then its argument prototype would still apply. */
6572 #ifdef __cplusplus
6573 extern "C"
6574 #endif
6575 char dlpi_walk ();
6576 int
6577 main ()
6578 {
6579 return dlpi_walk ();
6580 ;
6581 return 0;
6582 }
6583 _ACEOF
6584 if ac_fn_c_try_link "$LINENO"; then :
6585 ac_cv_lib_dlpi_dlpi_walk=yes
6586 else
6587 ac_cv_lib_dlpi_dlpi_walk=no
6588 fi
6589 rm -f core conftest.err conftest.$ac_objext \
6590 conftest$ac_exeext conftest.$ac_ext
6591 LIBS=$ac_check_lib_save_LIBS
6592 fi
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6594 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6595 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then :
6596 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
6597 fi
6598
6599
6600
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has sa_len member" >&5
6602 $as_echo_n "checking if sockaddr struct has sa_len member... " >&6; }
6603 if ${ac_cv_sockaddr_has_sa_len+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608
6609 # include <sys/types.h>
6610 # include <sys/socket.h>
6611 int
6612 main ()
6613 {
6614 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 if ac_fn_c_try_compile "$LINENO"; then :
6620 ac_cv_sockaddr_has_sa_len=yes
6621 else
6622 ac_cv_sockaddr_has_sa_len=no
6623 fi
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 fi
6626
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_has_sa_len" >&5
6628 $as_echo "$ac_cv_sockaddr_has_sa_len" >&6; }
6629 if test $ac_cv_sockaddr_has_sa_len = yes ; then
6630 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
6631
6632 fi
6633
6634 if test "$ac_cv_sockaddr_has_sa_len" = no; then
6635 missing_includes=yes
6636 fi
6637
6638 #
6639 # Do we have the new open API? Check for pcap_create, and assume that,
6640 # if we do, we also have pcap_activate() and the other new routines
6641 # introduced in libpcap 1.0.0.
6642 #
6643 for ac_func in pcap_create
6644 do :
6645 ac_fn_c_check_func "$LINENO" "pcap_create" "ac_cv_func_pcap_create"
6646 if test "x$ac_cv_func_pcap_create" = xyes; then :
6647 cat >>confdefs.h <<_ACEOF
6648 #define HAVE_PCAP_CREATE 1
6649 _ACEOF
6650
6651 fi
6652 done
6653
6654 if test $ac_cv_func_pcap_create = "yes" ; then
6655 #
6656 # OK, do we have pcap_set_tstamp_type? If so, assume we have
6657 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
6658 #
6659 for ac_func in pcap_set_tstamp_type
6660 do :
6661 ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_type" "ac_cv_func_pcap_set_tstamp_type"
6662 if test "x$ac_cv_func_pcap_set_tstamp_type" = xyes; then :
6663 cat >>confdefs.h <<_ACEOF
6664 #define HAVE_PCAP_SET_TSTAMP_TYPE 1
6665 _ACEOF
6666
6667 fi
6668 done
6669
6670 fi
6671
6672 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
6673 do :
6674 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6675 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6676 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6677 cat >>confdefs.h <<_ACEOF
6678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6679 _ACEOF
6680
6681 fi
6682 done
6683
6684 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
6685 savedppflags="$CPPLAGS"
6686 CPPFLAGS="$CPPFLAGS $V_INCLS"
6687 ac_fn_c_check_type "$LINENO" "pcap_if_t" "ac_cv_type_pcap_if_t" "#include <pcap.h>
6688 "
6689 if test "x$ac_cv_type_pcap_if_t" = xyes; then :
6690
6691 cat >>confdefs.h <<_ACEOF
6692 #define HAVE_PCAP_IF_T 1
6693 _ACEOF
6694
6695
6696 fi
6697
6698 CPPFLAGS="$savedcppflags"
6699 fi
6700
6701 if test $ac_cv_func_pcap_lib_version = "no" ; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap_version is defined by libpcap" >&5
6703 $as_echo_n "checking whether pcap_version is defined by libpcap... " >&6; }
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706
6707 int
6708 main ()
6709 {
6710
6711 extern char pcap_version[];
6712
6713 return (int)pcap_version;
6714
6715 ;
6716 return 0;
6717 }
6718 _ACEOF
6719 if ac_fn_c_try_link "$LINENO"; then :
6720 ac_lbl_cv_pcap_version_defined=yes
6721 else
6722 ac_lbl_cv_pcap_version_defined=no
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext \
6725 conftest$ac_exeext conftest.$ac_ext
6726 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6728 $as_echo "yes" >&6; }
6729 $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h
6730
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6734 fi
6735 fi
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap_debug is defined by libpcap" >&5
6737 $as_echo_n "checking whether pcap_debug is defined by libpcap... " >&6; }
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740
6741 int
6742 main ()
6743 {
6744
6745 extern int pcap_debug;
6746
6747 return pcap_debug;
6748
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 if ac_fn_c_try_link "$LINENO"; then :
6754 ac_lbl_cv_pcap_debug_defined=yes
6755 else
6756 ac_lbl_cv_pcap_debug_defined=no
6757 fi
6758 rm -f core conftest.err conftest.$ac_objext \
6759 conftest$ac_exeext conftest.$ac_ext
6760 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6762 $as_echo "yes" >&6; }
6763 $as_echo "#define HAVE_PCAP_DEBUG 1" >>confdefs.h
6764
6765 else
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6768 #
6769 # OK, what about "yydebug"?
6770 #
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yydebug is defined by libpcap" >&5
6772 $as_echo_n "checking whether yydebug is defined by libpcap... " >&6; }
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6775
6776 int
6777 main ()
6778 {
6779
6780 extern int yydebug;
6781
6782 return yydebug;
6783
6784 ;
6785 return 0;
6786 }
6787 _ACEOF
6788 if ac_fn_c_try_link "$LINENO"; then :
6789 ac_lbl_cv_yydebug_defined=yes
6790 else
6791 ac_lbl_cv_yydebug_defined=no
6792 fi
6793 rm -f core conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
6795 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6797 $as_echo "yes" >&6; }
6798 $as_echo "#define HAVE_YYDEBUG 1" >>confdefs.h
6799
6800 else
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6803 fi
6804 fi
6805 ac_fn_c_check_func "$LINENO" "bpf_dump" "ac_cv_func_bpf_dump"
6806 if test "x$ac_cv_func_bpf_dump" = xyes; then :
6807 $as_echo "#define HAVE_BPF_DUMP 1" >>confdefs.h
6808
6809 else
6810 case " $LIBOBJS " in
6811 *" bpf_dump.$ac_objext "* ) ;;
6812 *) LIBOBJS="$LIBOBJS bpf_dump.$ac_objext"
6813 ;;
6814 esac
6815
6816 fi
6817
6818
6819 V_GROUP=0
6820 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
6821 V_GROUP=wheel
6822 fi
6823 #
6824 # Assume V7/BSD convention for man pages (file formats in section 5,
6825 # miscellaneous info in section 7).
6826 #
6827 MAN_FILE_FORMATS=5
6828 MAN_MISC_INFO=7
6829 case "$host_os" in
6830
6831 aix*)
6832
6833 $as_echo "#define _SUN 1" >>confdefs.h
6834
6835 ;;
6836
6837 hpux*)
6838 #
6839 # Use System V conventions for man pages.
6840 #
6841 MAN_FILE_FORMATS=4
6842 MAN_MISC_INFO=5
6843 ;;
6844
6845 irix*)
6846 V_GROUP=sys
6847
6848 #
6849 # Use System V conventions for man pages.
6850 #
6851 MAN_FILE_FORMATS=4
6852 MAN_MISC_INFO=5
6853 ;;
6854
6855 osf*)
6856 V_GROUP=system
6857
6858 #
6859 # Use System V conventions for man pages.
6860 #
6861 MAN_FILE_FORMATS=4
6862 MAN_MISC_INFO=5
6863 ;;
6864
6865 solaris*)
6866 V_GROUP=sys
6867
6868 #
6869 # Use System V conventions for man pages.
6870 #
6871 MAN_FILE_FORMATS=4
6872 MAN_MISC_INFO=5
6873 ;;
6874 esac
6875
6876 if test -f /dev/bpf0 ; then
6877 V_GROUP=bpf
6878 fi
6879
6880 #
6881 # Check for some headers introduced in later versions of libpcap
6882 # and used by some printers.
6883 #
6884 savedcppflags="$CPPFLAGS"
6885 CPPFLAGS="$CPPFLAGS $V_INCLS"
6886 for ac_header in pcap/bluetooth.h
6887 do :
6888 ac_fn_c_check_header_mongrel "$LINENO" "pcap/bluetooth.h" "ac_cv_header_pcap_bluetooth_h" "$ac_includes_default"
6889 if test "x$ac_cv_header_pcap_bluetooth_h" = xyes; then :
6890 cat >>confdefs.h <<_ACEOF
6891 #define HAVE_PCAP_BLUETOOTH_H 1
6892 _ACEOF
6893
6894 fi
6895
6896 done
6897
6898 for ac_header in pcap/usb.h
6899 do :
6900 ac_fn_c_check_header_mongrel "$LINENO" "pcap/usb.h" "ac_cv_header_pcap_usb_h" "$ac_includes_default"
6901 if test "x$ac_cv_header_pcap_usb_h" = xyes; then :
6902 cat >>confdefs.h <<_ACEOF
6903 #define HAVE_PCAP_USB_H 1
6904 _ACEOF
6905
6906 fi
6907
6908 done
6909
6910 CPPFLAGS="$savedcppflags"
6911
6912 #
6913 # Make sure we have a definition for C99's uintptr_t (regardless of
6914 # whether the environment is a C99 environment or not).
6915 #
6916
6917 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6918 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6919
6920 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6921
6922 else
6923 for ac_type in 'unsigned int' 'unsigned long int' \
6924 'unsigned long long int'; do
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 $ac_includes_default
6928 int
6929 main ()
6930 {
6931 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6932 test_array [0] = 0;
6933 return test_array [0];
6934
6935 ;
6936 return 0;
6937 }
6938 _ACEOF
6939 if ac_fn_c_try_compile "$LINENO"; then :
6940
6941 cat >>confdefs.h <<_ACEOF
6942 #define uintptr_t $ac_type
6943 _ACEOF
6944
6945 ac_type=
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948 test -z "$ac_type" && break
6949 done
6950 fi
6951
6952
6953
6954 for ac_header in sys/bitypes.h
6955 do :
6956 ac_fn_c_check_header_mongrel "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
6957 if test "x$ac_cv_header_sys_bitypes_h" = xyes; then :
6958 cat >>confdefs.h <<_ACEOF
6959 #define HAVE_SYS_BITYPES_H 1
6960 _ACEOF
6961
6962 fi
6963
6964 done
6965
6966
6967 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default
6968 #ifdef HAVE_SYS_BITYPES_H
6969 #include <sys/bitypes.h>
6970 #endif
6971 "
6972 if test "x$ac_cv_type_int8_t" = xyes; then :
6973
6974 else
6975
6976 $as_echo "#define int8_t signed char" >>confdefs.h
6977
6978 fi
6979
6980 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
6981 #ifdef HAVE_SYS_BITYPES_H
6982 #include <sys/bitypes.h>
6983 #endif
6984 "
6985 if test "x$ac_cv_type_u_int8_t" = xyes; then :
6986
6987 else
6988
6989 $as_echo "#define u_int8_t unsigned char" >>confdefs.h
6990
6991 fi
6992
6993 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
6994 if test "x$ac_cv_type_int16_t" = xyes; then :
6995
6996 else
6997
6998 $as_echo "#define int16_t short" >>confdefs.h
6999
7000 $ac_includes_default
7001 #ifdef HAVE_SYS_BITYPES_H
7002 #include <sys/bitypes.h>
7003 #endif
7004 fi
7005
7006 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
7007 #ifdef HAVE_SYS_BITYPES_H
7008 #include <sys/bitypes.h>
7009 #endif
7010 "
7011 if test "x$ac_cv_type_u_int16_t" = xyes; then :
7012
7013 else
7014
7015 $as_echo "#define u_int16_t unsigned short" >>confdefs.h
7016
7017 fi
7018
7019 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default
7020 #ifdef HAVE_SYS_BITYPES_H
7021 #include <sys/bitypes.h>
7022 #endif
7023 "
7024 if test "x$ac_cv_type_int32_t" = xyes; then :
7025
7026 else
7027
7028 $as_echo "#define int32_t int" >>confdefs.h
7029
7030 fi
7031
7032 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
7033 #ifdef HAVE_SYS_BITYPES_H
7034 #include <sys/bitypes.h>
7035 #endif
7036 "
7037 if test "x$ac_cv_type_u_int32_t" = xyes; then :
7038
7039 else
7040
7041 $as_echo "#define u_int32_t unsigned int" >>confdefs.h
7042
7043 fi
7044
7045 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default
7046 #ifdef HAVE_SYS_BITYPES_H
7047 #include <sys/bitypes.h>
7048 #endif
7049 "
7050 if test "x$ac_cv_type_int64_t" = xyes; then :
7051
7052 else
7053
7054 $as_echo "#define int64_t long long" >>confdefs.h
7055
7056 fi
7057
7058 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
7059 #ifdef HAVE_SYS_BITYPES_H
7060 #include <sys/bitypes.h>
7061 #endif
7062 "
7063 if test "x$ac_cv_type_u_int64_t" = xyes; then :
7064
7065 else
7066
7067 $as_echo "#define u_int64_t unsigned long long" >>confdefs.h
7068
7069 fi
7070
7071
7072 #
7073 # We can't just check for <inttypes.h> - some systems have one that
7074 # doesn't define all the PRI[doxu]64 macros.
7075 #
7076 for ac_header in inttypes.h
7077 do :
7078 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7079 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7080 cat >>confdefs.h <<_ACEOF
7081 #define HAVE_INTTYPES_H 1
7082 _ACEOF
7083
7084 #
7085 # OK, we have inttypes.h, but does it define those macros?
7086 #
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
7088 $as_echo_n "checking whether inttypes.h defines the PRI[doxu]64 macros... " >&6; }
7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7091
7092
7093 #include <inttypes.h>
7094 #include <stdio.h>
7095 #include <sys/types.h>
7096 #ifdef HAVE_SYS_BITYPES_H
7097 #include <sys/bitypes.h>
7098 #endif
7099
7100 main()
7101 {
7102 printf("%" PRId64 "\n", (u_int64_t)1);
7103 printf("%" PRIo64 "\n", (u_int64_t)1);
7104 printf("%" PRIx64 "\n", (u_int64_t)1);
7105 printf("%" PRIu64 "\n", (u_int64_t)1);
7106 }
7107
7108
7109 _ACEOF
7110 if ac_fn_c_try_compile "$LINENO"; then :
7111
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7114 ac_lbl_inttypes_h_defines_formats=yes
7115
7116 else
7117
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7120 ac_lbl_inttypes_h_defines_formats=no
7121
7122 fi
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124
7125 else
7126
7127 #
7128 # We don't have inttypes.h, so it obviously can't define those
7129 # macros.
7130 #
7131 ac_lbl_inttypes_h_defines_formats=no
7132
7133 fi
7134
7135 done
7136
7137 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
7138
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %lx can be used to format 64-bit integers" >&5
7140 $as_echo_n "checking whether %lx can be used to format 64-bit integers... " >&6; }
7141 if test "$cross_compiling" = yes; then :
7142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7144 as_fn_error $? "cannot run test program while cross compiling
7145 See \`config.log' for more details" "$LINENO" 5; }
7146 else
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7149
7150
7151 # ifdef HAVE_INTTYPES_H
7152 #include <inttypes.h>
7153 # endif
7154 # ifdef HAVE_SYS_BITYPES_H
7155 #include <sys/bitypes.h>
7156 # endif
7157 #include <stdio.h>
7158 #include <sys/types.h>
7159
7160 main()
7161 {
7162 u_int64_t t = 1;
7163 char strbuf[16+1];
7164 sprintf(strbuf, "%016lx", t << 32);
7165 if (strcmp(strbuf, "0000000100000000") == 0)
7166 exit(0);
7167 else
7168 exit(1);
7169 }
7170
7171
7172 _ACEOF
7173 if ac_fn_c_try_run "$LINENO"; then :
7174
7175 $as_echo "#define PRId64 \"ld\"" >>confdefs.h
7176
7177 $as_echo "#define PRIo64 \"lo\"" >>confdefs.h
7178
7179 $as_echo "#define PRIx64 \"lx\"" >>confdefs.h
7180
7181 $as_echo "#define PRIu64 \"lu\"" >>confdefs.h
7182
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7184 $as_echo "yes" >&6; }
7185
7186 else
7187
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7190
7191
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %llx can be used to format 64-bit integers" >&5
7193 $as_echo_n "checking whether %llx can be used to format 64-bit integers... " >&6; }
7194 if test "$cross_compiling" = yes; then :
7195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7197 as_fn_error $? "cannot run test program while cross compiling
7198 See \`config.log' for more details" "$LINENO" 5; }
7199 else
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7202
7203
7204 # ifdef HAVE_INTTYPES_H
7205 #include <inttypes.h>
7206 # endif
7207 # ifdef HAVE_SYS_BITYPES_H
7208 #include <sys/bitypes.h>
7209 # endif
7210 #include <stdio.h>
7211 #include <sys/types.h>
7212
7213 main()
7214 {
7215 u_int64_t t = 1;
7216 char strbuf[16+1];
7217 sprintf(strbuf, "%016llx", t << 32);
7218 if (strcmp(strbuf, "0000000100000000") == 0)
7219 exit(0);
7220 else
7221 exit(1);
7222 }
7223
7224
7225 _ACEOF
7226 if ac_fn_c_try_run "$LINENO"; then :
7227
7228 $as_echo "#define PRId64 \"lld\"" >>confdefs.h
7229
7230 $as_echo "#define PRIo64 \"llo\"" >>confdefs.h
7231
7232 $as_echo "#define PRIx64 \"llx\"" >>confdefs.h
7233
7234 $as_echo "#define PRIu64 \"llu\"" >>confdefs.h
7235
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7237 $as_echo "yes" >&6; }
7238
7239 else
7240
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243
7244
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %Lx can be used to format 64-bit integers" >&5
7246 $as_echo_n "checking whether %Lx can be used to format 64-bit integers... " >&6; }
7247 if test "$cross_compiling" = yes; then :
7248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7250 as_fn_error $? "cannot run test program while cross compiling
7251 See \`config.log' for more details" "$LINENO" 5; }
7252 else
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7255
7256
7257 # ifdef HAVE_INTTYPES_H
7258 #include <inttypes.h>
7259 # endif
7260 # ifdef HAVE_SYS_BITYPES_H
7261 #include <sys/bitypes.h>
7262 # endif
7263 #include <stdio.h>
7264 #include <sys/types.h>
7265
7266 main()
7267 {
7268 u_int64_t t = 1;
7269 char strbuf[16+1];
7270 sprintf(strbuf, "%016Lx", t << 32);
7271 if (strcmp(strbuf, "0000000100000000") == 0)
7272 exit(0);
7273 else
7274 exit(1);
7275 }
7276
7277
7278 _ACEOF
7279 if ac_fn_c_try_run "$LINENO"; then :
7280
7281 $as_echo "#define PRId64 \"Ld\"" >>confdefs.h
7282
7283 $as_echo "#define PRIo64 \"Lo\"" >>confdefs.h
7284
7285 $as_echo "#define PRIx64 \"Lx\"" >>confdefs.h
7286
7287 $as_echo "#define PRIu64 \"Lu\"" >>confdefs.h
7288
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7290 $as_echo "yes" >&6; }
7291
7292 else
7293
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296
7297
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %qx can be used to format 64-bit integers" >&5
7299 $as_echo_n "checking whether %qx can be used to format 64-bit integers... " >&6; }
7300 if test "$cross_compiling" = yes; then :
7301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7303 as_fn_error $? "cannot run test program while cross compiling
7304 See \`config.log' for more details" "$LINENO" 5; }
7305 else
7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7308
7309
7310 # ifdef HAVE_INTTYPES_H
7311 #include <inttypes.h>
7312 # endif
7313 # ifdef HAVE_SYS_BITYPES_H
7314 #include <sys/bitypes.h>
7315 # endif
7316 #include <stdio.h>
7317 #include <sys/types.h>
7318
7319 main()
7320 {
7321 u_int64_t t = 1;
7322 char strbuf[16+1];
7323 sprintf(strbuf, "%016qx", t << 32);
7324 if (strcmp(strbuf, "0000000100000000") == 0)
7325 exit(0);
7326 else
7327 exit(1);
7328 }
7329
7330
7331 _ACEOF
7332 if ac_fn_c_try_run "$LINENO"; then :
7333
7334 $as_echo "#define PRId64 \"qd\"" >>confdefs.h
7335
7336 $as_echo "#define PRIo64 \"qo\"" >>confdefs.h
7337
7338 $as_echo "#define PRIx64 \"qx\"" >>confdefs.h
7339
7340 $as_echo "#define PRIu64 \"qu\"" >>confdefs.h
7341
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7343 $as_echo "yes" >&6; }
7344
7345 else
7346
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349
7350 as_fn_error $? "neither %llx nor %Lx nor %qx worked on a 64-bit integer" "$LINENO" 5
7351
7352
7353 fi
7354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7355 conftest.$ac_objext conftest.beam conftest.$ac_ext
7356 fi
7357
7358
7359
7360
7361 fi
7362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7363 conftest.$ac_objext conftest.beam conftest.$ac_ext
7364 fi
7365
7366
7367
7368
7369 fi
7370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7371 conftest.$ac_objext conftest.beam conftest.$ac_ext
7372 fi
7373
7374
7375
7376
7377 fi
7378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7379 conftest.$ac_objext conftest.beam conftest.$ac_ext
7380 fi
7381
7382
7383 fi
7384
7385 if test -n "$ac_tool_prefix"; then
7386 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7387 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_RANLIB+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 if test -n "$RANLIB"; then
7394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7406 fi
7407 done
7408 done
7409 IFS=$as_save_IFS
7410
7411 fi
7412 fi
7413 RANLIB=$ac_cv_prog_RANLIB
7414 if test -n "$RANLIB"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7416 $as_echo "$RANLIB" >&6; }
7417 else
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421
7422
7423 fi
7424 if test -z "$ac_cv_prog_RANLIB"; then
7425 ac_ct_RANLIB=$RANLIB
7426 # Extract the first word of "ranlib", so it can be a program name with args.
7427 set dummy ranlib; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 if test -n "$ac_ct_RANLIB"; then
7434 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_prog_ac_ct_RANLIB="ranlib"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7446 fi
7447 done
7448 done
7449 IFS=$as_save_IFS
7450
7451 fi
7452 fi
7453 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7454 if test -n "$ac_ct_RANLIB"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7456 $as_echo "$ac_ct_RANLIB" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461
7462 if test "x$ac_ct_RANLIB" = x; then
7463 RANLIB=":"
7464 else
7465 case $cross_compiling:$ac_tool_warned in
7466 yes:)
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469 ac_tool_warned=yes ;;
7470 esac
7471 RANLIB=$ac_ct_RANLIB
7472 fi
7473 else
7474 RANLIB="$ac_cv_prog_RANLIB"
7475 fi
7476
7477
7478 rm -f os-proto.h
7479 if test "${LBL_CFLAGS+set}" = set; then
7480 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
7481 fi
7482 if test -f .devel ; then
7483 if test "$GCC" = yes ; then
7484 if test "${LBL_CFLAGS+set}" != set; then
7485 if test "$ac_cv_prog_cc_g" = yes ; then
7486 V_CCOPT="-g $V_CCOPT"
7487 fi
7488 V_CCOPT="$V_CCOPT -Wall"
7489 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
7490 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
7491 fi
7492 fi
7493 else
7494 case "$host_os" in
7495
7496 irix6*)
7497 V_CCOPT="$V_CCOPT -n32"
7498 ;;
7499
7500 *)
7501 ;;
7502 esac
7503 fi
7504 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
7505 name="lbl/os-$os.h"
7506 if test -f $name ; then
7507 ln -s $name os-proto.h
7508
7509 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
7510
7511 else
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
7513 $as_echo "$as_me: WARNING: can't find $name" >&2;}
7514 fi
7515 fi
7516
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
7518 $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
7519 if ${ac_cv_lbl_sockaddr_has_sa_len+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524
7525 # include <sys/types.h>
7526 # include <sys/socket.h>
7527 int
7528 main ()
7529 {
7530 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
7531 ;
7532 return 0;
7533 }
7534 _ACEOF
7535 if ac_fn_c_try_compile "$LINENO"; then :
7536 ac_cv_lbl_sockaddr_has_sa_len=yes
7537 else
7538 ac_cv_lbl_sockaddr_has_sa_len=no
7539 fi
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541 fi
7542
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
7544 $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
7545 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
7546
7547 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
7548
7549 fi
7550
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
7552 $as_echo_n "checking if unaligned accesses fail... " >&6; }
7553 if ${ac_cv_lbl_unaligned_fail+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 case "$host_cpu" in
7557
7558 #
7559 # These are CPU types where:
7560 #
7561 # the CPU faults on an unaligned access, but at least some
7562 # OSes that support that CPU catch the fault and simulate
7563 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
7564 # the simulation is slow, so we don't want to use it;
7565 #
7566 # the CPU, I infer (from the old
7567 #
7568 # XXX: should also check that they don't do weird things (like on arm)
7569 #
7570 # comment) doesn't fault on unaligned accesses, but doesn't
7571 # do a normal unaligned fetch, either (e.g., presumably, ARM);
7572 #
7573 # for whatever reason, the test program doesn't work
7574 # (this has been claimed to be the case for several of those
7575 # CPUs - I don't know what the problem is; the problem
7576 # was reported as "the test program dumps core" for SuperH,
7577 # but that's what the test program is *supposed* to do -
7578 # it dumps core before it writes anything, so the test
7579 # for an empty output file should find an empty output
7580 # file and conclude that unaligned accesses don't work).
7581 #
7582 # This run-time test won't work if you're cross-compiling, so
7583 # in order to support cross-compiling for a particular CPU,
7584 # we have to wire in the list of CPU types anyway, as far as
7585 # I know, so perhaps we should just have a set of CPUs on
7586 # which we know it doesn't work, a set of CPUs on which we
7587 # know it does work, and have the script just fail on other
7588 # cpu types and update it when such a failure occurs.
7589 #
7590 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
7591 ac_cv_lbl_unaligned_fail=yes
7592 ;;
7593
7594 *)
7595 cat >conftest.c <<EOF
7596 # include <sys/types.h>
7597 # include <sys/wait.h>
7598 # include <stdio.h>
7599 unsigned char a[5] = { 1, 2, 3, 4, 5 };
7600 main() {
7601 unsigned int i;
7602 pid_t pid;
7603 int status;
7604 /* avoid "core dumped" message */
7605 pid = fork();
7606 if (pid < 0)
7607 exit(2);
7608 if (pid > 0) {
7609 /* parent */
7610 pid = waitpid(pid, &status, 0);
7611 if (pid < 0)
7612 exit(3);
7613 exit(!WIFEXITED(status));
7614 }
7615 /* child */
7616 i = *(unsigned int *)&a[1];
7617 printf("%d\n", i);
7618 exit(0);
7619 }
7620 EOF
7621 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
7622 conftest.c $LIBS >/dev/null 2>&1
7623 if test ! -x conftest ; then
7624 ac_cv_lbl_unaligned_fail=yes
7625 else
7626 ./conftest >conftest.out
7627 if test ! -s conftest.out ; then
7628 ac_cv_lbl_unaligned_fail=yes
7629 else
7630 ac_cv_lbl_unaligned_fail=no
7631 fi
7632 fi
7633 rm -f -r conftest* core core.conftest
7634 ;;
7635 esac
7636 fi
7637
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
7639 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
7640 if test $ac_cv_lbl_unaligned_fail = yes ; then
7641
7642 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
7643
7644 fi
7645
7646
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno" >&5
7648 $as_echo_n "checking for h_errno... " >&6; }
7649 if ${ac_cv_var_h_errno+:} false; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7654
7655 # include <sys/types.h>
7656 # include <netdb.h>
7657 int
7658 main ()
7659 {
7660 int foo = h_errno;
7661 ;
7662 return 0;
7663 }
7664 _ACEOF
7665 if ac_fn_c_try_compile "$LINENO"; then :
7666 ac_cv_var_h_errno=yes
7667 else
7668 ac_cv_var_h_errno=no
7669 fi
7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671 fi
7672
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_h_errno" >&5
7674 $as_echo "$ac_cv_var_h_errno" >&6; }
7675 if test "$ac_cv_var_h_errno" = "yes"; then
7676 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
7677
7678 fi
7679
7680
7681 # Check for SSLeay
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SSLeay libcrypto" >&5
7683 $as_echo_n "checking whether to use SSLeay libcrypto... " >&6; }
7684 # Specify location for both includes and libraries.
7685 want_libcrypto=youmama
7686
7687 # Check whether --with-crypto was given.
7688 if test "${with_crypto+set}" = set; then :
7689 withval=$with_crypto;
7690 if test $withval = no
7691 then
7692 want_libcrypto=no
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7695 elif test $withval = yes
7696 then
7697 want_libcrypto=yes
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7699 $as_echo "yes" >&6; }
7700 else
7701 want_libcrypto=yes
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7703 $as_echo "yes" >&6; }
7704 crypto_dir=$withval
7705 fi
7706
7707 else
7708
7709 #
7710 # Use libcrypto if it's present, otherwise don't.
7711 #
7712 want_libcrypto=ifavailable
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5
7714 $as_echo "yes, if available" >&6; }
7715
7716 fi
7717
7718 if test "$want_libcrypto" != "no"; then
7719 ac_cv_ssleay_path=no
7720 incdir=no
7721 if test "x$crypto_dir" = x; then
7722 #
7723 # Location not specified; check the default locations.
7724 #
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where SSLeay is located" >&5
7726 $as_echo_n "checking where SSLeay is located... " >&6; }
7727 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
7728 if test "x${host_alias}" != x; then
7729 dirs="/usr/${host_alias} $dirs"
7730 fi
7731 for dir in $dirs; do
7732
7733 #
7734 # Find the last component of $libdir; it's not necessarily
7735 # "lib" - it might be "lib64" on, for example, x86-64
7736 # Linux systems.
7737 #
7738 # We assume the directory in which we're looking for
7739 # libcrypto has a subdirectory with that as its name.
7740 #
7741 tmplib=`echo "$libdir" | sed 's,.*/,,'`
7742
7743 #
7744 # XXX - is there a better way to check if a given library is
7745 # in a given directory than checking each of the possible
7746 # shared library suffixes?
7747 #
7748 # Are there any other suffixes we need to look for? Do we
7749 # have to worry about ".so.{version}"?
7750 #
7751 # Or should we just look for "libcrypto.*"?
7752 #
7753 if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a" -o \
7754 -f "$dir/$tmplib/libcrypto.so" -o \
7755 -f "$dir/$tmplib/libcrypto.sl" -o \
7756 -f "$dir/$tmplib/libcrypto.dylib" \); then
7757 ac_cv_ssleay_path="$dir"
7758 fi
7759
7760 #
7761 # Make sure we have the headers as well.
7762 #
7763 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
7764 incdir="-I$dir/include"
7765 fi
7766
7767
7768 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
7769 break;
7770 else
7771 ac_cv_ssleay_path=no
7772 incdir=no
7773 fi
7774 done
7775 if test "$ac_cv_ssleay_path" != no; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ssleay_path" >&5
7777 $as_echo "$ac_cv_ssleay_path" >&6; }
7778 fi
7779 else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSLeay in $crypto_dir" >&5
7781 $as_echo_n "checking for SSLeay in $crypto_dir... " >&6; }
7782
7783 #
7784 # Find the last component of $libdir; it's not necessarily
7785 # "lib" - it might be "lib64" on, for example, x86-64
7786 # Linux systems.
7787 #
7788 # We assume the directory in which we're looking for
7789 # libcrypto has a subdirectory with that as its name.
7790 #
7791 tmplib=`echo "$libdir" | sed 's,.*/,,'`
7792
7793 #
7794 # XXX - is there a better way to check if a given library is
7795 # in a given directory than checking each of the possible
7796 # shared library suffixes?
7797 #
7798 # Are there any other suffixes we need to look for? Do we
7799 # have to worry about ".so.{version}"?
7800 #
7801 # Or should we just look for "libcrypto.*"?
7802 #
7803 if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
7804 -f "$crypto_dir/$tmplib/libcrypto.so" -o \
7805 -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
7806 -f "$crypto_dir/$tmplib/libcrypto.dylib" \); then
7807 ac_cv_ssleay_path="$crypto_dir"
7808 fi
7809
7810 #
7811 # Make sure we have the headers as well.
7812 #
7813 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
7814 incdir="-I$crypto_dir/include"
7815 fi
7816
7817 if test "$ac_cv_ssleay_path" != no; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7819 $as_echo "found" >&6; }
7820 fi
7821 fi
7822 if test "$ac_cv_ssleay_path" != no; then
7823 V_INCLS="$V_INCLS $incdir"
7824 if test "$dir" != "/usr"; then
7825 LDFLAGS="-L$dir/lib $LDFLAGS"
7826 fi
7827 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
7828 LIBS="$LIBS -lRSAglue"
7829 fi
7830 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
7831 LIBS="$LIBS -lrsaref"
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES_cbc_encrypt in -lcrypto" >&5
7834 $as_echo_n "checking for DES_cbc_encrypt in -lcrypto... " >&6; }
7835 if ${ac_cv_lib_crypto_DES_cbc_encrypt+:} false; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 ac_check_lib_save_LIBS=$LIBS
7839 LIBS="-lcrypto $LIBS"
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7842
7843 /* Override any GCC internal prototype to avoid an error.
7844 Use char because int might match the return type of a GCC
7845 builtin and then its argument prototype would still apply. */
7846 #ifdef __cplusplus
7847 extern "C"
7848 #endif
7849 char DES_cbc_encrypt ();
7850 int
7851 main ()
7852 {
7853 return DES_cbc_encrypt ();
7854 ;
7855 return 0;
7856 }
7857 _ACEOF
7858 if ac_fn_c_try_link "$LINENO"; then :
7859 ac_cv_lib_crypto_DES_cbc_encrypt=yes
7860 else
7861 ac_cv_lib_crypto_DES_cbc_encrypt=no
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext \
7864 conftest$ac_exeext conftest.$ac_ext
7865 LIBS=$ac_check_lib_save_LIBS
7866 fi
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
7868 $as_echo "$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
7869 if test "x$ac_cv_lib_crypto_DES_cbc_encrypt" = xyes; then :
7870 cat >>confdefs.h <<_ACEOF
7871 #define HAVE_LIBCRYPTO 1
7872 _ACEOF
7873
7874 LIBS="-lcrypto $LIBS"
7875
7876 fi
7877
7878
7879 CPPFLAGS="$CPPFLAGS $V_INCLS"
7880 for ac_header in openssl/evp.h
7881 do :
7882 ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
7883 if test "x$ac_cv_header_openssl_evp_h" = xyes; then :
7884 cat >>confdefs.h <<_ACEOF
7885 #define HAVE_OPENSSL_EVP_H 1
7886 _ACEOF
7887
7888 fi
7889
7890 done
7891
7892 else
7893 #
7894 # Not found. Did the user explicitly ask for it?
7895 #
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7897 $as_echo "not found" >&6; }
7898 if test "$want_libcrypto" = yes; then
7899 as_fn_error $? "SSLeay not found" "$LINENO" 5
7900 fi
7901 fi
7902 fi
7903
7904 if test "$missing_includes" = "yes"; then
7905 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
7906 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
7907 fi
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918 # Find a good install program. We prefer a C program (faster),
7919 # so one script is as good as another. But avoid the broken or
7920 # incompatible versions:
7921 # SysV /etc/install, /usr/sbin/install
7922 # SunOS /usr/etc/install
7923 # IRIX /sbin/install
7924 # AIX /bin/install
7925 # AmigaOS /C/install, which installs bootblocks on floppy discs
7926 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7927 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7928 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7929 # OS/2's system install, which has a completely different semantic
7930 # ./install, which can be erroneously created by make from ./install.sh.
7931 # Reject install programs that cannot install multiple files.
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7933 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7934 if test -z "$INSTALL"; then
7935 if ${ac_cv_path_install+:} false; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
7943 # Account for people who put trailing slashes in PATH elements.
7944 case $as_dir/ in #((
7945 ./ | .// | /[cC]/* | \
7946 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7947 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7948 /usr/ucb/* ) ;;
7949 *)
7950 # OSF1 and SCO ODT 3.0 have their own names for install.
7951 # Don't use installbsd from OSF since it installs stuff as root
7952 # by default.
7953 for ac_prog in ginstall scoinst install; do
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7956 if test $ac_prog = install &&
7957 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7958 # AIX install. It has an incompatible calling convention.
7959 :
7960 elif test $ac_prog = install &&
7961 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7962 # program-specific install script used by HP pwplus--don't use.
7963 :
7964 else
7965 rm -rf conftest.one conftest.two conftest.dir
7966 echo one > conftest.one
7967 echo two > conftest.two
7968 mkdir conftest.dir
7969 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7970 test -s conftest.one && test -s conftest.two &&
7971 test -s conftest.dir/conftest.one &&
7972 test -s conftest.dir/conftest.two
7973 then
7974 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7975 break 3
7976 fi
7977 fi
7978 fi
7979 done
7980 done
7981 ;;
7982 esac
7983
7984 done
7985 IFS=$as_save_IFS
7986
7987 rm -rf conftest.one conftest.two conftest.dir
7988
7989 fi
7990 if test "${ac_cv_path_install+set}" = set; then
7991 INSTALL=$ac_cv_path_install
7992 else
7993 # As a last resort, use the slow shell script. Don't cache a
7994 # value for INSTALL within a source directory, because that will
7995 # break other packages using the cache if that directory is
7996 # removed, or if the value is a relative name.
7997 INSTALL=$ac_install_sh
7998 fi
7999 fi
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8001 $as_echo "$INSTALL" >&6; }
8002
8003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8004 # It thinks the first close brace ends the variable substitution.
8005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8006
8007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8008
8009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8010
8011
8012 ac_config_headers="$ac_config_headers config.h"
8013
8014
8015 ac_config_commands="$ac_config_commands default-1"
8016
8017 ac_config_files="$ac_config_files Makefile tcpdump.1"
8018
8019 cat >confcache <<\_ACEOF
8020 # This file is a shell script that caches the results of configure
8021 # tests run on this system so they can be shared between configure
8022 # scripts and configure runs, see configure's option --config-cache.
8023 # It is not useful on other systems. If it contains results you don't
8024 # want to keep, you may remove or edit it.
8025 #
8026 # config.status only pays attention to the cache file if you give it
8027 # the --recheck option to rerun configure.
8028 #
8029 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8030 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8031 # following values.
8032
8033 _ACEOF
8034
8035 # The following way of writing the cache mishandles newlines in values,
8036 # but we know of no workaround that is simple, portable, and efficient.
8037 # So, we kill variables containing newlines.
8038 # Ultrix sh set writes to stderr and can't be redirected directly,
8039 # and sets the high bit in the cache file unless we assign to the vars.
8040 (
8041 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8042 eval ac_val=\$$ac_var
8043 case $ac_val in #(
8044 *${as_nl}*)
8045 case $ac_var in #(
8046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8047 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8048 esac
8049 case $ac_var in #(
8050 _ | IFS | as_nl) ;; #(
8051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8052 *) { eval $ac_var=; unset $ac_var;} ;;
8053 esac ;;
8054 esac
8055 done
8056
8057 (set) 2>&1 |
8058 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8059 *${as_nl}ac_space=\ *)
8060 # `set' does not quote correctly, so add quotes: double-quote
8061 # substitution turns \\\\ into \\, and sed turns \\ into \.
8062 sed -n \
8063 "s/'/'\\\\''/g;
8064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8065 ;; #(
8066 *)
8067 # `set' quotes correctly as required by POSIX, so do not add quotes.
8068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8069 ;;
8070 esac |
8071 sort
8072 ) |
8073 sed '
8074 /^ac_cv_env_/b end
8075 t clear
8076 :clear
8077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8078 t end
8079 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8080 :end' >>confcache
8081 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8082 if test -w "$cache_file"; then
8083 if test "x$cache_file" != "x/dev/null"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8085 $as_echo "$as_me: updating cache $cache_file" >&6;}
8086 if test ! -f "$cache_file" || test -h "$cache_file"; then
8087 cat confcache >"$cache_file"
8088 else
8089 case $cache_file in #(
8090 */* | ?:*)
8091 mv -f confcache "$cache_file"$$ &&
8092 mv -f "$cache_file"$$ "$cache_file" ;; #(
8093 *)
8094 mv -f confcache "$cache_file" ;;
8095 esac
8096 fi
8097 fi
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8100 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8101 fi
8102 fi
8103 rm -f confcache
8104
8105 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8106 # Let make expand exec_prefix.
8107 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8108
8109 DEFS=-DHAVE_CONFIG_H
8110
8111 ac_libobjs=
8112 ac_ltlibobjs=
8113 U=
8114 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8115 # 1. Remove the extension, and $U if already installed.
8116 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8117 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8118 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8119 # will be set to the directory where LIBOBJS objects are built.
8120 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8121 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8122 done
8123 LIBOBJS=$ac_libobjs
8124
8125 LTLIBOBJS=$ac_ltlibobjs
8126
8127
8128
8129 : "${CONFIG_STATUS=./config.status}"
8130 ac_write_fail=0
8131 ac_clean_files_save=$ac_clean_files
8132 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8134 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8135 as_write_fail=0
8136 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8137 #! $SHELL
8138 # Generated by $as_me.
8139 # Run this file to recreate the current configuration.
8140 # Compiler output produced by configure, useful for debugging
8141 # configure, is in config.log if it exists.
8142
8143 debug=false
8144 ac_cs_recheck=false
8145 ac_cs_silent=false
8146
8147 SHELL=\${CONFIG_SHELL-$SHELL}
8148 export SHELL
8149 _ASEOF
8150 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8151 ## -------------------- ##
8152 ## M4sh Initialization. ##
8153 ## -------------------- ##
8154
8155 # Be more Bourne compatible
8156 DUALCASE=1; export DUALCASE # for MKS sh
8157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8158 emulate sh
8159 NULLCMD=:
8160 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8161 # is contrary to our usage. Disable this feature.
8162 alias -g '${1+"$@"}'='"$@"'
8163 setopt NO_GLOB_SUBST
8164 else
8165 case `(set -o) 2>/dev/null` in #(
8166 *posix*) :
8167 set -o posix ;; #(
8168 *) :
8169 ;;
8170 esac
8171 fi
8172
8173
8174 as_nl='
8175 '
8176 export as_nl
8177 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8178 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8179 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8180 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8181 # Prefer a ksh shell builtin over an external printf program on Solaris,
8182 # but without wasting forks for bash or zsh.
8183 if test -z "$BASH_VERSION$ZSH_VERSION" \
8184 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8185 as_echo='print -r --'
8186 as_echo_n='print -rn --'
8187 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8188 as_echo='printf %s\n'
8189 as_echo_n='printf %s'
8190 else
8191 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8192 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8193 as_echo_n='/usr/ucb/echo -n'
8194 else
8195 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8196 as_echo_n_body='eval
8197 arg=$1;
8198 case $arg in #(
8199 *"$as_nl"*)
8200 expr "X$arg" : "X\\(.*\\)$as_nl";
8201 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8202 esac;
8203 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8204 '
8205 export as_echo_n_body
8206 as_echo_n='sh -c $as_echo_n_body as_echo'
8207 fi
8208 export as_echo_body
8209 as_echo='sh -c $as_echo_body as_echo'
8210 fi
8211
8212 # The user is always right.
8213 if test "${PATH_SEPARATOR+set}" != set; then
8214 PATH_SEPARATOR=:
8215 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8216 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8217 PATH_SEPARATOR=';'
8218 }
8219 fi
8220
8221
8222 # IFS
8223 # We need space, tab and new line, in precisely that order. Quoting is
8224 # there to prevent editors from complaining about space-tab.
8225 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8226 # splitting by setting IFS to empty value.)
8227 IFS=" "" $as_nl"
8228
8229 # Find who we are. Look in the path if we contain no directory separator.
8230 as_myself=
8231 case $0 in #((
8232 *[\\/]* ) as_myself=$0 ;;
8233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
8238 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8239 done
8240 IFS=$as_save_IFS
8241
8242 ;;
8243 esac
8244 # We did not find ourselves, most probably we were run as `sh COMMAND'
8245 # in which case we are not to be found in the path.
8246 if test "x$as_myself" = x; then
8247 as_myself=$0
8248 fi
8249 if test ! -f "$as_myself"; then
8250 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8251 exit 1
8252 fi
8253
8254 # Unset variables that we do not need and which cause bugs (e.g. in
8255 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8256 # suppresses any "Segmentation fault" message there. '((' could
8257 # trigger a bug in pdksh 5.2.14.
8258 for as_var in BASH_ENV ENV MAIL MAILPATH
8259 do eval test x\${$as_var+set} = xset \
8260 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8261 done
8262 PS1='$ '
8263 PS2='> '
8264 PS4='+ '
8265
8266 # NLS nuisances.
8267 LC_ALL=C
8268 export LC_ALL
8269 LANGUAGE=C
8270 export LANGUAGE
8271
8272 # CDPATH.
8273 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8274
8275
8276 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8277 # ----------------------------------------
8278 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8279 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8280 # script with STATUS, using 1 if that was 0.
8281 as_fn_error ()
8282 {
8283 as_status=$1; test $as_status -eq 0 && as_status=1
8284 if test "$4"; then
8285 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8286 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8287 fi
8288 $as_echo "$as_me: error: $2" >&2
8289 as_fn_exit $as_status
8290 } # as_fn_error
8291
8292
8293 # as_fn_set_status STATUS
8294 # -----------------------
8295 # Set $? to STATUS, without forking.
8296 as_fn_set_status ()
8297 {
8298 return $1
8299 } # as_fn_set_status
8300
8301 # as_fn_exit STATUS
8302 # -----------------
8303 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8304 as_fn_exit ()
8305 {
8306 set +e
8307 as_fn_set_status $1
8308 exit $1
8309 } # as_fn_exit
8310
8311 # as_fn_unset VAR
8312 # ---------------
8313 # Portably unset VAR.
8314 as_fn_unset ()
8315 {
8316 { eval $1=; unset $1;}
8317 }
8318 as_unset=as_fn_unset
8319 # as_fn_append VAR VALUE
8320 # ----------------------
8321 # Append the text in VALUE to the end of the definition contained in VAR. Take
8322 # advantage of any shell optimizations that allow amortized linear growth over
8323 # repeated appends, instead of the typical quadratic growth present in naive
8324 # implementations.
8325 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8326 eval 'as_fn_append ()
8327 {
8328 eval $1+=\$2
8329 }'
8330 else
8331 as_fn_append ()
8332 {
8333 eval $1=\$$1\$2
8334 }
8335 fi # as_fn_append
8336
8337 # as_fn_arith ARG...
8338 # ------------------
8339 # Perform arithmetic evaluation on the ARGs, and store the result in the
8340 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8341 # must be portable across $(()) and expr.
8342 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8343 eval 'as_fn_arith ()
8344 {
8345 as_val=$(( $* ))
8346 }'
8347 else
8348 as_fn_arith ()
8349 {
8350 as_val=`expr "$@" || test $? -eq 1`
8351 }
8352 fi # as_fn_arith
8353
8354
8355 if expr a : '\(a\)' >/dev/null 2>&1 &&
8356 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8357 as_expr=expr
8358 else
8359 as_expr=false
8360 fi
8361
8362 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8363 as_basename=basename
8364 else
8365 as_basename=false
8366 fi
8367
8368 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8369 as_dirname=dirname
8370 else
8371 as_dirname=false
8372 fi
8373
8374 as_me=`$as_basename -- "$0" ||
8375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8376 X"$0" : 'X\(//\)$' \| \
8377 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8378 $as_echo X/"$0" |
8379 sed '/^.*\/\([^/][^/]*\)\/*$/{
8380 s//\1/
8381 q
8382 }
8383 /^X\/\(\/\/\)$/{
8384 s//\1/
8385 q
8386 }
8387 /^X\/\(\/\).*/{
8388 s//\1/
8389 q
8390 }
8391 s/.*/./; q'`
8392
8393 # Avoid depending upon Character Ranges.
8394 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8395 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8396 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8397 as_cr_digits='0123456789'
8398 as_cr_alnum=$as_cr_Letters$as_cr_digits
8399
8400 ECHO_C= ECHO_N= ECHO_T=
8401 case `echo -n x` in #(((((
8402 -n*)
8403 case `echo 'xy\c'` in
8404 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8405 xy) ECHO_C='\c';;
8406 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8407 ECHO_T=' ';;
8408 esac;;
8409 *)
8410 ECHO_N='-n';;
8411 esac
8412
8413 rm -f conf$$ conf$$.exe conf$$.file
8414 if test -d conf$$.dir; then
8415 rm -f conf$$.dir/conf$$.file
8416 else
8417 rm -f conf$$.dir
8418 mkdir conf$$.dir 2>/dev/null
8419 fi
8420 if (echo >conf$$.file) 2>/dev/null; then
8421 if ln -s conf$$.file conf$$ 2>/dev/null; then
8422 as_ln_s='ln -s'
8423 # ... but there are two gotchas:
8424 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8425 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8426 # In both cases, we have to default to `cp -pR'.
8427 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8428 as_ln_s='cp -pR'
8429 elif ln conf$$.file conf$$ 2>/dev/null; then
8430 as_ln_s=ln
8431 else
8432 as_ln_s='cp -pR'
8433 fi
8434 else
8435 as_ln_s='cp -pR'
8436 fi
8437 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8438 rmdir conf$$.dir 2>/dev/null
8439
8440
8441 # as_fn_mkdir_p
8442 # -------------
8443 # Create "$as_dir" as a directory, including parents if necessary.
8444 as_fn_mkdir_p ()
8445 {
8446
8447 case $as_dir in #(
8448 -*) as_dir=./$as_dir;;
8449 esac
8450 test -d "$as_dir" || eval $as_mkdir_p || {
8451 as_dirs=
8452 while :; do
8453 case $as_dir in #(
8454 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8455 *) as_qdir=$as_dir;;
8456 esac
8457 as_dirs="'$as_qdir' $as_dirs"
8458 as_dir=`$as_dirname -- "$as_dir" ||
8459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8460 X"$as_dir" : 'X\(//\)[^/]' \| \
8461 X"$as_dir" : 'X\(//\)$' \| \
8462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8463 $as_echo X"$as_dir" |
8464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8465 s//\1/
8466 q
8467 }
8468 /^X\(\/\/\)[^/].*/{
8469 s//\1/
8470 q
8471 }
8472 /^X\(\/\/\)$/{
8473 s//\1/
8474 q
8475 }
8476 /^X\(\/\).*/{
8477 s//\1/
8478 q
8479 }
8480 s/.*/./; q'`
8481 test -d "$as_dir" && break
8482 done
8483 test -z "$as_dirs" || eval "mkdir $as_dirs"
8484 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8485
8486
8487 } # as_fn_mkdir_p
8488 if mkdir -p . 2>/dev/null; then
8489 as_mkdir_p='mkdir -p "$as_dir"'
8490 else
8491 test -d ./-p && rmdir ./-p
8492 as_mkdir_p=false
8493 fi
8494
8495
8496 # as_fn_executable_p FILE
8497 # -----------------------
8498 # Test if FILE is an executable regular file.
8499 as_fn_executable_p ()
8500 {
8501 test -f "$1" && test -x "$1"
8502 } # as_fn_executable_p
8503 as_test_x='test -x'
8504 as_executable_p=as_fn_executable_p
8505
8506 # Sed expression to map a string onto a valid CPP name.
8507 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8508
8509 # Sed expression to map a string onto a valid variable name.
8510 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8511
8512
8513 exec 6>&1
8514 ## ----------------------------------- ##
8515 ## Main body of $CONFIG_STATUS script. ##
8516 ## ----------------------------------- ##
8517 _ASEOF
8518 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8519
8520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8521 # Save the log message, to keep $0 and so on meaningful, and to
8522 # report actual input values of CONFIG_FILES etc. instead of their
8523 # values after options handling.
8524 ac_log="
8525 This file was extended by $as_me, which was
8526 generated by GNU Autoconf 2.69. Invocation command line was
8527
8528 CONFIG_FILES = $CONFIG_FILES
8529 CONFIG_HEADERS = $CONFIG_HEADERS
8530 CONFIG_LINKS = $CONFIG_LINKS
8531 CONFIG_COMMANDS = $CONFIG_COMMANDS
8532 $ $0 $@
8533
8534 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8535 "
8536
8537 _ACEOF
8538
8539 case $ac_config_files in *"
8540 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8541 esac
8542
8543 case $ac_config_headers in *"
8544 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8545 esac
8546
8547
8548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8549 # Files that config.status was made for.
8550 config_files="$ac_config_files"
8551 config_headers="$ac_config_headers"
8552 config_commands="$ac_config_commands"
8553
8554 _ACEOF
8555
8556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8557 ac_cs_usage="\
8558 \`$as_me' instantiates files and other configuration actions
8559 from templates according to the current configuration. Unless the files
8560 and actions are specified as TAGs, all are instantiated by default.
8561
8562 Usage: $0 [OPTION]... [TAG]...
8563
8564 -h, --help print this help, then exit
8565 -V, --version print version number and configuration settings, then exit
8566 --config print configuration, then exit
8567 -q, --quiet, --silent
8568 do not print progress messages
8569 -d, --debug don't remove temporary files
8570 --recheck update $as_me by reconfiguring in the same conditions
8571 --file=FILE[:TEMPLATE]
8572 instantiate the configuration file FILE
8573 --header=FILE[:TEMPLATE]
8574 instantiate the configuration header FILE
8575
8576 Configuration files:
8577 $config_files
8578
8579 Configuration headers:
8580 $config_headers
8581
8582 Configuration commands:
8583 $config_commands
8584
8585 Report bugs to the package provider."
8586
8587 _ACEOF
8588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8589 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8590 ac_cs_version="\\
8591 config.status
8592 configured by $0, generated by GNU Autoconf 2.69,
8593 with options \\"\$ac_cs_config\\"
8594
8595 Copyright (C) 2012 Free Software Foundation, Inc.
8596 This config.status script is free software; the Free Software Foundation
8597 gives unlimited permission to copy, distribute and modify it."
8598
8599 ac_pwd='$ac_pwd'
8600 srcdir='$srcdir'
8601 INSTALL='$INSTALL'
8602 test -n "\$AWK" || AWK=awk
8603 _ACEOF
8604
8605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8606 # The default lists apply if the user does not specify any file.
8607 ac_need_defaults=:
8608 while test $# != 0
8609 do
8610 case $1 in
8611 --*=?*)
8612 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8613 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8614 ac_shift=:
8615 ;;
8616 --*=)
8617 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8618 ac_optarg=
8619 ac_shift=:
8620 ;;
8621 *)
8622 ac_option=$1
8623 ac_optarg=$2
8624 ac_shift=shift
8625 ;;
8626 esac
8627
8628 case $ac_option in
8629 # Handling of the options.
8630 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8631 ac_cs_recheck=: ;;
8632 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8633 $as_echo "$ac_cs_version"; exit ;;
8634 --config | --confi | --conf | --con | --co | --c )
8635 $as_echo "$ac_cs_config"; exit ;;
8636 --debug | --debu | --deb | --de | --d | -d )
8637 debug=: ;;
8638 --file | --fil | --fi | --f )
8639 $ac_shift
8640 case $ac_optarg in
8641 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8642 '') as_fn_error $? "missing file argument" ;;
8643 esac
8644 as_fn_append CONFIG_FILES " '$ac_optarg'"
8645 ac_need_defaults=false;;
8646 --header | --heade | --head | --hea )
8647 $ac_shift
8648 case $ac_optarg in
8649 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8650 esac
8651 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8652 ac_need_defaults=false;;
8653 --he | --h)
8654 # Conflict between --help and --header
8655 as_fn_error $? "ambiguous option: \`$1'
8656 Try \`$0 --help' for more information.";;
8657 --help | --hel | -h )
8658 $as_echo "$ac_cs_usage"; exit ;;
8659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8660 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8661 ac_cs_silent=: ;;
8662
8663 # This is an error.
8664 -*) as_fn_error $? "unrecognized option: \`$1'
8665 Try \`$0 --help' for more information." ;;
8666
8667 *) as_fn_append ac_config_targets " $1"
8668 ac_need_defaults=false ;;
8669
8670 esac
8671 shift
8672 done
8673
8674 ac_configure_extra_args=
8675
8676 if $ac_cs_silent; then
8677 exec 6>/dev/null
8678 ac_configure_extra_args="$ac_configure_extra_args --silent"
8679 fi
8680
8681 _ACEOF
8682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8683 if \$ac_cs_recheck; then
8684 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8685 shift
8686 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8687 CONFIG_SHELL='$SHELL'
8688 export CONFIG_SHELL
8689 exec "\$@"
8690 fi
8691
8692 _ACEOF
8693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8694 exec 5>>config.log
8695 {
8696 echo
8697 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8698 ## Running $as_me. ##
8699 _ASBOX
8700 $as_echo "$ac_log"
8701 } >&5
8702
8703 _ACEOF
8704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8705 #
8706 # INIT-COMMANDS
8707 #
8708
8709
8710 _ACEOF
8711
8712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8713
8714 # Handling of arguments.
8715 for ac_config_target in $ac_config_targets
8716 do
8717 case $ac_config_target in
8718 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8719 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8720 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8721 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
8722
8723 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8724 esac
8725 done
8726
8727
8728 # If the user did not use the arguments to specify the items to instantiate,
8729 # then the envvar interface is used. Set only those that are not.
8730 # We use the long form for the default assignment because of an extremely
8731 # bizarre bug on SunOS 4.1.3.
8732 if $ac_need_defaults; then
8733 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8734 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8735 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8736 fi
8737
8738 # Have a temporary directory for convenience. Make it in the build tree
8739 # simply because there is no reason against having it here, and in addition,
8740 # creating and moving files from /tmp can sometimes cause problems.
8741 # Hook for its removal unless debugging.
8742 # Note that there is a small window in which the directory will not be cleaned:
8743 # after its creation but before its name has been assigned to `$tmp'.
8744 $debug ||
8745 {
8746 tmp= ac_tmp=
8747 trap 'exit_status=$?
8748 : "${ac_tmp:=$tmp}"
8749 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8750 ' 0
8751 trap 'as_fn_exit 1' 1 2 13 15
8752 }
8753 # Create a (secure) tmp directory for tmp files.
8754
8755 {
8756 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8757 test -d "$tmp"
8758 } ||
8759 {
8760 tmp=./conf$$-$RANDOM
8761 (umask 077 && mkdir "$tmp")
8762 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8763 ac_tmp=$tmp
8764
8765 # Set up the scripts for CONFIG_FILES section.
8766 # No need to generate them if there are no CONFIG_FILES.
8767 # This happens for instance with `./config.status config.h'.
8768 if test -n "$CONFIG_FILES"; then
8769
8770
8771 ac_cr=`echo X | tr X '\015'`
8772 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8773 # But we know of no other shell where ac_cr would be empty at this
8774 # point, so we can use a bashism as a fallback.
8775 if test "x$ac_cr" = x; then
8776 eval ac_cr=\$\'\\r\'
8777 fi
8778 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8779 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8780 ac_cs_awk_cr='\\r'
8781 else
8782 ac_cs_awk_cr=$ac_cr
8783 fi
8784
8785 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8786 _ACEOF
8787
8788
8789 {
8790 echo "cat >conf$$subs.awk <<_ACEOF" &&
8791 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8792 echo "_ACEOF"
8793 } >conf$$subs.sh ||
8794 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8795 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8796 ac_delim='%!_!# '
8797 for ac_last_try in false false false false false :; do
8798 . ./conf$$subs.sh ||
8799 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8800
8801 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8802 if test $ac_delim_n = $ac_delim_num; then
8803 break
8804 elif $ac_last_try; then
8805 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8806 else
8807 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8808 fi
8809 done
8810 rm -f conf$$subs.sh
8811
8812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8813 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8814 _ACEOF
8815 sed -n '
8816 h
8817 s/^/S["/; s/!.*/"]=/
8818 p
8819 g
8820 s/^[^!]*!//
8821 :repl
8822 t repl
8823 s/'"$ac_delim"'$//
8824 t delim
8825 :nl
8826 h
8827 s/\(.\{148\}\)..*/\1/
8828 t more1
8829 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8830 p
8831 n
8832 b repl
8833 :more1
8834 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8835 p
8836 g
8837 s/.\{148\}//
8838 t nl
8839 :delim
8840 h
8841 s/\(.\{148\}\)..*/\1/
8842 t more2
8843 s/["\\]/\\&/g; s/^/"/; s/$/"/
8844 p
8845 b
8846 :more2
8847 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8848 p
8849 g
8850 s/.\{148\}//
8851 t delim
8852 ' <conf$$subs.awk | sed '
8853 /^[^""]/{
8854 N
8855 s/\n//
8856 }
8857 ' >>$CONFIG_STATUS || ac_write_fail=1
8858 rm -f conf$$subs.awk
8859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8860 _ACAWK
8861 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8862 for (key in S) S_is_set[key] = 1
8863 FS = "\a"
8864
8865 }
8866 {
8867 line = $ 0
8868 nfields = split(line, field, "@")
8869 substed = 0
8870 len = length(field[1])
8871 for (i = 2; i < nfields; i++) {
8872 key = field[i]
8873 keylen = length(key)
8874 if (S_is_set[key]) {
8875 value = S[key]
8876 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8877 len += length(value) + length(field[++i])
8878 substed = 1
8879 } else
8880 len += 1 + keylen
8881 }
8882
8883 print line
8884 }
8885
8886 _ACAWK
8887 _ACEOF
8888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8889 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8890 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8891 else
8892 cat
8893 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8894 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8895 _ACEOF
8896
8897 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8898 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8899 # trailing colons and then remove the whole line if VPATH becomes empty
8900 # (actually we leave an empty line to preserve line numbers).
8901 if test "x$srcdir" = x.; then
8902 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8903 h
8904 s///
8905 s/^/:/
8906 s/[ ]*$/:/
8907 s/:\$(srcdir):/:/g
8908 s/:\${srcdir}:/:/g
8909 s/:@srcdir@:/:/g
8910 s/^:*//
8911 s/:*$//
8912 x
8913 s/\(=[ ]*\).*/\1/
8914 G
8915 s/\n//
8916 s/^[^=]*=[ ]*$//
8917 }'
8918 fi
8919
8920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8921 fi # test -n "$CONFIG_FILES"
8922
8923 # Set up the scripts for CONFIG_HEADERS section.
8924 # No need to generate them if there are no CONFIG_HEADERS.
8925 # This happens for instance with `./config.status Makefile'.
8926 if test -n "$CONFIG_HEADERS"; then
8927 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8928 BEGIN {
8929 _ACEOF
8930
8931 # Transform confdefs.h into an awk script `defines.awk', embedded as
8932 # here-document in config.status, that substitutes the proper values into
8933 # config.h.in to produce config.h.
8934
8935 # Create a delimiter string that does not exist in confdefs.h, to ease
8936 # handling of long lines.
8937 ac_delim='%!_!# '
8938 for ac_last_try in false false :; do
8939 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8940 if test -z "$ac_tt"; then
8941 break
8942 elif $ac_last_try; then
8943 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8944 else
8945 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8946 fi
8947 done
8948
8949 # For the awk script, D is an array of macro values keyed by name,
8950 # likewise P contains macro parameters if any. Preserve backslash
8951 # newline sequences.
8952
8953 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8954 sed -n '
8955 s/.\{148\}/&'"$ac_delim"'/g
8956 t rset
8957 :rset
8958 s/^[ ]*#[ ]*define[ ][ ]*/ /
8959 t def
8960 d
8961 :def
8962 s/\\$//
8963 t bsnl
8964 s/["\\]/\\&/g
8965 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8966 D["\1"]=" \3"/p
8967 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8968 d
8969 :bsnl
8970 s/["\\]/\\&/g
8971 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8972 D["\1"]=" \3\\\\\\n"\\/p
8973 t cont
8974 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8975 t cont
8976 d
8977 :cont
8978 n
8979 s/.\{148\}/&'"$ac_delim"'/g
8980 t clear
8981 :clear
8982 s/\\$//
8983 t bsnlc
8984 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8985 d
8986 :bsnlc
8987 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8988 b cont
8989 ' <confdefs.h | sed '
8990 s/'"$ac_delim"'/"\\\
8991 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8992
8993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8994 for (key in D) D_is_set[key] = 1
8995 FS = "\a"
8996 }
8997 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8998 line = \$ 0
8999 split(line, arg, " ")
9000 if (arg[1] == "#") {
9001 defundef = arg[2]
9002 mac1 = arg[3]
9003 } else {
9004 defundef = substr(arg[1], 2)
9005 mac1 = arg[2]
9006 }
9007 split(mac1, mac2, "(") #)
9008 macro = mac2[1]
9009 prefix = substr(line, 1, index(line, defundef) - 1)
9010 if (D_is_set[macro]) {
9011 # Preserve the white space surrounding the "#".
9012 print prefix "define", macro P[macro] D[macro]
9013 next
9014 } else {
9015 # Replace #undef with comments. This is necessary, for example,
9016 # in the case of _POSIX_SOURCE, which is predefined and required
9017 # on some systems where configure will not decide to define it.
9018 if (defundef == "undef") {
9019 print "/*", prefix defundef, macro, "*/"
9020 next
9021 }
9022 }
9023 }
9024 { print }
9025 _ACAWK
9026 _ACEOF
9027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9028 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9029 fi # test -n "$CONFIG_HEADERS"
9030
9031
9032 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9033 shift
9034 for ac_tag
9035 do
9036 case $ac_tag in
9037 :[FHLC]) ac_mode=$ac_tag; continue;;
9038 esac
9039 case $ac_mode$ac_tag in
9040 :[FHL]*:*);;
9041 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9042 :[FH]-) ac_tag=-:-;;
9043 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9044 esac
9045 ac_save_IFS=$IFS
9046 IFS=:
9047 set x $ac_tag
9048 IFS=$ac_save_IFS
9049 shift
9050 ac_file=$1
9051 shift
9052
9053 case $ac_mode in
9054 :L) ac_source=$1;;
9055 :[FH])
9056 ac_file_inputs=
9057 for ac_f
9058 do
9059 case $ac_f in
9060 -) ac_f="$ac_tmp/stdin";;
9061 *) # Look for the file first in the build tree, then in the source tree
9062 # (if the path is not absolute). The absolute path cannot be DOS-style,
9063 # because $ac_f cannot contain `:'.
9064 test -f "$ac_f" ||
9065 case $ac_f in
9066 [\\/$]*) false;;
9067 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9068 esac ||
9069 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9070 esac
9071 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9072 as_fn_append ac_file_inputs " '$ac_f'"
9073 done
9074
9075 # Let's still pretend it is `configure' which instantiates (i.e., don't
9076 # use $as_me), people would be surprised to read:
9077 # /* config.h. Generated by config.status. */
9078 configure_input='Generated from '`
9079 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9080 `' by configure.'
9081 if test x"$ac_file" != x-; then
9082 configure_input="$ac_file. $configure_input"
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9084 $as_echo "$as_me: creating $ac_file" >&6;}
9085 fi
9086 # Neutralize special characters interpreted by sed in replacement strings.
9087 case $configure_input in #(
9088 *\&* | *\|* | *\\* )
9089 ac_sed_conf_input=`$as_echo "$configure_input" |
9090 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9091 *) ac_sed_conf_input=$configure_input;;
9092 esac
9093
9094 case $ac_tag in
9095 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9096 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9097 esac
9098 ;;
9099 esac
9100
9101 ac_dir=`$as_dirname -- "$ac_file" ||
9102 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9103 X"$ac_file" : 'X\(//\)[^/]' \| \
9104 X"$ac_file" : 'X\(//\)$' \| \
9105 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9106 $as_echo X"$ac_file" |
9107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9108 s//\1/
9109 q
9110 }
9111 /^X\(\/\/\)[^/].*/{
9112 s//\1/
9113 q
9114 }
9115 /^X\(\/\/\)$/{
9116 s//\1/
9117 q
9118 }
9119 /^X\(\/\).*/{
9120 s//\1/
9121 q
9122 }
9123 s/.*/./; q'`
9124 as_dir="$ac_dir"; as_fn_mkdir_p
9125 ac_builddir=.
9126
9127 case "$ac_dir" in
9128 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9129 *)
9130 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9131 # A ".." for each directory in $ac_dir_suffix.
9132 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9133 case $ac_top_builddir_sub in
9134 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9135 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9136 esac ;;
9137 esac
9138 ac_abs_top_builddir=$ac_pwd
9139 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9140 # for backward compatibility:
9141 ac_top_builddir=$ac_top_build_prefix
9142
9143 case $srcdir in
9144 .) # We are building in place.
9145 ac_srcdir=.
9146 ac_top_srcdir=$ac_top_builddir_sub
9147 ac_abs_top_srcdir=$ac_pwd ;;
9148 [\\/]* | ?:[\\/]* ) # Absolute name.
9149 ac_srcdir=$srcdir$ac_dir_suffix;
9150 ac_top_srcdir=$srcdir
9151 ac_abs_top_srcdir=$srcdir ;;
9152 *) # Relative name.
9153 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9154 ac_top_srcdir=$ac_top_build_prefix$srcdir
9155 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9156 esac
9157 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9158
9159
9160 case $ac_mode in
9161 :F)
9162 #
9163 # CONFIG_FILE
9164 #
9165
9166 case $INSTALL in
9167 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9168 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9169 esac
9170 _ACEOF
9171
9172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9173 # If the template does not know about datarootdir, expand it.
9174 # FIXME: This hack should be removed a few years after 2.60.
9175 ac_datarootdir_hack=; ac_datarootdir_seen=
9176 ac_sed_dataroot='
9177 /datarootdir/ {
9178 p
9179 q
9180 }
9181 /@datadir@/p
9182 /@docdir@/p
9183 /@infodir@/p
9184 /@localedir@/p
9185 /@mandir@/p'
9186 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9187 *datarootdir*) ac_datarootdir_seen=yes;;
9188 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9190 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9191 _ACEOF
9192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9193 ac_datarootdir_hack='
9194 s&@datadir@&$datadir&g
9195 s&@docdir@&$docdir&g
9196 s&@infodir@&$infodir&g
9197 s&@localedir@&$localedir&g
9198 s&@mandir@&$mandir&g
9199 s&\\\${datarootdir}&$datarootdir&g' ;;
9200 esac
9201 _ACEOF
9202
9203 # Neutralize VPATH when `$srcdir' = `.'.
9204 # Shell code in configure.ac might set extrasub.
9205 # FIXME: do we really want to maintain this feature?
9206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9207 ac_sed_extra="$ac_vpsub
9208 $extrasub
9209 _ACEOF
9210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9211 :t
9212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9213 s|@configure_input@|$ac_sed_conf_input|;t t
9214 s&@top_builddir@&$ac_top_builddir_sub&;t t
9215 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9216 s&@srcdir@&$ac_srcdir&;t t
9217 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9218 s&@top_srcdir@&$ac_top_srcdir&;t t
9219 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9220 s&@builddir@&$ac_builddir&;t t
9221 s&@abs_builddir@&$ac_abs_builddir&;t t
9222 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9223 s&@INSTALL@&$ac_INSTALL&;t t
9224 $ac_datarootdir_hack
9225 "
9226 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9227 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9228
9229 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9230 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9231 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9232 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9234 which seems to be undefined. Please make sure it is defined" >&5
9235 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9236 which seems to be undefined. Please make sure it is defined" >&2;}
9237
9238 rm -f "$ac_tmp/stdin"
9239 case $ac_file in
9240 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9241 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9242 esac \
9243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9244 ;;
9245 :H)
9246 #
9247 # CONFIG_HEADER
9248 #
9249 if test x"$ac_file" != x-; then
9250 {
9251 $as_echo "/* $configure_input */" \
9252 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9253 } >"$ac_tmp/config.h" \
9254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9255 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9257 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9258 else
9259 rm -f "$ac_file"
9260 mv "$ac_tmp/config.h" "$ac_file" \
9261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9262 fi
9263 else
9264 $as_echo "/* $configure_input */" \
9265 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9266 || as_fn_error $? "could not create -" "$LINENO" 5
9267 fi
9268 ;;
9269
9270 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9271 $as_echo "$as_me: executing $ac_file commands" >&6;}
9272 ;;
9273 esac
9274
9275
9276 case $ac_file$ac_mode in
9277 "default-1":C) if test -f .devel; then
9278 echo timestamp > stamp-h
9279 cat Makefile-devel-adds >> Makefile
9280 make depend
9281 fi ;;
9282
9283 esac
9284 done # for ac_tag
9285
9286
9287 as_fn_exit 0
9288 _ACEOF
9289 ac_clean_files=$ac_clean_files_save
9290
9291 test $ac_write_fail = 0 ||
9292 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9293
9294
9295 # configure is writing to config.log, and then calls config.status.
9296 # config.status does its own redirection, appending to config.log.
9297 # Unfortunately, on DOS this fails, as config.log is still kept open
9298 # by configure, so config.status won't be able to write to it; its
9299 # output is simply discarded. So we exec the FD to /dev/null,
9300 # effectively closing config.log, so it can be properly (re)opened and
9301 # appended to by config.status. When coming back to configure, we
9302 # need to make the FD available again.
9303 if test "$no_create" != yes; then
9304 ac_cs_success=:
9305 ac_config_status_args=
9306 test "$silent" = yes &&
9307 ac_config_status_args="$ac_config_status_args --quiet"
9308 exec 5>/dev/null
9309 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9310 exec 5>>config.log
9311 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9312 # would make configure fail if this is the last instruction.
9313 $ac_cs_success || as_fn_exit 1
9314 fi
9315 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9317 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9318 fi
9319
9320 exit 0