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