Use the host compiler for build tool c-ify.
[darkstat-debian] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for darkstat 3.0.719.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='darkstat'
579 PACKAGE_TARNAME='darkstat'
580 PACKAGE_VERSION='3.0.719'
581 PACKAGE_STRING='darkstat 3.0.719'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL='https://unix4lyfe.org/darkstat/'
584
585 ac_unique_file="darkstat.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 #  include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #  include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 EGREP
625 GREP
626 CPP
627 AM_DEFAULT_VERBOSITY
628 OBJEXT
629 EXEEXT
630 ac_ct_CC
631 CPPFLAGS
632 LDFLAGS
633 CFLAGS
634 CC
635 INSTALL_DATA
636 INSTALL_SCRIPT
637 INSTALL_PROGRAM
638 target_alias
639 host_alias
640 build_alias
641 LIBS
642 ECHO_T
643 ECHO_N
644 ECHO_C
645 DEFS
646 mandir
647 localedir
648 libdir
649 psdir
650 pdfdir
651 dvidir
652 htmldir
653 infodir
654 docdir
655 oldincludedir
656 includedir
657 localstatedir
658 sharedstatedir
659 sysconfdir
660 datadir
661 datarootdir
662 libexecdir
663 sbindir
664 bindir
665 program_transform_name
666 prefix
667 exec_prefix
668 PACKAGE_URL
669 PACKAGE_BUGREPORT
670 PACKAGE_STRING
671 PACKAGE_VERSION
672 PACKAGE_TARNAME
673 PACKAGE_NAME
674 PATH_SEPARATOR
675 SHELL'
676 ac_subst_files=''
677 ac_user_opts='
678 enable_option_checking
679 with_privdrop_user
680 enable_silent_rules
681 enable_debug
682 enable_warnings
683 with_pcap
684 '
685       ac_precious_vars='build_alias
686 host_alias
687 target_alias
688 CC
689 CFLAGS
690 LDFLAGS
691 LIBS
692 CPPFLAGS
693 CPP'
694
695
696 # Initialize some variables set by options.
697 ac_init_help=
698 ac_init_version=false
699 ac_unrecognized_opts=
700 ac_unrecognized_sep=
701 # The variables have the same names as the options, with
702 # dashes changed to underlines.
703 cache_file=/dev/null
704 exec_prefix=NONE
705 no_create=
706 no_recursion=
707 prefix=NONE
708 program_prefix=NONE
709 program_suffix=NONE
710 program_transform_name=s,x,x,
711 silent=
712 site=
713 srcdir=
714 verbose=
715 x_includes=NONE
716 x_libraries=NONE
717
718 # Installation directory options.
719 # These are left unexpanded so users can "make install exec_prefix=/foo"
720 # and all the variables that are supposed to be based on exec_prefix
721 # by default will actually change.
722 # Use braces instead of parens because sh, perl, etc. also accept them.
723 # (The list follows the same order as the GNU Coding Standards.)
724 bindir='${exec_prefix}/bin'
725 sbindir='${exec_prefix}/sbin'
726 libexecdir='${exec_prefix}/libexec'
727 datarootdir='${prefix}/share'
728 datadir='${datarootdir}'
729 sysconfdir='${prefix}/etc'
730 sharedstatedir='${prefix}/com'
731 localstatedir='${prefix}/var'
732 includedir='${prefix}/include'
733 oldincludedir='/usr/include'
734 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
735 infodir='${datarootdir}/info'
736 htmldir='${docdir}'
737 dvidir='${docdir}'
738 pdfdir='${docdir}'
739 psdir='${docdir}'
740 libdir='${exec_prefix}/lib'
741 localedir='${datarootdir}/locale'
742 mandir='${datarootdir}/man'
743
744 ac_prev=
745 ac_dashdash=
746 for ac_option
747 do
748   # If the previous option needs an argument, assign it.
749   if test -n "$ac_prev"; then
750     eval $ac_prev=\$ac_option
751     ac_prev=
752     continue
753   fi
754
755   case $ac_option in
756   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
757   *=)   ac_optarg= ;;
758   *)    ac_optarg=yes ;;
759   esac
760
761   # Accept the important Cygnus configure options, so we can diagnose typos.
762
763   case $ac_dashdash$ac_option in
764   --)
765     ac_dashdash=yes ;;
766
767   -bindir | --bindir | --bindi | --bind | --bin | --bi)
768     ac_prev=bindir ;;
769   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
770     bindir=$ac_optarg ;;
771
772   -build | --build | --buil | --bui | --bu)
773     ac_prev=build_alias ;;
774   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
775     build_alias=$ac_optarg ;;
776
777   -cache-file | --cache-file | --cache-fil | --cache-fi \
778   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
779     ac_prev=cache_file ;;
780   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
781   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
782     cache_file=$ac_optarg ;;
783
784   --config-cache | -C)
785     cache_file=config.cache ;;
786
787   -datadir | --datadir | --datadi | --datad)
788     ac_prev=datadir ;;
789   -datadir=* | --datadir=* | --datadi=* | --datad=*)
790     datadir=$ac_optarg ;;
791
792   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
793   | --dataroo | --dataro | --datar)
794     ac_prev=datarootdir ;;
795   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
796   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
797     datarootdir=$ac_optarg ;;
798
799   -disable-* | --disable-*)
800     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
801     # Reject names that are not valid shell variable names.
802     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
803       as_fn_error $? "invalid feature name: $ac_useropt"
804     ac_useropt_orig=$ac_useropt
805     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
806     case $ac_user_opts in
807       *"
808 "enable_$ac_useropt"
809 "*) ;;
810       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
811          ac_unrecognized_sep=', ';;
812     esac
813     eval enable_$ac_useropt=no ;;
814
815   -docdir | --docdir | --docdi | --doc | --do)
816     ac_prev=docdir ;;
817   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
818     docdir=$ac_optarg ;;
819
820   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
821     ac_prev=dvidir ;;
822   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
823     dvidir=$ac_optarg ;;
824
825   -enable-* | --enable-*)
826     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
827     # Reject names that are not valid shell variable names.
828     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
829       as_fn_error $? "invalid feature name: $ac_useropt"
830     ac_useropt_orig=$ac_useropt
831     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832     case $ac_user_opts in
833       *"
834 "enable_$ac_useropt"
835 "*) ;;
836       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
837          ac_unrecognized_sep=', ';;
838     esac
839     eval enable_$ac_useropt=\$ac_optarg ;;
840
841   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
842   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
843   | --exec | --exe | --ex)
844     ac_prev=exec_prefix ;;
845   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
846   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
847   | --exec=* | --exe=* | --ex=*)
848     exec_prefix=$ac_optarg ;;
849
850   -gas | --gas | --ga | --g)
851     # Obsolete; use --with-gas.
852     with_gas=yes ;;
853
854   -help | --help | --hel | --he | -h)
855     ac_init_help=long ;;
856   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
857     ac_init_help=recursive ;;
858   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
859     ac_init_help=short ;;
860
861   -host | --host | --hos | --ho)
862     ac_prev=host_alias ;;
863   -host=* | --host=* | --hos=* | --ho=*)
864     host_alias=$ac_optarg ;;
865
866   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
867     ac_prev=htmldir ;;
868   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
869   | --ht=*)
870     htmldir=$ac_optarg ;;
871
872   -includedir | --includedir | --includedi | --included | --include \
873   | --includ | --inclu | --incl | --inc)
874     ac_prev=includedir ;;
875   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
876   | --includ=* | --inclu=* | --incl=* | --inc=*)
877     includedir=$ac_optarg ;;
878
879   -infodir | --infodir | --infodi | --infod | --info | --inf)
880     ac_prev=infodir ;;
881   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
882     infodir=$ac_optarg ;;
883
884   -libdir | --libdir | --libdi | --libd)
885     ac_prev=libdir ;;
886   -libdir=* | --libdir=* | --libdi=* | --libd=*)
887     libdir=$ac_optarg ;;
888
889   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
890   | --libexe | --libex | --libe)
891     ac_prev=libexecdir ;;
892   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
893   | --libexe=* | --libex=* | --libe=*)
894     libexecdir=$ac_optarg ;;
895
896   -localedir | --localedir | --localedi | --localed | --locale)
897     ac_prev=localedir ;;
898   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
899     localedir=$ac_optarg ;;
900
901   -localstatedir | --localstatedir | --localstatedi | --localstated \
902   | --localstate | --localstat | --localsta | --localst | --locals)
903     ac_prev=localstatedir ;;
904   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
905   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
906     localstatedir=$ac_optarg ;;
907
908   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
909     ac_prev=mandir ;;
910   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
911     mandir=$ac_optarg ;;
912
913   -nfp | --nfp | --nf)
914     # Obsolete; use --without-fp.
915     with_fp=no ;;
916
917   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918   | --no-cr | --no-c | -n)
919     no_create=yes ;;
920
921   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
922   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
923     no_recursion=yes ;;
924
925   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
926   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
927   | --oldin | --oldi | --old | --ol | --o)
928     ac_prev=oldincludedir ;;
929   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
930   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
931   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
932     oldincludedir=$ac_optarg ;;
933
934   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
935     ac_prev=prefix ;;
936   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
937     prefix=$ac_optarg ;;
938
939   -program-prefix | --program-prefix | --program-prefi | --program-pref \
940   | --program-pre | --program-pr | --program-p)
941     ac_prev=program_prefix ;;
942   -program-prefix=* | --program-prefix=* | --program-prefi=* \
943   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
944     program_prefix=$ac_optarg ;;
945
946   -program-suffix | --program-suffix | --program-suffi | --program-suff \
947   | --program-suf | --program-su | --program-s)
948     ac_prev=program_suffix ;;
949   -program-suffix=* | --program-suffix=* | --program-suffi=* \
950   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
951     program_suffix=$ac_optarg ;;
952
953   -program-transform-name | --program-transform-name \
954   | --program-transform-nam | --program-transform-na \
955   | --program-transform-n | --program-transform- \
956   | --program-transform | --program-transfor \
957   | --program-transfo | --program-transf \
958   | --program-trans | --program-tran \
959   | --progr-tra | --program-tr | --program-t)
960     ac_prev=program_transform_name ;;
961   -program-transform-name=* | --program-transform-name=* \
962   | --program-transform-nam=* | --program-transform-na=* \
963   | --program-transform-n=* | --program-transform-=* \
964   | --program-transform=* | --program-transfor=* \
965   | --program-transfo=* | --program-transf=* \
966   | --program-trans=* | --program-tran=* \
967   | --progr-tra=* | --program-tr=* | --program-t=*)
968     program_transform_name=$ac_optarg ;;
969
970   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
971     ac_prev=pdfdir ;;
972   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
973     pdfdir=$ac_optarg ;;
974
975   -psdir | --psdir | --psdi | --psd | --ps)
976     ac_prev=psdir ;;
977   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
978     psdir=$ac_optarg ;;
979
980   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
981   | -silent | --silent | --silen | --sile | --sil)
982     silent=yes ;;
983
984   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
985     ac_prev=sbindir ;;
986   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
987   | --sbi=* | --sb=*)
988     sbindir=$ac_optarg ;;
989
990   -sharedstatedir | --sharedstatedir | --sharedstatedi \
991   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992   | --sharedst | --shareds | --shared | --share | --shar \
993   | --sha | --sh)
994     ac_prev=sharedstatedir ;;
995   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
996   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
997   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
998   | --sha=* | --sh=*)
999     sharedstatedir=$ac_optarg ;;
1000
1001   -site | --site | --sit)
1002     ac_prev=site ;;
1003   -site=* | --site=* | --sit=*)
1004     site=$ac_optarg ;;
1005
1006   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1007     ac_prev=srcdir ;;
1008   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1009     srcdir=$ac_optarg ;;
1010
1011   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1012   | --syscon | --sysco | --sysc | --sys | --sy)
1013     ac_prev=sysconfdir ;;
1014   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1015   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1016     sysconfdir=$ac_optarg ;;
1017
1018   -target | --target | --targe | --targ | --tar | --ta | --t)
1019     ac_prev=target_alias ;;
1020   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1021     target_alias=$ac_optarg ;;
1022
1023   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1024     verbose=yes ;;
1025
1026   -version | --version | --versio | --versi | --vers | -V)
1027     ac_init_version=: ;;
1028
1029   -with-* | --with-*)
1030     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1031     # Reject names that are not valid shell variable names.
1032     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033       as_fn_error $? "invalid package name: $ac_useropt"
1034     ac_useropt_orig=$ac_useropt
1035     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036     case $ac_user_opts in
1037       *"
1038 "with_$ac_useropt"
1039 "*) ;;
1040       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1041          ac_unrecognized_sep=', ';;
1042     esac
1043     eval with_$ac_useropt=\$ac_optarg ;;
1044
1045   -without-* | --without-*)
1046     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1047     # Reject names that are not valid shell variable names.
1048     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049       as_fn_error $? "invalid package name: $ac_useropt"
1050     ac_useropt_orig=$ac_useropt
1051     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052     case $ac_user_opts in
1053       *"
1054 "with_$ac_useropt"
1055 "*) ;;
1056       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1057          ac_unrecognized_sep=', ';;
1058     esac
1059     eval with_$ac_useropt=no ;;
1060
1061   --x)
1062     # Obsolete; use --with-x.
1063     with_x=yes ;;
1064
1065   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1066   | --x-incl | --x-inc | --x-in | --x-i)
1067     ac_prev=x_includes ;;
1068   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1069   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1070     x_includes=$ac_optarg ;;
1071
1072   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1073   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1074     ac_prev=x_libraries ;;
1075   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1076   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1077     x_libraries=$ac_optarg ;;
1078
1079   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1080 Try \`$0 --help' for more information"
1081     ;;
1082
1083   *=*)
1084     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1085     # Reject names that are not valid shell variable names.
1086     case $ac_envvar in #(
1087       '' | [0-9]* | *[!_$as_cr_alnum]* )
1088       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1089     esac
1090     eval $ac_envvar=\$ac_optarg
1091     export $ac_envvar ;;
1092
1093   *)
1094     # FIXME: should be removed in autoconf 3.0.
1095     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1096     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1098     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1099     ;;
1100
1101   esac
1102 done
1103
1104 if test -n "$ac_prev"; then
1105   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1106   as_fn_error $? "missing argument to $ac_option"
1107 fi
1108
1109 if test -n "$ac_unrecognized_opts"; then
1110   case $enable_option_checking in
1111     no) ;;
1112     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1113     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1114   esac
1115 fi
1116
1117 # Check all directory arguments for consistency.
1118 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1119                 datadir sysconfdir sharedstatedir localstatedir includedir \
1120                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1121                 libdir localedir mandir
1122 do
1123   eval ac_val=\$$ac_var
1124   # Remove trailing slashes.
1125   case $ac_val in
1126     */ )
1127       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1128       eval $ac_var=\$ac_val;;
1129   esac
1130   # Be sure to have absolute directory names.
1131   case $ac_val in
1132     [\\/$]* | ?:[\\/]* )  continue;;
1133     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134   esac
1135   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1136 done
1137
1138 # There might be people who depend on the old broken behavior: `$host'
1139 # used to hold the argument of --host etc.
1140 # FIXME: To remove some day.
1141 build=$build_alias
1142 host=$host_alias
1143 target=$target_alias
1144
1145 # FIXME: To remove some day.
1146 if test "x$host_alias" != x; then
1147   if test "x$build_alias" = x; then
1148     cross_compiling=maybe
1149   elif test "x$build_alias" != "x$host_alias"; then
1150     cross_compiling=yes
1151   fi
1152 fi
1153
1154 ac_tool_prefix=
1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1156
1157 test "$silent" = yes && exec 6>/dev/null
1158
1159
1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di=`ls -di .` &&
1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163   as_fn_error $? "working directory cannot be determined"
1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165   as_fn_error $? "pwd does not report name of working directory"
1166
1167
1168 # Find the source files, if location was not specified.
1169 if test -z "$srcdir"; then
1170   ac_srcdir_defaulted=yes
1171   # Try the directory containing this script, then the parent directory.
1172   ac_confdir=`$as_dirname -- "$as_myself" ||
1173 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1174          X"$as_myself" : 'X\(//\)[^/]' \| \
1175          X"$as_myself" : 'X\(//\)$' \| \
1176          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1177 $as_echo X"$as_myself" |
1178     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1179             s//\1/
1180             q
1181           }
1182           /^X\(\/\/\)[^/].*/{
1183             s//\1/
1184             q
1185           }
1186           /^X\(\/\/\)$/{
1187             s//\1/
1188             q
1189           }
1190           /^X\(\/\).*/{
1191             s//\1/
1192             q
1193           }
1194           s/.*/./; q'`
1195   srcdir=$ac_confdir
1196   if test ! -r "$srcdir/$ac_unique_file"; then
1197     srcdir=..
1198   fi
1199 else
1200   ac_srcdir_defaulted=no
1201 fi
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1204   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1205 fi
1206 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1207 ac_abs_confdir=`(
1208         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1209         pwd)`
1210 # When building in place, set srcdir=.
1211 if test "$ac_abs_confdir" = "$ac_pwd"; then
1212   srcdir=.
1213 fi
1214 # Remove unnecessary trailing slashes from srcdir.
1215 # Double slashes in file names in object file debugging info
1216 # mess up M-x gdb in Emacs.
1217 case $srcdir in
1218 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1219 esac
1220 for ac_var in $ac_precious_vars; do
1221   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1222   eval ac_env_${ac_var}_value=\$${ac_var}
1223   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1224   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1225 done
1226
1227 #
1228 # Report the --help message.
1229 #
1230 if test "$ac_init_help" = "long"; then
1231   # Omit some internal or obsolete options to make the list less imposing.
1232   # This message is too long to be a string in the A/UX 3.1 sh.
1233   cat <<_ACEOF
1234 \`configure' configures darkstat 3.0.719 to adapt to many kinds of systems.
1235
1236 Usage: $0 [OPTION]... [VAR=VALUE]...
1237
1238 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1239 VAR=VALUE.  See below for descriptions of some of the useful variables.
1240
1241 Defaults for the options are specified in brackets.
1242
1243 Configuration:
1244   -h, --help              display this help and exit
1245       --help=short        display options specific to this package
1246       --help=recursive    display the short help of all the included packages
1247   -V, --version           display version information and exit
1248   -q, --quiet, --silent   do not print \`checking ...' messages
1249       --cache-file=FILE   cache test results in FILE [disabled]
1250   -C, --config-cache      alias for \`--cache-file=config.cache'
1251   -n, --no-create         do not create output files
1252       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1253
1254 Installation directories:
1255   --prefix=PREFIX         install architecture-independent files in PREFIX
1256                           [$ac_default_prefix]
1257   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1258                           [PREFIX]
1259
1260 By default, \`make install' will install all the files in
1261 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1262 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1263 for instance \`--prefix=\$HOME'.
1264
1265 For better control, use the options below.
1266
1267 Fine tuning of the installation directories:
1268   --bindir=DIR            user executables [EPREFIX/bin]
1269   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1270   --libexecdir=DIR        program executables [EPREFIX/libexec]
1271   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1272   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1273   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1274   --libdir=DIR            object code libraries [EPREFIX/lib]
1275   --includedir=DIR        C header files [PREFIX/include]
1276   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1277   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1278   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1279   --infodir=DIR           info documentation [DATAROOTDIR/info]
1280   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1281   --mandir=DIR            man documentation [DATAROOTDIR/man]
1282   --docdir=DIR            documentation root [DATAROOTDIR/doc/darkstat]
1283   --htmldir=DIR           html documentation [DOCDIR]
1284   --dvidir=DIR            dvi documentation [DOCDIR]
1285   --pdfdir=DIR            pdf documentation [DOCDIR]
1286   --psdir=DIR             ps documentation [DOCDIR]
1287 _ACEOF
1288
1289   cat <<\_ACEOF
1290 _ACEOF
1291 fi
1292
1293 if test -n "$ac_init_help"; then
1294   case $ac_init_help in
1295      short | recursive ) echo "Configuration of darkstat 3.0.719:";;
1296    esac
1297   cat <<\_ACEOF
1298
1299 Optional Features:
1300   --disable-option-checking  ignore unrecognized --enable/--with options
1301   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1302   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1303   --enable-silent-rules          less verbose build output (undo: 'make V=1')
1304   --disable-silent-rules         verbose build output (undo: 'make V=0')
1305   --disable-debug         turn off debugging code and asserts
1306   --enable-warnings       turn on lots of compile-time warnings, these are
1307                           only useful for development
1308
1309 Optional Packages:
1310   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1311   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1312   --with-privdrop-user    specify which user to drop privileges to (default:
1313                           nobody)
1314   --with-pcap=DIR         prefix to libpcap installation
1315
1316 Some influential environment variables:
1317   CC          C compiler command
1318   CFLAGS      C compiler flags
1319   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1320               nonstandard directory <lib dir>
1321   LIBS        libraries to pass to the linker, e.g. -l<library>
1322   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1323               you have headers in a nonstandard directory <include dir>
1324   CPP         C preprocessor
1325
1326 Use these variables to override the choices made by `configure' or to help
1327 it to find libraries and programs with nonstandard names/locations.
1328
1329 Report bugs to the package provider.
1330 darkstat home page: <https://unix4lyfe.org/darkstat/>.
1331 _ACEOF
1332 ac_status=$?
1333 fi
1334
1335 if test "$ac_init_help" = "recursive"; then
1336   # If there are subdirs, report their specific --help.
1337   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1338     test -d "$ac_dir" ||
1339       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1340       continue
1341     ac_builddir=.
1342
1343 case "$ac_dir" in
1344 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345 *)
1346   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1347   # A ".." for each directory in $ac_dir_suffix.
1348   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1349   case $ac_top_builddir_sub in
1350   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1351   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1352   esac ;;
1353 esac
1354 ac_abs_top_builddir=$ac_pwd
1355 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1356 # for backward compatibility:
1357 ac_top_builddir=$ac_top_build_prefix
1358
1359 case $srcdir in
1360   .)  # We are building in place.
1361     ac_srcdir=.
1362     ac_top_srcdir=$ac_top_builddir_sub
1363     ac_abs_top_srcdir=$ac_pwd ;;
1364   [\\/]* | ?:[\\/]* )  # Absolute name.
1365     ac_srcdir=$srcdir$ac_dir_suffix;
1366     ac_top_srcdir=$srcdir
1367     ac_abs_top_srcdir=$srcdir ;;
1368   *) # Relative name.
1369     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1370     ac_top_srcdir=$ac_top_build_prefix$srcdir
1371     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1372 esac
1373 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1374
1375     cd "$ac_dir" || { ac_status=$?; continue; }
1376     # Check for guested configure.
1377     if test -f "$ac_srcdir/configure.gnu"; then
1378       echo &&
1379       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1380     elif test -f "$ac_srcdir/configure"; then
1381       echo &&
1382       $SHELL "$ac_srcdir/configure" --help=recursive
1383     else
1384       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1385     fi || ac_status=$?
1386     cd "$ac_pwd" || { ac_status=$?; break; }
1387   done
1388 fi
1389
1390 test -n "$ac_init_help" && exit $ac_status
1391 if $ac_init_version; then
1392   cat <<\_ACEOF
1393 darkstat configure 3.0.719
1394 generated by GNU Autoconf 2.69
1395
1396 Copyright (C) 2012 Free Software Foundation, Inc.
1397 This configure script is free software; the Free Software Foundation
1398 gives unlimited permission to copy, distribute and modify it.
1399 _ACEOF
1400   exit
1401 fi
1402
1403 ## ------------------------ ##
1404 ## Autoconf initialization. ##
1405 ## ------------------------ ##
1406
1407 # ac_fn_c_try_compile LINENO
1408 # --------------------------
1409 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1410 ac_fn_c_try_compile ()
1411 {
1412   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1413   rm -f conftest.$ac_objext
1414   if { { ac_try="$ac_compile"
1415 case "(($ac_try" in
1416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1417   *) ac_try_echo=$ac_try;;
1418 esac
1419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1420 $as_echo "$ac_try_echo"; } >&5
1421   (eval "$ac_compile") 2>conftest.err
1422   ac_status=$?
1423   if test -s conftest.err; then
1424     grep -v '^ *+' conftest.err >conftest.er1
1425     cat conftest.er1 >&5
1426     mv -f conftest.er1 conftest.err
1427   fi
1428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1429   test $ac_status = 0; } && {
1430          test -z "$ac_c_werror_flag" ||
1431          test ! -s conftest.err
1432        } && test -s conftest.$ac_objext; then :
1433   ac_retval=0
1434 else
1435   $as_echo "$as_me: failed program was:" >&5
1436 sed 's/^/| /' conftest.$ac_ext >&5
1437
1438         ac_retval=1
1439 fi
1440   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1441   as_fn_set_status $ac_retval
1442
1443 } # ac_fn_c_try_compile
1444
1445 # ac_fn_c_try_link LINENO
1446 # -----------------------
1447 # Try to link conftest.$ac_ext, and return whether this succeeded.
1448 ac_fn_c_try_link ()
1449 {
1450   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451   rm -f conftest.$ac_objext conftest$ac_exeext
1452   if { { ac_try="$ac_link"
1453 case "(($ac_try" in
1454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455   *) ac_try_echo=$ac_try;;
1456 esac
1457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458 $as_echo "$ac_try_echo"; } >&5
1459   (eval "$ac_link") 2>conftest.err
1460   ac_status=$?
1461   if test -s conftest.err; then
1462     grep -v '^ *+' conftest.err >conftest.er1
1463     cat conftest.er1 >&5
1464     mv -f conftest.er1 conftest.err
1465   fi
1466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467   test $ac_status = 0; } && {
1468          test -z "$ac_c_werror_flag" ||
1469          test ! -s conftest.err
1470        } && test -s conftest$ac_exeext && {
1471          test "$cross_compiling" = yes ||
1472          test -x conftest$ac_exeext
1473        }; then :
1474   ac_retval=0
1475 else
1476   $as_echo "$as_me: failed program was:" >&5
1477 sed 's/^/| /' conftest.$ac_ext >&5
1478
1479         ac_retval=1
1480 fi
1481   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1482   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1483   # interfere with the next link command; also delete a directory that is
1484   # left behind by Apple's compiler.  We do this before executing the actions.
1485   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1486   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1487   as_fn_set_status $ac_retval
1488
1489 } # ac_fn_c_try_link
1490
1491 # ac_fn_c_try_cpp LINENO
1492 # ----------------------
1493 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1494 ac_fn_c_try_cpp ()
1495 {
1496   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497   if { { ac_try="$ac_cpp conftest.$ac_ext"
1498 case "(($ac_try" in
1499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500   *) ac_try_echo=$ac_try;;
1501 esac
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 $as_echo "$ac_try_echo"; } >&5
1504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1505   ac_status=$?
1506   if test -s conftest.err; then
1507     grep -v '^ *+' conftest.err >conftest.er1
1508     cat conftest.er1 >&5
1509     mv -f conftest.er1 conftest.err
1510   fi
1511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512   test $ac_status = 0; } > conftest.i && {
1513          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1514          test ! -s conftest.err
1515        }; then :
1516   ac_retval=0
1517 else
1518   $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.$ac_ext >&5
1520
1521     ac_retval=1
1522 fi
1523   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1524   as_fn_set_status $ac_retval
1525
1526 } # ac_fn_c_try_cpp
1527
1528 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1529 # -------------------------------------------------------
1530 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1531 # the include files in INCLUDES and setting the cache variable VAR
1532 # accordingly.
1533 ac_fn_c_check_header_mongrel ()
1534 {
1535   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536   if eval \${$3+:} false; then :
1537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1538 $as_echo_n "checking for $2... " >&6; }
1539 if eval \${$3+:} false; then :
1540   $as_echo_n "(cached) " >&6
1541 fi
1542 eval ac_res=\$$3
1543                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1544 $as_echo "$ac_res" >&6; }
1545 else
1546   # Is the header compilable?
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1548 $as_echo_n "checking $2 usability... " >&6; }
1549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1550 /* end confdefs.h.  */
1551 $4
1552 #include <$2>
1553 _ACEOF
1554 if ac_fn_c_try_compile "$LINENO"; then :
1555   ac_header_compiler=yes
1556 else
1557   ac_header_compiler=no
1558 fi
1559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1561 $as_echo "$ac_header_compiler" >&6; }
1562
1563 # Is the header present?
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1565 $as_echo_n "checking $2 presence... " >&6; }
1566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1567 /* end confdefs.h.  */
1568 #include <$2>
1569 _ACEOF
1570 if ac_fn_c_try_cpp "$LINENO"; then :
1571   ac_header_preproc=yes
1572 else
1573   ac_header_preproc=no
1574 fi
1575 rm -f conftest.err conftest.i conftest.$ac_ext
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1577 $as_echo "$ac_header_preproc" >&6; }
1578
1579 # So?  What about this header?
1580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1581   yes:no: )
1582     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1583 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1584     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1585 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1586     ;;
1587   no:yes:* )
1588     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1589 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1590     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1591 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1592     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1593 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1594     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1595 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1596     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1597 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1598     ;;
1599 esac
1600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601 $as_echo_n "checking for $2... " >&6; }
1602 if eval \${$3+:} false; then :
1603   $as_echo_n "(cached) " >&6
1604 else
1605   eval "$3=\$ac_header_compiler"
1606 fi
1607 eval ac_res=\$$3
1608                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609 $as_echo "$ac_res" >&6; }
1610 fi
1611   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612
1613 } # ac_fn_c_check_header_mongrel
1614
1615 # ac_fn_c_try_run LINENO
1616 # ----------------------
1617 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1618 # that executables *can* be run.
1619 ac_fn_c_try_run ()
1620 {
1621   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622   if { { ac_try="$ac_link"
1623 case "(($ac_try" in
1624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625   *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629   (eval "$ac_link") 2>&5
1630   ac_status=$?
1631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1633   { { case "(($ac_try" in
1634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635   *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639   (eval "$ac_try") 2>&5
1640   ac_status=$?
1641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642   test $ac_status = 0; }; }; then :
1643   ac_retval=0
1644 else
1645   $as_echo "$as_me: program exited with status $ac_status" >&5
1646        $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649        ac_retval=$ac_status
1650 fi
1651   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653   as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_run
1656
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1662 {
1663   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if eval \${$3+:} false; then :
1667   $as_echo_n "(cached) " >&6
1668 else
1669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h.  */
1671 $4
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675   eval "$3=yes"
1676 else
1677   eval "$3=no"
1678 fi
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 fi
1681 eval ac_res=\$$3
1682                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686 } # ac_fn_c_check_header_compile
1687 cat >config.log <<_ACEOF
1688 This file contains any messages produced by compilers while
1689 running configure, to aid debugging if configure makes a mistake.
1690
1691 It was created by darkstat $as_me 3.0.719, which was
1692 generated by GNU Autoconf 2.69.  Invocation command line was
1693
1694   $ $0 $@
1695
1696 _ACEOF
1697 exec 5>>config.log
1698 {
1699 cat <<_ASUNAME
1700 ## --------- ##
1701 ## Platform. ##
1702 ## --------- ##
1703
1704 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1705 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1706 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1707 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1708 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1709
1710 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1711 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1712
1713 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1714 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1715 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1716 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1717 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1718 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1719 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1720
1721 _ASUNAME
1722
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 for as_dir in $PATH
1725 do
1726   IFS=$as_save_IFS
1727   test -z "$as_dir" && as_dir=.
1728     $as_echo "PATH: $as_dir"
1729   done
1730 IFS=$as_save_IFS
1731
1732 } >&5
1733
1734 cat >&5 <<_ACEOF
1735
1736
1737 ## ----------- ##
1738 ## Core tests. ##
1739 ## ----------- ##
1740
1741 _ACEOF
1742
1743
1744 # Keep a trace of the command line.
1745 # Strip out --no-create and --no-recursion so they do not pile up.
1746 # Strip out --silent because we don't want to record it for future runs.
1747 # Also quote any args containing shell meta-characters.
1748 # Make two passes to allow for proper duplicate-argument suppression.
1749 ac_configure_args=
1750 ac_configure_args0=
1751 ac_configure_args1=
1752 ac_must_keep_next=false
1753 for ac_pass in 1 2
1754 do
1755   for ac_arg
1756   do
1757     case $ac_arg in
1758     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1759     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1760     | -silent | --silent | --silen | --sile | --sil)
1761       continue ;;
1762     *\'*)
1763       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1764     esac
1765     case $ac_pass in
1766     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1767     2)
1768       as_fn_append ac_configure_args1 " '$ac_arg'"
1769       if test $ac_must_keep_next = true; then
1770         ac_must_keep_next=false # Got value, back to normal.
1771       else
1772         case $ac_arg in
1773           *=* | --config-cache | -C | -disable-* | --disable-* \
1774           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1775           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1776           | -with-* | --with-* | -without-* | --without-* | --x)
1777             case "$ac_configure_args0 " in
1778               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1779             esac
1780             ;;
1781           -* ) ac_must_keep_next=true ;;
1782         esac
1783       fi
1784       as_fn_append ac_configure_args " '$ac_arg'"
1785       ;;
1786     esac
1787   done
1788 done
1789 { ac_configure_args0=; unset ac_configure_args0;}
1790 { ac_configure_args1=; unset ac_configure_args1;}
1791
1792 # When interrupted or exit'd, cleanup temporary files, and complete
1793 # config.log.  We remove comments because anyway the quotes in there
1794 # would cause problems or look ugly.
1795 # WARNING: Use '\'' to represent an apostrophe within the trap.
1796 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1797 trap 'exit_status=$?
1798   # Save into config.log some information that might help in debugging.
1799   {
1800     echo
1801
1802     $as_echo "## ---------------- ##
1803 ## Cache variables. ##
1804 ## ---------------- ##"
1805     echo
1806     # The following way of writing the cache mishandles newlines in values,
1807 (
1808   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1809     eval ac_val=\$$ac_var
1810     case $ac_val in #(
1811     *${as_nl}*)
1812       case $ac_var in #(
1813       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1814 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1815       esac
1816       case $ac_var in #(
1817       _ | IFS | as_nl) ;; #(
1818       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1819       *) { eval $ac_var=; unset $ac_var;} ;;
1820       esac ;;
1821     esac
1822   done
1823   (set) 2>&1 |
1824     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1825     *${as_nl}ac_space=\ *)
1826       sed -n \
1827         "s/'\''/'\''\\\\'\'''\''/g;
1828           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1829       ;; #(
1830     *)
1831       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1832       ;;
1833     esac |
1834     sort
1835 )
1836     echo
1837
1838     $as_echo "## ----------------- ##
1839 ## Output variables. ##
1840 ## ----------------- ##"
1841     echo
1842     for ac_var in $ac_subst_vars
1843     do
1844       eval ac_val=\$$ac_var
1845       case $ac_val in
1846       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847       esac
1848       $as_echo "$ac_var='\''$ac_val'\''"
1849     done | sort
1850     echo
1851
1852     if test -n "$ac_subst_files"; then
1853       $as_echo "## ------------------- ##
1854 ## File substitutions. ##
1855 ## ------------------- ##"
1856       echo
1857       for ac_var in $ac_subst_files
1858       do
1859         eval ac_val=\$$ac_var
1860         case $ac_val in
1861         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1862         esac
1863         $as_echo "$ac_var='\''$ac_val'\''"
1864       done | sort
1865       echo
1866     fi
1867
1868     if test -s confdefs.h; then
1869       $as_echo "## ----------- ##
1870 ## confdefs.h. ##
1871 ## ----------- ##"
1872       echo
1873       cat confdefs.h
1874       echo
1875     fi
1876     test "$ac_signal" != 0 &&
1877       $as_echo "$as_me: caught signal $ac_signal"
1878     $as_echo "$as_me: exit $exit_status"
1879   } >&5
1880   rm -f core *.core core.conftest.* &&
1881     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1882     exit $exit_status
1883 ' 0
1884 for ac_signal in 1 2 13 15; do
1885   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1886 done
1887 ac_signal=0
1888
1889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1890 rm -f -r conftest* confdefs.h
1891
1892 $as_echo "/* confdefs.h */" > confdefs.h
1893
1894 # Predefined preprocessor variables.
1895
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_NAME "$PACKAGE_NAME"
1898 _ACEOF
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1902 _ACEOF
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1906 _ACEOF
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_STRING "$PACKAGE_STRING"
1910 _ACEOF
1911
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1914 _ACEOF
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_URL "$PACKAGE_URL"
1918 _ACEOF
1919
1920
1921 # Let the site file select an alternate cache file if it wants to.
1922 # Prefer an explicitly selected file to automatically selected ones.
1923 ac_site_file1=NONE
1924 ac_site_file2=NONE
1925 if test -n "$CONFIG_SITE"; then
1926   # We do not want a PATH search for config.site.
1927   case $CONFIG_SITE in #((
1928     -*)  ac_site_file1=./$CONFIG_SITE;;
1929     */*) ac_site_file1=$CONFIG_SITE;;
1930     *)   ac_site_file1=./$CONFIG_SITE;;
1931   esac
1932 elif test "x$prefix" != xNONE; then
1933   ac_site_file1=$prefix/share/config.site
1934   ac_site_file2=$prefix/etc/config.site
1935 else
1936   ac_site_file1=$ac_default_prefix/share/config.site
1937   ac_site_file2=$ac_default_prefix/etc/config.site
1938 fi
1939 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1940 do
1941   test "x$ac_site_file" = xNONE && continue
1942   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1943     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1944 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1945     sed 's/^/| /' "$ac_site_file" >&5
1946     . "$ac_site_file" \
1947       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1949 as_fn_error $? "failed to load site script $ac_site_file
1950 See \`config.log' for more details" "$LINENO" 5; }
1951   fi
1952 done
1953
1954 if test -r "$cache_file"; then
1955   # Some versions of bash will fail to source /dev/null (special files
1956   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1957   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1958     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1959 $as_echo "$as_me: loading cache $cache_file" >&6;}
1960     case $cache_file in
1961       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1962       *)                      . "./$cache_file";;
1963     esac
1964   fi
1965 else
1966   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1967 $as_echo "$as_me: creating cache $cache_file" >&6;}
1968   >$cache_file
1969 fi
1970
1971 # Check that the precious variables saved in the cache have kept the same
1972 # value.
1973 ac_cache_corrupted=false
1974 for ac_var in $ac_precious_vars; do
1975   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1976   eval ac_new_set=\$ac_env_${ac_var}_set
1977   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1978   eval ac_new_val=\$ac_env_${ac_var}_value
1979   case $ac_old_set,$ac_new_set in
1980     set,)
1981       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1982 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1983       ac_cache_corrupted=: ;;
1984     ,set)
1985       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1986 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1987       ac_cache_corrupted=: ;;
1988     ,);;
1989     *)
1990       if test "x$ac_old_val" != "x$ac_new_val"; then
1991         # differences in whitespace do not lead to failure.
1992         ac_old_val_w=`echo x $ac_old_val`
1993         ac_new_val_w=`echo x $ac_new_val`
1994         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1995           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1996 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1997           ac_cache_corrupted=:
1998         else
1999           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2000 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2001           eval $ac_var=\$ac_old_val
2002         fi
2003         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2004 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2005         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2006 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2007       fi;;
2008   esac
2009   # Pass precious variables to config.status.
2010   if test "$ac_new_set" = set; then
2011     case $ac_new_val in
2012     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2013     *) ac_arg=$ac_var=$ac_new_val ;;
2014     esac
2015     case " $ac_configure_args " in
2016       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2017       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2018     esac
2019   fi
2020 done
2021 if $ac_cache_corrupted; then
2022   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2024   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2025 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2026   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2027 fi
2028 ## -------------------- ##
2029 ## Main body of script. ##
2030 ## -------------------- ##
2031
2032 ac_ext=c
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037
2038
2039
2040 ac_config_headers="$ac_config_headers config.h"
2041
2042
2043 RULE="------------------------------------------------------------"
2044
2045 # Allow configure-time override of PRIVDROP_USER.
2046
2047 # Check whether --with-privdrop-user was given.
2048 if test "${with_privdrop_user+set}" = set; then :
2049   withval=$with_privdrop_user; _pdu="$withval"
2050 else
2051   _pdu="nobody"
2052 fi
2053
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PRIVDROP_USER "$_pdu"
2057 _ACEOF
2058
2059
2060 # Checks for programs.
2061 ac_aux_dir=
2062 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2063   if test -f "$ac_dir/install-sh"; then
2064     ac_aux_dir=$ac_dir
2065     ac_install_sh="$ac_aux_dir/install-sh -c"
2066     break
2067   elif test -f "$ac_dir/install.sh"; then
2068     ac_aux_dir=$ac_dir
2069     ac_install_sh="$ac_aux_dir/install.sh -c"
2070     break
2071   elif test -f "$ac_dir/shtool"; then
2072     ac_aux_dir=$ac_dir
2073     ac_install_sh="$ac_aux_dir/shtool install -c"
2074     break
2075   fi
2076 done
2077 if test -z "$ac_aux_dir"; then
2078   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2079 fi
2080
2081 # These three variables are undocumented and unsupported,
2082 # and are intended to be withdrawn in a future Autoconf release.
2083 # They can cause serious problems if a builder's source tree is in a directory
2084 # whose full name contains unusual characters.
2085 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2086 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2087 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2088
2089
2090 # Find a good install program.  We prefer a C program (faster),
2091 # so one script is as good as another.  But avoid the broken or
2092 # incompatible versions:
2093 # SysV /etc/install, /usr/sbin/install
2094 # SunOS /usr/etc/install
2095 # IRIX /sbin/install
2096 # AIX /bin/install
2097 # AmigaOS /C/install, which installs bootblocks on floppy discs
2098 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2099 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2100 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2101 # OS/2's system install, which has a completely different semantic
2102 # ./install, which can be erroneously created by make from ./install.sh.
2103 # Reject install programs that cannot install multiple files.
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2105 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2106 if test -z "$INSTALL"; then
2107 if ${ac_cv_path_install+:} false; then :
2108   $as_echo_n "(cached) " >&6
2109 else
2110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 for as_dir in $PATH
2112 do
2113   IFS=$as_save_IFS
2114   test -z "$as_dir" && as_dir=.
2115     # Account for people who put trailing slashes in PATH elements.
2116 case $as_dir/ in #((
2117   ./ | .// | /[cC]/* | \
2118   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2119   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2120   /usr/ucb/* ) ;;
2121   *)
2122     # OSF1 and SCO ODT 3.0 have their own names for install.
2123     # Don't use installbsd from OSF since it installs stuff as root
2124     # by default.
2125     for ac_prog in ginstall scoinst install; do
2126       for ac_exec_ext in '' $ac_executable_extensions; do
2127         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2128           if test $ac_prog = install &&
2129             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2130             # AIX install.  It has an incompatible calling convention.
2131             :
2132           elif test $ac_prog = install &&
2133             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2134             # program-specific install script used by HP pwplus--don't use.
2135             :
2136           else
2137             rm -rf conftest.one conftest.two conftest.dir
2138             echo one > conftest.one
2139             echo two > conftest.two
2140             mkdir conftest.dir
2141             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2142               test -s conftest.one && test -s conftest.two &&
2143               test -s conftest.dir/conftest.one &&
2144               test -s conftest.dir/conftest.two
2145             then
2146               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2147               break 3
2148             fi
2149           fi
2150         fi
2151       done
2152     done
2153     ;;
2154 esac
2155
2156   done
2157 IFS=$as_save_IFS
2158
2159 rm -rf conftest.one conftest.two conftest.dir
2160
2161 fi
2162   if test "${ac_cv_path_install+set}" = set; then
2163     INSTALL=$ac_cv_path_install
2164   else
2165     # As a last resort, use the slow shell script.  Don't cache a
2166     # value for INSTALL within a source directory, because that will
2167     # break other packages using the cache if that directory is
2168     # removed, or if the value is a relative name.
2169     INSTALL=$ac_install_sh
2170   fi
2171 fi
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2173 $as_echo "$INSTALL" >&6; }
2174
2175 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2176 # It thinks the first close brace ends the variable substitution.
2177 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2178
2179 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2180
2181 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2182
2183 ac_ext=c
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188 if test -n "$ac_tool_prefix"; then
2189   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2192 $as_echo_n "checking for $ac_word... " >&6; }
2193 if ${ac_cv_prog_CC+:} false; then :
2194   $as_echo_n "(cached) " >&6
2195 else
2196   if test -n "$CC"; then
2197   ac_cv_prog_CC="$CC" # Let the user override the test.
2198 else
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2201 do
2202   IFS=$as_save_IFS
2203   test -z "$as_dir" && as_dir=.
2204     for ac_exec_ext in '' $ac_executable_extensions; do
2205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2206     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2208     break 2
2209   fi
2210 done
2211   done
2212 IFS=$as_save_IFS
2213
2214 fi
2215 fi
2216 CC=$ac_cv_prog_CC
2217 if test -n "$CC"; then
2218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2219 $as_echo "$CC" >&6; }
2220 else
2221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2222 $as_echo "no" >&6; }
2223 fi
2224
2225
2226 fi
2227 if test -z "$ac_cv_prog_CC"; then
2228   ac_ct_CC=$CC
2229   # Extract the first word of "gcc", so it can be a program name with args.
2230 set dummy gcc; ac_word=$2
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2232 $as_echo_n "checking for $ac_word... " >&6; }
2233 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2234   $as_echo_n "(cached) " >&6
2235 else
2236   if test -n "$ac_ct_CC"; then
2237   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244     for ac_exec_ext in '' $ac_executable_extensions; do
2245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246     ac_cv_prog_ac_ct_CC="gcc"
2247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2248     break 2
2249   fi
2250 done
2251   done
2252 IFS=$as_save_IFS
2253
2254 fi
2255 fi
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2259 $as_echo "$ac_ct_CC" >&6; }
2260 else
2261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2262 $as_echo "no" >&6; }
2263 fi
2264
2265   if test "x$ac_ct_CC" = x; then
2266     CC=""
2267   else
2268     case $cross_compiling:$ac_tool_warned in
2269 yes:)
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2272 ac_tool_warned=yes ;;
2273 esac
2274     CC=$ac_ct_CC
2275   fi
2276 else
2277   CC="$ac_cv_prog_CC"
2278 fi
2279
2280 if test -z "$CC"; then
2281           if test -n "$ac_tool_prefix"; then
2282     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2283 set dummy ${ac_tool_prefix}cc; ac_word=$2
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2285 $as_echo_n "checking for $ac_word... " >&6; }
2286 if ${ac_cv_prog_CC+:} false; then :
2287   $as_echo_n "(cached) " >&6
2288 else
2289   if test -n "$CC"; then
2290   ac_cv_prog_CC="$CC" # Let the user override the test.
2291 else
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2294 do
2295   IFS=$as_save_IFS
2296   test -z "$as_dir" && as_dir=.
2297     for ac_exec_ext in '' $ac_executable_extensions; do
2298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2299     ac_cv_prog_CC="${ac_tool_prefix}cc"
2300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2301     break 2
2302   fi
2303 done
2304   done
2305 IFS=$as_save_IFS
2306
2307 fi
2308 fi
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2312 $as_echo "$CC" >&6; }
2313 else
2314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2315 $as_echo "no" >&6; }
2316 fi
2317
2318
2319   fi
2320 fi
2321 if test -z "$CC"; then
2322   # Extract the first word of "cc", so it can be a program name with args.
2323 set dummy cc; ac_word=$2
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2325 $as_echo_n "checking for $ac_word... " >&6; }
2326 if ${ac_cv_prog_CC+:} false; then :
2327   $as_echo_n "(cached) " >&6
2328 else
2329   if test -n "$CC"; then
2330   ac_cv_prog_CC="$CC" # Let the user override the test.
2331 else
2332   ac_prog_rejected=no
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338     for ac_exec_ext in '' $ac_executable_extensions; do
2339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2341        ac_prog_rejected=yes
2342        continue
2343      fi
2344     ac_cv_prog_CC="cc"
2345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2346     break 2
2347   fi
2348 done
2349   done
2350 IFS=$as_save_IFS
2351
2352 if test $ac_prog_rejected = yes; then
2353   # We found a bogon in the path, so make sure we never use it.
2354   set dummy $ac_cv_prog_CC
2355   shift
2356   if test $# != 0; then
2357     # We chose a different compiler from the bogus one.
2358     # However, it has the same basename, so the bogon will be chosen
2359     # first if we set CC to just the basename; use the full file name.
2360     shift
2361     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2362   fi
2363 fi
2364 fi
2365 fi
2366 CC=$ac_cv_prog_CC
2367 if test -n "$CC"; then
2368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2369 $as_echo "$CC" >&6; }
2370 else
2371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2372 $as_echo "no" >&6; }
2373 fi
2374
2375
2376 fi
2377 if test -z "$CC"; then
2378   if test -n "$ac_tool_prefix"; then
2379   for ac_prog in cl.exe
2380   do
2381     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2384 $as_echo_n "checking for $ac_word... " >&6; }
2385 if ${ac_cv_prog_CC+:} false; then :
2386   $as_echo_n "(cached) " >&6
2387 else
2388   if test -n "$CC"; then
2389   ac_cv_prog_CC="$CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394   IFS=$as_save_IFS
2395   test -z "$as_dir" && as_dir=.
2396     for ac_exec_ext in '' $ac_executable_extensions; do
2397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2398     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400     break 2
2401   fi
2402 done
2403   done
2404 IFS=$as_save_IFS
2405
2406 fi
2407 fi
2408 CC=$ac_cv_prog_CC
2409 if test -n "$CC"; then
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2411 $as_echo "$CC" >&6; }
2412 else
2413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414 $as_echo "no" >&6; }
2415 fi
2416
2417
2418     test -n "$CC" && break
2419   done
2420 fi
2421 if test -z "$CC"; then
2422   ac_ct_CC=$CC
2423   for ac_prog in cl.exe
2424 do
2425   # Extract the first word of "$ac_prog", so it can be a program name with args.
2426 set dummy $ac_prog; ac_word=$2
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428 $as_echo_n "checking for $ac_word... " >&6; }
2429 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2430   $as_echo_n "(cached) " >&6
2431 else
2432   if test -n "$ac_ct_CC"; then
2433   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438   IFS=$as_save_IFS
2439   test -z "$as_dir" && as_dir=.
2440     for ac_exec_ext in '' $ac_executable_extensions; do
2441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442     ac_cv_prog_ac_ct_CC="$ac_prog"
2443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444     break 2
2445   fi
2446 done
2447   done
2448 IFS=$as_save_IFS
2449
2450 fi
2451 fi
2452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2453 if test -n "$ac_ct_CC"; then
2454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2455 $as_echo "$ac_ct_CC" >&6; }
2456 else
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458 $as_echo "no" >&6; }
2459 fi
2460
2461
2462   test -n "$ac_ct_CC" && break
2463 done
2464
2465   if test "x$ac_ct_CC" = x; then
2466     CC=""
2467   else
2468     case $cross_compiling:$ac_tool_warned in
2469 yes:)
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2472 ac_tool_warned=yes ;;
2473 esac
2474     CC=$ac_ct_CC
2475   fi
2476 fi
2477
2478 fi
2479
2480
2481 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2483 as_fn_error $? "no acceptable C compiler found in \$PATH
2484 See \`config.log' for more details" "$LINENO" 5; }
2485
2486 # Provide some information about the compiler.
2487 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2488 set X $ac_compile
2489 ac_compiler=$2
2490 for ac_option in --version -v -V -qversion; do
2491   { { ac_try="$ac_compiler $ac_option >&5"
2492 case "(($ac_try" in
2493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494   *) ac_try_echo=$ac_try;;
2495 esac
2496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497 $as_echo "$ac_try_echo"; } >&5
2498   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2499   ac_status=$?
2500   if test -s conftest.err; then
2501     sed '10a\
2502 ... rest of stderr output deleted ...
2503          10q' conftest.err >conftest.er1
2504     cat conftest.er1 >&5
2505   fi
2506   rm -f conftest.er1 conftest.err
2507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508   test $ac_status = 0; }
2509 done
2510
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h.  */
2513
2514 int
2515 main ()
2516 {
2517
2518   ;
2519   return 0;
2520 }
2521 _ACEOF
2522 ac_clean_files_save=$ac_clean_files
2523 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2524 # Try to create an executable without -o first, disregard a.out.
2525 # It will help us diagnose broken compilers, and finding out an intuition
2526 # of exeext.
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2528 $as_echo_n "checking whether the C compiler works... " >&6; }
2529 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2530
2531 # The possible output files:
2532 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2533
2534 ac_rmfiles=
2535 for ac_file in $ac_files
2536 do
2537   case $ac_file in
2538     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2539     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2540   esac
2541 done
2542 rm -f $ac_rmfiles
2543
2544 if { { ac_try="$ac_link_default"
2545 case "(($ac_try" in
2546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547   *) ac_try_echo=$ac_try;;
2548 esac
2549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2550 $as_echo "$ac_try_echo"; } >&5
2551   (eval "$ac_link_default") 2>&5
2552   ac_status=$?
2553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2554   test $ac_status = 0; }; then :
2555   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2556 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2557 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2558 # so that the user can short-circuit this test for compilers unknown to
2559 # Autoconf.
2560 for ac_file in $ac_files ''
2561 do
2562   test -f "$ac_file" || continue
2563   case $ac_file in
2564     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2565         ;;
2566     [ab].out )
2567         # We found the default executable, but exeext='' is most
2568         # certainly right.
2569         break;;
2570     *.* )
2571         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2572         then :; else
2573            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2574         fi
2575         # We set ac_cv_exeext here because the later test for it is not
2576         # safe: cross compilers may not add the suffix if given an `-o'
2577         # argument, so we may need to know it at that point already.
2578         # Even if this section looks crufty: it has the advantage of
2579         # actually working.
2580         break;;
2581     * )
2582         break;;
2583   esac
2584 done
2585 test "$ac_cv_exeext" = no && ac_cv_exeext=
2586
2587 else
2588   ac_file=''
2589 fi
2590 if test -z "$ac_file"; then :
2591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592 $as_echo "no" >&6; }
2593 $as_echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 as_fn_error 77 "C compiler cannot create executables
2599 See \`config.log' for more details" "$LINENO" 5; }
2600 else
2601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2602 $as_echo "yes" >&6; }
2603 fi
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2605 $as_echo_n "checking for C compiler default output file name... " >&6; }
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2607 $as_echo "$ac_file" >&6; }
2608 ac_exeext=$ac_cv_exeext
2609
2610 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2611 ac_clean_files=$ac_clean_files_save
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2613 $as_echo_n "checking for suffix of executables... " >&6; }
2614 if { { ac_try="$ac_link"
2615 case "(($ac_try" in
2616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617   *) ac_try_echo=$ac_try;;
2618 esac
2619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2620 $as_echo "$ac_try_echo"; } >&5
2621   (eval "$ac_link") 2>&5
2622   ac_status=$?
2623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2624   test $ac_status = 0; }; then :
2625   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2626 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2627 # work properly (i.e., refer to `conftest.exe'), while it won't with
2628 # `rm'.
2629 for ac_file in conftest.exe conftest conftest.*; do
2630   test -f "$ac_file" || continue
2631   case $ac_file in
2632     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2633     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2634           break;;
2635     * ) break;;
2636   esac
2637 done
2638 else
2639   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2641 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2642 See \`config.log' for more details" "$LINENO" 5; }
2643 fi
2644 rm -f conftest conftest$ac_cv_exeext
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2646 $as_echo "$ac_cv_exeext" >&6; }
2647
2648 rm -f conftest.$ac_ext
2649 EXEEXT=$ac_cv_exeext
2650 ac_exeext=$EXEEXT
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h.  */
2653 #include <stdio.h>
2654 int
2655 main ()
2656 {
2657 FILE *f = fopen ("conftest.out", "w");
2658  return ferror (f) || fclose (f) != 0;
2659
2660   ;
2661   return 0;
2662 }
2663 _ACEOF
2664 ac_clean_files="$ac_clean_files conftest.out"
2665 # Check that the compiler produces executables we can run.  If not, either
2666 # the compiler is broken, or we cross compile.
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2668 $as_echo_n "checking whether we are cross compiling... " >&6; }
2669 if test "$cross_compiling" != yes; then
2670   { { ac_try="$ac_link"
2671 case "(($ac_try" in
2672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673   *) ac_try_echo=$ac_try;;
2674 esac
2675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2676 $as_echo "$ac_try_echo"; } >&5
2677   (eval "$ac_link") 2>&5
2678   ac_status=$?
2679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2680   test $ac_status = 0; }
2681   if { ac_try='./conftest$ac_cv_exeext'
2682   { { case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
2686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687 $as_echo "$ac_try_echo"; } >&5
2688   (eval "$ac_try") 2>&5
2689   ac_status=$?
2690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691   test $ac_status = 0; }; }; then
2692     cross_compiling=no
2693   else
2694     if test "$cross_compiling" = maybe; then
2695         cross_compiling=yes
2696     else
2697         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699 as_fn_error $? "cannot run C compiled programs.
2700 If you meant to cross compile, use \`--host'.
2701 See \`config.log' for more details" "$LINENO" 5; }
2702     fi
2703   fi
2704 fi
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2706 $as_echo "$cross_compiling" >&6; }
2707
2708 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2709 ac_clean_files=$ac_clean_files_save
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2711 $as_echo_n "checking for suffix of object files... " >&6; }
2712 if ${ac_cv_objext+:} false; then :
2713   $as_echo_n "(cached) " >&6
2714 else
2715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716 /* end confdefs.h.  */
2717
2718 int
2719 main ()
2720 {
2721
2722   ;
2723   return 0;
2724 }
2725 _ACEOF
2726 rm -f conftest.o conftest.obj
2727 if { { ac_try="$ac_compile"
2728 case "(($ac_try" in
2729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730   *) ac_try_echo=$ac_try;;
2731 esac
2732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2733 $as_echo "$ac_try_echo"; } >&5
2734   (eval "$ac_compile") 2>&5
2735   ac_status=$?
2736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2737   test $ac_status = 0; }; then :
2738   for ac_file in conftest.o conftest.obj conftest.*; do
2739   test -f "$ac_file" || continue;
2740   case $ac_file in
2741     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2742     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2743        break;;
2744   esac
2745 done
2746 else
2747   $as_echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2749
2750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2752 as_fn_error $? "cannot compute suffix of object files: cannot compile
2753 See \`config.log' for more details" "$LINENO" 5; }
2754 fi
2755 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2756 fi
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2758 $as_echo "$ac_cv_objext" >&6; }
2759 OBJEXT=$ac_cv_objext
2760 ac_objext=$OBJEXT
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2762 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2763 if ${ac_cv_c_compiler_gnu+:} false; then :
2764   $as_echo_n "(cached) " >&6
2765 else
2766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h.  */
2768
2769 int
2770 main ()
2771 {
2772 #ifndef __GNUC__
2773        choke me
2774 #endif
2775
2776   ;
2777   return 0;
2778 }
2779 _ACEOF
2780 if ac_fn_c_try_compile "$LINENO"; then :
2781   ac_compiler_gnu=yes
2782 else
2783   ac_compiler_gnu=no
2784 fi
2785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2787
2788 fi
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2790 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2791 if test $ac_compiler_gnu = yes; then
2792   GCC=yes
2793 else
2794   GCC=
2795 fi
2796 ac_test_CFLAGS=${CFLAGS+set}
2797 ac_save_CFLAGS=$CFLAGS
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2799 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2800 if ${ac_cv_prog_cc_g+:} false; then :
2801   $as_echo_n "(cached) " >&6
2802 else
2803   ac_save_c_werror_flag=$ac_c_werror_flag
2804    ac_c_werror_flag=yes
2805    ac_cv_prog_cc_g=no
2806    CFLAGS="-g"
2807    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h.  */
2809
2810 int
2811 main ()
2812 {
2813
2814   ;
2815   return 0;
2816 }
2817 _ACEOF
2818 if ac_fn_c_try_compile "$LINENO"; then :
2819   ac_cv_prog_cc_g=yes
2820 else
2821   CFLAGS=""
2822       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h.  */
2824
2825 int
2826 main ()
2827 {
2828
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 if ac_fn_c_try_compile "$LINENO"; then :
2834
2835 else
2836   ac_c_werror_flag=$ac_save_c_werror_flag
2837          CFLAGS="-g"
2838          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h.  */
2840
2841 int
2842 main ()
2843 {
2844
2845   ;
2846   return 0;
2847 }
2848 _ACEOF
2849 if ac_fn_c_try_compile "$LINENO"; then :
2850   ac_cv_prog_cc_g=yes
2851 fi
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853 fi
2854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855 fi
2856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2857    ac_c_werror_flag=$ac_save_c_werror_flag
2858 fi
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2860 $as_echo "$ac_cv_prog_cc_g" >&6; }
2861 if test "$ac_test_CFLAGS" = set; then
2862   CFLAGS=$ac_save_CFLAGS
2863 elif test $ac_cv_prog_cc_g = yes; then
2864   if test "$GCC" = yes; then
2865     CFLAGS="-g -O2"
2866   else
2867     CFLAGS="-g"
2868   fi
2869 else
2870   if test "$GCC" = yes; then
2871     CFLAGS="-O2"
2872   else
2873     CFLAGS=
2874   fi
2875 fi
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2877 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2878 if ${ac_cv_prog_cc_c89+:} false; then :
2879   $as_echo_n "(cached) " >&6
2880 else
2881   ac_cv_prog_cc_c89=no
2882 ac_save_CC=$CC
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h.  */
2885 #include <stdarg.h>
2886 #include <stdio.h>
2887 struct stat;
2888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2889 struct buf { int x; };
2890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2891 static char *e (p, i)
2892      char **p;
2893      int i;
2894 {
2895   return p[i];
2896 }
2897 static char *f (char * (*g) (char **, int), char **p, ...)
2898 {
2899   char *s;
2900   va_list v;
2901   va_start (v,p);
2902   s = g (p, va_arg (v,int));
2903   va_end (v);
2904   return s;
2905 }
2906
2907 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2908    function prototypes and stuff, but not '\xHH' hex character constants.
2909    These don't provoke an error unfortunately, instead are silently treated
2910    as 'x'.  The following induces an error, until -std is added to get
2911    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2912    array size at least.  It's necessary to write '\x00'==0 to get something
2913    that's true only with -std.  */
2914 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2915
2916 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2917    inside strings and character constants.  */
2918 #define FOO(x) 'x'
2919 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2920
2921 int test (int i, double x);
2922 struct s1 {int (*f) (int a);};
2923 struct s2 {int (*f) (double a);};
2924 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2925 int argc;
2926 char **argv;
2927 int
2928 main ()
2929 {
2930 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2936         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2937 do
2938   CC="$ac_save_CC $ac_arg"
2939   if ac_fn_c_try_compile "$LINENO"; then :
2940   ac_cv_prog_cc_c89=$ac_arg
2941 fi
2942 rm -f core conftest.err conftest.$ac_objext
2943   test "x$ac_cv_prog_cc_c89" != "xno" && break
2944 done
2945 rm -f conftest.$ac_ext
2946 CC=$ac_save_CC
2947
2948 fi
2949 # AC_CACHE_VAL
2950 case "x$ac_cv_prog_cc_c89" in
2951   x)
2952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2953 $as_echo "none needed" >&6; } ;;
2954   xno)
2955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2956 $as_echo "unsupported" >&6; } ;;
2957   *)
2958     CC="$CC $ac_cv_prog_cc_c89"
2959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2960 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2961 esac
2962 if test "x$ac_cv_prog_cc_c89" != xno; then :
2963
2964 fi
2965
2966 ac_ext=c
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971
2972
2973 # Compiler's language features.
2974
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
2976 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
2977 if ${ac_cv_c_restrict+:} false; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   ac_cv_c_restrict=no
2981    # The order here caters to the fact that C++ does not require restrict.
2982    for ac_kw in __restrict __restrict__ _Restrict restrict; do
2983      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2984 /* end confdefs.h.  */
2985 typedef int * int_ptr;
2986         int foo (int_ptr $ac_kw ip) {
2987         return ip[0];
2988        }
2989 int
2990 main ()
2991 {
2992 int s[1];
2993         int * $ac_kw t = s;
2994         t[0] = 0;
2995         return foo(t)
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 if ac_fn_c_try_compile "$LINENO"; then :
3001   ac_cv_c_restrict=$ac_kw
3002 fi
3003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004      test "$ac_cv_c_restrict" != no && break
3005    done
3006
3007 fi
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
3009 $as_echo "$ac_cv_c_restrict" >&6; }
3010
3011  case $ac_cv_c_restrict in
3012    restrict) ;;
3013    no) $as_echo "#define restrict /**/" >>confdefs.h
3014  ;;
3015    *)  cat >>confdefs.h <<_ACEOF
3016 #define restrict $ac_cv_c_restrict
3017 _ACEOF
3018  ;;
3019  esac
3020
3021
3022
3023 # Check whether --enable-silent-rules was given.
3024 if test "${enable_silent_rules+set}" = set; then :
3025   enableval=$enable_silent_rules;
3026 fi
3027
3028 case $enable_silent_rules in
3029 no)  AM_DEFAULT_VERBOSITY=1;;
3030 *)   AM_DEFAULT_VERBOSITY=0;;
3031 esac
3032
3033
3034 # Let user disable debugging symbols so we create smaller binaries.
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want debug code" >&5
3036 $as_echo_n "checking if we want debug code... " >&6; }
3037 # Check whether --enable-debug was given.
3038 if test "${enable_debug+set}" = set; then :
3039   enableval=$enable_debug; if test "x$enableval" = "xno" ; then
3040    CFLAGS="$CFLAGS -DNDEBUG -g0"
3041    { $as_echo "$as_me:${as_lineno-$LINENO}: result: nope" >&5
3042 $as_echo "nope" >&6; }
3043   elif test "x$enableval" = "xyes" ; then
3044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure" >&5
3045 $as_echo "sure" >&6; }
3046   else
3047    CFLAGS="$CFLAGS -g$enableval"
3048    { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure ($enableval)" >&5
3049 $as_echo "sure ($enableval)" >&6; }
3050   fi
3051 else
3052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure" >&5
3053 $as_echo "sure" >&6; }
3054 fi
3055
3056
3057 # Augment CFLAGS for fun.
3058 echo "int main(void){return 1;}" > conftest.$ac_ext
3059
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your C compiler wants a hit off the pipe" >&5
3061 $as_echo_n "checking if your C compiler wants a hit off the pipe... " >&6; }
3062 save_cflags="$CFLAGS"
3063 CFLAGS="-pipe $CFLAGS"
3064 if (eval $ac_link) 2>/dev/null; then
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure does" >&5
3066 $as_echo "sure does" >&6; }
3067 else
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070  CFLAGS="$save_cflags"
3071 fi
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your C compiler has a link-time optimizer" >&5
3074 $as_echo_n "checking if your C compiler has a link-time optimizer... " >&6; }
3075 if test x$GCC = xyes; then
3076  save_cflags="$CFLAGS"
3077  CFLAGS="-flto $CFLAGS"
3078  if (eval $ac_link) 2>/dev/null; then
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure does" >&5
3080 $as_echo "sure does" >&6; }
3081  else
3082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3084   CFLAGS="$save_cflags"
3085  fi
3086 else
3087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
3088 $as_echo "skipped" >&6; }
3089 fi
3090
3091 # Check whether --enable-warnings was given.
3092 if test "${enable_warnings+set}" = set; then :
3093   enableval=$enable_warnings; if test "x$enableval" = "xyes" ; then
3094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your C compiler has gcc-like --extra-warnings" >&5
3095 $as_echo_n "checking if your C compiler has gcc-like --extra-warnings... " >&6; }
3096    save_cflags="$CFLAGS"
3097    CFLAGS="$CFLAGS -fdiagnostics-show-option --all-warnings --extra-warnings"
3098    if (eval $ac_link) 2>/dev/null; then
3099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3100 $as_echo "yes" >&6; }
3101    else
3102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104     CFLAGS="$save_cflags"
3105    fi
3106
3107    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your C compiler has clang-like -Weverything" >&5
3108 $as_echo_n "checking if your C compiler has clang-like -Weverything... " >&6; }
3109    save_cflags="$CFLAGS"
3110    CFLAGS="$CFLAGS -Weverything"
3111    if (eval $ac_link) 2>/dev/null; then
3112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113 $as_echo "yes" >&6; }
3114    else
3115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117     CFLAGS="$save_cflags"
3118    fi
3119   fi
3120 fi
3121
3122
3123 rm -f conftest.$ac_objext conftest.$ac_ext
3124
3125
3126
3127 # Check for zlib.
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
3129 $as_echo_n "checking for deflate in -lz... " >&6; }
3130 if ${ac_cv_lib_z_deflate+:} false; then :
3131   $as_echo_n "(cached) " >&6
3132 else
3133   ac_check_lib_save_LIBS=$LIBS
3134 LIBS="-lz  $LIBS"
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h.  */
3137
3138 /* Override any GCC internal prototype to avoid an error.
3139    Use char because int might match the return type of a GCC
3140    builtin and then its argument prototype would still apply.  */
3141 #ifdef __cplusplus
3142 extern "C"
3143 #endif
3144 char deflate ();
3145 int
3146 main ()
3147 {
3148 return deflate ();
3149   ;
3150   return 0;
3151 }
3152 _ACEOF
3153 if ac_fn_c_try_link "$LINENO"; then :
3154   ac_cv_lib_z_deflate=yes
3155 else
3156   ac_cv_lib_z_deflate=no
3157 fi
3158 rm -f core conftest.err conftest.$ac_objext \
3159     conftest$ac_exeext conftest.$ac_ext
3160 LIBS=$ac_check_lib_save_LIBS
3161 fi
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
3163 $as_echo "$ac_cv_lib_z_deflate" >&6; }
3164 if test "x$ac_cv_lib_z_deflate" = xyes; then :
3165   cat >>confdefs.h <<_ACEOF
3166 #define HAVE_LIBZ 1
3167 _ACEOF
3168
3169   LIBS="-lz $LIBS"
3170
3171 else
3172
3173  cat <<END
3174 $RULE
3175
3176 I can't link to zlib.  You really can't have a modern
3177 operating system without zlib.
3178
3179 On Debian or a derivative, try: sudo apt-get install zlib1g-dev
3180
3181 On an RPM system, see if there is a zlib-devel package.
3182
3183 $RULE
3184 END
3185  as_fn_error $? "can't find usable zlib" "$LINENO" 5
3186 fi
3187
3188
3189
3190
3191 # Check for Solaris.
3192 # Must do at least socket and nsl before checking for libpcap.
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
3194 $as_echo_n "checking for library containing gethostbyname... " >&6; }
3195 if ${ac_cv_search_gethostbyname+:} false; then :
3196   $as_echo_n "(cached) " >&6
3197 else
3198   ac_func_search_save_LIBS=$LIBS
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h.  */
3201
3202 /* Override any GCC internal prototype to avoid an error.
3203    Use char because int might match the return type of a GCC
3204    builtin and then its argument prototype would still apply.  */
3205 #ifdef __cplusplus
3206 extern "C"
3207 #endif
3208 char gethostbyname ();
3209 int
3210 main ()
3211 {
3212 return gethostbyname ();
3213   ;
3214   return 0;
3215 }
3216 _ACEOF
3217 for ac_lib in '' nsl; do
3218   if test -z "$ac_lib"; then
3219     ac_res="none required"
3220   else
3221     ac_res=-l$ac_lib
3222     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3223   fi
3224   if ac_fn_c_try_link "$LINENO"; then :
3225   ac_cv_search_gethostbyname=$ac_res
3226 fi
3227 rm -f core conftest.err conftest.$ac_objext \
3228     conftest$ac_exeext
3229   if ${ac_cv_search_gethostbyname+:} false; then :
3230   break
3231 fi
3232 done
3233 if ${ac_cv_search_gethostbyname+:} false; then :
3234
3235 else
3236   ac_cv_search_gethostbyname=no
3237 fi
3238 rm conftest.$ac_ext
3239 LIBS=$ac_func_search_save_LIBS
3240 fi
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
3242 $as_echo "$ac_cv_search_gethostbyname" >&6; }
3243 ac_res=$ac_cv_search_gethostbyname
3244 if test "$ac_res" != no; then :
3245   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3246
3247 else
3248   as_fn_error $? "gethostbyname() not found" "$LINENO" 5
3249 fi
3250
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
3252 $as_echo_n "checking for library containing socket... " >&6; }
3253 if ${ac_cv_search_socket+:} false; then :
3254   $as_echo_n "(cached) " >&6
3255 else
3256   ac_func_search_save_LIBS=$LIBS
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h.  */
3259
3260 /* Override any GCC internal prototype to avoid an error.
3261    Use char because int might match the return type of a GCC
3262    builtin and then its argument prototype would still apply.  */
3263 #ifdef __cplusplus
3264 extern "C"
3265 #endif
3266 char socket ();
3267 int
3268 main ()
3269 {
3270 return socket ();
3271   ;
3272   return 0;
3273 }
3274 _ACEOF
3275 for ac_lib in '' socket; do
3276   if test -z "$ac_lib"; then
3277     ac_res="none required"
3278   else
3279     ac_res=-l$ac_lib
3280     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3281   fi
3282   if ac_fn_c_try_link "$LINENO"; then :
3283   ac_cv_search_socket=$ac_res
3284 fi
3285 rm -f core conftest.err conftest.$ac_objext \
3286     conftest$ac_exeext
3287   if ${ac_cv_search_socket+:} false; then :
3288   break
3289 fi
3290 done
3291 if ${ac_cv_search_socket+:} false; then :
3292
3293 else
3294   ac_cv_search_socket=no
3295 fi
3296 rm conftest.$ac_ext
3297 LIBS=$ac_func_search_save_LIBS
3298 fi
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
3300 $as_echo "$ac_cv_search_socket" >&6; }
3301 ac_res=$ac_cv_search_socket
3302 if test "$ac_res" != no; then :
3303   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3304
3305 else
3306   as_fn_error $? "socket() not found" "$LINENO" 5
3307 fi
3308
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
3310 $as_echo_n "checking for library containing hstrerror... " >&6; }
3311 if ${ac_cv_search_hstrerror+:} false; then :
3312   $as_echo_n "(cached) " >&6
3313 else
3314   ac_func_search_save_LIBS=$LIBS
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h.  */
3317
3318 /* Override any GCC internal prototype to avoid an error.
3319    Use char because int might match the return type of a GCC
3320    builtin and then its argument prototype would still apply.  */
3321 #ifdef __cplusplus
3322 extern "C"
3323 #endif
3324 char hstrerror ();
3325 int
3326 main ()
3327 {
3328 return hstrerror ();
3329   ;
3330   return 0;
3331 }
3332 _ACEOF
3333 for ac_lib in '' resolv; do
3334   if test -z "$ac_lib"; then
3335     ac_res="none required"
3336   else
3337     ac_res=-l$ac_lib
3338     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3339   fi
3340   if ac_fn_c_try_link "$LINENO"; then :
3341   ac_cv_search_hstrerror=$ac_res
3342 fi
3343 rm -f core conftest.err conftest.$ac_objext \
3344     conftest$ac_exeext
3345   if ${ac_cv_search_hstrerror+:} false; then :
3346   break
3347 fi
3348 done
3349 if ${ac_cv_search_hstrerror+:} false; then :
3350
3351 else
3352   ac_cv_search_hstrerror=no
3353 fi
3354 rm conftest.$ac_ext
3355 LIBS=$ac_func_search_save_LIBS
3356 fi
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
3358 $as_echo "$ac_cv_search_hstrerror" >&6; }
3359 ac_res=$ac_cv_search_hstrerror
3360 if test "$ac_res" != no; then :
3361   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3362
3363 else
3364   as_fn_error $? "hstrerror() not found" "$LINENO" 5
3365 fi
3366
3367
3368 # Solaris need sys/filio.h for FIONBIO
3369 ac_ext=c
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3375 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3376 # On Suns, sometimes $CPP names a directory.
3377 if test -n "$CPP" && test -d "$CPP"; then
3378   CPP=
3379 fi
3380 if test -z "$CPP"; then
3381   if ${ac_cv_prog_CPP+:} false; then :
3382   $as_echo_n "(cached) " >&6
3383 else
3384       # Double quotes because CPP needs to be expanded
3385     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3386     do
3387       ac_preproc_ok=false
3388 for ac_c_preproc_warn_flag in '' yes
3389 do
3390   # Use a header file that comes with gcc, so configuring glibc
3391   # with a fresh cross-compiler works.
3392   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3393   # <limits.h> exists even on freestanding compilers.
3394   # On the NeXT, cc -E runs the code through the compiler's parser,
3395   # not just through cpp. "Syntax error" is here to catch this case.
3396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h.  */
3398 #ifdef __STDC__
3399 # include <limits.h>
3400 #else
3401 # include <assert.h>
3402 #endif
3403                      Syntax error
3404 _ACEOF
3405 if ac_fn_c_try_cpp "$LINENO"; then :
3406
3407 else
3408   # Broken: fails on valid input.
3409 continue
3410 fi
3411 rm -f conftest.err conftest.i conftest.$ac_ext
3412
3413   # OK, works on sane cases.  Now check whether nonexistent headers
3414   # can be detected and how.
3415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h.  */
3417 #include <ac_nonexistent.h>
3418 _ACEOF
3419 if ac_fn_c_try_cpp "$LINENO"; then :
3420   # Broken: success on invalid input.
3421 continue
3422 else
3423   # Passes both tests.
3424 ac_preproc_ok=:
3425 break
3426 fi
3427 rm -f conftest.err conftest.i conftest.$ac_ext
3428
3429 done
3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431 rm -f conftest.i conftest.err conftest.$ac_ext
3432 if $ac_preproc_ok; then :
3433   break
3434 fi
3435
3436     done
3437     ac_cv_prog_CPP=$CPP
3438
3439 fi
3440   CPP=$ac_cv_prog_CPP
3441 else
3442   ac_cv_prog_CPP=$CPP
3443 fi
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3445 $as_echo "$CPP" >&6; }
3446 ac_preproc_ok=false
3447 for ac_c_preproc_warn_flag in '' yes
3448 do
3449   # Use a header file that comes with gcc, so configuring glibc
3450   # with a fresh cross-compiler works.
3451   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3452   # <limits.h> exists even on freestanding compilers.
3453   # On the NeXT, cc -E runs the code through the compiler's parser,
3454   # not just through cpp. "Syntax error" is here to catch this case.
3455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h.  */
3457 #ifdef __STDC__
3458 # include <limits.h>
3459 #else
3460 # include <assert.h>
3461 #endif
3462                      Syntax error
3463 _ACEOF
3464 if ac_fn_c_try_cpp "$LINENO"; then :
3465
3466 else
3467   # Broken: fails on valid input.
3468 continue
3469 fi
3470 rm -f conftest.err conftest.i conftest.$ac_ext
3471
3472   # OK, works on sane cases.  Now check whether nonexistent headers
3473   # can be detected and how.
3474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h.  */
3476 #include <ac_nonexistent.h>
3477 _ACEOF
3478 if ac_fn_c_try_cpp "$LINENO"; then :
3479   # Broken: success on invalid input.
3480 continue
3481 else
3482   # Passes both tests.
3483 ac_preproc_ok=:
3484 break
3485 fi
3486 rm -f conftest.err conftest.i conftest.$ac_ext
3487
3488 done
3489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3490 rm -f conftest.i conftest.err conftest.$ac_ext
3491 if $ac_preproc_ok; then :
3492
3493 else
3494   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3497 See \`config.log' for more details" "$LINENO" 5; }
3498 fi
3499
3500 ac_ext=c
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505
3506
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3508 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3509 if ${ac_cv_path_GREP+:} false; then :
3510   $as_echo_n "(cached) " >&6
3511 else
3512   if test -z "$GREP"; then
3513   ac_path_GREP_found=false
3514   # Loop through the user's path and test for each of PROGNAME-LIST
3515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3517 do
3518   IFS=$as_save_IFS
3519   test -z "$as_dir" && as_dir=.
3520     for ac_prog in grep ggrep; do
3521     for ac_exec_ext in '' $ac_executable_extensions; do
3522       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3523       as_fn_executable_p "$ac_path_GREP" || continue
3524 # Check for GNU ac_path_GREP and select it if it is found.
3525   # Check for GNU $ac_path_GREP
3526 case `"$ac_path_GREP" --version 2>&1` in
3527 *GNU*)
3528   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3529 *)
3530   ac_count=0
3531   $as_echo_n 0123456789 >"conftest.in"
3532   while :
3533   do
3534     cat "conftest.in" "conftest.in" >"conftest.tmp"
3535     mv "conftest.tmp" "conftest.in"
3536     cp "conftest.in" "conftest.nl"
3537     $as_echo 'GREP' >> "conftest.nl"
3538     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3539     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3540     as_fn_arith $ac_count + 1 && ac_count=$as_val
3541     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3542       # Best one so far, save it but keep looking for a better one
3543       ac_cv_path_GREP="$ac_path_GREP"
3544       ac_path_GREP_max=$ac_count
3545     fi
3546     # 10*(2^10) chars as input seems more than enough
3547     test $ac_count -gt 10 && break
3548   done
3549   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3550 esac
3551
3552       $ac_path_GREP_found && break 3
3553     done
3554   done
3555   done
3556 IFS=$as_save_IFS
3557   if test -z "$ac_cv_path_GREP"; then
3558     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3559   fi
3560 else
3561   ac_cv_path_GREP=$GREP
3562 fi
3563
3564 fi
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3566 $as_echo "$ac_cv_path_GREP" >&6; }
3567  GREP="$ac_cv_path_GREP"
3568
3569
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3571 $as_echo_n "checking for egrep... " >&6; }
3572 if ${ac_cv_path_EGREP+:} false; then :
3573   $as_echo_n "(cached) " >&6
3574 else
3575   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3576    then ac_cv_path_EGREP="$GREP -E"
3577    else
3578      if test -z "$EGREP"; then
3579   ac_path_EGREP_found=false
3580   # Loop through the user's path and test for each of PROGNAME-LIST
3581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3583 do
3584   IFS=$as_save_IFS
3585   test -z "$as_dir" && as_dir=.
3586     for ac_prog in egrep; do
3587     for ac_exec_ext in '' $ac_executable_extensions; do
3588       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3589       as_fn_executable_p "$ac_path_EGREP" || continue
3590 # Check for GNU ac_path_EGREP and select it if it is found.
3591   # Check for GNU $ac_path_EGREP
3592 case `"$ac_path_EGREP" --version 2>&1` in
3593 *GNU*)
3594   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3595 *)
3596   ac_count=0
3597   $as_echo_n 0123456789 >"conftest.in"
3598   while :
3599   do
3600     cat "conftest.in" "conftest.in" >"conftest.tmp"
3601     mv "conftest.tmp" "conftest.in"
3602     cp "conftest.in" "conftest.nl"
3603     $as_echo 'EGREP' >> "conftest.nl"
3604     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3605     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3606     as_fn_arith $ac_count + 1 && ac_count=$as_val
3607     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3608       # Best one so far, save it but keep looking for a better one
3609       ac_cv_path_EGREP="$ac_path_EGREP"
3610       ac_path_EGREP_max=$ac_count
3611     fi
3612     # 10*(2^10) chars as input seems more than enough
3613     test $ac_count -gt 10 && break
3614   done
3615   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3616 esac
3617
3618       $ac_path_EGREP_found && break 3
3619     done
3620   done
3621   done
3622 IFS=$as_save_IFS
3623   if test -z "$ac_cv_path_EGREP"; then
3624     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3625   fi
3626 else
3627   ac_cv_path_EGREP=$EGREP
3628 fi
3629
3630    fi
3631 fi
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3633 $as_echo "$ac_cv_path_EGREP" >&6; }
3634  EGREP="$ac_cv_path_EGREP"
3635
3636
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3638 $as_echo_n "checking for ANSI C header files... " >&6; }
3639 if ${ac_cv_header_stdc+:} false; then :
3640   $as_echo_n "(cached) " >&6
3641 else
3642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h.  */
3644 #include <stdlib.h>
3645 #include <stdarg.h>
3646 #include <string.h>
3647 #include <float.h>
3648
3649 int
3650 main ()
3651 {
3652
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 if ac_fn_c_try_compile "$LINENO"; then :
3658   ac_cv_header_stdc=yes
3659 else
3660   ac_cv_header_stdc=no
3661 fi
3662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663
3664 if test $ac_cv_header_stdc = yes; then
3665   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h.  */
3668 #include <string.h>
3669
3670 _ACEOF
3671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3672   $EGREP "memchr" >/dev/null 2>&1; then :
3673
3674 else
3675   ac_cv_header_stdc=no
3676 fi
3677 rm -f conftest*
3678
3679 fi
3680
3681 if test $ac_cv_header_stdc = yes; then
3682   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h.  */
3685 #include <stdlib.h>
3686
3687 _ACEOF
3688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3689   $EGREP "free" >/dev/null 2>&1; then :
3690
3691 else
3692   ac_cv_header_stdc=no
3693 fi
3694 rm -f conftest*
3695
3696 fi
3697
3698 if test $ac_cv_header_stdc = yes; then
3699   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3700   if test "$cross_compiling" = yes; then :
3701   :
3702 else
3703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h.  */
3705 #include <ctype.h>
3706 #include <stdlib.h>
3707 #if ((' ' & 0x0FF) == 0x020)
3708 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3709 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3710 #else
3711 # define ISLOWER(c) \
3712                    (('a' <= (c) && (c) <= 'i') \
3713                      || ('j' <= (c) && (c) <= 'r') \
3714                      || ('s' <= (c) && (c) <= 'z'))
3715 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3716 #endif
3717
3718 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3719 int
3720 main ()
3721 {
3722   int i;
3723   for (i = 0; i < 256; i++)
3724     if (XOR (islower (i), ISLOWER (i))
3725         || toupper (i) != TOUPPER (i))
3726       return 2;
3727   return 0;
3728 }
3729 _ACEOF
3730 if ac_fn_c_try_run "$LINENO"; then :
3731
3732 else
3733   ac_cv_header_stdc=no
3734 fi
3735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3736   conftest.$ac_objext conftest.beam conftest.$ac_ext
3737 fi
3738
3739 fi
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3742 $as_echo "$ac_cv_header_stdc" >&6; }
3743 if test $ac_cv_header_stdc = yes; then
3744
3745 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3746
3747 fi
3748
3749 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3750 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3751                   inttypes.h stdint.h unistd.h
3752 do :
3753   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3754 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3755 "
3756 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3757   cat >>confdefs.h <<_ACEOF
3758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3759 _ACEOF
3760
3761 fi
3762
3763 done
3764
3765
3766 for ac_header in sys/filio.h
3767 do :
3768   ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
3769 if test "x$ac_cv_header_sys_filio_h" = xyes; then :
3770   cat >>confdefs.h <<_ACEOF
3771 #define HAVE_SYS_FILIO_H 1
3772 _ACEOF
3773
3774 fi
3775
3776 done
3777
3778
3779 # This is the modern way.  Older systems use the ioctl method.
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
3781 $as_echo_n "checking for library containing getifaddrs... " >&6; }
3782 if ${ac_cv_search_getifaddrs+:} false; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   ac_func_search_save_LIBS=$LIBS
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h.  */
3788
3789 /* Override any GCC internal prototype to avoid an error.
3790    Use char because int might match the return type of a GCC
3791    builtin and then its argument prototype would still apply.  */
3792 #ifdef __cplusplus
3793 extern "C"
3794 #endif
3795 char getifaddrs ();
3796 int
3797 main ()
3798 {
3799 return getifaddrs ();
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 for ac_lib in '' c; do
3805   if test -z "$ac_lib"; then
3806     ac_res="none required"
3807   else
3808     ac_res=-l$ac_lib
3809     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3810   fi
3811   if ac_fn_c_try_link "$LINENO"; then :
3812   ac_cv_search_getifaddrs=$ac_res
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext \
3815     conftest$ac_exeext
3816   if ${ac_cv_search_getifaddrs+:} false; then :
3817   break
3818 fi
3819 done
3820 if ${ac_cv_search_getifaddrs+:} false; then :
3821
3822 else
3823   ac_cv_search_getifaddrs=no
3824 fi
3825 rm conftest.$ac_ext
3826 LIBS=$ac_func_search_save_LIBS
3827 fi
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
3829 $as_echo "$ac_cv_search_getifaddrs" >&6; }
3830 ac_res=$ac_cv_search_getifaddrs
3831 if test "$ac_res" != no; then :
3832   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3833   for ac_header in ifaddrs.h
3834 do :
3835   ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
3836 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
3837   cat >>confdefs.h <<_ACEOF
3838 #define HAVE_IFADDRS_H 1
3839 _ACEOF
3840
3841 fi
3842
3843 done
3844
3845 fi
3846
3847
3848
3849
3850 # Some OSes (Solaris) need sys/sockio.h for SIOCGIFADDR
3851 for ac_header in sys/sockio.h
3852 do :
3853   ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
3854 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
3855   cat >>confdefs.h <<_ACEOF
3856 #define HAVE_SYS_SOCKIO_H 1
3857 _ACEOF
3858
3859 fi
3860
3861 done
3862
3863
3864 # Check for libpcap
3865
3866 # Check whether --with-pcap was given.
3867 if test "${with_pcap+set}" = set; then :
3868   withval=$with_pcap; if test "$withval" = yes ; then
3869    as_fn_error $? "must specify a path, as in --with-pcap=DIR" "$LINENO" 5
3870   fi
3871   if test "$withval" != no ; then
3872    PCAP_HOME="$withval"
3873   fi
3874 fi
3875
3876
3877 if test -n "$PCAP_HOME" ; then
3878  LDFLAGS="$LDFLAGS -L$PCAP_HOME/lib"
3879  CPPFLAGS2="$CPPFLAGS -I$PCAP_HOME/include/pcap"
3880  CPPFLAGS="$CPPFLAGS -I$PCAP_HOME/include"
3881 else
3882  CPPFLAGS2="$CPPFLAGS -I/usr/include/pcap"
3883 fi
3884
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_loop in -lpcap" >&5
3886 $as_echo_n "checking for pcap_loop in -lpcap... " >&6; }
3887 if ${ac_cv_lib_pcap_pcap_loop+:} false; then :
3888   $as_echo_n "(cached) " >&6
3889 else
3890   ac_check_lib_save_LIBS=$LIBS
3891 LIBS="-lpcap  $LIBS"
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h.  */
3894
3895 /* Override any GCC internal prototype to avoid an error.
3896    Use char because int might match the return type of a GCC
3897    builtin and then its argument prototype would still apply.  */
3898 #ifdef __cplusplus
3899 extern "C"
3900 #endif
3901 char pcap_loop ();
3902 int
3903 main ()
3904 {
3905 return pcap_loop ();
3906   ;
3907   return 0;
3908 }
3909 _ACEOF
3910 if ac_fn_c_try_link "$LINENO"; then :
3911   ac_cv_lib_pcap_pcap_loop=yes
3912 else
3913   ac_cv_lib_pcap_pcap_loop=no
3914 fi
3915 rm -f core conftest.err conftest.$ac_objext \
3916     conftest$ac_exeext conftest.$ac_ext
3917 LIBS=$ac_check_lib_save_LIBS
3918 fi
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_loop" >&5
3920 $as_echo "$ac_cv_lib_pcap_pcap_loop" >&6; }
3921 if test "x$ac_cv_lib_pcap_pcap_loop" = xyes; then :
3922   cat >>confdefs.h <<_ACEOF
3923 #define HAVE_LIBPCAP 1
3924 _ACEOF
3925
3926   LIBS="-lpcap $LIBS"
3927
3928 else
3929   PCAP_BROKEN="yes"
3930 fi
3931
3932
3933 if test -z "$PCAP_BROKEN" ; then
3934   for ac_header in pcap.h
3935 do :
3936   ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
3937 if test "x$ac_cv_header_pcap_h" = xyes; then :
3938   cat >>confdefs.h <<_ACEOF
3939 #define HAVE_PCAP_H 1
3940 _ACEOF
3941
3942 else
3943   # Couldn't find headers, try include/pcap
3944    CPPFLAGS="$CPPFLAGS2"
3945    { $as_echo "$as_me:${as_lineno-$LINENO}: checking in include/pcap" >&5
3946 $as_echo "$as_me: checking in include/pcap" >&6;}
3947    unset ac_cv_header_pcap_h
3948    for ac_header in pcap.h
3949 do :
3950   ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
3951 if test "x$ac_cv_header_pcap_h" = xyes; then :
3952   cat >>confdefs.h <<_ACEOF
3953 #define HAVE_PCAP_H 1
3954 _ACEOF
3955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: I hate you." >&5
3956 $as_echo "I hate you." >&6; }
3957 else
3958   PCAP_BROKEN="yes"
3959 fi
3960
3961 done
3962
3963 fi
3964
3965 done
3966
3967 fi
3968
3969 if test -n "$PCAP_BROKEN" ; then
3970  cat <<END_MSG
3971 $RULE
3972
3973 darkstat absolutely requires libpcap to be installed.  On Debian
3974 systems, apt-get install libpcap-dev.  On RPM systems like RedHat, try
3975 installing the libpcap-devel package.
3976
3977 If libpcap is installed into a prefix that isn't being picked up by
3978 configure, for example /usr/local, re-run configure and add
3979 --with-pcap=/usr/local
3980
3981 Failing all of the above, go to http://www.tcpdump.org/ and download the
3982 source distribution of libpcap and build it yourself.
3983
3984 $RULE
3985 END_MSG
3986  as_fn_error $? "can't find usable libpcap" "$LINENO" 5
3987 fi
3988
3989 # If not in libc, we might find these in libbsd.
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
3991 $as_echo_n "checking for library containing setproctitle... " >&6; }
3992 if ${ac_cv_search_setproctitle+:} false; then :
3993   $as_echo_n "(cached) " >&6
3994 else
3995   ac_func_search_save_LIBS=$LIBS
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h.  */
3998
3999 /* Override any GCC internal prototype to avoid an error.
4000    Use char because int might match the return type of a GCC
4001    builtin and then its argument prototype would still apply.  */
4002 #ifdef __cplusplus
4003 extern "C"
4004 #endif
4005 char setproctitle ();
4006 int
4007 main ()
4008 {
4009 return setproctitle ();
4010   ;
4011   return 0;
4012 }
4013 _ACEOF
4014 for ac_lib in '' bsd; do
4015   if test -z "$ac_lib"; then
4016     ac_res="none required"
4017   else
4018     ac_res=-l$ac_lib
4019     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4020   fi
4021   if ac_fn_c_try_link "$LINENO"; then :
4022   ac_cv_search_setproctitle=$ac_res
4023 fi
4024 rm -f core conftest.err conftest.$ac_objext \
4025     conftest$ac_exeext
4026   if ${ac_cv_search_setproctitle+:} false; then :
4027   break
4028 fi
4029 done
4030 if ${ac_cv_search_setproctitle+:} false; then :
4031
4032 else
4033   ac_cv_search_setproctitle=no
4034 fi
4035 rm conftest.$ac_ext
4036 LIBS=$ac_func_search_save_LIBS
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
4039 $as_echo "$ac_cv_search_setproctitle" >&6; }
4040 ac_res=$ac_cv_search_setproctitle
4041 if test "$ac_res" != no; then :
4042   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4043
4044 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
4045
4046 fi
4047
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strlcpy" >&5
4049 $as_echo_n "checking for library containing strlcpy... " >&6; }
4050 if ${ac_cv_search_strlcpy+:} false; then :
4051   $as_echo_n "(cached) " >&6
4052 else
4053   ac_func_search_save_LIBS=$LIBS
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h.  */
4056
4057 /* Override any GCC internal prototype to avoid an error.
4058    Use char because int might match the return type of a GCC
4059    builtin and then its argument prototype would still apply.  */
4060 #ifdef __cplusplus
4061 extern "C"
4062 #endif
4063 char strlcpy ();
4064 int
4065 main ()
4066 {
4067 return strlcpy ();
4068   ;
4069   return 0;
4070 }
4071 _ACEOF
4072 for ac_lib in '' bsd; do
4073   if test -z "$ac_lib"; then
4074     ac_res="none required"
4075   else
4076     ac_res=-l$ac_lib
4077     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4078   fi
4079   if ac_fn_c_try_link "$LINENO"; then :
4080   ac_cv_search_strlcpy=$ac_res
4081 fi
4082 rm -f core conftest.err conftest.$ac_objext \
4083     conftest$ac_exeext
4084   if ${ac_cv_search_strlcpy+:} false; then :
4085   break
4086 fi
4087 done
4088 if ${ac_cv_search_strlcpy+:} false; then :
4089
4090 else
4091   ac_cv_search_strlcpy=no
4092 fi
4093 rm conftest.$ac_ext
4094 LIBS=$ac_func_search_save_LIBS
4095 fi
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcpy" >&5
4097 $as_echo "$ac_cv_search_strlcpy" >&6; }
4098 ac_res=$ac_cv_search_strlcpy
4099 if test "$ac_res" != no; then :
4100   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4101
4102 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
4103
4104 fi
4105
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strlcat" >&5
4107 $as_echo_n "checking for library containing strlcat... " >&6; }
4108 if ${ac_cv_search_strlcat+:} false; then :
4109   $as_echo_n "(cached) " >&6
4110 else
4111   ac_func_search_save_LIBS=$LIBS
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h.  */
4114
4115 /* Override any GCC internal prototype to avoid an error.
4116    Use char because int might match the return type of a GCC
4117    builtin and then its argument prototype would still apply.  */
4118 #ifdef __cplusplus
4119 extern "C"
4120 #endif
4121 char strlcat ();
4122 int
4123 main ()
4124 {
4125 return strlcat ();
4126   ;
4127   return 0;
4128 }
4129 _ACEOF
4130 for ac_lib in '' bsd; do
4131   if test -z "$ac_lib"; then
4132     ac_res="none required"
4133   else
4134     ac_res=-l$ac_lib
4135     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4136   fi
4137   if ac_fn_c_try_link "$LINENO"; then :
4138   ac_cv_search_strlcat=$ac_res
4139 fi
4140 rm -f core conftest.err conftest.$ac_objext \
4141     conftest$ac_exeext
4142   if ${ac_cv_search_strlcat+:} false; then :
4143   break
4144 fi
4145 done
4146 if ${ac_cv_search_strlcat+:} false; then :
4147
4148 else
4149   ac_cv_search_strlcat=no
4150 fi
4151 rm conftest.$ac_ext
4152 LIBS=$ac_func_search_save_LIBS
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcat" >&5
4155 $as_echo "$ac_cv_search_strlcat" >&6; }
4156 ac_res=$ac_cv_search_strlcat
4157 if test "$ac_res" != no; then :
4158   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4159
4160 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
4161
4162 fi
4163
4164
4165 for ac_header in bsd/string.h
4166 do :
4167   ac_fn_c_check_header_mongrel "$LINENO" "bsd/string.h" "ac_cv_header_bsd_string_h" "$ac_includes_default"
4168 if test "x$ac_cv_header_bsd_string_h" = xyes; then :
4169   cat >>confdefs.h <<_ACEOF
4170 #define HAVE_BSD_STRING_H 1
4171 _ACEOF
4172
4173 fi
4174
4175 done
4176
4177 for ac_header in bsd/unistd.h
4178 do :
4179   ac_fn_c_check_header_mongrel "$LINENO" "bsd/unistd.h" "ac_cv_header_bsd_unistd_h" "$ac_includes_default"
4180 if test "x$ac_cv_header_bsd_unistd_h" = xyes; then :
4181   cat >>confdefs.h <<_ACEOF
4182 #define HAVE_BSD_UNISTD_H 1
4183 _ACEOF
4184
4185 fi
4186
4187 done
4188
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
4191 $as_echo_n "checking for library containing clock_gettime... " >&6; }
4192 if ${ac_cv_search_clock_gettime+:} false; then :
4193   $as_echo_n "(cached) " >&6
4194 else
4195   ac_func_search_save_LIBS=$LIBS
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h.  */
4198
4199 /* Override any GCC internal prototype to avoid an error.
4200    Use char because int might match the return type of a GCC
4201    builtin and then its argument prototype would still apply.  */
4202 #ifdef __cplusplus
4203 extern "C"
4204 #endif
4205 char clock_gettime ();
4206 int
4207 main ()
4208 {
4209 return clock_gettime ();
4210   ;
4211   return 0;
4212 }
4213 _ACEOF
4214 for ac_lib in '' rt; do
4215   if test -z "$ac_lib"; then
4216     ac_res="none required"
4217   else
4218     ac_res=-l$ac_lib
4219     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4220   fi
4221   if ac_fn_c_try_link "$LINENO"; then :
4222   ac_cv_search_clock_gettime=$ac_res
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext \
4225     conftest$ac_exeext
4226   if ${ac_cv_search_clock_gettime+:} false; then :
4227   break
4228 fi
4229 done
4230 if ${ac_cv_search_clock_gettime+:} false; then :
4231
4232 else
4233   ac_cv_search_clock_gettime=no
4234 fi
4235 rm conftest.$ac_ext
4236 LIBS=$ac_func_search_save_LIBS
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
4239 $as_echo "$ac_cv_search_clock_gettime" >&6; }
4240 ac_res=$ac_cv_search_clock_gettime
4241 if test "$ac_res" != no; then :
4242   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4243
4244 fi
4245
4246
4247 ac_config_files="$ac_config_files Makefile darkstat.8"
4248
4249 cat >confcache <<\_ACEOF
4250 # This file is a shell script that caches the results of configure
4251 # tests run on this system so they can be shared between configure
4252 # scripts and configure runs, see configure's option --config-cache.
4253 # It is not useful on other systems.  If it contains results you don't
4254 # want to keep, you may remove or edit it.
4255 #
4256 # config.status only pays attention to the cache file if you give it
4257 # the --recheck option to rerun configure.
4258 #
4259 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4260 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4261 # following values.
4262
4263 _ACEOF
4264
4265 # The following way of writing the cache mishandles newlines in values,
4266 # but we know of no workaround that is simple, portable, and efficient.
4267 # So, we kill variables containing newlines.
4268 # Ultrix sh set writes to stderr and can't be redirected directly,
4269 # and sets the high bit in the cache file unless we assign to the vars.
4270 (
4271   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4272     eval ac_val=\$$ac_var
4273     case $ac_val in #(
4274     *${as_nl}*)
4275       case $ac_var in #(
4276       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4277 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4278       esac
4279       case $ac_var in #(
4280       _ | IFS | as_nl) ;; #(
4281       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4282       *) { eval $ac_var=; unset $ac_var;} ;;
4283       esac ;;
4284     esac
4285   done
4286
4287   (set) 2>&1 |
4288     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4289     *${as_nl}ac_space=\ *)
4290       # `set' does not quote correctly, so add quotes: double-quote
4291       # substitution turns \\\\ into \\, and sed turns \\ into \.
4292       sed -n \
4293         "s/'/'\\\\''/g;
4294           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4295       ;; #(
4296     *)
4297       # `set' quotes correctly as required by POSIX, so do not add quotes.
4298       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4299       ;;
4300     esac |
4301     sort
4302 ) |
4303   sed '
4304      /^ac_cv_env_/b end
4305      t clear
4306      :clear
4307      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4308      t end
4309      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4310      :end' >>confcache
4311 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4312   if test -w "$cache_file"; then
4313     if test "x$cache_file" != "x/dev/null"; then
4314       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4315 $as_echo "$as_me: updating cache $cache_file" >&6;}
4316       if test ! -f "$cache_file" || test -h "$cache_file"; then
4317         cat confcache >"$cache_file"
4318       else
4319         case $cache_file in #(
4320         */* | ?:*)
4321           mv -f confcache "$cache_file"$$ &&
4322           mv -f "$cache_file"$$ "$cache_file" ;; #(
4323         *)
4324           mv -f confcache "$cache_file" ;;
4325         esac
4326       fi
4327     fi
4328   else
4329     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4330 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4331   fi
4332 fi
4333 rm -f confcache
4334
4335 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4336 # Let make expand exec_prefix.
4337 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4338
4339 DEFS=-DHAVE_CONFIG_H
4340
4341 ac_libobjs=
4342 ac_ltlibobjs=
4343 U=
4344 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4345   # 1. Remove the extension, and $U if already installed.
4346   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4347   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4348   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4349   #    will be set to the directory where LIBOBJS objects are built.
4350   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4351   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4352 done
4353 LIBOBJS=$ac_libobjs
4354
4355 LTLIBOBJS=$ac_ltlibobjs
4356
4357
4358
4359 : "${CONFIG_STATUS=./config.status}"
4360 ac_write_fail=0
4361 ac_clean_files_save=$ac_clean_files
4362 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4364 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4365 as_write_fail=0
4366 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4367 #! $SHELL
4368 # Generated by $as_me.
4369 # Run this file to recreate the current configuration.
4370 # Compiler output produced by configure, useful for debugging
4371 # configure, is in config.log if it exists.
4372
4373 debug=false
4374 ac_cs_recheck=false
4375 ac_cs_silent=false
4376
4377 SHELL=\${CONFIG_SHELL-$SHELL}
4378 export SHELL
4379 _ASEOF
4380 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4381 ## -------------------- ##
4382 ## M4sh Initialization. ##
4383 ## -------------------- ##
4384
4385 # Be more Bourne compatible
4386 DUALCASE=1; export DUALCASE # for MKS sh
4387 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4388   emulate sh
4389   NULLCMD=:
4390   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4391   # is contrary to our usage.  Disable this feature.
4392   alias -g '${1+"$@"}'='"$@"'
4393   setopt NO_GLOB_SUBST
4394 else
4395   case `(set -o) 2>/dev/null` in #(
4396   *posix*) :
4397     set -o posix ;; #(
4398   *) :
4399      ;;
4400 esac
4401 fi
4402
4403
4404 as_nl='
4405 '
4406 export as_nl
4407 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4408 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4409 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4410 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4411 # Prefer a ksh shell builtin over an external printf program on Solaris,
4412 # but without wasting forks for bash or zsh.
4413 if test -z "$BASH_VERSION$ZSH_VERSION" \
4414     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4415   as_echo='print -r --'
4416   as_echo_n='print -rn --'
4417 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4418   as_echo='printf %s\n'
4419   as_echo_n='printf %s'
4420 else
4421   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4422     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4423     as_echo_n='/usr/ucb/echo -n'
4424   else
4425     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4426     as_echo_n_body='eval
4427       arg=$1;
4428       case $arg in #(
4429       *"$as_nl"*)
4430         expr "X$arg" : "X\\(.*\\)$as_nl";
4431         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4432       esac;
4433       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4434     '
4435     export as_echo_n_body
4436     as_echo_n='sh -c $as_echo_n_body as_echo'
4437   fi
4438   export as_echo_body
4439   as_echo='sh -c $as_echo_body as_echo'
4440 fi
4441
4442 # The user is always right.
4443 if test "${PATH_SEPARATOR+set}" != set; then
4444   PATH_SEPARATOR=:
4445   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4446     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4447       PATH_SEPARATOR=';'
4448   }
4449 fi
4450
4451
4452 # IFS
4453 # We need space, tab and new line, in precisely that order.  Quoting is
4454 # there to prevent editors from complaining about space-tab.
4455 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4456 # splitting by setting IFS to empty value.)
4457 IFS=" ""        $as_nl"
4458
4459 # Find who we are.  Look in the path if we contain no directory separator.
4460 as_myself=
4461 case $0 in #((
4462   *[\\/]* ) as_myself=$0 ;;
4463   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466   IFS=$as_save_IFS
4467   test -z "$as_dir" && as_dir=.
4468     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4469   done
4470 IFS=$as_save_IFS
4471
4472      ;;
4473 esac
4474 # We did not find ourselves, most probably we were run as `sh COMMAND'
4475 # in which case we are not to be found in the path.
4476 if test "x$as_myself" = x; then
4477   as_myself=$0
4478 fi
4479 if test ! -f "$as_myself"; then
4480   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4481   exit 1
4482 fi
4483
4484 # Unset variables that we do not need and which cause bugs (e.g. in
4485 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4486 # suppresses any "Segmentation fault" message there.  '((' could
4487 # trigger a bug in pdksh 5.2.14.
4488 for as_var in BASH_ENV ENV MAIL MAILPATH
4489 do eval test x\${$as_var+set} = xset \
4490   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4491 done
4492 PS1='$ '
4493 PS2='> '
4494 PS4='+ '
4495
4496 # NLS nuisances.
4497 LC_ALL=C
4498 export LC_ALL
4499 LANGUAGE=C
4500 export LANGUAGE
4501
4502 # CDPATH.
4503 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4504
4505
4506 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4507 # ----------------------------------------
4508 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4509 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4510 # script with STATUS, using 1 if that was 0.
4511 as_fn_error ()
4512 {
4513   as_status=$1; test $as_status -eq 0 && as_status=1
4514   if test "$4"; then
4515     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4516     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4517   fi
4518   $as_echo "$as_me: error: $2" >&2
4519   as_fn_exit $as_status
4520 } # as_fn_error
4521
4522
4523 # as_fn_set_status STATUS
4524 # -----------------------
4525 # Set $? to STATUS, without forking.
4526 as_fn_set_status ()
4527 {
4528   return $1
4529 } # as_fn_set_status
4530
4531 # as_fn_exit STATUS
4532 # -----------------
4533 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4534 as_fn_exit ()
4535 {
4536   set +e
4537   as_fn_set_status $1
4538   exit $1
4539 } # as_fn_exit
4540
4541 # as_fn_unset VAR
4542 # ---------------
4543 # Portably unset VAR.
4544 as_fn_unset ()
4545 {
4546   { eval $1=; unset $1;}
4547 }
4548 as_unset=as_fn_unset
4549 # as_fn_append VAR VALUE
4550 # ----------------------
4551 # Append the text in VALUE to the end of the definition contained in VAR. Take
4552 # advantage of any shell optimizations that allow amortized linear growth over
4553 # repeated appends, instead of the typical quadratic growth present in naive
4554 # implementations.
4555 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4556   eval 'as_fn_append ()
4557   {
4558     eval $1+=\$2
4559   }'
4560 else
4561   as_fn_append ()
4562   {
4563     eval $1=\$$1\$2
4564   }
4565 fi # as_fn_append
4566
4567 # as_fn_arith ARG...
4568 # ------------------
4569 # Perform arithmetic evaluation on the ARGs, and store the result in the
4570 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4571 # must be portable across $(()) and expr.
4572 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4573   eval 'as_fn_arith ()
4574   {
4575     as_val=$(( $* ))
4576   }'
4577 else
4578   as_fn_arith ()
4579   {
4580     as_val=`expr "$@" || test $? -eq 1`
4581   }
4582 fi # as_fn_arith
4583
4584
4585 if expr a : '\(a\)' >/dev/null 2>&1 &&
4586    test "X`expr 00001 : '.*\(...\)'`" = X001; then
4587   as_expr=expr
4588 else
4589   as_expr=false
4590 fi
4591
4592 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4593   as_basename=basename
4594 else
4595   as_basename=false
4596 fi
4597
4598 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4599   as_dirname=dirname
4600 else
4601   as_dirname=false
4602 fi
4603
4604 as_me=`$as_basename -- "$0" ||
4605 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4606          X"$0" : 'X\(//\)$' \| \
4607          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4608 $as_echo X/"$0" |
4609     sed '/^.*\/\([^/][^/]*\)\/*$/{
4610             s//\1/
4611             q
4612           }
4613           /^X\/\(\/\/\)$/{
4614             s//\1/
4615             q
4616           }
4617           /^X\/\(\/\).*/{
4618             s//\1/
4619             q
4620           }
4621           s/.*/./; q'`
4622
4623 # Avoid depending upon Character Ranges.
4624 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4625 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4626 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4627 as_cr_digits='0123456789'
4628 as_cr_alnum=$as_cr_Letters$as_cr_digits
4629
4630 ECHO_C= ECHO_N= ECHO_T=
4631 case `echo -n x` in #(((((
4632 -n*)
4633   case `echo 'xy\c'` in
4634   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
4635   xy)  ECHO_C='\c';;
4636   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4637        ECHO_T=' ';;
4638   esac;;
4639 *)
4640   ECHO_N='-n';;
4641 esac
4642
4643 rm -f conf$$ conf$$.exe conf$$.file
4644 if test -d conf$$.dir; then
4645   rm -f conf$$.dir/conf$$.file
4646 else
4647   rm -f conf$$.dir
4648   mkdir conf$$.dir 2>/dev/null
4649 fi
4650 if (echo >conf$$.file) 2>/dev/null; then
4651   if ln -s conf$$.file conf$$ 2>/dev/null; then
4652     as_ln_s='ln -s'
4653     # ... but there are two gotchas:
4654     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4655     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4656     # In both cases, we have to default to `cp -pR'.
4657     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4658       as_ln_s='cp -pR'
4659   elif ln conf$$.file conf$$ 2>/dev/null; then
4660     as_ln_s=ln
4661   else
4662     as_ln_s='cp -pR'
4663   fi
4664 else
4665   as_ln_s='cp -pR'
4666 fi
4667 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4668 rmdir conf$$.dir 2>/dev/null
4669
4670
4671 # as_fn_mkdir_p
4672 # -------------
4673 # Create "$as_dir" as a directory, including parents if necessary.
4674 as_fn_mkdir_p ()
4675 {
4676
4677   case $as_dir in #(
4678   -*) as_dir=./$as_dir;;
4679   esac
4680   test -d "$as_dir" || eval $as_mkdir_p || {
4681     as_dirs=
4682     while :; do
4683       case $as_dir in #(
4684       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4685       *) as_qdir=$as_dir;;
4686       esac
4687       as_dirs="'$as_qdir' $as_dirs"
4688       as_dir=`$as_dirname -- "$as_dir" ||
4689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4690          X"$as_dir" : 'X\(//\)[^/]' \| \
4691          X"$as_dir" : 'X\(//\)$' \| \
4692          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4693 $as_echo X"$as_dir" |
4694     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4695             s//\1/
4696             q
4697           }
4698           /^X\(\/\/\)[^/].*/{
4699             s//\1/
4700             q
4701           }
4702           /^X\(\/\/\)$/{
4703             s//\1/
4704             q
4705           }
4706           /^X\(\/\).*/{
4707             s//\1/
4708             q
4709           }
4710           s/.*/./; q'`
4711       test -d "$as_dir" && break
4712     done
4713     test -z "$as_dirs" || eval "mkdir $as_dirs"
4714   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4715
4716
4717 } # as_fn_mkdir_p
4718 if mkdir -p . 2>/dev/null; then
4719   as_mkdir_p='mkdir -p "$as_dir"'
4720 else
4721   test -d ./-p && rmdir ./-p
4722   as_mkdir_p=false
4723 fi
4724
4725
4726 # as_fn_executable_p FILE
4727 # -----------------------
4728 # Test if FILE is an executable regular file.
4729 as_fn_executable_p ()
4730 {
4731   test -f "$1" && test -x "$1"
4732 } # as_fn_executable_p
4733 as_test_x='test -x'
4734 as_executable_p=as_fn_executable_p
4735
4736 # Sed expression to map a string onto a valid CPP name.
4737 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4738
4739 # Sed expression to map a string onto a valid variable name.
4740 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4741
4742
4743 exec 6>&1
4744 ## ----------------------------------- ##
4745 ## Main body of $CONFIG_STATUS script. ##
4746 ## ----------------------------------- ##
4747 _ASEOF
4748 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4749
4750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4751 # Save the log message, to keep $0 and so on meaningful, and to
4752 # report actual input values of CONFIG_FILES etc. instead of their
4753 # values after options handling.
4754 ac_log="
4755 This file was extended by darkstat $as_me 3.0.719, which was
4756 generated by GNU Autoconf 2.69.  Invocation command line was
4757
4758   CONFIG_FILES    = $CONFIG_FILES
4759   CONFIG_HEADERS  = $CONFIG_HEADERS
4760   CONFIG_LINKS    = $CONFIG_LINKS
4761   CONFIG_COMMANDS = $CONFIG_COMMANDS
4762   $ $0 $@
4763
4764 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4765 "
4766
4767 _ACEOF
4768
4769 case $ac_config_files in *"
4770 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4771 esac
4772
4773 case $ac_config_headers in *"
4774 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4775 esac
4776
4777
4778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4779 # Files that config.status was made for.
4780 config_files="$ac_config_files"
4781 config_headers="$ac_config_headers"
4782
4783 _ACEOF
4784
4785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4786 ac_cs_usage="\
4787 \`$as_me' instantiates files and other configuration actions
4788 from templates according to the current configuration.  Unless the files
4789 and actions are specified as TAGs, all are instantiated by default.
4790
4791 Usage: $0 [OPTION]... [TAG]...
4792
4793   -h, --help       print this help, then exit
4794   -V, --version    print version number and configuration settings, then exit
4795       --config     print configuration, then exit
4796   -q, --quiet, --silent
4797                    do not print progress messages
4798   -d, --debug      don't remove temporary files
4799       --recheck    update $as_me by reconfiguring in the same conditions
4800       --file=FILE[:TEMPLATE]
4801                    instantiate the configuration file FILE
4802       --header=FILE[:TEMPLATE]
4803                    instantiate the configuration header FILE
4804
4805 Configuration files:
4806 $config_files
4807
4808 Configuration headers:
4809 $config_headers
4810
4811 Report bugs to the package provider.
4812 darkstat home page: <https://unix4lyfe.org/darkstat/>."
4813
4814 _ACEOF
4815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4816 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4817 ac_cs_version="\\
4818 darkstat config.status 3.0.719
4819 configured by $0, generated by GNU Autoconf 2.69,
4820   with options \\"\$ac_cs_config\\"
4821
4822 Copyright (C) 2012 Free Software Foundation, Inc.
4823 This config.status script is free software; the Free Software Foundation
4824 gives unlimited permission to copy, distribute and modify it."
4825
4826 ac_pwd='$ac_pwd'
4827 srcdir='$srcdir'
4828 INSTALL='$INSTALL'
4829 test -n "\$AWK" || AWK=awk
4830 _ACEOF
4831
4832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4833 # The default lists apply if the user does not specify any file.
4834 ac_need_defaults=:
4835 while test $# != 0
4836 do
4837   case $1 in
4838   --*=?*)
4839     ac_option=`expr "X$1" : 'X\([^=]*\)='`
4840     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4841     ac_shift=:
4842     ;;
4843   --*=)
4844     ac_option=`expr "X$1" : 'X\([^=]*\)='`
4845     ac_optarg=
4846     ac_shift=:
4847     ;;
4848   *)
4849     ac_option=$1
4850     ac_optarg=$2
4851     ac_shift=shift
4852     ;;
4853   esac
4854
4855   case $ac_option in
4856   # Handling of the options.
4857   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4858     ac_cs_recheck=: ;;
4859   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4860     $as_echo "$ac_cs_version"; exit ;;
4861   --config | --confi | --conf | --con | --co | --c )
4862     $as_echo "$ac_cs_config"; exit ;;
4863   --debug | --debu | --deb | --de | --d | -d )
4864     debug=: ;;
4865   --file | --fil | --fi | --f )
4866     $ac_shift
4867     case $ac_optarg in
4868     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4869     '') as_fn_error $? "missing file argument" ;;
4870     esac
4871     as_fn_append CONFIG_FILES " '$ac_optarg'"
4872     ac_need_defaults=false;;
4873   --header | --heade | --head | --hea )
4874     $ac_shift
4875     case $ac_optarg in
4876     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4877     esac
4878     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4879     ac_need_defaults=false;;
4880   --he | --h)
4881     # Conflict between --help and --header
4882     as_fn_error $? "ambiguous option: \`$1'
4883 Try \`$0 --help' for more information.";;
4884   --help | --hel | -h )
4885     $as_echo "$ac_cs_usage"; exit ;;
4886   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4887   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4888     ac_cs_silent=: ;;
4889
4890   # This is an error.
4891   -*) as_fn_error $? "unrecognized option: \`$1'
4892 Try \`$0 --help' for more information." ;;
4893
4894   *) as_fn_append ac_config_targets " $1"
4895      ac_need_defaults=false ;;
4896
4897   esac
4898   shift
4899 done
4900
4901 ac_configure_extra_args=
4902
4903 if $ac_cs_silent; then
4904   exec 6>/dev/null
4905   ac_configure_extra_args="$ac_configure_extra_args --silent"
4906 fi
4907
4908 _ACEOF
4909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4910 if \$ac_cs_recheck; then
4911   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4912   shift
4913   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4914   CONFIG_SHELL='$SHELL'
4915   export CONFIG_SHELL
4916   exec "\$@"
4917 fi
4918
4919 _ACEOF
4920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4921 exec 5>>config.log
4922 {
4923   echo
4924   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4925 ## Running $as_me. ##
4926 _ASBOX
4927   $as_echo "$ac_log"
4928 } >&5
4929
4930 _ACEOF
4931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4932 _ACEOF
4933
4934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4935
4936 # Handling of arguments.
4937 for ac_config_target in $ac_config_targets
4938 do
4939   case $ac_config_target in
4940     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4941     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4942     "darkstat.8") CONFIG_FILES="$CONFIG_FILES darkstat.8" ;;
4943
4944   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4945   esac
4946 done
4947
4948
4949 # If the user did not use the arguments to specify the items to instantiate,
4950 # then the envvar interface is used.  Set only those that are not.
4951 # We use the long form for the default assignment because of an extremely
4952 # bizarre bug on SunOS 4.1.3.
4953 if $ac_need_defaults; then
4954   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4955   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4956 fi
4957
4958 # Have a temporary directory for convenience.  Make it in the build tree
4959 # simply because there is no reason against having it here, and in addition,
4960 # creating and moving files from /tmp can sometimes cause problems.
4961 # Hook for its removal unless debugging.
4962 # Note that there is a small window in which the directory will not be cleaned:
4963 # after its creation but before its name has been assigned to `$tmp'.
4964 $debug ||
4965 {
4966   tmp= ac_tmp=
4967   trap 'exit_status=$?
4968   : "${ac_tmp:=$tmp}"
4969   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4970 ' 0
4971   trap 'as_fn_exit 1' 1 2 13 15
4972 }
4973 # Create a (secure) tmp directory for tmp files.
4974
4975 {
4976   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4977   test -d "$tmp"
4978 }  ||
4979 {
4980   tmp=./conf$$-$RANDOM
4981   (umask 077 && mkdir "$tmp")
4982 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4983 ac_tmp=$tmp
4984
4985 # Set up the scripts for CONFIG_FILES section.
4986 # No need to generate them if there are no CONFIG_FILES.
4987 # This happens for instance with `./config.status config.h'.
4988 if test -n "$CONFIG_FILES"; then
4989
4990
4991 ac_cr=`echo X | tr X '\015'`
4992 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4993 # But we know of no other shell where ac_cr would be empty at this
4994 # point, so we can use a bashism as a fallback.
4995 if test "x$ac_cr" = x; then
4996   eval ac_cr=\$\'\\r\'
4997 fi
4998 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4999 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5000   ac_cs_awk_cr='\\r'
5001 else
5002   ac_cs_awk_cr=$ac_cr
5003 fi
5004
5005 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5006 _ACEOF
5007
5008
5009 {
5010   echo "cat >conf$$subs.awk <<_ACEOF" &&
5011   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5012   echo "_ACEOF"
5013 } >conf$$subs.sh ||
5014   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5015 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5016 ac_delim='%!_!# '
5017 for ac_last_try in false false false false false :; do
5018   . ./conf$$subs.sh ||
5019     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5020
5021   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5022   if test $ac_delim_n = $ac_delim_num; then
5023     break
5024   elif $ac_last_try; then
5025     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5026   else
5027     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5028   fi
5029 done
5030 rm -f conf$$subs.sh
5031
5032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5033 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5034 _ACEOF
5035 sed -n '
5036 h
5037 s/^/S["/; s/!.*/"]=/
5038 p
5039 g
5040 s/^[^!]*!//
5041 :repl
5042 t repl
5043 s/'"$ac_delim"'$//
5044 t delim
5045 :nl
5046 h
5047 s/\(.\{148\}\)..*/\1/
5048 t more1
5049 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5050 p
5051 n
5052 b repl
5053 :more1
5054 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5055 p
5056 g
5057 s/.\{148\}//
5058 t nl
5059 :delim
5060 h
5061 s/\(.\{148\}\)..*/\1/
5062 t more2
5063 s/["\\]/\\&/g; s/^/"/; s/$/"/
5064 p
5065 b
5066 :more2
5067 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5068 p
5069 g
5070 s/.\{148\}//
5071 t delim
5072 ' <conf$$subs.awk | sed '
5073 /^[^""]/{
5074   N
5075   s/\n//
5076 }
5077 ' >>$CONFIG_STATUS || ac_write_fail=1
5078 rm -f conf$$subs.awk
5079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5080 _ACAWK
5081 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5082   for (key in S) S_is_set[key] = 1
5083   FS = "\a"
5084
5085 }
5086 {
5087   line = $ 0
5088   nfields = split(line, field, "@")
5089   substed = 0
5090   len = length(field[1])
5091   for (i = 2; i < nfields; i++) {
5092     key = field[i]
5093     keylen = length(key)
5094     if (S_is_set[key]) {
5095       value = S[key]
5096       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5097       len += length(value) + length(field[++i])
5098       substed = 1
5099     } else
5100       len += 1 + keylen
5101   }
5102
5103   print line
5104 }
5105
5106 _ACAWK
5107 _ACEOF
5108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5109 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5110   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5111 else
5112   cat
5113 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5114   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5115 _ACEOF
5116
5117 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5118 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5119 # trailing colons and then remove the whole line if VPATH becomes empty
5120 # (actually we leave an empty line to preserve line numbers).
5121 if test "x$srcdir" = x.; then
5122   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
5123 h
5124 s///
5125 s/^/:/
5126 s/[      ]*$/:/
5127 s/:\$(srcdir):/:/g
5128 s/:\${srcdir}:/:/g
5129 s/:@srcdir@:/:/g
5130 s/^:*//
5131 s/:*$//
5132 x
5133 s/\(=[   ]*\).*/\1/
5134 G
5135 s/\n//
5136 s/^[^=]*=[       ]*$//
5137 }'
5138 fi
5139
5140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5141 fi # test -n "$CONFIG_FILES"
5142
5143 # Set up the scripts for CONFIG_HEADERS section.
5144 # No need to generate them if there are no CONFIG_HEADERS.
5145 # This happens for instance with `./config.status Makefile'.
5146 if test -n "$CONFIG_HEADERS"; then
5147 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5148 BEGIN {
5149 _ACEOF
5150
5151 # Transform confdefs.h into an awk script `defines.awk', embedded as
5152 # here-document in config.status, that substitutes the proper values into
5153 # config.h.in to produce config.h.
5154
5155 # Create a delimiter string that does not exist in confdefs.h, to ease
5156 # handling of long lines.
5157 ac_delim='%!_!# '
5158 for ac_last_try in false false :; do
5159   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5160   if test -z "$ac_tt"; then
5161     break
5162   elif $ac_last_try; then
5163     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5164   else
5165     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5166   fi
5167 done
5168
5169 # For the awk script, D is an array of macro values keyed by name,
5170 # likewise P contains macro parameters if any.  Preserve backslash
5171 # newline sequences.
5172
5173 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5174 sed -n '
5175 s/.\{148\}/&'"$ac_delim"'/g
5176 t rset
5177 :rset
5178 s/^[     ]*#[    ]*define[       ][      ]*/ /
5179 t def
5180 d
5181 :def
5182 s/\\$//
5183 t bsnl
5184 s/["\\]/\\&/g
5185 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5186 D["\1"]=" \3"/p
5187 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
5188 d
5189 :bsnl
5190 s/["\\]/\\&/g
5191 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5192 D["\1"]=" \3\\\\\\n"\\/p
5193 t cont
5194 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5195 t cont
5196 d
5197 :cont
5198 n
5199 s/.\{148\}/&'"$ac_delim"'/g
5200 t clear
5201 :clear
5202 s/\\$//
5203 t bsnlc
5204 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5205 d
5206 :bsnlc
5207 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5208 b cont
5209 ' <confdefs.h | sed '
5210 s/'"$ac_delim"'/"\\\
5211 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5212
5213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5214   for (key in D) D_is_set[key] = 1
5215   FS = "\a"
5216 }
5217 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5218   line = \$ 0
5219   split(line, arg, " ")
5220   if (arg[1] == "#") {
5221     defundef = arg[2]
5222     mac1 = arg[3]
5223   } else {
5224     defundef = substr(arg[1], 2)
5225     mac1 = arg[2]
5226   }
5227   split(mac1, mac2, "(") #)
5228   macro = mac2[1]
5229   prefix = substr(line, 1, index(line, defundef) - 1)
5230   if (D_is_set[macro]) {
5231     # Preserve the white space surrounding the "#".
5232     print prefix "define", macro P[macro] D[macro]
5233     next
5234   } else {
5235     # Replace #undef with comments.  This is necessary, for example,
5236     # in the case of _POSIX_SOURCE, which is predefined and required
5237     # on some systems where configure will not decide to define it.
5238     if (defundef == "undef") {
5239       print "/*", prefix defundef, macro, "*/"
5240       next
5241     }
5242   }
5243 }
5244 { print }
5245 _ACAWK
5246 _ACEOF
5247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5248   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5249 fi # test -n "$CONFIG_HEADERS"
5250
5251
5252 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
5253 shift
5254 for ac_tag
5255 do
5256   case $ac_tag in
5257   :[FHLC]) ac_mode=$ac_tag; continue;;
5258   esac
5259   case $ac_mode$ac_tag in
5260   :[FHL]*:*);;
5261   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5262   :[FH]-) ac_tag=-:-;;
5263   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5264   esac
5265   ac_save_IFS=$IFS
5266   IFS=:
5267   set x $ac_tag
5268   IFS=$ac_save_IFS
5269   shift
5270   ac_file=$1
5271   shift
5272
5273   case $ac_mode in
5274   :L) ac_source=$1;;
5275   :[FH])
5276     ac_file_inputs=
5277     for ac_f
5278     do
5279       case $ac_f in
5280       -) ac_f="$ac_tmp/stdin";;
5281       *) # Look for the file first in the build tree, then in the source tree
5282          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5283          # because $ac_f cannot contain `:'.
5284          test -f "$ac_f" ||
5285            case $ac_f in
5286            [\\/$]*) false;;
5287            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5288            esac ||
5289            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5290       esac
5291       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5292       as_fn_append ac_file_inputs " '$ac_f'"
5293     done
5294
5295     # Let's still pretend it is `configure' which instantiates (i.e., don't
5296     # use $as_me), people would be surprised to read:
5297     #    /* config.h.  Generated by config.status.  */
5298     configure_input='Generated from '`
5299           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5300         `' by configure.'
5301     if test x"$ac_file" != x-; then
5302       configure_input="$ac_file.  $configure_input"
5303       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5304 $as_echo "$as_me: creating $ac_file" >&6;}
5305     fi
5306     # Neutralize special characters interpreted by sed in replacement strings.
5307     case $configure_input in #(
5308     *\&* | *\|* | *\\* )
5309        ac_sed_conf_input=`$as_echo "$configure_input" |
5310        sed 's/[\\\\&|]/\\\\&/g'`;; #(
5311     *) ac_sed_conf_input=$configure_input;;
5312     esac
5313
5314     case $ac_tag in
5315     *:-:* | *:-) cat >"$ac_tmp/stdin" \
5316       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5317     esac
5318     ;;
5319   esac
5320
5321   ac_dir=`$as_dirname -- "$ac_file" ||
5322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5323          X"$ac_file" : 'X\(//\)[^/]' \| \
5324          X"$ac_file" : 'X\(//\)$' \| \
5325          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5326 $as_echo X"$ac_file" |
5327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5328             s//\1/
5329             q
5330           }
5331           /^X\(\/\/\)[^/].*/{
5332             s//\1/
5333             q
5334           }
5335           /^X\(\/\/\)$/{
5336             s//\1/
5337             q
5338           }
5339           /^X\(\/\).*/{
5340             s//\1/
5341             q
5342           }
5343           s/.*/./; q'`
5344   as_dir="$ac_dir"; as_fn_mkdir_p
5345   ac_builddir=.
5346
5347 case "$ac_dir" in
5348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5349 *)
5350   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5351   # A ".." for each directory in $ac_dir_suffix.
5352   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5353   case $ac_top_builddir_sub in
5354   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5355   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5356   esac ;;
5357 esac
5358 ac_abs_top_builddir=$ac_pwd
5359 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5360 # for backward compatibility:
5361 ac_top_builddir=$ac_top_build_prefix
5362
5363 case $srcdir in
5364   .)  # We are building in place.
5365     ac_srcdir=.
5366     ac_top_srcdir=$ac_top_builddir_sub
5367     ac_abs_top_srcdir=$ac_pwd ;;
5368   [\\/]* | ?:[\\/]* )  # Absolute name.
5369     ac_srcdir=$srcdir$ac_dir_suffix;
5370     ac_top_srcdir=$srcdir
5371     ac_abs_top_srcdir=$srcdir ;;
5372   *) # Relative name.
5373     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5374     ac_top_srcdir=$ac_top_build_prefix$srcdir
5375     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5376 esac
5377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5378
5379
5380   case $ac_mode in
5381   :F)
5382   #
5383   # CONFIG_FILE
5384   #
5385
5386   case $INSTALL in
5387   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5388   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5389   esac
5390 _ACEOF
5391
5392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5393 # If the template does not know about datarootdir, expand it.
5394 # FIXME: This hack should be removed a few years after 2.60.
5395 ac_datarootdir_hack=; ac_datarootdir_seen=
5396 ac_sed_dataroot='
5397 /datarootdir/ {
5398   p
5399   q
5400 }
5401 /@datadir@/p
5402 /@docdir@/p
5403 /@infodir@/p
5404 /@localedir@/p
5405 /@mandir@/p'
5406 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5407 *datarootdir*) ac_datarootdir_seen=yes;;
5408 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5410 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5411 _ACEOF
5412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5413   ac_datarootdir_hack='
5414   s&@datadir@&$datadir&g
5415   s&@docdir@&$docdir&g
5416   s&@infodir@&$infodir&g
5417   s&@localedir@&$localedir&g
5418   s&@mandir@&$mandir&g
5419   s&\\\${datarootdir}&$datarootdir&g' ;;
5420 esac
5421 _ACEOF
5422
5423 # Neutralize VPATH when `$srcdir' = `.'.
5424 # Shell code in configure.ac might set extrasub.
5425 # FIXME: do we really want to maintain this feature?
5426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5427 ac_sed_extra="$ac_vpsub
5428 $extrasub
5429 _ACEOF
5430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5431 :t
5432 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5433 s|@configure_input@|$ac_sed_conf_input|;t t
5434 s&@top_builddir@&$ac_top_builddir_sub&;t t
5435 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5436 s&@srcdir@&$ac_srcdir&;t t
5437 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5438 s&@top_srcdir@&$ac_top_srcdir&;t t
5439 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5440 s&@builddir@&$ac_builddir&;t t
5441 s&@abs_builddir@&$ac_abs_builddir&;t t
5442 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5443 s&@INSTALL@&$ac_INSTALL&;t t
5444 $ac_datarootdir_hack
5445 "
5446 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5447   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5448
5449 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5450   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5451   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
5452       "$ac_tmp/out"`; test -z "$ac_out"; } &&
5453   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5454 which seems to be undefined.  Please make sure it is defined" >&5
5455 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5456 which seems to be undefined.  Please make sure it is defined" >&2;}
5457
5458   rm -f "$ac_tmp/stdin"
5459   case $ac_file in
5460   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5461   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5462   esac \
5463   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5464  ;;
5465   :H)
5466   #
5467   # CONFIG_HEADER
5468   #
5469   if test x"$ac_file" != x-; then
5470     {
5471       $as_echo "/* $configure_input  */" \
5472       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5473     } >"$ac_tmp/config.h" \
5474       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5475     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5476       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5477 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5478     else
5479       rm -f "$ac_file"
5480       mv "$ac_tmp/config.h" "$ac_file" \
5481         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5482     fi
5483   else
5484     $as_echo "/* $configure_input  */" \
5485       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5486       || as_fn_error $? "could not create -" "$LINENO" 5
5487   fi
5488  ;;
5489
5490
5491   esac
5492
5493 done # for ac_tag
5494
5495
5496 as_fn_exit 0
5497 _ACEOF
5498 ac_clean_files=$ac_clean_files_save
5499
5500 test $ac_write_fail = 0 ||
5501   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5502
5503
5504 # configure is writing to config.log, and then calls config.status.
5505 # config.status does its own redirection, appending to config.log.
5506 # Unfortunately, on DOS this fails, as config.log is still kept open
5507 # by configure, so config.status won't be able to write to it; its
5508 # output is simply discarded.  So we exec the FD to /dev/null,
5509 # effectively closing config.log, so it can be properly (re)opened and
5510 # appended to by config.status.  When coming back to configure, we
5511 # need to make the FD available again.
5512 if test "$no_create" != yes; then
5513   ac_cs_success=:
5514   ac_config_status_args=
5515   test "$silent" = yes &&
5516     ac_config_status_args="$ac_config_status_args --quiet"
5517   exec 5>/dev/null
5518   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5519   exec 5>>config.log
5520   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5521   # would make configure fail if this is the last instruction.
5522   $ac_cs_success || as_fn_exit 1
5523 fi
5524 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5526 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5527 fi
5528