]> gitweb.fperrin.net Git - iftop.git/blob - configure
Import iftop-1.0pre4
[iftop.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for iftop 1.0pre4.
4 #
5 # Report bugs to <pdw@ex-parrot.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and pdw@ex-parrot.com
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='iftop'
582 PACKAGE_TARNAME='iftop'
583 PACKAGE_VERSION='1.0pre4'
584 PACKAGE_STRING='iftop 1.0pre4'
585 PACKAGE_BUGREPORT='pdw@ex-parrot.com'
586 PACKAGE_URL='http://www.ex-parrot.com/pdw/iftop/'
587
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 #  include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 #  include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
623
624 ac_subst_vars='am__EXEEXT_FALSE
625 am__EXEEXT_TRUE
626 LTLIBOBJS
627 LIBOBJS
628 ac_aux_dir
629 EGREP
630 GREP
631 CPP
632 am__fastdepCC_FALSE
633 am__fastdepCC_TRUE
634 CCDEPMODE
635 am__nodep
636 AMDEPBACKSLASH
637 AMDEP_FALSE
638 AMDEP_TRUE
639 am__quote
640 am__include
641 DEPDIR
642 OBJEXT
643 EXEEXT
644 ac_ct_CC
645 CPPFLAGS
646 LDFLAGS
647 CFLAGS
648 CC
649 AM_BACKSLASH
650 AM_DEFAULT_VERBOSITY
651 AM_DEFAULT_V
652 AM_V
653 am__untar
654 am__tar
655 AMTAR
656 am__leading_dot
657 SET_MAKE
658 AWK
659 mkdir_p
660 MKDIR_P
661 INSTALL_STRIP_PROGRAM
662 STRIP
663 install_sh
664 MAKEINFO
665 AUTOHEADER
666 AUTOMAKE
667 AUTOCONF
668 ACLOCAL
669 VERSION
670 PACKAGE
671 CYGPATH_W
672 am__isrc
673 INSTALL_DATA
674 INSTALL_SCRIPT
675 INSTALL_PROGRAM
676 target_os
677 target_vendor
678 target_cpu
679 target
680 host_os
681 host_vendor
682 host_cpu
683 host
684 build_os
685 build_vendor
686 build_cpu
687 build
688 target_alias
689 host_alias
690 build_alias
691 LIBS
692 ECHO_T
693 ECHO_N
694 ECHO_C
695 DEFS
696 mandir
697 localedir
698 libdir
699 psdir
700 pdfdir
701 dvidir
702 htmldir
703 infodir
704 docdir
705 oldincludedir
706 includedir
707 localstatedir
708 sharedstatedir
709 sysconfdir
710 datadir
711 datarootdir
712 libexecdir
713 sbindir
714 bindir
715 program_transform_name
716 prefix
717 exec_prefix
718 PACKAGE_URL
719 PACKAGE_BUGREPORT
720 PACKAGE_STRING
721 PACKAGE_VERSION
722 PACKAGE_TARNAME
723 PACKAGE_NAME
724 PATH_SEPARATOR
725 SHELL'
726 ac_subst_files=''
727 ac_user_opts='
728 enable_option_checking
729 enable_silent_rules
730 enable_dependency_tracking
731 with_resolver
732 with_libpcap
733 enable_default_promiscuous
734 '
735       ac_precious_vars='build_alias
736 host_alias
737 target_alias
738 CC
739 CFLAGS
740 LDFLAGS
741 LIBS
742 CPPFLAGS
743 CPP'
744
745
746 # Initialize some variables set by options.
747 ac_init_help=
748 ac_init_version=false
749 ac_unrecognized_opts=
750 ac_unrecognized_sep=
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
753 cache_file=/dev/null
754 exec_prefix=NONE
755 no_create=
756 no_recursion=
757 prefix=NONE
758 program_prefix=NONE
759 program_suffix=NONE
760 program_transform_name=s,x,x,
761 silent=
762 site=
763 srcdir=
764 verbose=
765 x_includes=NONE
766 x_libraries=NONE
767
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir='${exec_prefix}/bin'
775 sbindir='${exec_prefix}/sbin'
776 libexecdir='${exec_prefix}/libexec'
777 datarootdir='${prefix}/share'
778 datadir='${datarootdir}'
779 sysconfdir='${prefix}/etc'
780 sharedstatedir='${prefix}/com'
781 localstatedir='${prefix}/var'
782 includedir='${prefix}/include'
783 oldincludedir='/usr/include'
784 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785 infodir='${datarootdir}/info'
786 htmldir='${docdir}'
787 dvidir='${docdir}'
788 pdfdir='${docdir}'
789 psdir='${docdir}'
790 libdir='${exec_prefix}/lib'
791 localedir='${datarootdir}/locale'
792 mandir='${datarootdir}/man'
793
794 ac_prev=
795 ac_dashdash=
796 for ac_option
797 do
798   # If the previous option needs an argument, assign it.
799   if test -n "$ac_prev"; then
800     eval $ac_prev=\$ac_option
801     ac_prev=
802     continue
803   fi
804
805   case $ac_option in
806   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807   *=)   ac_optarg= ;;
808   *)    ac_optarg=yes ;;
809   esac
810
811   # Accept the important Cygnus configure options, so we can diagnose typos.
812
813   case $ac_dashdash$ac_option in
814   --)
815     ac_dashdash=yes ;;
816
817   -bindir | --bindir | --bindi | --bind | --bin | --bi)
818     ac_prev=bindir ;;
819   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820     bindir=$ac_optarg ;;
821
822   -build | --build | --buil | --bui | --bu)
823     ac_prev=build_alias ;;
824   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825     build_alias=$ac_optarg ;;
826
827   -cache-file | --cache-file | --cache-fil | --cache-fi \
828   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829     ac_prev=cache_file ;;
830   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832     cache_file=$ac_optarg ;;
833
834   --config-cache | -C)
835     cache_file=config.cache ;;
836
837   -datadir | --datadir | --datadi | --datad)
838     ac_prev=datadir ;;
839   -datadir=* | --datadir=* | --datadi=* | --datad=*)
840     datadir=$ac_optarg ;;
841
842   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843   | --dataroo | --dataro | --datar)
844     ac_prev=datarootdir ;;
845   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847     datarootdir=$ac_optarg ;;
848
849   -disable-* | --disable-*)
850     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851     # Reject names that are not valid shell variable names.
852     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853       as_fn_error $? "invalid feature name: $ac_useropt"
854     ac_useropt_orig=$ac_useropt
855     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856     case $ac_user_opts in
857       *"
858 "enable_$ac_useropt"
859 "*) ;;
860       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
861          ac_unrecognized_sep=', ';;
862     esac
863     eval enable_$ac_useropt=no ;;
864
865   -docdir | --docdir | --docdi | --doc | --do)
866     ac_prev=docdir ;;
867   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
868     docdir=$ac_optarg ;;
869
870   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
871     ac_prev=dvidir ;;
872   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
873     dvidir=$ac_optarg ;;
874
875   -enable-* | --enable-*)
876     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877     # Reject names that are not valid shell variable names.
878     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879       as_fn_error $? "invalid feature name: $ac_useropt"
880     ac_useropt_orig=$ac_useropt
881     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882     case $ac_user_opts in
883       *"
884 "enable_$ac_useropt"
885 "*) ;;
886       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
887          ac_unrecognized_sep=', ';;
888     esac
889     eval enable_$ac_useropt=\$ac_optarg ;;
890
891   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893   | --exec | --exe | --ex)
894     ac_prev=exec_prefix ;;
895   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897   | --exec=* | --exe=* | --ex=*)
898     exec_prefix=$ac_optarg ;;
899
900   -gas | --gas | --ga | --g)
901     # Obsolete; use --with-gas.
902     with_gas=yes ;;
903
904   -help | --help | --hel | --he | -h)
905     ac_init_help=long ;;
906   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907     ac_init_help=recursive ;;
908   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909     ac_init_help=short ;;
910
911   -host | --host | --hos | --ho)
912     ac_prev=host_alias ;;
913   -host=* | --host=* | --hos=* | --ho=*)
914     host_alias=$ac_optarg ;;
915
916   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
917     ac_prev=htmldir ;;
918   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
919   | --ht=*)
920     htmldir=$ac_optarg ;;
921
922   -includedir | --includedir | --includedi | --included | --include \
923   | --includ | --inclu | --incl | --inc)
924     ac_prev=includedir ;;
925   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926   | --includ=* | --inclu=* | --incl=* | --inc=*)
927     includedir=$ac_optarg ;;
928
929   -infodir | --infodir | --infodi | --infod | --info | --inf)
930     ac_prev=infodir ;;
931   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932     infodir=$ac_optarg ;;
933
934   -libdir | --libdir | --libdi | --libd)
935     ac_prev=libdir ;;
936   -libdir=* | --libdir=* | --libdi=* | --libd=*)
937     libdir=$ac_optarg ;;
938
939   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940   | --libexe | --libex | --libe)
941     ac_prev=libexecdir ;;
942   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943   | --libexe=* | --libex=* | --libe=*)
944     libexecdir=$ac_optarg ;;
945
946   -localedir | --localedir | --localedi | --localed | --locale)
947     ac_prev=localedir ;;
948   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949     localedir=$ac_optarg ;;
950
951   -localstatedir | --localstatedir | --localstatedi | --localstated \
952   | --localstate | --localstat | --localsta | --localst | --locals)
953     ac_prev=localstatedir ;;
954   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
955   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956     localstatedir=$ac_optarg ;;
957
958   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959     ac_prev=mandir ;;
960   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
961     mandir=$ac_optarg ;;
962
963   -nfp | --nfp | --nf)
964     # Obsolete; use --without-fp.
965     with_fp=no ;;
966
967   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968   | --no-cr | --no-c | -n)
969     no_create=yes ;;
970
971   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
973     no_recursion=yes ;;
974
975   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977   | --oldin | --oldi | --old | --ol | --o)
978     ac_prev=oldincludedir ;;
979   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982     oldincludedir=$ac_optarg ;;
983
984   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985     ac_prev=prefix ;;
986   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
987     prefix=$ac_optarg ;;
988
989   -program-prefix | --program-prefix | --program-prefi | --program-pref \
990   | --program-pre | --program-pr | --program-p)
991     ac_prev=program_prefix ;;
992   -program-prefix=* | --program-prefix=* | --program-prefi=* \
993   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994     program_prefix=$ac_optarg ;;
995
996   -program-suffix | --program-suffix | --program-suffi | --program-suff \
997   | --program-suf | --program-su | --program-s)
998     ac_prev=program_suffix ;;
999   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001     program_suffix=$ac_optarg ;;
1002
1003   -program-transform-name | --program-transform-name \
1004   | --program-transform-nam | --program-transform-na \
1005   | --program-transform-n | --program-transform- \
1006   | --program-transform | --program-transfor \
1007   | --program-transfo | --program-transf \
1008   | --program-trans | --program-tran \
1009   | --progr-tra | --program-tr | --program-t)
1010     ac_prev=program_transform_name ;;
1011   -program-transform-name=* | --program-transform-name=* \
1012   | --program-transform-nam=* | --program-transform-na=* \
1013   | --program-transform-n=* | --program-transform-=* \
1014   | --program-transform=* | --program-transfor=* \
1015   | --program-transfo=* | --program-transf=* \
1016   | --program-trans=* | --program-tran=* \
1017   | --progr-tra=* | --program-tr=* | --program-t=*)
1018     program_transform_name=$ac_optarg ;;
1019
1020   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1021     ac_prev=pdfdir ;;
1022   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023     pdfdir=$ac_optarg ;;
1024
1025   -psdir | --psdir | --psdi | --psd | --ps)
1026     ac_prev=psdir ;;
1027   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1028     psdir=$ac_optarg ;;
1029
1030   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031   | -silent | --silent | --silen | --sile | --sil)
1032     silent=yes ;;
1033
1034   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1035     ac_prev=sbindir ;;
1036   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1037   | --sbi=* | --sb=*)
1038     sbindir=$ac_optarg ;;
1039
1040   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042   | --sharedst | --shareds | --shared | --share | --shar \
1043   | --sha | --sh)
1044     ac_prev=sharedstatedir ;;
1045   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1048   | --sha=* | --sh=*)
1049     sharedstatedir=$ac_optarg ;;
1050
1051   -site | --site | --sit)
1052     ac_prev=site ;;
1053   -site=* | --site=* | --sit=*)
1054     site=$ac_optarg ;;
1055
1056   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1057     ac_prev=srcdir ;;
1058   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059     srcdir=$ac_optarg ;;
1060
1061   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062   | --syscon | --sysco | --sysc | --sys | --sy)
1063     ac_prev=sysconfdir ;;
1064   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066     sysconfdir=$ac_optarg ;;
1067
1068   -target | --target | --targe | --targ | --tar | --ta | --t)
1069     ac_prev=target_alias ;;
1070   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071     target_alias=$ac_optarg ;;
1072
1073   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1074     verbose=yes ;;
1075
1076   -version | --version | --versio | --versi | --vers | -V)
1077     ac_init_version=: ;;
1078
1079   -with-* | --with-*)
1080     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083       as_fn_error $? "invalid package name: $ac_useropt"
1084     ac_useropt_orig=$ac_useropt
1085     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086     case $ac_user_opts in
1087       *"
1088 "with_$ac_useropt"
1089 "*) ;;
1090       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1091          ac_unrecognized_sep=', ';;
1092     esac
1093     eval with_$ac_useropt=\$ac_optarg ;;
1094
1095   -without-* | --without-*)
1096     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097     # Reject names that are not valid shell variable names.
1098     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099       as_fn_error $? "invalid package name: $ac_useropt"
1100     ac_useropt_orig=$ac_useropt
1101     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102     case $ac_user_opts in
1103       *"
1104 "with_$ac_useropt"
1105 "*) ;;
1106       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1107          ac_unrecognized_sep=', ';;
1108     esac
1109     eval with_$ac_useropt=no ;;
1110
1111   --x)
1112     # Obsolete; use --with-x.
1113     with_x=yes ;;
1114
1115   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1116   | --x-incl | --x-inc | --x-in | --x-i)
1117     ac_prev=x_includes ;;
1118   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1119   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1120     x_includes=$ac_optarg ;;
1121
1122   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1123   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1124     ac_prev=x_libraries ;;
1125   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1126   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127     x_libraries=$ac_optarg ;;
1128
1129   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1130 Try \`$0 --help' for more information"
1131     ;;
1132
1133   *=*)
1134     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1135     # Reject names that are not valid shell variable names.
1136     case $ac_envvar in #(
1137       '' | [0-9]* | *[!_$as_cr_alnum]* )
1138       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1139     esac
1140     eval $ac_envvar=\$ac_optarg
1141     export $ac_envvar ;;
1142
1143   *)
1144     # FIXME: should be removed in autoconf 3.0.
1145     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1148     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1149     ;;
1150
1151   esac
1152 done
1153
1154 if test -n "$ac_prev"; then
1155   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1156   as_fn_error $? "missing argument to $ac_option"
1157 fi
1158
1159 if test -n "$ac_unrecognized_opts"; then
1160   case $enable_option_checking in
1161     no) ;;
1162     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1163     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1164   esac
1165 fi
1166
1167 # Check all directory arguments for consistency.
1168 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169                 datadir sysconfdir sharedstatedir localstatedir includedir \
1170                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1171                 libdir localedir mandir
1172 do
1173   eval ac_val=\$$ac_var
1174   # Remove trailing slashes.
1175   case $ac_val in
1176     */ )
1177       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1178       eval $ac_var=\$ac_val;;
1179   esac
1180   # Be sure to have absolute directory names.
1181   case $ac_val in
1182     [\\/$]* | ?:[\\/]* )  continue;;
1183     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184   esac
1185   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1186 done
1187
1188 # There might be people who depend on the old broken behavior: `$host'
1189 # used to hold the argument of --host etc.
1190 # FIXME: To remove some day.
1191 build=$build_alias
1192 host=$host_alias
1193 target=$target_alias
1194
1195 # FIXME: To remove some day.
1196 if test "x$host_alias" != x; then
1197   if test "x$build_alias" = x; then
1198     cross_compiling=maybe
1199   elif test "x$build_alias" != "x$host_alias"; then
1200     cross_compiling=yes
1201   fi
1202 fi
1203
1204 ac_tool_prefix=
1205 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1206
1207 test "$silent" = yes && exec 6>/dev/null
1208
1209
1210 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211 ac_ls_di=`ls -di .` &&
1212 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1213   as_fn_error $? "working directory cannot be determined"
1214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215   as_fn_error $? "pwd does not report name of working directory"
1216
1217
1218 # Find the source files, if location was not specified.
1219 if test -z "$srcdir"; then
1220   ac_srcdir_defaulted=yes
1221   # Try the directory containing this script, then the parent directory.
1222   ac_confdir=`$as_dirname -- "$as_myself" ||
1223 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224          X"$as_myself" : 'X\(//\)[^/]' \| \
1225          X"$as_myself" : 'X\(//\)$' \| \
1226          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1227 $as_echo X"$as_myself" |
1228     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229             s//\1/
1230             q
1231           }
1232           /^X\(\/\/\)[^/].*/{
1233             s//\1/
1234             q
1235           }
1236           /^X\(\/\/\)$/{
1237             s//\1/
1238             q
1239           }
1240           /^X\(\/\).*/{
1241             s//\1/
1242             q
1243           }
1244           s/.*/./; q'`
1245   srcdir=$ac_confdir
1246   if test ! -r "$srcdir/$ac_unique_file"; then
1247     srcdir=..
1248   fi
1249 else
1250   ac_srcdir_defaulted=no
1251 fi
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1255 fi
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 ac_abs_confdir=`(
1258         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1259         pwd)`
1260 # When building in place, set srcdir=.
1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
1262   srcdir=.
1263 fi
1264 # Remove unnecessary trailing slashes from srcdir.
1265 # Double slashes in file names in object file debugging info
1266 # mess up M-x gdb in Emacs.
1267 case $srcdir in
1268 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269 esac
1270 for ac_var in $ac_precious_vars; do
1271   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1272   eval ac_env_${ac_var}_value=\$${ac_var}
1273   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1274   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275 done
1276
1277 #
1278 # Report the --help message.
1279 #
1280 if test "$ac_init_help" = "long"; then
1281   # Omit some internal or obsolete options to make the list less imposing.
1282   # This message is too long to be a string in the A/UX 3.1 sh.
1283   cat <<_ACEOF
1284 \`configure' configures iftop 1.0pre4 to adapt to many kinds of systems.
1285
1286 Usage: $0 [OPTION]... [VAR=VALUE]...
1287
1288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289 VAR=VALUE.  See below for descriptions of some of the useful variables.
1290
1291 Defaults for the options are specified in brackets.
1292
1293 Configuration:
1294   -h, --help              display this help and exit
1295       --help=short        display options specific to this package
1296       --help=recursive    display the short help of all the included packages
1297   -V, --version           display version information and exit
1298   -q, --quiet, --silent   do not print \`checking ...' messages
1299       --cache-file=FILE   cache test results in FILE [disabled]
1300   -C, --config-cache      alias for \`--cache-file=config.cache'
1301   -n, --no-create         do not create output files
1302       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1303
1304 Installation directories:
1305   --prefix=PREFIX         install architecture-independent files in PREFIX
1306                           [$ac_default_prefix]
1307   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1308                           [PREFIX]
1309
1310 By default, \`make install' will install all the files in
1311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313 for instance \`--prefix=\$HOME'.
1314
1315 For better control, use the options below.
1316
1317 Fine tuning of the installation directories:
1318   --bindir=DIR            user executables [EPREFIX/bin]
1319   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1320   --libexecdir=DIR        program executables [EPREFIX/libexec]
1321   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1322   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1323   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1324   --libdir=DIR            object code libraries [EPREFIX/lib]
1325   --includedir=DIR        C header files [PREFIX/include]
1326   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1327   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1328   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1329   --infodir=DIR           info documentation [DATAROOTDIR/info]
1330   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1331   --mandir=DIR            man documentation [DATAROOTDIR/man]
1332   --docdir=DIR            documentation root [DATAROOTDIR/doc/iftop]
1333   --htmldir=DIR           html documentation [DOCDIR]
1334   --dvidir=DIR            dvi documentation [DOCDIR]
1335   --pdfdir=DIR            pdf documentation [DOCDIR]
1336   --psdir=DIR             ps documentation [DOCDIR]
1337 _ACEOF
1338
1339   cat <<\_ACEOF
1340
1341 Program names:
1342   --program-prefix=PREFIX            prepend PREFIX to installed program names
1343   --program-suffix=SUFFIX            append SUFFIX to installed program names
1344   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1345
1346 System types:
1347   --build=BUILD     configure for building on BUILD [guessed]
1348   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1349   --target=TARGET   configure for building compilers for TARGET [HOST]
1350 _ACEOF
1351 fi
1352
1353 if test -n "$ac_init_help"; then
1354   case $ac_init_help in
1355      short | recursive ) echo "Configuration of iftop 1.0pre4:";;
1356    esac
1357   cat <<\_ACEOF
1358
1359 Optional Features:
1360   --disable-option-checking  ignore unrecognized --enable/--with options
1361   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1362   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1363   --enable-silent-rules   less verbose build output (undo: "make V=1")
1364   --disable-silent-rules  verbose build output (undo: "make V=0")
1365   --enable-dependency-tracking
1366                           do not reject slow dependency extractors
1367   --disable-dependency-tracking
1368                           speeds up one-time build
1369   --enable-default-promiscuous If enabled, iftop will operate in promiscuous mode
1370                           to capture outgoing packets
1371
1372 Optional Packages:
1373   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1374   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1375   --with-resolver=TYPE    Technique iftop should use for name resolution.
1376                           Valid options are:
1377                           netdb          use gethostbyaddr_r in multiple
1378                                          threads.
1379                           netdb_1thread  use gethostbyaddr_r and
1380                                          assume it is not reentrant.
1381                           ares           use the MIT ARES asynchronous
1382                                          resolver library.
1383                           forking        use the REALLY SUCKY forking resolver.
1384                           guess          run experiments to guess a
1385                                          reasonable value.  Only works if you
1386                                          aren't cross-compiling.  This
1387                                          is the default.  guess will
1388                                          either select netdb or netdb_1thread.
1389                           none           don't do name resolution.
1390   --with-libpcap=WHERE    Where the libpcap packet-capture library is found.
1391                           The pcap library should be installed  in WHERE/lib,
1392                           and the header file in either WHERE/include or
1393                           WHERE/include/pcap.
1394                           default=look in standard locations
1395
1396 Some influential environment variables:
1397   CC          C compiler command
1398   CFLAGS      C compiler flags
1399   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1400               nonstandard directory <lib dir>
1401   LIBS        libraries to pass to the linker, e.g. -l<library>
1402   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1403               you have headers in a nonstandard directory <include dir>
1404   CPP         C preprocessor
1405
1406 Use these variables to override the choices made by `configure' or to help
1407 it to find libraries and programs with nonstandard names/locations.
1408
1409 Report bugs to <pdw@ex-parrot.com>.
1410 iftop home page: <http://www.ex-parrot.com/pdw/iftop/>.
1411 _ACEOF
1412 ac_status=$?
1413 fi
1414
1415 if test "$ac_init_help" = "recursive"; then
1416   # If there are subdirs, report their specific --help.
1417   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1418     test -d "$ac_dir" ||
1419       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1420       continue
1421     ac_builddir=.
1422
1423 case "$ac_dir" in
1424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 *)
1426   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1427   # A ".." for each directory in $ac_dir_suffix.
1428   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1429   case $ac_top_builddir_sub in
1430   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1432   esac ;;
1433 esac
1434 ac_abs_top_builddir=$ac_pwd
1435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1436 # for backward compatibility:
1437 ac_top_builddir=$ac_top_build_prefix
1438
1439 case $srcdir in
1440   .)  # We are building in place.
1441     ac_srcdir=.
1442     ac_top_srcdir=$ac_top_builddir_sub
1443     ac_abs_top_srcdir=$ac_pwd ;;
1444   [\\/]* | ?:[\\/]* )  # Absolute name.
1445     ac_srcdir=$srcdir$ac_dir_suffix;
1446     ac_top_srcdir=$srcdir
1447     ac_abs_top_srcdir=$srcdir ;;
1448   *) # Relative name.
1449     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1450     ac_top_srcdir=$ac_top_build_prefix$srcdir
1451     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1452 esac
1453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1454
1455     cd "$ac_dir" || { ac_status=$?; continue; }
1456     # Check for guested configure.
1457     if test -f "$ac_srcdir/configure.gnu"; then
1458       echo &&
1459       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1460     elif test -f "$ac_srcdir/configure"; then
1461       echo &&
1462       $SHELL "$ac_srcdir/configure" --help=recursive
1463     else
1464       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1465     fi || ac_status=$?
1466     cd "$ac_pwd" || { ac_status=$?; break; }
1467   done
1468 fi
1469
1470 test -n "$ac_init_help" && exit $ac_status
1471 if $ac_init_version; then
1472   cat <<\_ACEOF
1473 iftop configure 1.0pre4
1474 generated by GNU Autoconf 2.69
1475
1476 Copyright (C) 2012 Free Software Foundation, Inc.
1477 This configure script is free software; the Free Software Foundation
1478 gives unlimited permission to copy, distribute and modify it.
1479 _ACEOF
1480   exit
1481 fi
1482
1483 ## ------------------------ ##
1484 ## Autoconf initialization. ##
1485 ## ------------------------ ##
1486
1487 # ac_fn_c_try_compile LINENO
1488 # --------------------------
1489 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1490 ac_fn_c_try_compile ()
1491 {
1492   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1493   rm -f conftest.$ac_objext
1494   if { { ac_try="$ac_compile"
1495 case "(($ac_try" in
1496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497   *) ac_try_echo=$ac_try;;
1498 esac
1499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500 $as_echo "$ac_try_echo"; } >&5
1501   (eval "$ac_compile") 2>conftest.err
1502   ac_status=$?
1503   if test -s conftest.err; then
1504     grep -v '^ *+' conftest.err >conftest.er1
1505     cat conftest.er1 >&5
1506     mv -f conftest.er1 conftest.err
1507   fi
1508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509   test $ac_status = 0; } && {
1510          test -z "$ac_c_werror_flag" ||
1511          test ! -s conftest.err
1512        } && test -s conftest.$ac_objext; then :
1513   ac_retval=0
1514 else
1515   $as_echo "$as_me: failed program was:" >&5
1516 sed 's/^/| /' conftest.$ac_ext >&5
1517
1518         ac_retval=1
1519 fi
1520   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1521   as_fn_set_status $ac_retval
1522
1523 } # ac_fn_c_try_compile
1524
1525 # ac_fn_c_try_cpp LINENO
1526 # ----------------------
1527 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_cpp ()
1529 {
1530   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531   if { { ac_try="$ac_cpp conftest.$ac_ext"
1532 case "(($ac_try" in
1533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534   *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1539   ac_status=$?
1540   if test -s conftest.err; then
1541     grep -v '^ *+' conftest.err >conftest.er1
1542     cat conftest.er1 >&5
1543     mv -f conftest.er1 conftest.err
1544   fi
1545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546   test $ac_status = 0; } > conftest.i && {
1547          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1548          test ! -s conftest.err
1549        }; then :
1550   ac_retval=0
1551 else
1552   $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555     ac_retval=1
1556 fi
1557   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558   as_fn_set_status $ac_retval
1559
1560 } # ac_fn_c_try_cpp
1561
1562 # ac_fn_c_try_run LINENO
1563 # ----------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1565 # that executables *can* be run.
1566 ac_fn_c_try_run ()
1567 {
1568   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569   if { { ac_try="$ac_link"
1570 case "(($ac_try" in
1571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572   *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576   (eval "$ac_link") 2>&5
1577   ac_status=$?
1578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1580   { { case "(($ac_try" in
1581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582   *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586   (eval "$ac_try") 2>&5
1587   ac_status=$?
1588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589   test $ac_status = 0; }; }; then :
1590   ac_retval=0
1591 else
1592   $as_echo "$as_me: program exited with status $ac_status" >&5
1593        $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596        ac_retval=$ac_status
1597 fi
1598   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1599   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600   as_fn_set_status $ac_retval
1601
1602 } # ac_fn_c_try_run
1603
1604 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1605 # -------------------------------------------------------
1606 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1607 # the include files in INCLUDES and setting the cache variable VAR
1608 # accordingly.
1609 ac_fn_c_check_header_mongrel ()
1610 {
1611   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612   if eval \${$3+:} false; then :
1613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614 $as_echo_n "checking for $2... " >&6; }
1615 if eval \${$3+:} false; then :
1616   $as_echo_n "(cached) " >&6
1617 fi
1618 eval ac_res=\$$3
1619                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621 else
1622   # Is the header compilable?
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1624 $as_echo_n "checking $2 usability... " >&6; }
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h.  */
1627 $4
1628 #include <$2>
1629 _ACEOF
1630 if ac_fn_c_try_compile "$LINENO"; then :
1631   ac_header_compiler=yes
1632 else
1633   ac_header_compiler=no
1634 fi
1635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1637 $as_echo "$ac_header_compiler" >&6; }
1638
1639 # Is the header present?
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1641 $as_echo_n "checking $2 presence... " >&6; }
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h.  */
1644 #include <$2>
1645 _ACEOF
1646 if ac_fn_c_try_cpp "$LINENO"; then :
1647   ac_header_preproc=yes
1648 else
1649   ac_header_preproc=no
1650 fi
1651 rm -f conftest.err conftest.i conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1653 $as_echo "$ac_header_preproc" >&6; }
1654
1655 # So?  What about this header?
1656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1657   yes:no: )
1658     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1659 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1660     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662     ;;
1663   no:yes:* )
1664     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1665 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1666     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1667 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1668     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1669 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1671 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1672     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 ( $as_echo "## -------------------------------- ##
1675 ## Report this to pdw@ex-parrot.com ##
1676 ## -------------------------------- ##"
1677      ) | sed "s/^/$as_me: WARNING:     /" >&2
1678     ;;
1679 esac
1680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683   $as_echo_n "(cached) " >&6
1684 else
1685   eval "$3=\$ac_header_compiler"
1686 fi
1687 eval ac_res=\$$3
1688                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 fi
1691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693 } # ac_fn_c_check_header_mongrel
1694
1695 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists and can be compiled using the include files in
1698 # INCLUDES, setting the cache variable VAR accordingly.
1699 ac_fn_c_check_header_compile ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705   $as_echo_n "(cached) " >&6
1706 else
1707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h.  */
1709 $4
1710 #include <$2>
1711 _ACEOF
1712 if ac_fn_c_try_compile "$LINENO"; then :
1713   eval "$3=yes"
1714 else
1715   eval "$3=no"
1716 fi
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718 fi
1719 eval ac_res=\$$3
1720                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1722   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
1724 } # ac_fn_c_check_header_compile
1725
1726 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1727 # -------------------------------------------
1728 # Tests whether TYPE exists after having included INCLUDES, setting cache
1729 # variable VAR accordingly.
1730 ac_fn_c_check_type ()
1731 {
1732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736   $as_echo_n "(cached) " >&6
1737 else
1738   eval "$3=no"
1739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h.  */
1741 $4
1742 int
1743 main ()
1744 {
1745 if (sizeof ($2))
1746          return 0;
1747   ;
1748   return 0;
1749 }
1750 _ACEOF
1751 if ac_fn_c_try_compile "$LINENO"; then :
1752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h.  */
1754 $4
1755 int
1756 main ()
1757 {
1758 if (sizeof (($2)))
1759             return 0;
1760   ;
1761   return 0;
1762 }
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765
1766 else
1767   eval "$3=yes"
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext 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_type
1779
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_link ()
1784 {
1785   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786   rm -f conftest.$ac_objext conftest$ac_exeext
1787   if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790   *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794   (eval "$ac_link") 2>conftest.err
1795   ac_status=$?
1796   if test -s conftest.err; then
1797     grep -v '^ *+' conftest.err >conftest.er1
1798     cat conftest.er1 >&5
1799     mv -f conftest.er1 conftest.err
1800   fi
1801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802   test $ac_status = 0; } && {
1803          test -z "$ac_c_werror_flag" ||
1804          test ! -s conftest.err
1805        } && test -s conftest$ac_exeext && {
1806          test "$cross_compiling" = yes ||
1807          test -x conftest$ac_exeext
1808        }; then :
1809   ac_retval=0
1810 else
1811   $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814         ac_retval=1
1815 fi
1816   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818   # interfere with the next link command; also delete a directory that is
1819   # left behind by Apple's compiler.  We do this before executing the actions.
1820   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822   as_fn_set_status $ac_retval
1823
1824 } # ac_fn_c_try_link
1825
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835   $as_echo_n "(cached) " >&6
1836 else
1837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h.  */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1841 #define $2 innocuous_$2
1842
1843 /* System header to define __stub macros and hopefully few prototypes,
1844     which can conflict with char $2 (); below.
1845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846     <limits.h> exists even on freestanding compilers.  */
1847
1848 #ifdef __STDC__
1849 # include <limits.h>
1850 #else
1851 # include <assert.h>
1852 #endif
1853
1854 #undef $2
1855
1856 /* Override any GCC internal prototype to avoid an error.
1857    Use char because int might match the return type of a GCC
1858    builtin and then its argument prototype would still apply.  */
1859 #ifdef __cplusplus
1860 extern "C"
1861 #endif
1862 char $2 ();
1863 /* The GNU C library defines this for functions which it implements
1864     to always fail with ENOSYS.  Some functions are actually named
1865     something starting with __ and the normal name is an alias.  */
1866 #if defined __stub_$2 || defined __stub___$2
1867 choke me
1868 #endif
1869
1870 int
1871 main ()
1872 {
1873 return $2 ();
1874   ;
1875   return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_link "$LINENO"; then :
1879   eval "$3=yes"
1880 else
1881   eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext \
1884     conftest$ac_exeext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_func
1892
1893 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1894 # --------------------------------------------
1895 # Tries to find the compile-time value of EXPR in a program that includes
1896 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1897 # computed
1898 ac_fn_c_compute_int ()
1899 {
1900   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901   if test "$cross_compiling" = yes; then
1902     # Depending upon the size, compute the lo and hi bounds.
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h.  */
1905 $4
1906 int
1907 main ()
1908 {
1909 static int test_array [1 - 2 * !(($2) >= 0)];
1910 test_array [0] = 0;
1911 return test_array [0];
1912
1913   ;
1914   return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918   ac_lo=0 ac_mid=0
1919   while :; do
1920     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h.  */
1922 $4
1923 int
1924 main ()
1925 {
1926 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1927 test_array [0] = 0;
1928 return test_array [0];
1929
1930   ;
1931   return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935   ac_hi=$ac_mid; break
1936 else
1937   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1938                         if test $ac_lo -le $ac_mid; then
1939                           ac_lo= ac_hi=
1940                           break
1941                         fi
1942                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1943 fi
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945   done
1946 else
1947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h.  */
1949 $4
1950 int
1951 main ()
1952 {
1953 static int test_array [1 - 2 * !(($2) < 0)];
1954 test_array [0] = 0;
1955 return test_array [0];
1956
1957   ;
1958   return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962   ac_hi=-1 ac_mid=-1
1963   while :; do
1964     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h.  */
1966 $4
1967 int
1968 main ()
1969 {
1970 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1971 test_array [0] = 0;
1972 return test_array [0];
1973
1974   ;
1975   return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979   ac_lo=$ac_mid; break
1980 else
1981   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1982                         if test $ac_mid -le $ac_hi; then
1983                           ac_lo= ac_hi=
1984                           break
1985                         fi
1986                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989   done
1990 else
1991   ac_lo= ac_hi=
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 # Binary search between lo and hi bounds.
1997 while test "x$ac_lo" != "x$ac_hi"; do
1998   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h.  */
2001 $4
2002 int
2003 main ()
2004 {
2005 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2006 test_array [0] = 0;
2007 return test_array [0];
2008
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014   ac_hi=$ac_mid
2015 else
2016   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 done
2020 case $ac_lo in #((
2021 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2022 '') ac_retval=1 ;;
2023 esac
2024   else
2025     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h.  */
2027 $4
2028 static long int longval () { return $2; }
2029 static unsigned long int ulongval () { return $2; }
2030 #include <stdio.h>
2031 #include <stdlib.h>
2032 int
2033 main ()
2034 {
2035
2036   FILE *f = fopen ("conftest.val", "w");
2037   if (! f)
2038     return 1;
2039   if (($2) < 0)
2040     {
2041       long int i = longval ();
2042       if (i != ($2))
2043         return 1;
2044       fprintf (f, "%ld", i);
2045     }
2046   else
2047     {
2048       unsigned long int i = ulongval ();
2049       if (i != ($2))
2050         return 1;
2051       fprintf (f, "%lu", i);
2052     }
2053   /* Do not output a trailing newline, as this causes \r\n confusion
2054      on some platforms.  */
2055   return ferror (f) || fclose (f) != 0;
2056
2057   ;
2058   return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_run "$LINENO"; then :
2062   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2063 else
2064   ac_retval=1
2065 fi
2066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2067   conftest.$ac_objext conftest.beam conftest.$ac_ext
2068 rm -f conftest.val
2069
2070   fi
2071   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072   as_fn_set_status $ac_retval
2073
2074 } # ac_fn_c_compute_int
2075 cat >config.log <<_ACEOF
2076 This file contains any messages produced by compilers while
2077 running configure, to aid debugging if configure makes a mistake.
2078
2079 It was created by iftop $as_me 1.0pre4, which was
2080 generated by GNU Autoconf 2.69.  Invocation command line was
2081
2082   $ $0 $@
2083
2084 _ACEOF
2085 exec 5>>config.log
2086 {
2087 cat <<_ASUNAME
2088 ## --------- ##
2089 ## Platform. ##
2090 ## --------- ##
2091
2092 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2093 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2094 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2095 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2096 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2097
2098 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2099 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2100
2101 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2102 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2103 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2104 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2105 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2106 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2107 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2108
2109 _ASUNAME
2110
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2113 do
2114   IFS=$as_save_IFS
2115   test -z "$as_dir" && as_dir=.
2116     $as_echo "PATH: $as_dir"
2117   done
2118 IFS=$as_save_IFS
2119
2120 } >&5
2121
2122 cat >&5 <<_ACEOF
2123
2124
2125 ## ----------- ##
2126 ## Core tests. ##
2127 ## ----------- ##
2128
2129 _ACEOF
2130
2131
2132 # Keep a trace of the command line.
2133 # Strip out --no-create and --no-recursion so they do not pile up.
2134 # Strip out --silent because we don't want to record it for future runs.
2135 # Also quote any args containing shell meta-characters.
2136 # Make two passes to allow for proper duplicate-argument suppression.
2137 ac_configure_args=
2138 ac_configure_args0=
2139 ac_configure_args1=
2140 ac_must_keep_next=false
2141 for ac_pass in 1 2
2142 do
2143   for ac_arg
2144   do
2145     case $ac_arg in
2146     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2147     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2148     | -silent | --silent | --silen | --sile | --sil)
2149       continue ;;
2150     *\'*)
2151       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2152     esac
2153     case $ac_pass in
2154     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2155     2)
2156       as_fn_append ac_configure_args1 " '$ac_arg'"
2157       if test $ac_must_keep_next = true; then
2158         ac_must_keep_next=false # Got value, back to normal.
2159       else
2160         case $ac_arg in
2161           *=* | --config-cache | -C | -disable-* | --disable-* \
2162           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2163           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2164           | -with-* | --with-* | -without-* | --without-* | --x)
2165             case "$ac_configure_args0 " in
2166               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2167             esac
2168             ;;
2169           -* ) ac_must_keep_next=true ;;
2170         esac
2171       fi
2172       as_fn_append ac_configure_args " '$ac_arg'"
2173       ;;
2174     esac
2175   done
2176 done
2177 { ac_configure_args0=; unset ac_configure_args0;}
2178 { ac_configure_args1=; unset ac_configure_args1;}
2179
2180 # When interrupted or exit'd, cleanup temporary files, and complete
2181 # config.log.  We remove comments because anyway the quotes in there
2182 # would cause problems or look ugly.
2183 # WARNING: Use '\'' to represent an apostrophe within the trap.
2184 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2185 trap 'exit_status=$?
2186   # Save into config.log some information that might help in debugging.
2187   {
2188     echo
2189
2190     $as_echo "## ---------------- ##
2191 ## Cache variables. ##
2192 ## ---------------- ##"
2193     echo
2194     # The following way of writing the cache mishandles newlines in values,
2195 (
2196   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2197     eval ac_val=\$$ac_var
2198     case $ac_val in #(
2199     *${as_nl}*)
2200       case $ac_var in #(
2201       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2202 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2203       esac
2204       case $ac_var in #(
2205       _ | IFS | as_nl) ;; #(
2206       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2207       *) { eval $ac_var=; unset $ac_var;} ;;
2208       esac ;;
2209     esac
2210   done
2211   (set) 2>&1 |
2212     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2213     *${as_nl}ac_space=\ *)
2214       sed -n \
2215         "s/'\''/'\''\\\\'\'''\''/g;
2216           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2217       ;; #(
2218     *)
2219       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2220       ;;
2221     esac |
2222     sort
2223 )
2224     echo
2225
2226     $as_echo "## ----------------- ##
2227 ## Output variables. ##
2228 ## ----------------- ##"
2229     echo
2230     for ac_var in $ac_subst_vars
2231     do
2232       eval ac_val=\$$ac_var
2233       case $ac_val in
2234       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235       esac
2236       $as_echo "$ac_var='\''$ac_val'\''"
2237     done | sort
2238     echo
2239
2240     if test -n "$ac_subst_files"; then
2241       $as_echo "## ------------------- ##
2242 ## File substitutions. ##
2243 ## ------------------- ##"
2244       echo
2245       for ac_var in $ac_subst_files
2246       do
2247         eval ac_val=\$$ac_var
2248         case $ac_val in
2249         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250         esac
2251         $as_echo "$ac_var='\''$ac_val'\''"
2252       done | sort
2253       echo
2254     fi
2255
2256     if test -s confdefs.h; then
2257       $as_echo "## ----------- ##
2258 ## confdefs.h. ##
2259 ## ----------- ##"
2260       echo
2261       cat confdefs.h
2262       echo
2263     fi
2264     test "$ac_signal" != 0 &&
2265       $as_echo "$as_me: caught signal $ac_signal"
2266     $as_echo "$as_me: exit $exit_status"
2267   } >&5
2268   rm -f core *.core core.conftest.* &&
2269     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2270     exit $exit_status
2271 ' 0
2272 for ac_signal in 1 2 13 15; do
2273   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2274 done
2275 ac_signal=0
2276
2277 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2278 rm -f -r conftest* confdefs.h
2279
2280 $as_echo "/* confdefs.h */" > confdefs.h
2281
2282 # Predefined preprocessor variables.
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_NAME "$PACKAGE_NAME"
2286 _ACEOF
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2290 _ACEOF
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2294 _ACEOF
2295
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_STRING "$PACKAGE_STRING"
2298 _ACEOF
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2302 _ACEOF
2303
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_URL "$PACKAGE_URL"
2306 _ACEOF
2307
2308
2309 # Let the site file select an alternate cache file if it wants to.
2310 # Prefer an explicitly selected file to automatically selected ones.
2311 ac_site_file1=NONE
2312 ac_site_file2=NONE
2313 if test -n "$CONFIG_SITE"; then
2314   # We do not want a PATH search for config.site.
2315   case $CONFIG_SITE in #((
2316     -*)  ac_site_file1=./$CONFIG_SITE;;
2317     */*) ac_site_file1=$CONFIG_SITE;;
2318     *)   ac_site_file1=./$CONFIG_SITE;;
2319   esac
2320 elif test "x$prefix" != xNONE; then
2321   ac_site_file1=$prefix/share/config.site
2322   ac_site_file2=$prefix/etc/config.site
2323 else
2324   ac_site_file1=$ac_default_prefix/share/config.site
2325   ac_site_file2=$ac_default_prefix/etc/config.site
2326 fi
2327 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2328 do
2329   test "x$ac_site_file" = xNONE && continue
2330   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2331     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2332 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2333     sed 's/^/| /' "$ac_site_file" >&5
2334     . "$ac_site_file" \
2335       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2337 as_fn_error $? "failed to load site script $ac_site_file
2338 See \`config.log' for more details" "$LINENO" 5; }
2339   fi
2340 done
2341
2342 if test -r "$cache_file"; then
2343   # Some versions of bash will fail to source /dev/null (special files
2344   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2345   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2346     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2347 $as_echo "$as_me: loading cache $cache_file" >&6;}
2348     case $cache_file in
2349       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2350       *)                      . "./$cache_file";;
2351     esac
2352   fi
2353 else
2354   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2355 $as_echo "$as_me: creating cache $cache_file" >&6;}
2356   >$cache_file
2357 fi
2358
2359 # Check that the precious variables saved in the cache have kept the same
2360 # value.
2361 ac_cache_corrupted=false
2362 for ac_var in $ac_precious_vars; do
2363   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2364   eval ac_new_set=\$ac_env_${ac_var}_set
2365   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2366   eval ac_new_val=\$ac_env_${ac_var}_value
2367   case $ac_old_set,$ac_new_set in
2368     set,)
2369       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2370 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2371       ac_cache_corrupted=: ;;
2372     ,set)
2373       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2374 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2375       ac_cache_corrupted=: ;;
2376     ,);;
2377     *)
2378       if test "x$ac_old_val" != "x$ac_new_val"; then
2379         # differences in whitespace do not lead to failure.
2380         ac_old_val_w=`echo x $ac_old_val`
2381         ac_new_val_w=`echo x $ac_new_val`
2382         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2383           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2384 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2385           ac_cache_corrupted=:
2386         else
2387           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2388 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2389           eval $ac_var=\$ac_old_val
2390         fi
2391         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2392 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2393         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2394 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2395       fi;;
2396   esac
2397   # Pass precious variables to config.status.
2398   if test "$ac_new_set" = set; then
2399     case $ac_new_val in
2400     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2401     *) ac_arg=$ac_var=$ac_new_val ;;
2402     esac
2403     case " $ac_configure_args " in
2404       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2405       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2406     esac
2407   fi
2408 done
2409 if $ac_cache_corrupted; then
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2412   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2413 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2414   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2415 fi
2416 ## -------------------- ##
2417 ## Main body of script. ##
2418 ## -------------------- ##
2419
2420 ac_ext=c
2421 ac_cpp='$CPP $CPPFLAGS'
2422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2425
2426
2427
2428 ac_aux_dir=
2429 for ac_dir in config "$srcdir"/config; do
2430   if test -f "$ac_dir/install-sh"; then
2431     ac_aux_dir=$ac_dir
2432     ac_install_sh="$ac_aux_dir/install-sh -c"
2433     break
2434   elif test -f "$ac_dir/install.sh"; then
2435     ac_aux_dir=$ac_dir
2436     ac_install_sh="$ac_aux_dir/install.sh -c"
2437     break
2438   elif test -f "$ac_dir/shtool"; then
2439     ac_aux_dir=$ac_dir
2440     ac_install_sh="$ac_aux_dir/shtool install -c"
2441     break
2442   fi
2443 done
2444 if test -z "$ac_aux_dir"; then
2445   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2446 fi
2447
2448 # These three variables are undocumented and unsupported,
2449 # and are intended to be withdrawn in a future Autoconf release.
2450 # They can cause serious problems if a builder's source tree is in a directory
2451 # whose full name contains unusual characters.
2452 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2453 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2454 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2455
2456
2457
2458 # Make sure we can run config.sub.
2459 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2460   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2461
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2463 $as_echo_n "checking build system type... " >&6; }
2464 if ${ac_cv_build+:} false; then :
2465   $as_echo_n "(cached) " >&6
2466 else
2467   ac_build_alias=$build_alias
2468 test "x$ac_build_alias" = x &&
2469   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2470 test "x$ac_build_alias" = x &&
2471   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2472 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2473   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2474
2475 fi
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2477 $as_echo "$ac_cv_build" >&6; }
2478 case $ac_cv_build in
2479 *-*-*) ;;
2480 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2481 esac
2482 build=$ac_cv_build
2483 ac_save_IFS=$IFS; IFS='-'
2484 set x $ac_cv_build
2485 shift
2486 build_cpu=$1
2487 build_vendor=$2
2488 shift; shift
2489 # Remember, the first character of IFS is used to create $*,
2490 # except with old shells:
2491 build_os=$*
2492 IFS=$ac_save_IFS
2493 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2494
2495
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2497 $as_echo_n "checking host system type... " >&6; }
2498 if ${ac_cv_host+:} false; then :
2499   $as_echo_n "(cached) " >&6
2500 else
2501   if test "x$host_alias" = x; then
2502   ac_cv_host=$ac_cv_build
2503 else
2504   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2505     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2506 fi
2507
2508 fi
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2510 $as_echo "$ac_cv_host" >&6; }
2511 case $ac_cv_host in
2512 *-*-*) ;;
2513 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2514 esac
2515 host=$ac_cv_host
2516 ac_save_IFS=$IFS; IFS='-'
2517 set x $ac_cv_host
2518 shift
2519 host_cpu=$1
2520 host_vendor=$2
2521 shift; shift
2522 # Remember, the first character of IFS is used to create $*,
2523 # except with old shells:
2524 host_os=$*
2525 IFS=$ac_save_IFS
2526 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2527
2528
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2530 $as_echo_n "checking target system type... " >&6; }
2531 if ${ac_cv_target+:} false; then :
2532   $as_echo_n "(cached) " >&6
2533 else
2534   if test "x$target_alias" = x; then
2535   ac_cv_target=$ac_cv_host
2536 else
2537   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2538     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2539 fi
2540
2541 fi
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2543 $as_echo "$ac_cv_target" >&6; }
2544 case $ac_cv_target in
2545 *-*-*) ;;
2546 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2547 esac
2548 target=$ac_cv_target
2549 ac_save_IFS=$IFS; IFS='-'
2550 set x $ac_cv_target
2551 shift
2552 target_cpu=$1
2553 target_vendor=$2
2554 shift; shift
2555 # Remember, the first character of IFS is used to create $*,
2556 # except with old shells:
2557 target_os=$*
2558 IFS=$ac_save_IFS
2559 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2560
2561
2562 # The aliases save the names the user supplied, while $host etc.
2563 # will get canonicalized.
2564 test -n "$target_alias" &&
2565   test "$program_prefix$program_suffix$program_transform_name" = \
2566     NONENONEs,x,x, &&
2567   program_prefix=${target_alias}-
2568
2569
2570 ac_config_headers="$ac_config_headers config.h"
2571
2572 am__api_version='1.14'
2573
2574 # Find a good install program.  We prefer a C program (faster),
2575 # so one script is as good as another.  But avoid the broken or
2576 # incompatible versions:
2577 # SysV /etc/install, /usr/sbin/install
2578 # SunOS /usr/etc/install
2579 # IRIX /sbin/install
2580 # AIX /bin/install
2581 # AmigaOS /C/install, which installs bootblocks on floppy discs
2582 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2583 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2584 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2585 # OS/2's system install, which has a completely different semantic
2586 # ./install, which can be erroneously created by make from ./install.sh.
2587 # Reject install programs that cannot install multiple files.
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2589 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2590 if test -z "$INSTALL"; then
2591 if ${ac_cv_path_install+:} false; then :
2592   $as_echo_n "(cached) " >&6
2593 else
2594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599     # Account for people who put trailing slashes in PATH elements.
2600 case $as_dir/ in #((
2601   ./ | .// | /[cC]/* | \
2602   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2603   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2604   /usr/ucb/* ) ;;
2605   *)
2606     # OSF1 and SCO ODT 3.0 have their own names for install.
2607     # Don't use installbsd from OSF since it installs stuff as root
2608     # by default.
2609     for ac_prog in ginstall scoinst install; do
2610       for ac_exec_ext in '' $ac_executable_extensions; do
2611         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2612           if test $ac_prog = install &&
2613             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2614             # AIX install.  It has an incompatible calling convention.
2615             :
2616           elif test $ac_prog = install &&
2617             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2618             # program-specific install script used by HP pwplus--don't use.
2619             :
2620           else
2621             rm -rf conftest.one conftest.two conftest.dir
2622             echo one > conftest.one
2623             echo two > conftest.two
2624             mkdir conftest.dir
2625             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2626               test -s conftest.one && test -s conftest.two &&
2627               test -s conftest.dir/conftest.one &&
2628               test -s conftest.dir/conftest.two
2629             then
2630               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2631               break 3
2632             fi
2633           fi
2634         fi
2635       done
2636     done
2637     ;;
2638 esac
2639
2640   done
2641 IFS=$as_save_IFS
2642
2643 rm -rf conftest.one conftest.two conftest.dir
2644
2645 fi
2646   if test "${ac_cv_path_install+set}" = set; then
2647     INSTALL=$ac_cv_path_install
2648   else
2649     # As a last resort, use the slow shell script.  Don't cache a
2650     # value for INSTALL within a source directory, because that will
2651     # break other packages using the cache if that directory is
2652     # removed, or if the value is a relative name.
2653     INSTALL=$ac_install_sh
2654   fi
2655 fi
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2657 $as_echo "$INSTALL" >&6; }
2658
2659 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2660 # It thinks the first close brace ends the variable substitution.
2661 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2662
2663 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2664
2665 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2668 $as_echo_n "checking whether build environment is sane... " >&6; }
2669 # Reject unsafe characters in $srcdir or the absolute working directory
2670 # name.  Accept space and tab only in the latter.
2671 am_lf='
2672 '
2673 case `pwd` in
2674   *[\\\"\#\$\&\'\`$am_lf]*)
2675     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2676 esac
2677 case $srcdir in
2678   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2679     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2680 esac
2681
2682 # Do 'set' in a subshell so we don't clobber the current shell's
2683 # arguments.  Must try -L first in case configure is actually a
2684 # symlink; some systems play weird games with the mod time of symlinks
2685 # (eg FreeBSD returns the mod time of the symlink's containing
2686 # directory).
2687 if (
2688    am_has_slept=no
2689    for am_try in 1 2; do
2690      echo "timestamp, slept: $am_has_slept" > conftest.file
2691      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2692      if test "$*" = "X"; then
2693         # -L didn't work.
2694         set X `ls -t "$srcdir/configure" conftest.file`
2695      fi
2696      if test "$*" != "X $srcdir/configure conftest.file" \
2697         && test "$*" != "X conftest.file $srcdir/configure"; then
2698
2699         # If neither matched, then we have a broken ls.  This can happen
2700         # if, for instance, CONFIG_SHELL is bash and it inherits a
2701         # broken ls alias from the environment.  This has actually
2702         # happened.  Such a system could not be considered "sane".
2703         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2704   alias in your environment" "$LINENO" 5
2705      fi
2706      if test "$2" = conftest.file || test $am_try -eq 2; then
2707        break
2708      fi
2709      # Just in case.
2710      sleep 1
2711      am_has_slept=yes
2712    done
2713    test "$2" = conftest.file
2714    )
2715 then
2716    # Ok.
2717    :
2718 else
2719    as_fn_error $? "newly created file is older than distributed files!
2720 Check your system clock" "$LINENO" 5
2721 fi
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2723 $as_echo "yes" >&6; }
2724 # If we didn't sleep, we still need to ensure time stamps of config.status and
2725 # generated files are strictly newer.
2726 am_sleep_pid=
2727 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2728   ( sleep 1 ) &
2729   am_sleep_pid=$!
2730 fi
2731
2732 rm -f conftest.file
2733
2734 test "$program_prefix" != NONE &&
2735   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2736 # Use a double $ so make ignores it.
2737 test "$program_suffix" != NONE &&
2738   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2739 # Double any \ or $.
2740 # By default was `s,x,x', remove it if useless.
2741 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2742 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2743
2744 # expand $ac_aux_dir to an absolute path
2745 am_aux_dir=`cd $ac_aux_dir && pwd`
2746
2747 if test x"${MISSING+set}" != xset; then
2748   case $am_aux_dir in
2749   *\ * | *\     *)
2750     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2751   *)
2752     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2753   esac
2754 fi
2755 # Use eval to expand $SHELL
2756 if eval "$MISSING --is-lightweight"; then
2757   am_missing_run="$MISSING "
2758 else
2759   am_missing_run=
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2761 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2762 fi
2763
2764 if test x"${install_sh}" != xset; then
2765   case $am_aux_dir in
2766   *\ * | *\     *)
2767     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2768   *)
2769     install_sh="\${SHELL} $am_aux_dir/install-sh"
2770   esac
2771 fi
2772
2773 # Installed binaries are usually stripped using 'strip' when the user
2774 # run "make install-strip".  However 'strip' might not be the right
2775 # tool to use in cross-compilation environments, therefore Automake
2776 # will honor the 'STRIP' environment variable to overrule this program.
2777 if test "$cross_compiling" != no; then
2778   if test -n "$ac_tool_prefix"; then
2779   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2780 set dummy ${ac_tool_prefix}strip; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if ${ac_cv_prog_STRIP+:} false; then :
2784   $as_echo_n "(cached) " >&6
2785 else
2786   if test -n "$STRIP"; then
2787   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792   IFS=$as_save_IFS
2793   test -z "$as_dir" && as_dir=.
2794     for ac_exec_ext in '' $ac_executable_extensions; do
2795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798     break 2
2799   fi
2800 done
2801   done
2802 IFS=$as_save_IFS
2803
2804 fi
2805 fi
2806 STRIP=$ac_cv_prog_STRIP
2807 if test -n "$STRIP"; then
2808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2809 $as_echo "$STRIP" >&6; }
2810 else
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2813 fi
2814
2815
2816 fi
2817 if test -z "$ac_cv_prog_STRIP"; then
2818   ac_ct_STRIP=$STRIP
2819   # Extract the first word of "strip", so it can be a program name with args.
2820 set dummy strip; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2824   $as_echo_n "(cached) " >&6
2825 else
2826   if test -n "$ac_ct_STRIP"; then
2827   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832   IFS=$as_save_IFS
2833   test -z "$as_dir" && as_dir=.
2834     for ac_exec_ext in '' $ac_executable_extensions; do
2835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836     ac_cv_prog_ac_ct_STRIP="strip"
2837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838     break 2
2839   fi
2840 done
2841   done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2847 if test -n "$ac_ct_STRIP"; then
2848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2849 $as_echo "$ac_ct_STRIP" >&6; }
2850 else
2851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2853 fi
2854
2855   if test "x$ac_ct_STRIP" = x; then
2856     STRIP=":"
2857   else
2858     case $cross_compiling:$ac_tool_warned in
2859 yes:)
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2862 ac_tool_warned=yes ;;
2863 esac
2864     STRIP=$ac_ct_STRIP
2865   fi
2866 else
2867   STRIP="$ac_cv_prog_STRIP"
2868 fi
2869
2870 fi
2871 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2872
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2874 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2875 if test -z "$MKDIR_P"; then
2876   if ${ac_cv_path_mkdir+:} false; then :
2877   $as_echo_n "(cached) " >&6
2878 else
2879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2881 do
2882   IFS=$as_save_IFS
2883   test -z "$as_dir" && as_dir=.
2884     for ac_prog in mkdir gmkdir; do
2885          for ac_exec_ext in '' $ac_executable_extensions; do
2886            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2887            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2888              'mkdir (GNU coreutils) '* | \
2889              'mkdir (coreutils) '* | \
2890              'mkdir (fileutils) '4.1*)
2891                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2892                break 3;;
2893            esac
2894          done
2895        done
2896   done
2897 IFS=$as_save_IFS
2898
2899 fi
2900
2901   test -d ./--version && rmdir ./--version
2902   if test "${ac_cv_path_mkdir+set}" = set; then
2903     MKDIR_P="$ac_cv_path_mkdir -p"
2904   else
2905     # As a last resort, use the slow shell script.  Don't cache a
2906     # value for MKDIR_P within a source directory, because that will
2907     # break other packages using the cache if that directory is
2908     # removed, or if the value is a relative name.
2909     MKDIR_P="$ac_install_sh -d"
2910   fi
2911 fi
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2913 $as_echo "$MKDIR_P" >&6; }
2914
2915 for ac_prog in gawk mawk nawk awk
2916 do
2917   # Extract the first word of "$ac_prog", so it can be a program name with args.
2918 set dummy $ac_prog; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if ${ac_cv_prog_AWK+:} false; then :
2922   $as_echo_n "(cached) " >&6
2923 else
2924   if test -n "$AWK"; then
2925   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930   IFS=$as_save_IFS
2931   test -z "$as_dir" && as_dir=.
2932     for ac_exec_ext in '' $ac_executable_extensions; do
2933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934     ac_cv_prog_AWK="$ac_prog"
2935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936     break 2
2937   fi
2938 done
2939   done
2940 IFS=$as_save_IFS
2941
2942 fi
2943 fi
2944 AWK=$ac_cv_prog_AWK
2945 if test -n "$AWK"; then
2946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2947 $as_echo "$AWK" >&6; }
2948 else
2949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2951 fi
2952
2953
2954   test -n "$AWK" && break
2955 done
2956
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2958 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2959 set x ${MAKE-make}
2960 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2961 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2962   $as_echo_n "(cached) " >&6
2963 else
2964   cat >conftest.make <<\_ACEOF
2965 SHELL = /bin/sh
2966 all:
2967         @echo '@@@%%%=$(MAKE)=@@@%%%'
2968 _ACEOF
2969 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2970 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2971   *@@@%%%=?*=@@@%%%*)
2972     eval ac_cv_prog_make_${ac_make}_set=yes;;
2973   *)
2974     eval ac_cv_prog_make_${ac_make}_set=no;;
2975 esac
2976 rm -f conftest.make
2977 fi
2978 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2980 $as_echo "yes" >&6; }
2981   SET_MAKE=
2982 else
2983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985   SET_MAKE="MAKE=${MAKE-make}"
2986 fi
2987
2988 rm -rf .tst 2>/dev/null
2989 mkdir .tst 2>/dev/null
2990 if test -d .tst; then
2991   am__leading_dot=.
2992 else
2993   am__leading_dot=_
2994 fi
2995 rmdir .tst 2>/dev/null
2996
2997 # Check whether --enable-silent-rules was given.
2998 if test "${enable_silent_rules+set}" = set; then :
2999   enableval=$enable_silent_rules;
3000 fi
3001
3002 case $enable_silent_rules in # (((
3003   yes) AM_DEFAULT_VERBOSITY=0;;
3004    no) AM_DEFAULT_VERBOSITY=1;;
3005     *) AM_DEFAULT_VERBOSITY=1;;
3006 esac
3007 am_make=${MAKE-make}
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3009 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3010 if ${am_cv_make_support_nested_variables+:} false; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   if $as_echo 'TRUE=$(BAR$(V))
3014 BAR0=false
3015 BAR1=true
3016 V=1
3017 am__doit:
3018         @$(TRUE)
3019 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3020   am_cv_make_support_nested_variables=yes
3021 else
3022   am_cv_make_support_nested_variables=no
3023 fi
3024 fi
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3026 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3027 if test $am_cv_make_support_nested_variables = yes; then
3028     AM_V='$(V)'
3029   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3030 else
3031   AM_V=$AM_DEFAULT_VERBOSITY
3032   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3033 fi
3034 AM_BACKSLASH='\'
3035
3036 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3037   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3038   # is not polluted with repeated "-I."
3039   am__isrc=' -I$(srcdir)'
3040   # test to see if srcdir already configured
3041   if test -f $srcdir/config.status; then
3042     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3043   fi
3044 fi
3045
3046 # test whether we have cygpath
3047 if test -z "$CYGPATH_W"; then
3048   if (cygpath --version) >/dev/null 2>/dev/null; then
3049     CYGPATH_W='cygpath -w'
3050   else
3051     CYGPATH_W=echo
3052   fi
3053 fi
3054
3055
3056 # Define the identity of the package.
3057  PACKAGE='iftop'
3058  VERSION='1.0pre4'
3059
3060
3061 cat >>confdefs.h <<_ACEOF
3062 #define PACKAGE "$PACKAGE"
3063 _ACEOF
3064
3065
3066 cat >>confdefs.h <<_ACEOF
3067 #define VERSION "$VERSION"
3068 _ACEOF
3069
3070 # Some tools Automake needs.
3071
3072 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3073
3074
3075 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3076
3077
3078 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3079
3080
3081 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3082
3083
3084 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3085
3086 # For better backward compatibility.  To be removed once Automake 1.9.x
3087 # dies out for good.  For more background, see:
3088 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3089 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3090 mkdir_p='$(MKDIR_P)'
3091
3092 # We need awk for the "check" target.  The system "awk" is bad on
3093 # some platforms.
3094 # Always define AMTAR for backward compatibility.  Yes, it's still used
3095 # in the wild :-(  We should find a proper way to deprecate it ...
3096 AMTAR='$${TAR-tar}'
3097
3098
3099 # We'll loop over all known methods to create a tar archive until one works.
3100 _am_tools='gnutar  pax cpio none'
3101
3102 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3103
3104
3105
3106
3107
3108
3109 # POSIX will say in a future version that running "rm -f" with no argument
3110 # is OK; and we want to be able to make that assumption in our Makefile
3111 # recipes.  So use an aggressive probe to check that the usage we want is
3112 # actually supported "in the wild" to an acceptable degree.
3113 # See automake bug#10828.
3114 # To make any issue more visible, cause the running configure to be aborted
3115 # by default if the 'rm' program in use doesn't match our expectations; the
3116 # user can still override this though.
3117 if rm -f && rm -fr && rm -rf; then : OK; else
3118   cat >&2 <<'END'
3119 Oops!
3120
3121 Your 'rm' program seems unable to run without file operands specified
3122 on the command line, even when the '-f' option is present.  This is contrary
3123 to the behaviour of most rm programs out there, and not conforming with
3124 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3125
3126 Please tell bug-automake@gnu.org about your system, including the value
3127 of your $PATH and any error possibly output before this message.  This
3128 can help us improve future automake versions.
3129
3130 END
3131   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3132     echo 'Configuration will proceed anyway, since you have set the' >&2
3133     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3134     echo >&2
3135   else
3136     cat >&2 <<'END'
3137 Aborting the configuration process, to ensure you take notice of the issue.
3138
3139 You can download and install GNU coreutils to get an 'rm' implementation
3140 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3141
3142 If you want to complete the configuration process using your problematic
3143 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3144 to "yes", and re-run configure.
3145
3146 END
3147     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3148   fi
3149 fi
3150
3151 ac_ext=c
3152 ac_cpp='$CPP $CPPFLAGS'
3153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156 if test -n "$ac_tool_prefix"; then
3157   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3158 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_CC+:} false; then :
3162   $as_echo_n "(cached) " >&6
3163 else
3164   if test -n "$CC"; then
3165   ac_cv_prog_CC="$CC" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170   IFS=$as_save_IFS
3171   test -z "$as_dir" && as_dir=.
3172     for ac_exec_ext in '' $ac_executable_extensions; do
3173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176     break 2
3177   fi
3178 done
3179   done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 CC=$ac_cv_prog_CC
3185 if test -n "$CC"; then
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3187 $as_echo "$CC" >&6; }
3188 else
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193
3194 fi
3195 if test -z "$ac_cv_prog_CC"; then
3196   ac_ct_CC=$CC
3197   # Extract the first word of "gcc", so it can be a program name with args.
3198 set dummy gcc; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3202   $as_echo_n "(cached) " >&6
3203 else
3204   if test -n "$ac_ct_CC"; then
3205   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210   IFS=$as_save_IFS
3211   test -z "$as_dir" && as_dir=.
3212     for ac_exec_ext in '' $ac_executable_extensions; do
3213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214     ac_cv_prog_ac_ct_CC="gcc"
3215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216     break 2
3217   fi
3218 done
3219   done
3220 IFS=$as_save_IFS
3221
3222 fi
3223 fi
3224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225 if test -n "$ac_ct_CC"; then
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3227 $as_echo "$ac_ct_CC" >&6; }
3228 else
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 fi
3232
3233   if test "x$ac_ct_CC" = x; then
3234     CC=""
3235   else
3236     case $cross_compiling:$ac_tool_warned in
3237 yes:)
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3240 ac_tool_warned=yes ;;
3241 esac
3242     CC=$ac_ct_CC
3243   fi
3244 else
3245   CC="$ac_cv_prog_CC"
3246 fi
3247
3248 if test -z "$CC"; then
3249           if test -n "$ac_tool_prefix"; then
3250     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3251 set dummy ${ac_tool_prefix}cc; ac_word=$2
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253 $as_echo_n "checking for $ac_word... " >&6; }
3254 if ${ac_cv_prog_CC+:} false; then :
3255   $as_echo_n "(cached) " >&6
3256 else
3257   if test -n "$CC"; then
3258   ac_cv_prog_CC="$CC" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263   IFS=$as_save_IFS
3264   test -z "$as_dir" && as_dir=.
3265     for ac_exec_ext in '' $ac_executable_extensions; do
3266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267     ac_cv_prog_CC="${ac_tool_prefix}cc"
3268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269     break 2
3270   fi
3271 done
3272   done
3273 IFS=$as_save_IFS
3274
3275 fi
3276 fi
3277 CC=$ac_cv_prog_CC
3278 if test -n "$CC"; then
3279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3280 $as_echo "$CC" >&6; }
3281 else
3282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 fi
3285
3286
3287   fi
3288 fi
3289 if test -z "$CC"; then
3290   # Extract the first word of "cc", so it can be a program name with args.
3291 set dummy cc; ac_word=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if ${ac_cv_prog_CC+:} false; then :
3295   $as_echo_n "(cached) " >&6
3296 else
3297   if test -n "$CC"; then
3298   ac_cv_prog_CC="$CC" # Let the user override the test.
3299 else
3300   ac_prog_rejected=no
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304   IFS=$as_save_IFS
3305   test -z "$as_dir" && as_dir=.
3306     for ac_exec_ext in '' $ac_executable_extensions; do
3307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3309        ac_prog_rejected=yes
3310        continue
3311      fi
3312     ac_cv_prog_CC="cc"
3313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314     break 2
3315   fi
3316 done
3317   done
3318 IFS=$as_save_IFS
3319
3320 if test $ac_prog_rejected = yes; then
3321   # We found a bogon in the path, so make sure we never use it.
3322   set dummy $ac_cv_prog_CC
3323   shift
3324   if test $# != 0; then
3325     # We chose a different compiler from the bogus one.
3326     # However, it has the same basename, so the bogon will be chosen
3327     # first if we set CC to just the basename; use the full file name.
3328     shift
3329     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3330   fi
3331 fi
3332 fi
3333 fi
3334 CC=$ac_cv_prog_CC
3335 if test -n "$CC"; then
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3337 $as_echo "$CC" >&6; }
3338 else
3339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 fi
3342
3343
3344 fi
3345 if test -z "$CC"; then
3346   if test -n "$ac_tool_prefix"; then
3347   for ac_prog in cl.exe
3348   do
3349     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_CC+:} false; then :
3354   $as_echo_n "(cached) " >&6
3355 else
3356   if test -n "$CC"; then
3357   ac_cv_prog_CC="$CC" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362   IFS=$as_save_IFS
3363   test -z "$as_dir" && as_dir=.
3364     for ac_exec_ext in '' $ac_executable_extensions; do
3365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368     break 2
3369   fi
3370 done
3371   done
3372 IFS=$as_save_IFS
3373
3374 fi
3375 fi
3376 CC=$ac_cv_prog_CC
3377 if test -n "$CC"; then
3378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3379 $as_echo "$CC" >&6; }
3380 else
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3383 fi
3384
3385
3386     test -n "$CC" && break
3387   done
3388 fi
3389 if test -z "$CC"; then
3390   ac_ct_CC=$CC
3391   for ac_prog in cl.exe
3392 do
3393   # Extract the first word of "$ac_prog", so it can be a program name with args.
3394 set dummy $ac_prog; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3398   $as_echo_n "(cached) " >&6
3399 else
3400   if test -n "$ac_ct_CC"; then
3401   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406   IFS=$as_save_IFS
3407   test -z "$as_dir" && as_dir=.
3408     for ac_exec_ext in '' $ac_executable_extensions; do
3409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410     ac_cv_prog_ac_ct_CC="$ac_prog"
3411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412     break 2
3413   fi
3414 done
3415   done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3421 if test -n "$ac_ct_CC"; then
3422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3423 $as_echo "$ac_ct_CC" >&6; }
3424 else
3425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3427 fi
3428
3429
3430   test -n "$ac_ct_CC" && break
3431 done
3432
3433   if test "x$ac_ct_CC" = x; then
3434     CC=""
3435   else
3436     case $cross_compiling:$ac_tool_warned in
3437 yes:)
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3440 ac_tool_warned=yes ;;
3441 esac
3442     CC=$ac_ct_CC
3443   fi
3444 fi
3445
3446 fi
3447
3448
3449 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 as_fn_error $? "no acceptable C compiler found in \$PATH
3452 See \`config.log' for more details" "$LINENO" 5; }
3453
3454 # Provide some information about the compiler.
3455 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3456 set X $ac_compile
3457 ac_compiler=$2
3458 for ac_option in --version -v -V -qversion; do
3459   { { ac_try="$ac_compiler $ac_option >&5"
3460 case "(($ac_try" in
3461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462   *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3467   ac_status=$?
3468   if test -s conftest.err; then
3469     sed '10a\
3470 ... rest of stderr output deleted ...
3471          10q' conftest.err >conftest.er1
3472     cat conftest.er1 >&5
3473   fi
3474   rm -f conftest.er1 conftest.err
3475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476   test $ac_status = 0; }
3477 done
3478
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h.  */
3481
3482 int
3483 main ()
3484 {
3485
3486   ;
3487   return 0;
3488 }
3489 _ACEOF
3490 ac_clean_files_save=$ac_clean_files
3491 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3492 # Try to create an executable without -o first, disregard a.out.
3493 # It will help us diagnose broken compilers, and finding out an intuition
3494 # of exeext.
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3496 $as_echo_n "checking whether the C compiler works... " >&6; }
3497 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3498
3499 # The possible output files:
3500 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3501
3502 ac_rmfiles=
3503 for ac_file in $ac_files
3504 do
3505   case $ac_file in
3506     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3507     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3508   esac
3509 done
3510 rm -f $ac_rmfiles
3511
3512 if { { ac_try="$ac_link_default"
3513 case "(($ac_try" in
3514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515   *) ac_try_echo=$ac_try;;
3516 esac
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519   (eval "$ac_link_default") 2>&5
3520   ac_status=$?
3521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522   test $ac_status = 0; }; then :
3523   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3524 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3525 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3526 # so that the user can short-circuit this test for compilers unknown to
3527 # Autoconf.
3528 for ac_file in $ac_files ''
3529 do
3530   test -f "$ac_file" || continue
3531   case $ac_file in
3532     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3533         ;;
3534     [ab].out )
3535         # We found the default executable, but exeext='' is most
3536         # certainly right.
3537         break;;
3538     *.* )
3539         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3540         then :; else
3541            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3542         fi
3543         # We set ac_cv_exeext here because the later test for it is not
3544         # safe: cross compilers may not add the suffix if given an `-o'
3545         # argument, so we may need to know it at that point already.
3546         # Even if this section looks crufty: it has the advantage of
3547         # actually working.
3548         break;;
3549     * )
3550         break;;
3551   esac
3552 done
3553 test "$ac_cv_exeext" = no && ac_cv_exeext=
3554
3555 else
3556   ac_file=''
3557 fi
3558 if test -z "$ac_file"; then :
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3561 $as_echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 as_fn_error 77 "C compiler cannot create executables
3567 See \`config.log' for more details" "$LINENO" 5; }
3568 else
3569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3570 $as_echo "yes" >&6; }
3571 fi
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3573 $as_echo_n "checking for C compiler default output file name... " >&6; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3575 $as_echo "$ac_file" >&6; }
3576 ac_exeext=$ac_cv_exeext
3577
3578 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3579 ac_clean_files=$ac_clean_files_save
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3581 $as_echo_n "checking for suffix of executables... " >&6; }
3582 if { { ac_try="$ac_link"
3583 case "(($ac_try" in
3584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585   *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589   (eval "$ac_link") 2>&5
3590   ac_status=$?
3591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592   test $ac_status = 0; }; then :
3593   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3594 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3595 # work properly (i.e., refer to `conftest.exe'), while it won't with
3596 # `rm'.
3597 for ac_file in conftest.exe conftest conftest.*; do
3598   test -f "$ac_file" || continue
3599   case $ac_file in
3600     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3601     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3602           break;;
3603     * ) break;;
3604   esac
3605 done
3606 else
3607   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3610 See \`config.log' for more details" "$LINENO" 5; }
3611 fi
3612 rm -f conftest conftest$ac_cv_exeext
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3614 $as_echo "$ac_cv_exeext" >&6; }
3615
3616 rm -f conftest.$ac_ext
3617 EXEEXT=$ac_cv_exeext
3618 ac_exeext=$EXEEXT
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h.  */
3621 #include <stdio.h>
3622 int
3623 main ()
3624 {
3625 FILE *f = fopen ("conftest.out", "w");
3626  return ferror (f) || fclose (f) != 0;
3627
3628   ;
3629   return 0;
3630 }
3631 _ACEOF
3632 ac_clean_files="$ac_clean_files conftest.out"
3633 # Check that the compiler produces executables we can run.  If not, either
3634 # the compiler is broken, or we cross compile.
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3636 $as_echo_n "checking whether we are cross compiling... " >&6; }
3637 if test "$cross_compiling" != yes; then
3638   { { ac_try="$ac_link"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645   (eval "$ac_link") 2>&5
3646   ac_status=$?
3647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648   test $ac_status = 0; }
3649   if { ac_try='./conftest$ac_cv_exeext'
3650   { { case "(($ac_try" in
3651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652   *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655 $as_echo "$ac_try_echo"; } >&5
3656   (eval "$ac_try") 2>&5
3657   ac_status=$?
3658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659   test $ac_status = 0; }; }; then
3660     cross_compiling=no
3661   else
3662     if test "$cross_compiling" = maybe; then
3663         cross_compiling=yes
3664     else
3665         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 as_fn_error $? "cannot run C compiled programs.
3668 If you meant to cross compile, use \`--host'.
3669 See \`config.log' for more details" "$LINENO" 5; }
3670     fi
3671   fi
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3674 $as_echo "$cross_compiling" >&6; }
3675
3676 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3677 ac_clean_files=$ac_clean_files_save
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3679 $as_echo_n "checking for suffix of object files... " >&6; }
3680 if ${ac_cv_objext+:} false; then :
3681   $as_echo_n "(cached) " >&6
3682 else
3683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h.  */
3685
3686 int
3687 main ()
3688 {
3689
3690   ;
3691   return 0;
3692 }
3693 _ACEOF
3694 rm -f conftest.o conftest.obj
3695 if { { ac_try="$ac_compile"
3696 case "(($ac_try" in
3697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698   *) ac_try_echo=$ac_try;;
3699 esac
3700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701 $as_echo "$ac_try_echo"; } >&5
3702   (eval "$ac_compile") 2>&5
3703   ac_status=$?
3704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3705   test $ac_status = 0; }; then :
3706   for ac_file in conftest.o conftest.obj conftest.*; do
3707   test -f "$ac_file" || continue;
3708   case $ac_file in
3709     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3710     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3711        break;;
3712   esac
3713 done
3714 else
3715   $as_echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error $? "cannot compute suffix of object files: cannot compile
3721 See \`config.log' for more details" "$LINENO" 5; }
3722 fi
3723 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3724 fi
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3726 $as_echo "$ac_cv_objext" >&6; }
3727 OBJEXT=$ac_cv_objext
3728 ac_objext=$OBJEXT
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3730 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3731 if ${ac_cv_c_compiler_gnu+:} false; then :
3732   $as_echo_n "(cached) " >&6
3733 else
3734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h.  */
3736
3737 int
3738 main ()
3739 {
3740 #ifndef __GNUC__
3741        choke me
3742 #endif
3743
3744   ;
3745   return 0;
3746 }
3747 _ACEOF
3748 if ac_fn_c_try_compile "$LINENO"; then :
3749   ac_compiler_gnu=yes
3750 else
3751   ac_compiler_gnu=no
3752 fi
3753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3755
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3758 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3759 if test $ac_compiler_gnu = yes; then
3760   GCC=yes
3761 else
3762   GCC=
3763 fi
3764 ac_test_CFLAGS=${CFLAGS+set}
3765 ac_save_CFLAGS=$CFLAGS
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3767 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3768 if ${ac_cv_prog_cc_g+:} false; then :
3769   $as_echo_n "(cached) " >&6
3770 else
3771   ac_save_c_werror_flag=$ac_c_werror_flag
3772    ac_c_werror_flag=yes
3773    ac_cv_prog_cc_g=no
3774    CFLAGS="-g"
3775    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h.  */
3777
3778 int
3779 main ()
3780 {
3781
3782   ;
3783   return 0;
3784 }
3785 _ACEOF
3786 if ac_fn_c_try_compile "$LINENO"; then :
3787   ac_cv_prog_cc_g=yes
3788 else
3789   CFLAGS=""
3790       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h.  */
3792
3793 int
3794 main ()
3795 {
3796
3797   ;
3798   return 0;
3799 }
3800 _ACEOF
3801 if ac_fn_c_try_compile "$LINENO"; then :
3802
3803 else
3804   ac_c_werror_flag=$ac_save_c_werror_flag
3805          CFLAGS="-g"
3806          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h.  */
3808
3809 int
3810 main ()
3811 {
3812
3813   ;
3814   return 0;
3815 }
3816 _ACEOF
3817 if ac_fn_c_try_compile "$LINENO"; then :
3818   ac_cv_prog_cc_g=yes
3819 fi
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 fi
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 fi
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825    ac_c_werror_flag=$ac_save_c_werror_flag
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3828 $as_echo "$ac_cv_prog_cc_g" >&6; }
3829 if test "$ac_test_CFLAGS" = set; then
3830   CFLAGS=$ac_save_CFLAGS
3831 elif test $ac_cv_prog_cc_g = yes; then
3832   if test "$GCC" = yes; then
3833     CFLAGS="-g -O2"
3834   else
3835     CFLAGS="-g"
3836   fi
3837 else
3838   if test "$GCC" = yes; then
3839     CFLAGS="-O2"
3840   else
3841     CFLAGS=
3842   fi
3843 fi
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3845 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3846 if ${ac_cv_prog_cc_c89+:} false; then :
3847   $as_echo_n "(cached) " >&6
3848 else
3849   ac_cv_prog_cc_c89=no
3850 ac_save_CC=$CC
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h.  */
3853 #include <stdarg.h>
3854 #include <stdio.h>
3855 struct stat;
3856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3857 struct buf { int x; };
3858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3859 static char *e (p, i)
3860      char **p;
3861      int i;
3862 {
3863   return p[i];
3864 }
3865 static char *f (char * (*g) (char **, int), char **p, ...)
3866 {
3867   char *s;
3868   va_list v;
3869   va_start (v,p);
3870   s = g (p, va_arg (v,int));
3871   va_end (v);
3872   return s;
3873 }
3874
3875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3876    function prototypes and stuff, but not '\xHH' hex character constants.
3877    These don't provoke an error unfortunately, instead are silently treated
3878    as 'x'.  The following induces an error, until -std is added to get
3879    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3880    array size at least.  It's necessary to write '\x00'==0 to get something
3881    that's true only with -std.  */
3882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3883
3884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3885    inside strings and character constants.  */
3886 #define FOO(x) 'x'
3887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3888
3889 int test (int i, double x);
3890 struct s1 {int (*f) (int a);};
3891 struct s2 {int (*f) (double a);};
3892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3893 int argc;
3894 char **argv;
3895 int
3896 main ()
3897 {
3898 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3904         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3905 do
3906   CC="$ac_save_CC $ac_arg"
3907   if ac_fn_c_try_compile "$LINENO"; then :
3908   ac_cv_prog_cc_c89=$ac_arg
3909 fi
3910 rm -f core conftest.err conftest.$ac_objext
3911   test "x$ac_cv_prog_cc_c89" != "xno" && break
3912 done
3913 rm -f conftest.$ac_ext
3914 CC=$ac_save_CC
3915
3916 fi
3917 # AC_CACHE_VAL
3918 case "x$ac_cv_prog_cc_c89" in
3919   x)
3920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3921 $as_echo "none needed" >&6; } ;;
3922   xno)
3923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3924 $as_echo "unsupported" >&6; } ;;
3925   *)
3926     CC="$CC $ac_cv_prog_cc_c89"
3927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3928 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3929 esac
3930 if test "x$ac_cv_prog_cc_c89" != xno; then :
3931
3932 fi
3933
3934 ac_ext=c
3935 ac_cpp='$CPP $CPPFLAGS'
3936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939
3940 ac_ext=c
3941 ac_cpp='$CPP $CPPFLAGS'
3942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3946 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3947 if ${am_cv_prog_cc_c_o+:} false; then :
3948   $as_echo_n "(cached) " >&6
3949 else
3950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h.  */
3952
3953 int
3954 main ()
3955 {
3956
3957   ;
3958   return 0;
3959 }
3960 _ACEOF
3961   # Make sure it works both with $CC and with simple cc.
3962   # Following AC_PROG_CC_C_O, we do the test twice because some
3963   # compilers refuse to overwrite an existing .o file with -o,
3964   # though they will create one.
3965   am_cv_prog_cc_c_o=yes
3966   for am_i in 1 2; do
3967     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3968    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3969    ac_status=$?
3970    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971    (exit $ac_status); } \
3972          && test -f conftest2.$ac_objext; then
3973       : OK
3974     else
3975       am_cv_prog_cc_c_o=no
3976       break
3977     fi
3978   done
3979   rm -f core conftest*
3980   unset am_i
3981 fi
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3983 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3984 if test "$am_cv_prog_cc_c_o" != yes; then
3985    # Losing compiler, so override with the script.
3986    # FIXME: It is wrong to rewrite CC.
3987    # But if we don't then we get into trouble of one sort or another.
3988    # A longer-term fix would be to have automake use am__CC in this case,
3989    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3990    CC="$am_aux_dir/compile $CC"
3991 fi
3992 ac_ext=c
3993 ac_cpp='$CPP $CPPFLAGS'
3994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997
3998 DEPDIR="${am__leading_dot}deps"
3999
4000 ac_config_commands="$ac_config_commands depfiles"
4001
4002
4003 am_make=${MAKE-make}
4004 cat > confinc << 'END'
4005 am__doit:
4006         @echo this is the am__doit target
4007 .PHONY: am__doit
4008 END
4009 # If we don't find an include directive, just comment out the code.
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4011 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4012 am__include="#"
4013 am__quote=
4014 _am_result=none
4015 # First try GNU make style include.
4016 echo "include confinc" > confmf
4017 # Ignore all kinds of additional output from 'make'.
4018 case `$am_make -s -f confmf 2> /dev/null` in #(
4019 *the\ am__doit\ target*)
4020   am__include=include
4021   am__quote=
4022   _am_result=GNU
4023   ;;
4024 esac
4025 # Now try BSD make style include.
4026 if test "$am__include" = "#"; then
4027    echo '.include "confinc"' > confmf
4028    case `$am_make -s -f confmf 2> /dev/null` in #(
4029    *the\ am__doit\ target*)
4030      am__include=.include
4031      am__quote="\""
4032      _am_result=BSD
4033      ;;
4034    esac
4035 fi
4036
4037
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4039 $as_echo "$_am_result" >&6; }
4040 rm -f confinc confmf
4041
4042 # Check whether --enable-dependency-tracking was given.
4043 if test "${enable_dependency_tracking+set}" = set; then :
4044   enableval=$enable_dependency_tracking;
4045 fi
4046
4047 if test "x$enable_dependency_tracking" != xno; then
4048   am_depcomp="$ac_aux_dir/depcomp"
4049   AMDEPBACKSLASH='\'
4050   am__nodep='_no'
4051 fi
4052  if test "x$enable_dependency_tracking" != xno; then
4053   AMDEP_TRUE=
4054   AMDEP_FALSE='#'
4055 else
4056   AMDEP_TRUE='#'
4057   AMDEP_FALSE=
4058 fi
4059
4060
4061
4062 depcc="$CC"   am_compiler_list=
4063
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4065 $as_echo_n "checking dependency style of $depcc... " >&6; }
4066 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4067   $as_echo_n "(cached) " >&6
4068 else
4069   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4070   # We make a subdir and do the tests there.  Otherwise we can end up
4071   # making bogus files that we don't know about and never remove.  For
4072   # instance it was reported that on HP-UX the gcc test will end up
4073   # making a dummy file named 'D' -- because '-MD' means "put the output
4074   # in D".
4075   rm -rf conftest.dir
4076   mkdir conftest.dir
4077   # Copy depcomp to subdir because otherwise we won't find it if we're
4078   # using a relative directory.
4079   cp "$am_depcomp" conftest.dir
4080   cd conftest.dir
4081   # We will build objects and dependencies in a subdirectory because
4082   # it helps to detect inapplicable dependency modes.  For instance
4083   # both Tru64's cc and ICC support -MD to output dependencies as a
4084   # side effect of compilation, but ICC will put the dependencies in
4085   # the current directory while Tru64 will put them in the object
4086   # directory.
4087   mkdir sub
4088
4089   am_cv_CC_dependencies_compiler_type=none
4090   if test "$am_compiler_list" = ""; then
4091      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4092   fi
4093   am__universal=false
4094   case " $depcc " in #(
4095      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4096      esac
4097
4098   for depmode in $am_compiler_list; do
4099     # Setup a source with many dependencies, because some compilers
4100     # like to wrap large dependency lists on column 80 (with \), and
4101     # we should not choose a depcomp mode which is confused by this.
4102     #
4103     # We need to recreate these files for each test, as the compiler may
4104     # overwrite some of them when testing with obscure command lines.
4105     # This happens at least with the AIX C compiler.
4106     : > sub/conftest.c
4107     for i in 1 2 3 4 5 6; do
4108       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4109       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4110       # Solaris 10 /bin/sh.
4111       echo '/* dummy */' > sub/conftst$i.h
4112     done
4113     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4114
4115     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4116     # mode.  It turns out that the SunPro C++ compiler does not properly
4117     # handle '-M -o', and we need to detect this.  Also, some Intel
4118     # versions had trouble with output in subdirs.
4119     am__obj=sub/conftest.${OBJEXT-o}
4120     am__minus_obj="-o $am__obj"
4121     case $depmode in
4122     gcc)
4123       # This depmode causes a compiler race in universal mode.
4124       test "$am__universal" = false || continue
4125       ;;
4126     nosideeffect)
4127       # After this tag, mechanisms are not by side-effect, so they'll
4128       # only be used when explicitly requested.
4129       if test "x$enable_dependency_tracking" = xyes; then
4130         continue
4131       else
4132         break
4133       fi
4134       ;;
4135     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4136       # This compiler won't grok '-c -o', but also, the minuso test has
4137       # not run yet.  These depmodes are late enough in the game, and
4138       # so weak that their functioning should not be impacted.
4139       am__obj=conftest.${OBJEXT-o}
4140       am__minus_obj=
4141       ;;
4142     none) break ;;
4143     esac
4144     if depmode=$depmode \
4145        source=sub/conftest.c object=$am__obj \
4146        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4147        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4148          >/dev/null 2>conftest.err &&
4149        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4150        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4151        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4152        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4153       # icc doesn't choke on unknown options, it will just issue warnings
4154       # or remarks (even with -Werror).  So we grep stderr for any message
4155       # that says an option was ignored or not supported.
4156       # When given -MP, icc 7.0 and 7.1 complain thusly:
4157       #   icc: Command line warning: ignoring option '-M'; no argument required
4158       # The diagnosis changed in icc 8.0:
4159       #   icc: Command line remark: option '-MP' not supported
4160       if (grep 'ignoring option' conftest.err ||
4161           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4162         am_cv_CC_dependencies_compiler_type=$depmode
4163         break
4164       fi
4165     fi
4166   done
4167
4168   cd ..
4169   rm -rf conftest.dir
4170 else
4171   am_cv_CC_dependencies_compiler_type=none
4172 fi
4173
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4176 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4177 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4178
4179  if
4180   test "x$enable_dependency_tracking" != xno \
4181   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4182   am__fastdepCC_TRUE=
4183   am__fastdepCC_FALSE='#'
4184 else
4185   am__fastdepCC_TRUE='#'
4186   am__fastdepCC_FALSE=
4187 fi
4188
4189
4190
4191 ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4197 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4198 # On Suns, sometimes $CPP names a directory.
4199 if test -n "$CPP" && test -d "$CPP"; then
4200   CPP=
4201 fi
4202 if test -z "$CPP"; then
4203   if ${ac_cv_prog_CPP+:} false; then :
4204   $as_echo_n "(cached) " >&6
4205 else
4206       # Double quotes because CPP needs to be expanded
4207     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4208     do
4209       ac_preproc_ok=false
4210 for ac_c_preproc_warn_flag in '' yes
4211 do
4212   # Use a header file that comes with gcc, so configuring glibc
4213   # with a fresh cross-compiler works.
4214   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215   # <limits.h> exists even on freestanding compilers.
4216   # On the NeXT, cc -E runs the code through the compiler's parser,
4217   # not just through cpp. "Syntax error" is here to catch this case.
4218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h.  */
4220 #ifdef __STDC__
4221 # include <limits.h>
4222 #else
4223 # include <assert.h>
4224 #endif
4225                      Syntax error
4226 _ACEOF
4227 if ac_fn_c_try_cpp "$LINENO"; then :
4228
4229 else
4230   # Broken: fails on valid input.
4231 continue
4232 fi
4233 rm -f conftest.err conftest.i conftest.$ac_ext
4234
4235   # OK, works on sane cases.  Now check whether nonexistent headers
4236   # can be detected and how.
4237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h.  */
4239 #include <ac_nonexistent.h>
4240 _ACEOF
4241 if ac_fn_c_try_cpp "$LINENO"; then :
4242   # Broken: success on invalid input.
4243 continue
4244 else
4245   # Passes both tests.
4246 ac_preproc_ok=:
4247 break
4248 fi
4249 rm -f conftest.err conftest.i conftest.$ac_ext
4250
4251 done
4252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4253 rm -f conftest.i conftest.err conftest.$ac_ext
4254 if $ac_preproc_ok; then :
4255   break
4256 fi
4257
4258     done
4259     ac_cv_prog_CPP=$CPP
4260
4261 fi
4262   CPP=$ac_cv_prog_CPP
4263 else
4264   ac_cv_prog_CPP=$CPP
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4267 $as_echo "$CPP" >&6; }
4268 ac_preproc_ok=false
4269 for ac_c_preproc_warn_flag in '' yes
4270 do
4271   # Use a header file that comes with gcc, so configuring glibc
4272   # with a fresh cross-compiler works.
4273   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4274   # <limits.h> exists even on freestanding compilers.
4275   # On the NeXT, cc -E runs the code through the compiler's parser,
4276   # not just through cpp. "Syntax error" is here to catch this case.
4277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h.  */
4279 #ifdef __STDC__
4280 # include <limits.h>
4281 #else
4282 # include <assert.h>
4283 #endif
4284                      Syntax error
4285 _ACEOF
4286 if ac_fn_c_try_cpp "$LINENO"; then :
4287
4288 else
4289   # Broken: fails on valid input.
4290 continue
4291 fi
4292 rm -f conftest.err conftest.i conftest.$ac_ext
4293
4294   # OK, works on sane cases.  Now check whether nonexistent headers
4295   # can be detected and how.
4296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h.  */
4298 #include <ac_nonexistent.h>
4299 _ACEOF
4300 if ac_fn_c_try_cpp "$LINENO"; then :
4301   # Broken: success on invalid input.
4302 continue
4303 else
4304   # Passes both tests.
4305 ac_preproc_ok=:
4306 break
4307 fi
4308 rm -f conftest.err conftest.i conftest.$ac_ext
4309
4310 done
4311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4312 rm -f conftest.i conftest.err conftest.$ac_ext
4313 if $ac_preproc_ok; then :
4314
4315 else
4316   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4318 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4319 See \`config.log' for more details" "$LINENO" 5; }
4320 fi
4321
4322 ac_ext=c
4323 ac_cpp='$CPP $CPPFLAGS'
4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4330 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4331 if ${ac_cv_path_GREP+:} false; then :
4332   $as_echo_n "(cached) " >&6
4333 else
4334   if test -z "$GREP"; then
4335   ac_path_GREP_found=false
4336   # Loop through the user's path and test for each of PROGNAME-LIST
4337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4339 do
4340   IFS=$as_save_IFS
4341   test -z "$as_dir" && as_dir=.
4342     for ac_prog in grep ggrep; do
4343     for ac_exec_ext in '' $ac_executable_extensions; do
4344       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4345       as_fn_executable_p "$ac_path_GREP" || continue
4346 # Check for GNU ac_path_GREP and select it if it is found.
4347   # Check for GNU $ac_path_GREP
4348 case `"$ac_path_GREP" --version 2>&1` in
4349 *GNU*)
4350   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4351 *)
4352   ac_count=0
4353   $as_echo_n 0123456789 >"conftest.in"
4354   while :
4355   do
4356     cat "conftest.in" "conftest.in" >"conftest.tmp"
4357     mv "conftest.tmp" "conftest.in"
4358     cp "conftest.in" "conftest.nl"
4359     $as_echo 'GREP' >> "conftest.nl"
4360     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4361     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4362     as_fn_arith $ac_count + 1 && ac_count=$as_val
4363     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4364       # Best one so far, save it but keep looking for a better one
4365       ac_cv_path_GREP="$ac_path_GREP"
4366       ac_path_GREP_max=$ac_count
4367     fi
4368     # 10*(2^10) chars as input seems more than enough
4369     test $ac_count -gt 10 && break
4370   done
4371   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4372 esac
4373
4374       $ac_path_GREP_found && break 3
4375     done
4376   done
4377   done
4378 IFS=$as_save_IFS
4379   if test -z "$ac_cv_path_GREP"; then
4380     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4381   fi
4382 else
4383   ac_cv_path_GREP=$GREP
4384 fi
4385
4386 fi
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4388 $as_echo "$ac_cv_path_GREP" >&6; }
4389  GREP="$ac_cv_path_GREP"
4390
4391
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4393 $as_echo_n "checking for egrep... " >&6; }
4394 if ${ac_cv_path_EGREP+:} false; then :
4395   $as_echo_n "(cached) " >&6
4396 else
4397   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4398    then ac_cv_path_EGREP="$GREP -E"
4399    else
4400      if test -z "$EGREP"; then
4401   ac_path_EGREP_found=false
4402   # Loop through the user's path and test for each of PROGNAME-LIST
4403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4405 do
4406   IFS=$as_save_IFS
4407   test -z "$as_dir" && as_dir=.
4408     for ac_prog in egrep; do
4409     for ac_exec_ext in '' $ac_executable_extensions; do
4410       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4411       as_fn_executable_p "$ac_path_EGREP" || continue
4412 # Check for GNU ac_path_EGREP and select it if it is found.
4413   # Check for GNU $ac_path_EGREP
4414 case `"$ac_path_EGREP" --version 2>&1` in
4415 *GNU*)
4416   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4417 *)
4418   ac_count=0
4419   $as_echo_n 0123456789 >"conftest.in"
4420   while :
4421   do
4422     cat "conftest.in" "conftest.in" >"conftest.tmp"
4423     mv "conftest.tmp" "conftest.in"
4424     cp "conftest.in" "conftest.nl"
4425     $as_echo 'EGREP' >> "conftest.nl"
4426     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4427     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4428     as_fn_arith $ac_count + 1 && ac_count=$as_val
4429     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4430       # Best one so far, save it but keep looking for a better one
4431       ac_cv_path_EGREP="$ac_path_EGREP"
4432       ac_path_EGREP_max=$ac_count
4433     fi
4434     # 10*(2^10) chars as input seems more than enough
4435     test $ac_count -gt 10 && break
4436   done
4437   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4438 esac
4439
4440       $ac_path_EGREP_found && break 3
4441     done
4442   done
4443   done
4444 IFS=$as_save_IFS
4445   if test -z "$ac_cv_path_EGREP"; then
4446     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4447   fi
4448 else
4449   ac_cv_path_EGREP=$EGREP
4450 fi
4451
4452    fi
4453 fi
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4455 $as_echo "$ac_cv_path_EGREP" >&6; }
4456  EGREP="$ac_cv_path_EGREP"
4457
4458
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4460 $as_echo_n "checking for ANSI C header files... " >&6; }
4461 if ${ac_cv_header_stdc+:} false; then :
4462   $as_echo_n "(cached) " >&6
4463 else
4464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h.  */
4466 #include <stdlib.h>
4467 #include <stdarg.h>
4468 #include <string.h>
4469 #include <float.h>
4470
4471 int
4472 main ()
4473 {
4474
4475   ;
4476   return 0;
4477 }
4478 _ACEOF
4479 if ac_fn_c_try_compile "$LINENO"; then :
4480   ac_cv_header_stdc=yes
4481 else
4482   ac_cv_header_stdc=no
4483 fi
4484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485
4486 if test $ac_cv_header_stdc = yes; then
4487   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490 #include <string.h>
4491
4492 _ACEOF
4493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4494   $EGREP "memchr" >/dev/null 2>&1; then :
4495
4496 else
4497   ac_cv_header_stdc=no
4498 fi
4499 rm -f conftest*
4500
4501 fi
4502
4503 if test $ac_cv_header_stdc = yes; then
4504   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h.  */
4507 #include <stdlib.h>
4508
4509 _ACEOF
4510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4511   $EGREP "free" >/dev/null 2>&1; then :
4512
4513 else
4514   ac_cv_header_stdc=no
4515 fi
4516 rm -f conftest*
4517
4518 fi
4519
4520 if test $ac_cv_header_stdc = yes; then
4521   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4522   if test "$cross_compiling" = yes; then :
4523   :
4524 else
4525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h.  */
4527 #include <ctype.h>
4528 #include <stdlib.h>
4529 #if ((' ' & 0x0FF) == 0x020)
4530 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4531 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4532 #else
4533 # define ISLOWER(c) \
4534                    (('a' <= (c) && (c) <= 'i') \
4535                      || ('j' <= (c) && (c) <= 'r') \
4536                      || ('s' <= (c) && (c) <= 'z'))
4537 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4538 #endif
4539
4540 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4541 int
4542 main ()
4543 {
4544   int i;
4545   for (i = 0; i < 256; i++)
4546     if (XOR (islower (i), ISLOWER (i))
4547         || toupper (i) != TOUPPER (i))
4548       return 2;
4549   return 0;
4550 }
4551 _ACEOF
4552 if ac_fn_c_try_run "$LINENO"; then :
4553
4554 else
4555   ac_cv_header_stdc=no
4556 fi
4557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4558   conftest.$ac_objext conftest.beam conftest.$ac_ext
4559 fi
4560
4561 fi
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4564 $as_echo "$ac_cv_header_stdc" >&6; }
4565 if test $ac_cv_header_stdc = yes; then
4566
4567 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4568
4569 fi
4570
4571
4572
4573
4574 # Check whether --with-resolver was given.
4575 if test "${with_resolver+set}" = set; then :
4576   withval=$with_resolver; resolver=$withval
4577 else
4578   resolver=guess
4579 fi
4580
4581
4582
4583 # Check whether --with-libpcap was given.
4584 if test "${with_libpcap+set}" = set; then :
4585   withval=$with_libpcap; libpcap_prefix=$withval
4586 else
4587   libpcap_prefix=""
4588 fi
4589
4590
4591
4592 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4593 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4594                   inttypes.h stdint.h unistd.h
4595 do :
4596   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4597 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4598 "
4599 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4600   cat >>confdefs.h <<_ACEOF
4601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4602 _ACEOF
4603
4604 fi
4605
4606 done
4607
4608
4609 for ac_header in sgtty.h sys/ioctl.h sys/time.h sys/sockio.h termio.h termios.h unistd.h
4610 do :
4611   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4612 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4613 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4614   cat >>confdefs.h <<_ACEOF
4615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4616 _ACEOF
4617
4618 fi
4619
4620 done
4621
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4624 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4625 if ${ac_cv_c_const+:} false; then :
4626   $as_echo_n "(cached) " >&6
4627 else
4628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h.  */
4630
4631 int
4632 main ()
4633 {
4634
4635 #ifndef __cplusplus
4636   /* Ultrix mips cc rejects this sort of thing.  */
4637   typedef int charset[2];
4638   const charset cs = { 0, 0 };
4639   /* SunOS 4.1.1 cc rejects this.  */
4640   char const *const *pcpcc;
4641   char **ppc;
4642   /* NEC SVR4.0.2 mips cc rejects this.  */
4643   struct point {int x, y;};
4644   static struct point const zero = {0,0};
4645   /* AIX XL C 1.02.0.0 rejects this.
4646      It does not let you subtract one const X* pointer from another in
4647      an arm of an if-expression whose if-part is not a constant
4648      expression */
4649   const char *g = "string";
4650   pcpcc = &g + (g ? g-g : 0);
4651   /* HPUX 7.0 cc rejects these. */
4652   ++pcpcc;
4653   ppc = (char**) pcpcc;
4654   pcpcc = (char const *const *) ppc;
4655   { /* SCO 3.2v4 cc rejects this sort of thing.  */
4656     char tx;
4657     char *t = &tx;
4658     char const *s = 0 ? (char *) 0 : (char const *) 0;
4659
4660     *t++ = 0;
4661     if (s) return 0;
4662   }
4663   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4664     int x[] = {25, 17};
4665     const int *foo = &x[0];
4666     ++foo;
4667   }
4668   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4669     typedef const int *iptr;
4670     iptr p = 0;
4671     ++p;
4672   }
4673   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4674        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4675     struct s { int j; const int *ap[3]; } bx;
4676     struct s *b = &bx; b->j = 5;
4677   }
4678   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4679     const int foo = 10;
4680     if (!foo) return 0;
4681   }
4682   return !cs[0] && !zero.x;
4683 #endif
4684
4685   ;
4686   return 0;
4687 }
4688 _ACEOF
4689 if ac_fn_c_try_compile "$LINENO"; then :
4690   ac_cv_c_const=yes
4691 else
4692   ac_cv_c_const=no
4693 fi
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4697 $as_echo "$ac_cv_c_const" >&6; }
4698 if test $ac_cv_c_const = no; then
4699
4700 $as_echo "#define const /**/" >>confdefs.h
4701
4702 fi
4703
4704 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4705 if test "x$ac_cv_type_size_t" = xyes; then :
4706
4707 else
4708
4709 cat >>confdefs.h <<_ACEOF
4710 #define size_t unsigned int
4711 _ACEOF
4712
4713 fi
4714
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4716 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4717 if ${ac_cv_header_time+:} false; then :
4718   $as_echo_n "(cached) " >&6
4719 else
4720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h.  */
4722 #include <sys/types.h>
4723 #include <sys/time.h>
4724 #include <time.h>
4725
4726 int
4727 main ()
4728 {
4729 if ((struct tm *) 0)
4730 return 0;
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 if ac_fn_c_try_compile "$LINENO"; then :
4736   ac_cv_header_time=yes
4737 else
4738   ac_cv_header_time=no
4739 fi
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4743 $as_echo "$ac_cv_header_time" >&6; }
4744 if test $ac_cv_header_time = yes; then
4745
4746 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4747
4748 fi
4749
4750
4751
4752 ac_fn_c_check_header_mongrel "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
4753 if test "x$ac_cv_header_sys_dlpi_h" = xyes; then :
4754
4755 $as_echo "#define HAVE_DLPI 1" >>confdefs.h
4756
4757 fi
4758
4759
4760
4761 for ac_func in regcomp select strdup strerror strspn
4762 do :
4763   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4764 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4765 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4766   cat >>confdefs.h <<_ACEOF
4767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4768 _ACEOF
4769
4770 fi
4771 done
4772
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4775 $as_echo_n "checking for library containing socket... " >&6; }
4776 if ${ac_cv_search_socket+:} false; then :
4777   $as_echo_n "(cached) " >&6
4778 else
4779   ac_func_search_save_LIBS=$LIBS
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h.  */
4782
4783 /* Override any GCC internal prototype to avoid an error.
4784    Use char because int might match the return type of a GCC
4785    builtin and then its argument prototype would still apply.  */
4786 #ifdef __cplusplus
4787 extern "C"
4788 #endif
4789 char socket ();
4790 int
4791 main ()
4792 {
4793 return socket ();
4794   ;
4795   return 0;
4796 }
4797 _ACEOF
4798 for ac_lib in '' socket; do
4799   if test -z "$ac_lib"; then
4800     ac_res="none required"
4801   else
4802     ac_res=-l$ac_lib
4803     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4804   fi
4805   if ac_fn_c_try_link "$LINENO"; then :
4806   ac_cv_search_socket=$ac_res
4807 fi
4808 rm -f core conftest.err conftest.$ac_objext \
4809     conftest$ac_exeext
4810   if ${ac_cv_search_socket+:} false; then :
4811   break
4812 fi
4813 done
4814 if ${ac_cv_search_socket+:} false; then :
4815
4816 else
4817   ac_cv_search_socket=no
4818 fi
4819 rm conftest.$ac_ext
4820 LIBS=$ac_func_search_save_LIBS
4821 fi
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4823 $as_echo "$ac_cv_search_socket" >&6; }
4824 ac_res=$ac_cv_search_socket
4825 if test "$ac_res" != no; then :
4826   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4827
4828 fi
4829
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
4831 $as_echo_n "checking for library containing log... " >&6; }
4832 if ${ac_cv_search_log+:} false; then :
4833   $as_echo_n "(cached) " >&6
4834 else
4835   ac_func_search_save_LIBS=$LIBS
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h.  */
4838
4839 /* Override any GCC internal prototype to avoid an error.
4840    Use char because int might match the return type of a GCC
4841    builtin and then its argument prototype would still apply.  */
4842 #ifdef __cplusplus
4843 extern "C"
4844 #endif
4845 char log ();
4846 int
4847 main ()
4848 {
4849 return log ();
4850   ;
4851   return 0;
4852 }
4853 _ACEOF
4854 for ac_lib in '' m; do
4855   if test -z "$ac_lib"; then
4856     ac_res="none required"
4857   else
4858     ac_res=-l$ac_lib
4859     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4860   fi
4861   if ac_fn_c_try_link "$LINENO"; then :
4862   ac_cv_search_log=$ac_res
4863 fi
4864 rm -f core conftest.err conftest.$ac_objext \
4865     conftest$ac_exeext
4866   if ${ac_cv_search_log+:} false; then :
4867   break
4868 fi
4869 done
4870 if ${ac_cv_search_log+:} false; then :
4871
4872 else
4873   ac_cv_search_log=no
4874 fi
4875 rm conftest.$ac_ext
4876 LIBS=$ac_func_search_save_LIBS
4877 fi
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
4879 $as_echo "$ac_cv_search_log" >&6; }
4880 ac_res=$ac_cv_search_log
4881 if test "$ac_res" != no; then :
4882   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4883
4884 fi
4885
4886 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4887 if test "x$ac_cv_func_gethostbyname" = xyes; then :
4888
4889 else
4890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4891 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4892 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   ac_check_lib_save_LIBS=$LIBS
4896 LIBS="-lnsl  $LIBS"
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h.  */
4899
4900 /* Override any GCC internal prototype to avoid an error.
4901    Use char because int might match the return type of a GCC
4902    builtin and then its argument prototype would still apply.  */
4903 #ifdef __cplusplus
4904 extern "C"
4905 #endif
4906 char gethostbyname ();
4907 int
4908 main ()
4909 {
4910 return gethostbyname ();
4911   ;
4912   return 0;
4913 }
4914 _ACEOF
4915 if ac_fn_c_try_link "$LINENO"; then :
4916   ac_cv_lib_nsl_gethostbyname=yes
4917 else
4918   ac_cv_lib_nsl_gethostbyname=no
4919 fi
4920 rm -f core conftest.err conftest.$ac_objext \
4921     conftest$ac_exeext conftest.$ac_ext
4922 LIBS=$ac_check_lib_save_LIBS
4923 fi
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4925 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4926 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
4927   cat >>confdefs.h <<_ACEOF
4928 #define HAVE_LIBNSL 1
4929 _ACEOF
4930
4931   LIBS="-lnsl $LIBS"
4932
4933 fi
4934
4935 fi
4936
4937
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
4939 $as_echo_n "checking for library containing inet_aton... " >&6; }
4940 if ${ac_cv_search_inet_aton+:} false; then :
4941   $as_echo_n "(cached) " >&6
4942 else
4943   ac_func_search_save_LIBS=$LIBS
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h.  */
4946
4947 /* Override any GCC internal prototype to avoid an error.
4948    Use char because int might match the return type of a GCC
4949    builtin and then its argument prototype would still apply.  */
4950 #ifdef __cplusplus
4951 extern "C"
4952 #endif
4953 char inet_aton ();
4954 int
4955 main ()
4956 {
4957 return inet_aton ();
4958   ;
4959   return 0;
4960 }
4961 _ACEOF
4962 for ac_lib in '' socket nsl; do
4963   if test -z "$ac_lib"; then
4964     ac_res="none required"
4965   else
4966     ac_res=-l$ac_lib
4967     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4968   fi
4969   if ac_fn_c_try_link "$LINENO"; then :
4970   ac_cv_search_inet_aton=$ac_res
4971 fi
4972 rm -f core conftest.err conftest.$ac_objext \
4973     conftest$ac_exeext
4974   if ${ac_cv_search_inet_aton+:} false; then :
4975   break
4976 fi
4977 done
4978 if ${ac_cv_search_inet_aton+:} false; then :
4979
4980 else
4981   ac_cv_search_inet_aton=no
4982 fi
4983 rm conftest.$ac_ext
4984 LIBS=$ac_func_search_save_LIBS
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
4987 $as_echo "$ac_cv_search_inet_aton" >&6; }
4988 ac_res=$ac_cv_search_inet_aton
4989 if test "$ac_res" != no; then :
4990   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4991
4992 fi
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
4995 $as_echo_n "checking for library containing inet_pton... " >&6; }
4996 if ${ac_cv_search_inet_pton+:} false; then :
4997   $as_echo_n "(cached) " >&6
4998 else
4999   ac_func_search_save_LIBS=$LIBS
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h.  */
5002
5003 /* Override any GCC internal prototype to avoid an error.
5004    Use char because int might match the return type of a GCC
5005    builtin and then its argument prototype would still apply.  */
5006 #ifdef __cplusplus
5007 extern "C"
5008 #endif
5009 char inet_pton ();
5010 int
5011 main ()
5012 {
5013 return inet_pton ();
5014   ;
5015   return 0;
5016 }
5017 _ACEOF
5018 for ac_lib in '' socket nsl; do
5019   if test -z "$ac_lib"; then
5020     ac_res="none required"
5021   else
5022     ac_res=-l$ac_lib
5023     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5024   fi
5025   if ac_fn_c_try_link "$LINENO"; then :
5026   ac_cv_search_inet_pton=$ac_res
5027 fi
5028 rm -f core conftest.err conftest.$ac_objext \
5029     conftest$ac_exeext
5030   if ${ac_cv_search_inet_pton+:} false; then :
5031   break
5032 fi
5033 done
5034 if ${ac_cv_search_inet_pton+:} false; then :
5035
5036 else
5037   ac_cv_search_inet_pton=no
5038 fi
5039 rm conftest.$ac_ext
5040 LIBS=$ac_func_search_save_LIBS
5041 fi
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
5043 $as_echo "$ac_cv_search_inet_pton" >&6; }
5044 ac_res=$ac_cv_search_inet_pton
5045 if test "$ac_res" != no; then :
5046   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5047
5048 fi
5049
5050 for ac_func in inet_aton inet_pton
5051 do :
5052   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5053 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5054 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5055   cat >>confdefs.h <<_ACEOF
5056 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5057 _ACEOF
5058
5059 fi
5060 done
5061
5062
5063
5064 for type in u_int8_t u_int16_t u_int32_t ; do
5065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of $type" >&5
5066 $as_echo_n "checking size of $type... " >&6; }
5067     if test "$cross_compiling" = yes; then :
5068
5069         eval "size_$type=0"
5070         { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine when cross-compiling" >&5
5071 $as_echo "can't determine when cross-compiling" >&6; }
5072
5073 else
5074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h.  */
5076
5077 #include <sys/types.h>
5078 #include <stdio.h>
5079 int main() {
5080     $type dummy;
5081     FILE *f=fopen("conftestval", "w");
5082     if (!f) exit(1);
5083     fprintf(f, "%d\n", sizeof($1));
5084     exit(0);
5085 }
5086
5087 _ACEOF
5088 if ac_fn_c_try_run "$LINENO"; then :
5089
5090         x=`cat conftestval`
5091         eval "size_$type=$x"
5092         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $x" >&5
5093 $as_echo "$x" >&6; }
5094
5095 else
5096
5097         eval "size_$type=0"
5098         { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown type" >&5
5099 $as_echo "unknown type" >&6; }
5100
5101 fi
5102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5103   conftest.$ac_objext conftest.beam conftest.$ac_ext
5104 fi
5105
5106 done
5107
5108
5109 cat >>confdefs.h <<_ACEOF
5110 #define SIZEOF_U_INT8_T $size_u_int8_t
5111 _ACEOF
5112
5113
5114 cat >>confdefs.h <<_ACEOF
5115 #define SIZEOF_U_INT16_T $size_u_int16_t
5116 _ACEOF
5117
5118
5119 cat >>confdefs.h <<_ACEOF
5120 #define SIZEOF_U_INT32_T $size_u_int32_t
5121 _ACEOF
5122
5123
5124
5125 if test $size_u_int8_t != 1 || test $size_u_int16_t != 2 || test $size_u_int32_t != 4 ; then
5126     do_int_types=1
5127     for ac_header in stdint.h                     sys/inttypes.h
5128 do :
5129   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5130 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5131 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5132   cat >>confdefs.h <<_ACEOF
5133 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5134 _ACEOF
5135          do_int_types=0; break
5136 fi
5137
5138 done
5139
5140
5141     if test $do_int_types = 1 ; then
5142                 # The cast to long int works around a bug in the HP C Compiler
5143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5145 # This bug is HP SR number 8606223364.
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short int" >&5
5147 $as_echo_n "checking size of unsigned short int... " >&6; }
5148 if ${ac_cv_sizeof_unsigned_short_int+:} false; then :
5149   $as_echo_n "(cached) " >&6
5150 else
5151   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short int))" "ac_cv_sizeof_unsigned_short_int"        "$ac_includes_default"; then :
5152
5153 else
5154   if test "$ac_cv_type_unsigned_short_int" = yes; then
5155      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5157 as_fn_error 77 "cannot compute sizeof (unsigned short int)
5158 See \`config.log' for more details" "$LINENO" 5; }
5159    else
5160      ac_cv_sizeof_unsigned_short_int=0
5161    fi
5162 fi
5163
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short_int" >&5
5166 $as_echo "$ac_cv_sizeof_unsigned_short_int" >&6; }
5167
5168
5169
5170 cat >>confdefs.h <<_ACEOF
5171 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
5172 _ACEOF
5173
5174
5175         # The cast to long int works around a bug in the HP C Compiler
5176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5178 # This bug is HP SR number 8606223364.
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
5180 $as_echo_n "checking size of unsigned int... " >&6; }
5181 if ${ac_cv_sizeof_unsigned_int+:} false; then :
5182   $as_echo_n "(cached) " >&6
5183 else
5184   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
5185
5186 else
5187   if test "$ac_cv_type_unsigned_int" = yes; then
5188      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5190 as_fn_error 77 "cannot compute sizeof (unsigned int)
5191 See \`config.log' for more details" "$LINENO" 5; }
5192    else
5193      ac_cv_sizeof_unsigned_int=0
5194    fi
5195 fi
5196
5197 fi
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
5199 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
5200
5201
5202
5203 cat >>confdefs.h <<_ACEOF
5204 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
5205 _ACEOF
5206
5207
5208         # The cast to long int works around a bug in the HP C Compiler
5209 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5210 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5211 # This bug is HP SR number 8606223364.
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
5213 $as_echo_n "checking size of unsigned long int... " >&6; }
5214 if ${ac_cv_sizeof_unsigned_long_int+:} false; then :
5215   $as_echo_n "(cached) " >&6
5216 else
5217   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int"        "$ac_includes_default"; then :
5218
5219 else
5220   if test "$ac_cv_type_unsigned_long_int" = yes; then
5221      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5223 as_fn_error 77 "cannot compute sizeof (unsigned long int)
5224 See \`config.log' for more details" "$LINENO" 5; }
5225    else
5226      ac_cv_sizeof_unsigned_long_int=0
5227    fi
5228 fi
5229
5230 fi
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
5232 $as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
5233
5234
5235
5236 cat >>confdefs.h <<_ACEOF
5237 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
5238 _ACEOF
5239
5240
5241     else
5242
5243 $as_echo "#define HAVE_C99_INTS 1" >>confdefs.h
5244
5245     fi
5246 fi
5247
5248
5249
5250 specified_resolver=$resolver
5251 if test x$specified_resolver = xguess ; then
5252         use_getnameinfo=0
5253     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
5254 $as_echo_n "checking for library containing getnameinfo... " >&6; }
5255 if ${ac_cv_search_getnameinfo+:} false; then :
5256   $as_echo_n "(cached) " >&6
5257 else
5258   ac_func_search_save_LIBS=$LIBS
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h.  */
5261
5262 /* Override any GCC internal prototype to avoid an error.
5263    Use char because int might match the return type of a GCC
5264    builtin and then its argument prototype would still apply.  */
5265 #ifdef __cplusplus
5266 extern "C"
5267 #endif
5268 char getnameinfo ();
5269 int
5270 main ()
5271 {
5272 return getnameinfo ();
5273   ;
5274   return 0;
5275 }
5276 _ACEOF
5277 for ac_lib in '' nsl; do
5278   if test -z "$ac_lib"; then
5279     ac_res="none required"
5280   else
5281     ac_res=-l$ac_lib
5282     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5283   fi
5284   if ac_fn_c_try_link "$LINENO"; then :
5285   ac_cv_search_getnameinfo=$ac_res
5286 fi
5287 rm -f core conftest.err conftest.$ac_objext \
5288     conftest$ac_exeext
5289   if ${ac_cv_search_getnameinfo+:} false; then :
5290   break
5291 fi
5292 done
5293 if ${ac_cv_search_getnameinfo+:} false; then :
5294
5295 else
5296   ac_cv_search_getnameinfo=no
5297 fi
5298 rm conftest.$ac_ext
5299 LIBS=$ac_func_search_save_LIBS
5300 fi
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
5302 $as_echo "$ac_cv_search_getnameinfo" >&6; }
5303 ac_res=$ac_cv_search_getnameinfo
5304 if test "$ac_res" != no; then :
5305   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5306   use_getnameinfo=1
5307 fi
5308
5309
5310             use_getnameinfo=0
5311
5312     if test $use_getnameinfo = 1 ; then
5313
5314 $as_echo "#define USE_GETNAMEINFO 1" >>confdefs.h
5315
5316     else
5317                 resolver=netdb
5318     fi
5319 fi
5320
5321 if test x$resolver = xnetdb ; then
5322         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr_r" >&5
5323 $as_echo_n "checking for library containing gethostbyaddr_r... " >&6; }
5324 if ${ac_cv_search_gethostbyaddr_r+:} false; then :
5325   $as_echo_n "(cached) " >&6
5326 else
5327   ac_func_search_save_LIBS=$LIBS
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h.  */
5330
5331 /* Override any GCC internal prototype to avoid an error.
5332    Use char because int might match the return type of a GCC
5333    builtin and then its argument prototype would still apply.  */
5334 #ifdef __cplusplus
5335 extern "C"
5336 #endif
5337 char gethostbyaddr_r ();
5338 int
5339 main ()
5340 {
5341 return gethostbyaddr_r ();
5342   ;
5343   return 0;
5344 }
5345 _ACEOF
5346 for ac_lib in '' nsl; do
5347   if test -z "$ac_lib"; then
5348     ac_res="none required"
5349   else
5350     ac_res=-l$ac_lib
5351     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5352   fi
5353   if ac_fn_c_try_link "$LINENO"; then :
5354   ac_cv_search_gethostbyaddr_r=$ac_res
5355 fi
5356 rm -f core conftest.err conftest.$ac_objext \
5357     conftest$ac_exeext
5358   if ${ac_cv_search_gethostbyaddr_r+:} false; then :
5359   break
5360 fi
5361 done
5362 if ${ac_cv_search_gethostbyaddr_r+:} false; then :
5363
5364 else
5365   ac_cv_search_gethostbyaddr_r=no
5366 fi
5367 rm conftest.$ac_ext
5368 LIBS=$ac_func_search_save_LIBS
5369 fi
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr_r" >&5
5371 $as_echo "$ac_cv_search_gethostbyaddr_r" >&6; }
5372 ac_res=$ac_cv_search_gethostbyaddr_r
5373 if test "$ac_res" != no; then :
5374   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5375
5376 else
5377   resolver=guess
5378 fi
5379
5380     if test x$resolver = xguess && test x$specified_resolver != xguess ; then
5381               as_fn_error $? "no library defines gethostbyaddr_r" "$LINENO" 5
5382     fi
5383 fi
5384
5385 if test x$resolver = xnetdb ; then
5386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call gethostbyaddr_r" >&5
5387 $as_echo_n "checking how to call gethostbyaddr_r... " >&6; }
5388         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h.  */
5390 `cat config/hostentp_ghba_r.c`
5391 _ACEOF
5392 if ac_fn_c_try_link "$LINENO"; then :
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: 7 args" >&5
5394 $as_echo "7 args" >&6; }
5395                     ghba_args=8
5396
5397 $as_echo "#define GETHOSTBYADDR_R_RETURNS_HOSTENT_P 1" >>confdefs.h
5398
5399 else
5400
5401         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h.  */
5403 `cat config/int_ghba_r.c`
5404 _ACEOF
5405 if ac_fn_c_try_link "$LINENO"; then :
5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 args, int return" >&5
5407 $as_echo "8 args, int return" >&6; }
5408                     ghba_args=8
5409
5410 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
5411
5412 else
5413
5414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know how" >&5
5415 $as_echo "don't know how" >&6; }
5416     resolver=guess
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext \
5419     conftest$ac_exeext conftest.$ac_ext
5420 fi
5421 rm -f core conftest.err conftest.$ac_objext \
5422     conftest$ac_exeext conftest.$ac_ext
5423     if test x$resolver = xguess && test x$specified_resolver != xguess ; then
5424               as_fn_error $? "gethostbyaddr_r has no known calling convention" "$LINENO" 5
5425     fi
5426 fi
5427
5428 if test x$resolver = xnetdb ; then
5429     if test x$ghba_args = x8 ; then
5430        testfile=int_ghba_r
5431     else
5432        testfile=hostentp_ghba_r
5433     fi
5434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r usability" >&5
5435 $as_echo_n "checking gethostbyaddr_r usability... " >&6; }
5436     if test "$cross_compiling" = yes; then :
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't test because we are cross-compiling" >&5
5438 $as_echo "can't test because we are cross-compiling" >&6; }
5439 else
5440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h.  */
5442 `cat config/$testfile.c`
5443 _ACEOF
5444 if ac_fn_c_try_run "$LINENO"; then :
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5446 $as_echo "yes" >&6; }
5447 else
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5450                    resolver=guess
5451 fi
5452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5453   conftest.$ac_objext conftest.beam conftest.$ac_ext
5454 fi
5455
5456     if test x$resolver = xguess ; then
5457         if test x$specified_resolver = xguess ; then
5458            { $as_echo "$as_me:${as_lineno-$LINENO}: result: gethostbyaddr_r doesn't work, so we'll try something else" >&5
5459 $as_echo "gethostbyaddr_r doesn't work, so we'll try something else" >&6; }
5460         else
5461                       as_fn_error $? "gethostbyaddr_r doesn't work" "$LINENO" 5
5462         fi
5463     fi
5464 fi
5465
5466 if test x$resolver = xnetdb ; then
5467
5468 $as_echo "#define USE_GETHOSTBYADDR_R 1" >>confdefs.h
5469
5470 fi
5471
5472 if test x$resolver = xares ; then
5473         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ares_init" >&5
5474 $as_echo_n "checking for library containing ares_init... " >&6; }
5475 if ${ac_cv_search_ares_init+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   ac_func_search_save_LIBS=$LIBS
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h.  */
5481
5482 /* Override any GCC internal prototype to avoid an error.
5483    Use char because int might match the return type of a GCC
5484    builtin and then its argument prototype would still apply.  */
5485 #ifdef __cplusplus
5486 extern "C"
5487 #endif
5488 char ares_init ();
5489 int
5490 main ()
5491 {
5492 return ares_init ();
5493   ;
5494   return 0;
5495 }
5496 _ACEOF
5497 for ac_lib in '' ares; do
5498   if test -z "$ac_lib"; then
5499     ac_res="none required"
5500   else
5501     ac_res=-l$ac_lib
5502     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5503   fi
5504   if ac_fn_c_try_link "$LINENO"; then :
5505   ac_cv_search_ares_init=$ac_res
5506 fi
5507 rm -f core conftest.err conftest.$ac_objext \
5508     conftest$ac_exeext
5509   if ${ac_cv_search_ares_init+:} false; then :
5510   break
5511 fi
5512 done
5513 if ${ac_cv_search_ares_init+:} false; then :
5514
5515 else
5516   ac_cv_search_ares_init=no
5517 fi
5518 rm conftest.$ac_ext
5519 LIBS=$ac_func_search_save_LIBS
5520 fi
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ares_init" >&5
5522 $as_echo "$ac_cv_search_ares_init" >&6; }
5523 ac_res=$ac_cv_search_ares_init
5524 if test "$ac_res" != no; then :
5525   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5526
5527
5528 $as_echo "#define USE_ARES 1" >>confdefs.h
5529
5530
5531 else
5532
5533                 as_fn_error $? "can't find ARES.  Re-run configure and ask for a different resolver." "$LINENO" 5
5534 fi
5535
5536 fi
5537
5538 if test x$resolver = xguess ; then
5539    resolver=netdb_1thread
5540 fi
5541
5542 if test x$resolver = xnetdb_1thread || test x$resolver = xforking ; then
5543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
5544 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
5545 if ${ac_cv_search_gethostbyaddr+:} false; then :
5546   $as_echo_n "(cached) " >&6
5547 else
5548   ac_func_search_save_LIBS=$LIBS
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h.  */
5551
5552 /* Override any GCC internal prototype to avoid an error.
5553    Use char because int might match the return type of a GCC
5554    builtin and then its argument prototype would still apply.  */
5555 #ifdef __cplusplus
5556 extern "C"
5557 #endif
5558 char gethostbyaddr ();
5559 int
5560 main ()
5561 {
5562 return gethostbyaddr ();
5563   ;
5564   return 0;
5565 }
5566 _ACEOF
5567 for ac_lib in '' nsl; do
5568   if test -z "$ac_lib"; then
5569     ac_res="none required"
5570   else
5571     ac_res=-l$ac_lib
5572     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5573   fi
5574   if ac_fn_c_try_link "$LINENO"; then :
5575   ac_cv_search_gethostbyaddr=$ac_res
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext \
5578     conftest$ac_exeext
5579   if ${ac_cv_search_gethostbyaddr+:} false; then :
5580   break
5581 fi
5582 done
5583 if ${ac_cv_search_gethostbyaddr+:} false; then :
5584
5585 else
5586   ac_cv_search_gethostbyaddr=no
5587 fi
5588 rm conftest.$ac_ext
5589 LIBS=$ac_func_search_save_LIBS
5590 fi
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
5592 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
5593 ac_res=$ac_cv_search_gethostbyaddr
5594 if test "$ac_res" != no; then :
5595   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5596
5597 else
5598
5599         as_fn_error $? "gethostbyaddr is not available.  You will have to
5600   recompile with no name resolution at all." "$LINENO" 5
5601 fi
5602
5603
5604     if test x$resolver = xnetdb_1thread ; then
5605         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using single-threaded resolver with gethostbyaddr
5606   Consider obtaining ARES or a machine with a working gethostbyaddr_r." >&5
5607 $as_echo "$as_me: WARNING: using single-threaded resolver with gethostbyaddr
5608   Consider obtaining ARES or a machine with a working gethostbyaddr_r." >&2;}
5609
5610 $as_echo "#define USE_GETHOSTBYADDR 1" >>confdefs.h
5611
5612     else
5613
5614 $as_echo "#define USE_FORKING_RESOLVER 1" >>confdefs.h
5615
5616     fi
5617 fi
5618
5619
5620
5621 if test x$libpcap_prefix = x ; then
5622     libpcap_prefix="/usr /usr/local /opt /software"
5623 fi
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find pcap.h" >&5
5626 $as_echo_n "checking where to find pcap.h... " >&6; }
5627 foundpcaph=0
5628 oldCPPFLAGS=$CPPFLAGS
5629 for test_prefix in "" $libpcap_prefix ; do
5630     for x in "" /pcap ; do
5631         if test x$test_prefix != x ; then
5632             CPPFLAGS="$oldCPPFLAGS -I$test_prefix/include$x"
5633         fi
5634         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h.  */
5636
5637 #include <pcap.h>
5638
5639 _ACEOF
5640 if ac_fn_c_try_cpp "$LINENO"; then :
5641
5642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $test_prefix/include$x" >&5
5643 $as_echo "$test_prefix/include$x" >&6; }
5644         foundpcaph=1
5645         break
5646
5647 fi
5648 rm -f conftest.err conftest.i conftest.$ac_ext
5649     done
5650     if test $foundpcaph = 1 ; then
5651         break
5652     fi
5653 done
5654
5655 if test $foundpcaph = 0 ; then
5656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no idea" >&5
5657 $as_echo "no idea" >&6; }
5658     as_fn_error $? "can't find pcap.h
5659   You're not going to get very far without libpcap." "$LINENO" 5
5660 else
5661         if test x$test_prefix != x ; then
5662         LDFLAGS="$LDFLAGS -L$test_prefix/lib"
5663     fi
5664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
5665 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
5666 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
5667   $as_echo_n "(cached) " >&6
5668 else
5669   ac_check_lib_save_LIBS=$LIBS
5670 LIBS="-lpcap  $LIBS"
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h.  */
5673
5674 /* Override any GCC internal prototype to avoid an error.
5675    Use char because int might match the return type of a GCC
5676    builtin and then its argument prototype would still apply.  */
5677 #ifdef __cplusplus
5678 extern "C"
5679 #endif
5680 char pcap_open_live ();
5681 int
5682 main ()
5683 {
5684 return pcap_open_live ();
5685   ;
5686   return 0;
5687 }
5688 _ACEOF
5689 if ac_fn_c_try_link "$LINENO"; then :
5690   ac_cv_lib_pcap_pcap_open_live=yes
5691 else
5692   ac_cv_lib_pcap_pcap_open_live=no
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext \
5695     conftest$ac_exeext conftest.$ac_ext
5696 LIBS=$ac_check_lib_save_LIBS
5697 fi
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
5699 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
5700 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
5701   cat >>confdefs.h <<_ACEOF
5702 #define HAVE_LIBPCAP 1
5703 _ACEOF
5704
5705   LIBS="-lpcap $LIBS"
5706
5707 else
5708
5709             as_fn_error $? "can't find libpcap
5710   You're not going to get very far without libpcap." "$LINENO" 5
5711
5712 fi
5713
5714 fi
5715
5716 foundpcap=0
5717 for ac_header in pcap.h pcap/pcap.h
5718 do :
5719   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5720 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5721 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5722   cat >>confdefs.h <<_ACEOF
5723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5724 _ACEOF
5725
5726     foundpcap=1
5727     break
5728
5729 fi
5730
5731 done
5732
5733
5734 if test $foundpcap = 0 ; then
5735     as_fn_error $? "can't find pcap.h
5736   You're not going to get very far without libpcap." "$LINENO" 5
5737 fi
5738
5739
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a curses library containing mvchgat" >&5
5741 $as_echo_n "checking for a curses library containing mvchgat... " >&6; }
5742 oldLIBS=$LIBS
5743 for curseslib in ncursesw curses ncurses ; do
5744     LIBS="$oldLIBS -l$curseslib"
5745     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h.  */
5747
5748 #include <$curseslib.h>
5749
5750 int
5751 main ()
5752 {
5753
5754         mvchgat(0, 0, 1, A_REVERSE, 0, NULL)
5755
5756   ;
5757   return 0;
5758 }
5759 _ACEOF
5760 if ac_fn_c_try_link "$LINENO"; then :
5761
5762         foundcurseslib=$curseslib
5763         break
5764
5765 fi
5766 rm -f core conftest.err conftest.$ac_objext \
5767     conftest$ac_exeext conftest.$ac_ext
5768 done
5769
5770 if test x$foundcurseslib = x ; then
5771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found" >&5
5772 $as_echo "none found" >&6; }
5773     as_fn_error $? "Curses! Foiled again!
5774   (Can't find a curses library supporting mvchgat.)
5775   Consider installing ncurses." "$LINENO" 5
5776 else
5777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -l$foundcurseslib" >&5
5778 $as_echo "-l$foundcurseslib" >&6; }
5779 fi
5780
5781
5782
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX threads compilation" >&5
5784 $as_echo_n "checking POSIX threads compilation... " >&6; }
5785 thrfail=1
5786 oldCFLAGS=$CFLAGS
5787 oldLIBS=$LIBS
5788 for flag in "" -mt -pthread -thread ; do
5789     CFLAGS="$oldCFLAGS $flag"
5790     for lib in "" -lpthread "-lpthread -lposix4" ; do
5791         LIBS="$oldLIBS $lib"
5792         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h.  */
5794 `cat config/pthread.c`
5795 _ACEOF
5796 if ac_fn_c_try_link "$LINENO"; then :
5797
5798             foundthrlib=$lib
5799             foundthrflag=$flag
5800             thrfail=0
5801             break
5802
5803 fi
5804 rm -f core conftest.err conftest.$ac_objext \
5805     conftest$ac_exeext conftest.$ac_ext
5806     done
5807     if test $thrfail = 0 ; then
5808         break
5809     fi
5810 done
5811
5812 if test $thrfail = 1 ; then
5813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no idea" >&5
5814 $as_echo "no idea" >&6; }
5815     as_fn_error $? "can't figure out how to compile with POSIX threads
5816   If your system actually supports POSIX threads, this means we've messed up." "$LINENO" 5
5817 fi
5818
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS=$foundthrflag and LIBS=$foundthrlib" >&5
5820 $as_echo "CFLAGS=$foundthrflag and LIBS=$foundthrlib" >&6; }
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX threads usability" >&5
5822 $as_echo_n "checking POSIX threads usability... " >&6; }
5823 if test "$cross_compiling" = yes; then :
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't test because we are cross-compiling" >&5
5825 $as_echo "can't test because we are cross-compiling" >&6; }
5826 else
5827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h.  */
5829 `cat config/pthread.c`
5830 _ACEOF
5831 if ac_fn_c_try_run "$LINENO"; then :
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5833 $as_echo "yes" >&6; }
5834 else
5835   as_fn_error $? "it fails.  We probably guessed the wrong CFLAGS." "$LINENO" 5
5836 fi
5837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5838   conftest.$ac_objext conftest.beam conftest.$ac_ext
5839 fi
5840
5841
5842
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to enable promiscuous mode by default" >&5
5844 $as_echo_n "checking if we need to enable promiscuous mode by default... " >&6; }
5845
5846 enable_default_promiscuous="no"
5847
5848 case "$host_os" in
5849 solaris*) enable_default_promiscuous="yes" ;;
5850 esac
5851
5852 # Check whether --enable-default-promiscuous was given.
5853 if test "${enable_default_promiscuous+set}" = set; then :
5854   enableval=$enable_default_promiscuous;
5855 fi
5856
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_default_promiscuous" >&5
5859 $as_echo "$enable_default_promiscuous" >&6; }
5860
5861 if test x"$enable_default_promiscuous" = x"yes"; then
5862
5863 $as_echo "#define NEED_PROMISCUOUS_FOR_OUTGOING 1" >>confdefs.h
5864
5865 fi
5866
5867
5868
5869
5870 ac_config_files="$ac_config_files Makefile config/Makefile"
5871
5872 cat >confcache <<\_ACEOF
5873 # This file is a shell script that caches the results of configure
5874 # tests run on this system so they can be shared between configure
5875 # scripts and configure runs, see configure's option --config-cache.
5876 # It is not useful on other systems.  If it contains results you don't
5877 # want to keep, you may remove or edit it.
5878 #
5879 # config.status only pays attention to the cache file if you give it
5880 # the --recheck option to rerun configure.
5881 #
5882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5884 # following values.
5885
5886 _ACEOF
5887
5888 # The following way of writing the cache mishandles newlines in values,
5889 # but we know of no workaround that is simple, portable, and efficient.
5890 # So, we kill variables containing newlines.
5891 # Ultrix sh set writes to stderr and can't be redirected directly,
5892 # and sets the high bit in the cache file unless we assign to the vars.
5893 (
5894   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5895     eval ac_val=\$$ac_var
5896     case $ac_val in #(
5897     *${as_nl}*)
5898       case $ac_var in #(
5899       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5900 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5901       esac
5902       case $ac_var in #(
5903       _ | IFS | as_nl) ;; #(
5904       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5905       *) { eval $ac_var=; unset $ac_var;} ;;
5906       esac ;;
5907     esac
5908   done
5909
5910   (set) 2>&1 |
5911     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5912     *${as_nl}ac_space=\ *)
5913       # `set' does not quote correctly, so add quotes: double-quote
5914       # substitution turns \\\\ into \\, and sed turns \\ into \.
5915       sed -n \
5916         "s/'/'\\\\''/g;
5917           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5918       ;; #(
5919     *)
5920       # `set' quotes correctly as required by POSIX, so do not add quotes.
5921       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5922       ;;
5923     esac |
5924     sort
5925 ) |
5926   sed '
5927      /^ac_cv_env_/b end
5928      t clear
5929      :clear
5930      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5931      t end
5932      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5933      :end' >>confcache
5934 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5935   if test -w "$cache_file"; then
5936     if test "x$cache_file" != "x/dev/null"; then
5937       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5938 $as_echo "$as_me: updating cache $cache_file" >&6;}
5939       if test ! -f "$cache_file" || test -h "$cache_file"; then
5940         cat confcache >"$cache_file"
5941       else
5942         case $cache_file in #(
5943         */* | ?:*)
5944           mv -f confcache "$cache_file"$$ &&
5945           mv -f "$cache_file"$$ "$cache_file" ;; #(
5946         *)
5947           mv -f confcache "$cache_file" ;;
5948         esac
5949       fi
5950     fi
5951   else
5952     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5953 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5954   fi
5955 fi
5956 rm -f confcache
5957
5958 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5959 # Let make expand exec_prefix.
5960 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5961
5962 DEFS=-DHAVE_CONFIG_H
5963
5964 ac_libobjs=
5965 ac_ltlibobjs=
5966 U=
5967 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5968   # 1. Remove the extension, and $U if already installed.
5969   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5970   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5971   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5972   #    will be set to the directory where LIBOBJS objects are built.
5973   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5974   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5975 done
5976 LIBOBJS=$ac_libobjs
5977
5978 LTLIBOBJS=$ac_ltlibobjs
5979
5980
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5982 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5983    if test -n "$am_sleep_pid"; then
5984      # Hide warnings about reused PIDs.
5985      wait $am_sleep_pid 2>/dev/null
5986    fi
5987    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5988 $as_echo "done" >&6; }
5989  if test -n "$EXEEXT"; then
5990   am__EXEEXT_TRUE=
5991   am__EXEEXT_FALSE='#'
5992 else
5993   am__EXEEXT_TRUE='#'
5994   am__EXEEXT_FALSE=
5995 fi
5996
5997 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5998   as_fn_error $? "conditional \"AMDEP\" was never defined.
5999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6000 fi
6001 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6002   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6004 fi
6005
6006 : "${CONFIG_STATUS=./config.status}"
6007 ac_write_fail=0
6008 ac_clean_files_save=$ac_clean_files
6009 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6011 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6012 as_write_fail=0
6013 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6014 #! $SHELL
6015 # Generated by $as_me.
6016 # Run this file to recreate the current configuration.
6017 # Compiler output produced by configure, useful for debugging
6018 # configure, is in config.log if it exists.
6019
6020 debug=false
6021 ac_cs_recheck=false
6022 ac_cs_silent=false
6023
6024 SHELL=\${CONFIG_SHELL-$SHELL}
6025 export SHELL
6026 _ASEOF
6027 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6028 ## -------------------- ##
6029 ## M4sh Initialization. ##
6030 ## -------------------- ##
6031
6032 # Be more Bourne compatible
6033 DUALCASE=1; export DUALCASE # for MKS sh
6034 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6035   emulate sh
6036   NULLCMD=:
6037   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6038   # is contrary to our usage.  Disable this feature.
6039   alias -g '${1+"$@"}'='"$@"'
6040   setopt NO_GLOB_SUBST
6041 else
6042   case `(set -o) 2>/dev/null` in #(
6043   *posix*) :
6044     set -o posix ;; #(
6045   *) :
6046      ;;
6047 esac
6048 fi
6049
6050
6051 as_nl='
6052 '
6053 export as_nl
6054 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6055 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6056 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6057 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6058 # Prefer a ksh shell builtin over an external printf program on Solaris,
6059 # but without wasting forks for bash or zsh.
6060 if test -z "$BASH_VERSION$ZSH_VERSION" \
6061     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6062   as_echo='print -r --'
6063   as_echo_n='print -rn --'
6064 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6065   as_echo='printf %s\n'
6066   as_echo_n='printf %s'
6067 else
6068   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6069     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6070     as_echo_n='/usr/ucb/echo -n'
6071   else
6072     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6073     as_echo_n_body='eval
6074       arg=$1;
6075       case $arg in #(
6076       *"$as_nl"*)
6077         expr "X$arg" : "X\\(.*\\)$as_nl";
6078         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6079       esac;
6080       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6081     '
6082     export as_echo_n_body
6083     as_echo_n='sh -c $as_echo_n_body as_echo'
6084   fi
6085   export as_echo_body
6086   as_echo='sh -c $as_echo_body as_echo'
6087 fi
6088
6089 # The user is always right.
6090 if test "${PATH_SEPARATOR+set}" != set; then
6091   PATH_SEPARATOR=:
6092   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6093     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6094       PATH_SEPARATOR=';'
6095   }
6096 fi
6097
6098
6099 # IFS
6100 # We need space, tab and new line, in precisely that order.  Quoting is
6101 # there to prevent editors from complaining about space-tab.
6102 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6103 # splitting by setting IFS to empty value.)
6104 IFS=" ""        $as_nl"
6105
6106 # Find who we are.  Look in the path if we contain no directory separator.
6107 as_myself=
6108 case $0 in #((
6109   *[\\/]* ) as_myself=$0 ;;
6110   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6112 do
6113   IFS=$as_save_IFS
6114   test -z "$as_dir" && as_dir=.
6115     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6116   done
6117 IFS=$as_save_IFS
6118
6119      ;;
6120 esac
6121 # We did not find ourselves, most probably we were run as `sh COMMAND'
6122 # in which case we are not to be found in the path.
6123 if test "x$as_myself" = x; then
6124   as_myself=$0
6125 fi
6126 if test ! -f "$as_myself"; then
6127   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6128   exit 1
6129 fi
6130
6131 # Unset variables that we do not need and which cause bugs (e.g. in
6132 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6133 # suppresses any "Segmentation fault" message there.  '((' could
6134 # trigger a bug in pdksh 5.2.14.
6135 for as_var in BASH_ENV ENV MAIL MAILPATH
6136 do eval test x\${$as_var+set} = xset \
6137   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6138 done
6139 PS1='$ '
6140 PS2='> '
6141 PS4='+ '
6142
6143 # NLS nuisances.
6144 LC_ALL=C
6145 export LC_ALL
6146 LANGUAGE=C
6147 export LANGUAGE
6148
6149 # CDPATH.
6150 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6151
6152
6153 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6154 # ----------------------------------------
6155 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6156 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6157 # script with STATUS, using 1 if that was 0.
6158 as_fn_error ()
6159 {
6160   as_status=$1; test $as_status -eq 0 && as_status=1
6161   if test "$4"; then
6162     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6163     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6164   fi
6165   $as_echo "$as_me: error: $2" >&2
6166   as_fn_exit $as_status
6167 } # as_fn_error
6168
6169
6170 # as_fn_set_status STATUS
6171 # -----------------------
6172 # Set $? to STATUS, without forking.
6173 as_fn_set_status ()
6174 {
6175   return $1
6176 } # as_fn_set_status
6177
6178 # as_fn_exit STATUS
6179 # -----------------
6180 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6181 as_fn_exit ()
6182 {
6183   set +e
6184   as_fn_set_status $1
6185   exit $1
6186 } # as_fn_exit
6187
6188 # as_fn_unset VAR
6189 # ---------------
6190 # Portably unset VAR.
6191 as_fn_unset ()
6192 {
6193   { eval $1=; unset $1;}
6194 }
6195 as_unset=as_fn_unset
6196 # as_fn_append VAR VALUE
6197 # ----------------------
6198 # Append the text in VALUE to the end of the definition contained in VAR. Take
6199 # advantage of any shell optimizations that allow amortized linear growth over
6200 # repeated appends, instead of the typical quadratic growth present in naive
6201 # implementations.
6202 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6203   eval 'as_fn_append ()
6204   {
6205     eval $1+=\$2
6206   }'
6207 else
6208   as_fn_append ()
6209   {
6210     eval $1=\$$1\$2
6211   }
6212 fi # as_fn_append
6213
6214 # as_fn_arith ARG...
6215 # ------------------
6216 # Perform arithmetic evaluation on the ARGs, and store the result in the
6217 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6218 # must be portable across $(()) and expr.
6219 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6220   eval 'as_fn_arith ()
6221   {
6222     as_val=$(( $* ))
6223   }'
6224 else
6225   as_fn_arith ()
6226   {
6227     as_val=`expr "$@" || test $? -eq 1`
6228   }
6229 fi # as_fn_arith
6230
6231
6232 if expr a : '\(a\)' >/dev/null 2>&1 &&
6233    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6234   as_expr=expr
6235 else
6236   as_expr=false
6237 fi
6238
6239 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6240   as_basename=basename
6241 else
6242   as_basename=false
6243 fi
6244
6245 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6246   as_dirname=dirname
6247 else
6248   as_dirname=false
6249 fi
6250
6251 as_me=`$as_basename -- "$0" ||
6252 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6253          X"$0" : 'X\(//\)$' \| \
6254          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6255 $as_echo X/"$0" |
6256     sed '/^.*\/\([^/][^/]*\)\/*$/{
6257             s//\1/
6258             q
6259           }
6260           /^X\/\(\/\/\)$/{
6261             s//\1/
6262             q
6263           }
6264           /^X\/\(\/\).*/{
6265             s//\1/
6266             q
6267           }
6268           s/.*/./; q'`
6269
6270 # Avoid depending upon Character Ranges.
6271 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6272 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6273 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6274 as_cr_digits='0123456789'
6275 as_cr_alnum=$as_cr_Letters$as_cr_digits
6276
6277 ECHO_C= ECHO_N= ECHO_T=
6278 case `echo -n x` in #(((((
6279 -n*)
6280   case `echo 'xy\c'` in
6281   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6282   xy)  ECHO_C='\c';;
6283   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6284        ECHO_T=' ';;
6285   esac;;
6286 *)
6287   ECHO_N='-n';;
6288 esac
6289
6290 rm -f conf$$ conf$$.exe conf$$.file
6291 if test -d conf$$.dir; then
6292   rm -f conf$$.dir/conf$$.file
6293 else
6294   rm -f conf$$.dir
6295   mkdir conf$$.dir 2>/dev/null
6296 fi
6297 if (echo >conf$$.file) 2>/dev/null; then
6298   if ln -s conf$$.file conf$$ 2>/dev/null; then
6299     as_ln_s='ln -s'
6300     # ... but there are two gotchas:
6301     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6302     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6303     # In both cases, we have to default to `cp -pR'.
6304     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6305       as_ln_s='cp -pR'
6306   elif ln conf$$.file conf$$ 2>/dev/null; then
6307     as_ln_s=ln
6308   else
6309     as_ln_s='cp -pR'
6310   fi
6311 else
6312   as_ln_s='cp -pR'
6313 fi
6314 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6315 rmdir conf$$.dir 2>/dev/null
6316
6317
6318 # as_fn_mkdir_p
6319 # -------------
6320 # Create "$as_dir" as a directory, including parents if necessary.
6321 as_fn_mkdir_p ()
6322 {
6323
6324   case $as_dir in #(
6325   -*) as_dir=./$as_dir;;
6326   esac
6327   test -d "$as_dir" || eval $as_mkdir_p || {
6328     as_dirs=
6329     while :; do
6330       case $as_dir in #(
6331       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6332       *) as_qdir=$as_dir;;
6333       esac
6334       as_dirs="'$as_qdir' $as_dirs"
6335       as_dir=`$as_dirname -- "$as_dir" ||
6336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6337          X"$as_dir" : 'X\(//\)[^/]' \| \
6338          X"$as_dir" : 'X\(//\)$' \| \
6339          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6340 $as_echo X"$as_dir" |
6341     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6342             s//\1/
6343             q
6344           }
6345           /^X\(\/\/\)[^/].*/{
6346             s//\1/
6347             q
6348           }
6349           /^X\(\/\/\)$/{
6350             s//\1/
6351             q
6352           }
6353           /^X\(\/\).*/{
6354             s//\1/
6355             q
6356           }
6357           s/.*/./; q'`
6358       test -d "$as_dir" && break
6359     done
6360     test -z "$as_dirs" || eval "mkdir $as_dirs"
6361   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6362
6363
6364 } # as_fn_mkdir_p
6365 if mkdir -p . 2>/dev/null; then
6366   as_mkdir_p='mkdir -p "$as_dir"'
6367 else
6368   test -d ./-p && rmdir ./-p
6369   as_mkdir_p=false
6370 fi
6371
6372
6373 # as_fn_executable_p FILE
6374 # -----------------------
6375 # Test if FILE is an executable regular file.
6376 as_fn_executable_p ()
6377 {
6378   test -f "$1" && test -x "$1"
6379 } # as_fn_executable_p
6380 as_test_x='test -x'
6381 as_executable_p=as_fn_executable_p
6382
6383 # Sed expression to map a string onto a valid CPP name.
6384 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6385
6386 # Sed expression to map a string onto a valid variable name.
6387 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6388
6389
6390 exec 6>&1
6391 ## ----------------------------------- ##
6392 ## Main body of $CONFIG_STATUS script. ##
6393 ## ----------------------------------- ##
6394 _ASEOF
6395 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6396
6397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6398 # Save the log message, to keep $0 and so on meaningful, and to
6399 # report actual input values of CONFIG_FILES etc. instead of their
6400 # values after options handling.
6401 ac_log="
6402 This file was extended by iftop $as_me 1.0pre4, which was
6403 generated by GNU Autoconf 2.69.  Invocation command line was
6404
6405   CONFIG_FILES    = $CONFIG_FILES
6406   CONFIG_HEADERS  = $CONFIG_HEADERS
6407   CONFIG_LINKS    = $CONFIG_LINKS
6408   CONFIG_COMMANDS = $CONFIG_COMMANDS
6409   $ $0 $@
6410
6411 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6412 "
6413
6414 _ACEOF
6415
6416 case $ac_config_files in *"
6417 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6418 esac
6419
6420 case $ac_config_headers in *"
6421 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6422 esac
6423
6424
6425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6426 # Files that config.status was made for.
6427 config_files="$ac_config_files"
6428 config_headers="$ac_config_headers"
6429 config_commands="$ac_config_commands"
6430
6431 _ACEOF
6432
6433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6434 ac_cs_usage="\
6435 \`$as_me' instantiates files and other configuration actions
6436 from templates according to the current configuration.  Unless the files
6437 and actions are specified as TAGs, all are instantiated by default.
6438
6439 Usage: $0 [OPTION]... [TAG]...
6440
6441   -h, --help       print this help, then exit
6442   -V, --version    print version number and configuration settings, then exit
6443       --config     print configuration, then exit
6444   -q, --quiet, --silent
6445                    do not print progress messages
6446   -d, --debug      don't remove temporary files
6447       --recheck    update $as_me by reconfiguring in the same conditions
6448       --file=FILE[:TEMPLATE]
6449                    instantiate the configuration file FILE
6450       --header=FILE[:TEMPLATE]
6451                    instantiate the configuration header FILE
6452
6453 Configuration files:
6454 $config_files
6455
6456 Configuration headers:
6457 $config_headers
6458
6459 Configuration commands:
6460 $config_commands
6461
6462 Report bugs to <pdw@ex-parrot.com>.
6463 iftop home page: <http://www.ex-parrot.com/pdw/iftop/>."
6464
6465 _ACEOF
6466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6467 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6468 ac_cs_version="\\
6469 iftop config.status 1.0pre4
6470 configured by $0, generated by GNU Autoconf 2.69,
6471   with options \\"\$ac_cs_config\\"
6472
6473 Copyright (C) 2012 Free Software Foundation, Inc.
6474 This config.status script is free software; the Free Software Foundation
6475 gives unlimited permission to copy, distribute and modify it."
6476
6477 ac_pwd='$ac_pwd'
6478 srcdir='$srcdir'
6479 INSTALL='$INSTALL'
6480 MKDIR_P='$MKDIR_P'
6481 AWK='$AWK'
6482 test -n "\$AWK" || AWK=awk
6483 _ACEOF
6484
6485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6486 # The default lists apply if the user does not specify any file.
6487 ac_need_defaults=:
6488 while test $# != 0
6489 do
6490   case $1 in
6491   --*=?*)
6492     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6493     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6494     ac_shift=:
6495     ;;
6496   --*=)
6497     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6498     ac_optarg=
6499     ac_shift=:
6500     ;;
6501   *)
6502     ac_option=$1
6503     ac_optarg=$2
6504     ac_shift=shift
6505     ;;
6506   esac
6507
6508   case $ac_option in
6509   # Handling of the options.
6510   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6511     ac_cs_recheck=: ;;
6512   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6513     $as_echo "$ac_cs_version"; exit ;;
6514   --config | --confi | --conf | --con | --co | --c )
6515     $as_echo "$ac_cs_config"; exit ;;
6516   --debug | --debu | --deb | --de | --d | -d )
6517     debug=: ;;
6518   --file | --fil | --fi | --f )
6519     $ac_shift
6520     case $ac_optarg in
6521     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6522     '') as_fn_error $? "missing file argument" ;;
6523     esac
6524     as_fn_append CONFIG_FILES " '$ac_optarg'"
6525     ac_need_defaults=false;;
6526   --header | --heade | --head | --hea )
6527     $ac_shift
6528     case $ac_optarg in
6529     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6530     esac
6531     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6532     ac_need_defaults=false;;
6533   --he | --h)
6534     # Conflict between --help and --header
6535     as_fn_error $? "ambiguous option: \`$1'
6536 Try \`$0 --help' for more information.";;
6537   --help | --hel | -h )
6538     $as_echo "$ac_cs_usage"; exit ;;
6539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6540   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6541     ac_cs_silent=: ;;
6542
6543   # This is an error.
6544   -*) as_fn_error $? "unrecognized option: \`$1'
6545 Try \`$0 --help' for more information." ;;
6546
6547   *) as_fn_append ac_config_targets " $1"
6548      ac_need_defaults=false ;;
6549
6550   esac
6551   shift
6552 done
6553
6554 ac_configure_extra_args=
6555
6556 if $ac_cs_silent; then
6557   exec 6>/dev/null
6558   ac_configure_extra_args="$ac_configure_extra_args --silent"
6559 fi
6560
6561 _ACEOF
6562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6563 if \$ac_cs_recheck; then
6564   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6565   shift
6566   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6567   CONFIG_SHELL='$SHELL'
6568   export CONFIG_SHELL
6569   exec "\$@"
6570 fi
6571
6572 _ACEOF
6573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6574 exec 5>>config.log
6575 {
6576   echo
6577   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6578 ## Running $as_me. ##
6579 _ASBOX
6580   $as_echo "$ac_log"
6581 } >&5
6582
6583 _ACEOF
6584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6585 #
6586 # INIT-COMMANDS
6587 #
6588 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6589
6590 _ACEOF
6591
6592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6593
6594 # Handling of arguments.
6595 for ac_config_target in $ac_config_targets
6596 do
6597   case $ac_config_target in
6598     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6599     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6600     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6601     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
6602
6603   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6604   esac
6605 done
6606
6607
6608 # If the user did not use the arguments to specify the items to instantiate,
6609 # then the envvar interface is used.  Set only those that are not.
6610 # We use the long form for the default assignment because of an extremely
6611 # bizarre bug on SunOS 4.1.3.
6612 if $ac_need_defaults; then
6613   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6614   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6615   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6616 fi
6617
6618 # Have a temporary directory for convenience.  Make it in the build tree
6619 # simply because there is no reason against having it here, and in addition,
6620 # creating and moving files from /tmp can sometimes cause problems.
6621 # Hook for its removal unless debugging.
6622 # Note that there is a small window in which the directory will not be cleaned:
6623 # after its creation but before its name has been assigned to `$tmp'.
6624 $debug ||
6625 {
6626   tmp= ac_tmp=
6627   trap 'exit_status=$?
6628   : "${ac_tmp:=$tmp}"
6629   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6630 ' 0
6631   trap 'as_fn_exit 1' 1 2 13 15
6632 }
6633 # Create a (secure) tmp directory for tmp files.
6634
6635 {
6636   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6637   test -d "$tmp"
6638 }  ||
6639 {
6640   tmp=./conf$$-$RANDOM
6641   (umask 077 && mkdir "$tmp")
6642 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6643 ac_tmp=$tmp
6644
6645 # Set up the scripts for CONFIG_FILES section.
6646 # No need to generate them if there are no CONFIG_FILES.
6647 # This happens for instance with `./config.status config.h'.
6648 if test -n "$CONFIG_FILES"; then
6649
6650
6651 ac_cr=`echo X | tr X '\015'`
6652 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6653 # But we know of no other shell where ac_cr would be empty at this
6654 # point, so we can use a bashism as a fallback.
6655 if test "x$ac_cr" = x; then
6656   eval ac_cr=\$\'\\r\'
6657 fi
6658 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6659 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6660   ac_cs_awk_cr='\\r'
6661 else
6662   ac_cs_awk_cr=$ac_cr
6663 fi
6664
6665 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6666 _ACEOF
6667
6668
6669 {
6670   echo "cat >conf$$subs.awk <<_ACEOF" &&
6671   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6672   echo "_ACEOF"
6673 } >conf$$subs.sh ||
6674   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6675 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6676 ac_delim='%!_!# '
6677 for ac_last_try in false false false false false :; do
6678   . ./conf$$subs.sh ||
6679     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6680
6681   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6682   if test $ac_delim_n = $ac_delim_num; then
6683     break
6684   elif $ac_last_try; then
6685     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6686   else
6687     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6688   fi
6689 done
6690 rm -f conf$$subs.sh
6691
6692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6693 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6694 _ACEOF
6695 sed -n '
6696 h
6697 s/^/S["/; s/!.*/"]=/
6698 p
6699 g
6700 s/^[^!]*!//
6701 :repl
6702 t repl
6703 s/'"$ac_delim"'$//
6704 t delim
6705 :nl
6706 h
6707 s/\(.\{148\}\)..*/\1/
6708 t more1
6709 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6710 p
6711 n
6712 b repl
6713 :more1
6714 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6715 p
6716 g
6717 s/.\{148\}//
6718 t nl
6719 :delim
6720 h
6721 s/\(.\{148\}\)..*/\1/
6722 t more2
6723 s/["\\]/\\&/g; s/^/"/; s/$/"/
6724 p
6725 b
6726 :more2
6727 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6728 p
6729 g
6730 s/.\{148\}//
6731 t delim
6732 ' <conf$$subs.awk | sed '
6733 /^[^""]/{
6734   N
6735   s/\n//
6736 }
6737 ' >>$CONFIG_STATUS || ac_write_fail=1
6738 rm -f conf$$subs.awk
6739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6740 _ACAWK
6741 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6742   for (key in S) S_is_set[key] = 1
6743   FS = "\a"
6744
6745 }
6746 {
6747   line = $ 0
6748   nfields = split(line, field, "@")
6749   substed = 0
6750   len = length(field[1])
6751   for (i = 2; i < nfields; i++) {
6752     key = field[i]
6753     keylen = length(key)
6754     if (S_is_set[key]) {
6755       value = S[key]
6756       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6757       len += length(value) + length(field[++i])
6758       substed = 1
6759     } else
6760       len += 1 + keylen
6761   }
6762
6763   print line
6764 }
6765
6766 _ACAWK
6767 _ACEOF
6768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6769 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6770   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6771 else
6772   cat
6773 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6774   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6775 _ACEOF
6776
6777 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6778 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6779 # trailing colons and then remove the whole line if VPATH becomes empty
6780 # (actually we leave an empty line to preserve line numbers).
6781 if test "x$srcdir" = x.; then
6782   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
6783 h
6784 s///
6785 s/^/:/
6786 s/[      ]*$/:/
6787 s/:\$(srcdir):/:/g
6788 s/:\${srcdir}:/:/g
6789 s/:@srcdir@:/:/g
6790 s/^:*//
6791 s/:*$//
6792 x
6793 s/\(=[   ]*\).*/\1/
6794 G
6795 s/\n//
6796 s/^[^=]*=[       ]*$//
6797 }'
6798 fi
6799
6800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6801 fi # test -n "$CONFIG_FILES"
6802
6803 # Set up the scripts for CONFIG_HEADERS section.
6804 # No need to generate them if there are no CONFIG_HEADERS.
6805 # This happens for instance with `./config.status Makefile'.
6806 if test -n "$CONFIG_HEADERS"; then
6807 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6808 BEGIN {
6809 _ACEOF
6810
6811 # Transform confdefs.h into an awk script `defines.awk', embedded as
6812 # here-document in config.status, that substitutes the proper values into
6813 # config.h.in to produce config.h.
6814
6815 # Create a delimiter string that does not exist in confdefs.h, to ease
6816 # handling of long lines.
6817 ac_delim='%!_!# '
6818 for ac_last_try in false false :; do
6819   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6820   if test -z "$ac_tt"; then
6821     break
6822   elif $ac_last_try; then
6823     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6824   else
6825     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6826   fi
6827 done
6828
6829 # For the awk script, D is an array of macro values keyed by name,
6830 # likewise P contains macro parameters if any.  Preserve backslash
6831 # newline sequences.
6832
6833 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6834 sed -n '
6835 s/.\{148\}/&'"$ac_delim"'/g
6836 t rset
6837 :rset
6838 s/^[     ]*#[    ]*define[       ][      ]*/ /
6839 t def
6840 d
6841 :def
6842 s/\\$//
6843 t bsnl
6844 s/["\\]/\\&/g
6845 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6846 D["\1"]=" \3"/p
6847 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6848 d
6849 :bsnl
6850 s/["\\]/\\&/g
6851 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6852 D["\1"]=" \3\\\\\\n"\\/p
6853 t cont
6854 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6855 t cont
6856 d
6857 :cont
6858 n
6859 s/.\{148\}/&'"$ac_delim"'/g
6860 t clear
6861 :clear
6862 s/\\$//
6863 t bsnlc
6864 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6865 d
6866 :bsnlc
6867 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6868 b cont
6869 ' <confdefs.h | sed '
6870 s/'"$ac_delim"'/"\\\
6871 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6872
6873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6874   for (key in D) D_is_set[key] = 1
6875   FS = "\a"
6876 }
6877 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6878   line = \$ 0
6879   split(line, arg, " ")
6880   if (arg[1] == "#") {
6881     defundef = arg[2]
6882     mac1 = arg[3]
6883   } else {
6884     defundef = substr(arg[1], 2)
6885     mac1 = arg[2]
6886   }
6887   split(mac1, mac2, "(") #)
6888   macro = mac2[1]
6889   prefix = substr(line, 1, index(line, defundef) - 1)
6890   if (D_is_set[macro]) {
6891     # Preserve the white space surrounding the "#".
6892     print prefix "define", macro P[macro] D[macro]
6893     next
6894   } else {
6895     # Replace #undef with comments.  This is necessary, for example,
6896     # in the case of _POSIX_SOURCE, which is predefined and required
6897     # on some systems where configure will not decide to define it.
6898     if (defundef == "undef") {
6899       print "/*", prefix defundef, macro, "*/"
6900       next
6901     }
6902   }
6903 }
6904 { print }
6905 _ACAWK
6906 _ACEOF
6907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6908   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6909 fi # test -n "$CONFIG_HEADERS"
6910
6911
6912 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6913 shift
6914 for ac_tag
6915 do
6916   case $ac_tag in
6917   :[FHLC]) ac_mode=$ac_tag; continue;;
6918   esac
6919   case $ac_mode$ac_tag in
6920   :[FHL]*:*);;
6921   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6922   :[FH]-) ac_tag=-:-;;
6923   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6924   esac
6925   ac_save_IFS=$IFS
6926   IFS=:
6927   set x $ac_tag
6928   IFS=$ac_save_IFS
6929   shift
6930   ac_file=$1
6931   shift
6932
6933   case $ac_mode in
6934   :L) ac_source=$1;;
6935   :[FH])
6936     ac_file_inputs=
6937     for ac_f
6938     do
6939       case $ac_f in
6940       -) ac_f="$ac_tmp/stdin";;
6941       *) # Look for the file first in the build tree, then in the source tree
6942          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6943          # because $ac_f cannot contain `:'.
6944          test -f "$ac_f" ||
6945            case $ac_f in
6946            [\\/$]*) false;;
6947            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6948            esac ||
6949            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6950       esac
6951       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6952       as_fn_append ac_file_inputs " '$ac_f'"
6953     done
6954
6955     # Let's still pretend it is `configure' which instantiates (i.e., don't
6956     # use $as_me), people would be surprised to read:
6957     #    /* config.h.  Generated by config.status.  */
6958     configure_input='Generated from '`
6959           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6960         `' by configure.'
6961     if test x"$ac_file" != x-; then
6962       configure_input="$ac_file.  $configure_input"
6963       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6964 $as_echo "$as_me: creating $ac_file" >&6;}
6965     fi
6966     # Neutralize special characters interpreted by sed in replacement strings.
6967     case $configure_input in #(
6968     *\&* | *\|* | *\\* )
6969        ac_sed_conf_input=`$as_echo "$configure_input" |
6970        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6971     *) ac_sed_conf_input=$configure_input;;
6972     esac
6973
6974     case $ac_tag in
6975     *:-:* | *:-) cat >"$ac_tmp/stdin" \
6976       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6977     esac
6978     ;;
6979   esac
6980
6981   ac_dir=`$as_dirname -- "$ac_file" ||
6982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6983          X"$ac_file" : 'X\(//\)[^/]' \| \
6984          X"$ac_file" : 'X\(//\)$' \| \
6985          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6986 $as_echo X"$ac_file" |
6987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6988             s//\1/
6989             q
6990           }
6991           /^X\(\/\/\)[^/].*/{
6992             s//\1/
6993             q
6994           }
6995           /^X\(\/\/\)$/{
6996             s//\1/
6997             q
6998           }
6999           /^X\(\/\).*/{
7000             s//\1/
7001             q
7002           }
7003           s/.*/./; q'`
7004   as_dir="$ac_dir"; as_fn_mkdir_p
7005   ac_builddir=.
7006
7007 case "$ac_dir" in
7008 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7009 *)
7010   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7011   # A ".." for each directory in $ac_dir_suffix.
7012   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7013   case $ac_top_builddir_sub in
7014   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7015   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7016   esac ;;
7017 esac
7018 ac_abs_top_builddir=$ac_pwd
7019 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7020 # for backward compatibility:
7021 ac_top_builddir=$ac_top_build_prefix
7022
7023 case $srcdir in
7024   .)  # We are building in place.
7025     ac_srcdir=.
7026     ac_top_srcdir=$ac_top_builddir_sub
7027     ac_abs_top_srcdir=$ac_pwd ;;
7028   [\\/]* | ?:[\\/]* )  # Absolute name.
7029     ac_srcdir=$srcdir$ac_dir_suffix;
7030     ac_top_srcdir=$srcdir
7031     ac_abs_top_srcdir=$srcdir ;;
7032   *) # Relative name.
7033     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7034     ac_top_srcdir=$ac_top_build_prefix$srcdir
7035     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7036 esac
7037 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7038
7039
7040   case $ac_mode in
7041   :F)
7042   #
7043   # CONFIG_FILE
7044   #
7045
7046   case $INSTALL in
7047   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7048   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7049   esac
7050   ac_MKDIR_P=$MKDIR_P
7051   case $MKDIR_P in
7052   [\\/$]* | ?:[\\/]* ) ;;
7053   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7054   esac
7055 _ACEOF
7056
7057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7058 # If the template does not know about datarootdir, expand it.
7059 # FIXME: This hack should be removed a few years after 2.60.
7060 ac_datarootdir_hack=; ac_datarootdir_seen=
7061 ac_sed_dataroot='
7062 /datarootdir/ {
7063   p
7064   q
7065 }
7066 /@datadir@/p
7067 /@docdir@/p
7068 /@infodir@/p
7069 /@localedir@/p
7070 /@mandir@/p'
7071 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7072 *datarootdir*) ac_datarootdir_seen=yes;;
7073 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7074   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7075 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7076 _ACEOF
7077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7078   ac_datarootdir_hack='
7079   s&@datadir@&$datadir&g
7080   s&@docdir@&$docdir&g
7081   s&@infodir@&$infodir&g
7082   s&@localedir@&$localedir&g
7083   s&@mandir@&$mandir&g
7084   s&\\\${datarootdir}&$datarootdir&g' ;;
7085 esac
7086 _ACEOF
7087
7088 # Neutralize VPATH when `$srcdir' = `.'.
7089 # Shell code in configure.ac might set extrasub.
7090 # FIXME: do we really want to maintain this feature?
7091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7092 ac_sed_extra="$ac_vpsub
7093 $extrasub
7094 _ACEOF
7095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7096 :t
7097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7098 s|@configure_input@|$ac_sed_conf_input|;t t
7099 s&@top_builddir@&$ac_top_builddir_sub&;t t
7100 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7101 s&@srcdir@&$ac_srcdir&;t t
7102 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7103 s&@top_srcdir@&$ac_top_srcdir&;t t
7104 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7105 s&@builddir@&$ac_builddir&;t t
7106 s&@abs_builddir@&$ac_abs_builddir&;t t
7107 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7108 s&@INSTALL@&$ac_INSTALL&;t t
7109 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7110 $ac_datarootdir_hack
7111 "
7112 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7113   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7114
7115 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7116   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7117   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
7118       "$ac_tmp/out"`; test -z "$ac_out"; } &&
7119   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7120 which seems to be undefined.  Please make sure it is defined" >&5
7121 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7122 which seems to be undefined.  Please make sure it is defined" >&2;}
7123
7124   rm -f "$ac_tmp/stdin"
7125   case $ac_file in
7126   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7127   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7128   esac \
7129   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7130  ;;
7131   :H)
7132   #
7133   # CONFIG_HEADER
7134   #
7135   if test x"$ac_file" != x-; then
7136     {
7137       $as_echo "/* $configure_input  */" \
7138       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7139     } >"$ac_tmp/config.h" \
7140       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7141     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7142       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7143 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7144     else
7145       rm -f "$ac_file"
7146       mv "$ac_tmp/config.h" "$ac_file" \
7147         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7148     fi
7149   else
7150     $as_echo "/* $configure_input  */" \
7151       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7152       || as_fn_error $? "could not create -" "$LINENO" 5
7153   fi
7154 # Compute "$ac_file"'s index in $config_headers.
7155 _am_arg="$ac_file"
7156 _am_stamp_count=1
7157 for _am_header in $config_headers :; do
7158   case $_am_header in
7159     $_am_arg | $_am_arg:* )
7160       break ;;
7161     * )
7162       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7163   esac
7164 done
7165 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7166 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7167          X"$_am_arg" : 'X\(//\)[^/]' \| \
7168          X"$_am_arg" : 'X\(//\)$' \| \
7169          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7170 $as_echo X"$_am_arg" |
7171     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7172             s//\1/
7173             q
7174           }
7175           /^X\(\/\/\)[^/].*/{
7176             s//\1/
7177             q
7178           }
7179           /^X\(\/\/\)$/{
7180             s//\1/
7181             q
7182           }
7183           /^X\(\/\).*/{
7184             s//\1/
7185             q
7186           }
7187           s/.*/./; q'`/stamp-h$_am_stamp_count
7188  ;;
7189
7190   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7191 $as_echo "$as_me: executing $ac_file commands" >&6;}
7192  ;;
7193   esac
7194
7195
7196   case $ac_file$ac_mode in
7197     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7198   # Older Autoconf quotes --file arguments for eval, but not when files
7199   # are listed without --file.  Let's play safe and only enable the eval
7200   # if we detect the quoting.
7201   case $CONFIG_FILES in
7202   *\'*) eval set x "$CONFIG_FILES" ;;
7203   *)   set x $CONFIG_FILES ;;
7204   esac
7205   shift
7206   for mf
7207   do
7208     # Strip MF so we end up with the name of the file.
7209     mf=`echo "$mf" | sed -e 's/:.*$//'`
7210     # Check whether this is an Automake generated Makefile or not.
7211     # We used to match only the files named 'Makefile.in', but
7212     # some people rename them; so instead we look at the file content.
7213     # Grep'ing the first line is not enough: some people post-process
7214     # each Makefile.in and add a new line on top of each file to say so.
7215     # Grep'ing the whole file is not good either: AIX grep has a line
7216     # limit of 2048, but all sed's we know have understand at least 4000.
7217     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7218       dirpart=`$as_dirname -- "$mf" ||
7219 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7220          X"$mf" : 'X\(//\)[^/]' \| \
7221          X"$mf" : 'X\(//\)$' \| \
7222          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7223 $as_echo X"$mf" |
7224     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7225             s//\1/
7226             q
7227           }
7228           /^X\(\/\/\)[^/].*/{
7229             s//\1/
7230             q
7231           }
7232           /^X\(\/\/\)$/{
7233             s//\1/
7234             q
7235           }
7236           /^X\(\/\).*/{
7237             s//\1/
7238             q
7239           }
7240           s/.*/./; q'`
7241     else
7242       continue
7243     fi
7244     # Extract the definition of DEPDIR, am__include, and am__quote
7245     # from the Makefile without running 'make'.
7246     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7247     test -z "$DEPDIR" && continue
7248     am__include=`sed -n 's/^am__include = //p' < "$mf"`
7249     test -z "$am__include" && continue
7250     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7251     # Find all dependency output files, they are included files with
7252     # $(DEPDIR) in their names.  We invoke sed twice because it is the
7253     # simplest approach to changing $(DEPDIR) to its actual value in the
7254     # expansion.
7255     for file in `sed -n "
7256       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7257          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7258       # Make sure the directory exists.
7259       test -f "$dirpart/$file" && continue
7260       fdir=`$as_dirname -- "$file" ||
7261 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7262          X"$file" : 'X\(//\)[^/]' \| \
7263          X"$file" : 'X\(//\)$' \| \
7264          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7265 $as_echo X"$file" |
7266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7267             s//\1/
7268             q
7269           }
7270           /^X\(\/\/\)[^/].*/{
7271             s//\1/
7272             q
7273           }
7274           /^X\(\/\/\)$/{
7275             s//\1/
7276             q
7277           }
7278           /^X\(\/\).*/{
7279             s//\1/
7280             q
7281           }
7282           s/.*/./; q'`
7283       as_dir=$dirpart/$fdir; as_fn_mkdir_p
7284       # echo "creating $dirpart/$file"
7285       echo '# dummy' > "$dirpart/$file"
7286     done
7287   done
7288 }
7289  ;;
7290
7291   esac
7292 done # for ac_tag
7293
7294
7295 as_fn_exit 0
7296 _ACEOF
7297 ac_clean_files=$ac_clean_files_save
7298
7299 test $ac_write_fail = 0 ||
7300   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7301
7302
7303 # configure is writing to config.log, and then calls config.status.
7304 # config.status does its own redirection, appending to config.log.
7305 # Unfortunately, on DOS this fails, as config.log is still kept open
7306 # by configure, so config.status won't be able to write to it; its
7307 # output is simply discarded.  So we exec the FD to /dev/null,
7308 # effectively closing config.log, so it can be properly (re)opened and
7309 # appended to by config.status.  When coming back to configure, we
7310 # need to make the FD available again.
7311 if test "$no_create" != yes; then
7312   ac_cs_success=:
7313   ac_config_status_args=
7314   test "$silent" = yes &&
7315     ac_config_status_args="$ac_config_status_args --quiet"
7316   exec 5>/dev/null
7317   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7318   exec 5>>config.log
7319   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7320   # would make configure fail if this is the last instruction.
7321   $ac_cs_success || as_fn_exit 1
7322 fi
7323 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7324   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7325 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7326 fi
7327
7328
7329 if echo $PACKAGE_VERSION | grep 'pre' > /dev/null ; then
7330         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7331 ******************************************************************************
7332
7333 This is a pre-release version.  Pre-releases are subject to limited
7334 announcements, and therefore limited circulation, as a means of testing
7335 the more widely circulated final releases.
7336
7337 Please do not be surprised if this release is broken, and if it is broken, do
7338 not assume that someone else has spotted it.  Instead, please drop a note on
7339 the mailing list, or a brief email to me on pdw@ex-parrot.com
7340
7341 Thank you for taking the time to be the testing phase of this development
7342 process.
7343
7344 Paul Warren
7345
7346 ******************************************************************************
7347 " >&5
7348 $as_echo "$as_me: WARNING:
7349 ******************************************************************************
7350
7351 This is a pre-release version.  Pre-releases are subject to limited
7352 announcements, and therefore limited circulation, as a means of testing
7353 the more widely circulated final releases.
7354
7355 Please do not be surprised if this release is broken, and if it is broken, do
7356 not assume that someone else has spotted it.  Instead, please drop a note on
7357 the mailing list, or a brief email to me on pdw@ex-parrot.com
7358
7359 Thank you for taking the time to be the testing phase of this development
7360 process.
7361
7362 Paul Warren
7363
7364 ******************************************************************************
7365 " >&2;}
7366 fi