2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for darkstat 3.0.715.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix=/usr/local
550 ac_config_libobj_dir=.
557 # Identity of this package.
558 PACKAGE_NAME='darkstat'
559 PACKAGE_TARNAME='darkstat'
560 PACKAGE_VERSION='3.0.715'
561 PACKAGE_STRING='darkstat 3.0.715'
563 PACKAGE_URL='http://unix4lyfe.org/darkstat/'
565 ac_unique_file="darkstat.c"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
602 ac_subst_vars='LTLIBOBJS
645 program_transform_name
658 enable_option_checking
666 ac_precious_vars='build_alias
677 # Initialize some variables set by options.
679 ac_init_version=false
680 ac_unrecognized_opts=
682 # The variables have the same names as the options, with
683 # dashes changed to underlines.
691 program_transform_name=s,x,x,
699 # Installation directory options.
700 # These are left unexpanded so users can "make install exec_prefix=/foo"
701 # and all the variables that are supposed to be based on exec_prefix
702 # by default will actually change.
703 # Use braces instead of parens because sh, perl, etc. also accept them.
704 # (The list follows the same order as the GNU Coding Standards.)
705 bindir='${exec_prefix}/bin'
706 sbindir='${exec_prefix}/sbin'
707 libexecdir='${exec_prefix}/libexec'
708 datarootdir='${prefix}/share'
709 datadir='${datarootdir}'
710 sysconfdir='${prefix}/etc'
711 sharedstatedir='${prefix}/com'
712 localstatedir='${prefix}/var'
713 includedir='${prefix}/include'
714 oldincludedir='/usr/include'
715 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
716 infodir='${datarootdir}/info'
721 libdir='${exec_prefix}/lib'
722 localedir='${datarootdir}/locale'
723 mandir='${datarootdir}/man'
729 # If the previous option needs an argument, assign it.
730 if test -n "$ac_prev"; then
731 eval $ac_prev=\$ac_option
737 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
742 # Accept the important Cygnus configure options, so we can diagnose typos.
744 case $ac_dashdash$ac_option in
748 -bindir | --bindir | --bindi | --bind | --bin | --bi)
750 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
753 -build | --build | --buil | --bui | --bu)
754 ac_prev=build_alias ;;
755 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
756 build_alias=$ac_optarg ;;
758 -cache-file | --cache-file | --cache-fil | --cache-fi \
759 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
760 ac_prev=cache_file ;;
761 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
762 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
763 cache_file=$ac_optarg ;;
766 cache_file=config.cache ;;
768 -datadir | --datadir | --datadi | --datad)
770 -datadir=* | --datadir=* | --datadi=* | --datad=*)
771 datadir=$ac_optarg ;;
773 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
774 | --dataroo | --dataro | --datar)
775 ac_prev=datarootdir ;;
776 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
777 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
778 datarootdir=$ac_optarg ;;
780 -disable-* | --disable-*)
781 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
784 as_fn_error $? "invalid feature name: $ac_useropt"
785 ac_useropt_orig=$ac_useropt
786 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
787 case $ac_user_opts in
791 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
792 ac_unrecognized_sep=', ';;
794 eval enable_$ac_useropt=no ;;
796 -docdir | --docdir | --docdi | --doc | --do)
798 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
801 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
803 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
806 -enable-* | --enable-*)
807 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
808 # Reject names that are not valid shell variable names.
809 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
810 as_fn_error $? "invalid feature name: $ac_useropt"
811 ac_useropt_orig=$ac_useropt
812 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
813 case $ac_user_opts in
817 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
818 ac_unrecognized_sep=', ';;
820 eval enable_$ac_useropt=\$ac_optarg ;;
822 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
823 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
824 | --exec | --exe | --ex)
825 ac_prev=exec_prefix ;;
826 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
827 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
828 | --exec=* | --exe=* | --ex=*)
829 exec_prefix=$ac_optarg ;;
831 -gas | --gas | --ga | --g)
832 # Obsolete; use --with-gas.
835 -help | --help | --hel | --he | -h)
837 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
838 ac_init_help=recursive ;;
839 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
840 ac_init_help=short ;;
842 -host | --host | --hos | --ho)
843 ac_prev=host_alias ;;
844 -host=* | --host=* | --hos=* | --ho=*)
845 host_alias=$ac_optarg ;;
847 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
849 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
851 htmldir=$ac_optarg ;;
853 -includedir | --includedir | --includedi | --included | --include \
854 | --includ | --inclu | --incl | --inc)
855 ac_prev=includedir ;;
856 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
857 | --includ=* | --inclu=* | --incl=* | --inc=*)
858 includedir=$ac_optarg ;;
860 -infodir | --infodir | --infodi | --infod | --info | --inf)
862 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
863 infodir=$ac_optarg ;;
865 -libdir | --libdir | --libdi | --libd)
867 -libdir=* | --libdir=* | --libdi=* | --libd=*)
870 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
871 | --libexe | --libex | --libe)
872 ac_prev=libexecdir ;;
873 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
874 | --libexe=* | --libex=* | --libe=*)
875 libexecdir=$ac_optarg ;;
877 -localedir | --localedir | --localedi | --localed | --locale)
879 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
880 localedir=$ac_optarg ;;
882 -localstatedir | --localstatedir | --localstatedi | --localstated \
883 | --localstate | --localstat | --localsta | --localst | --locals)
884 ac_prev=localstatedir ;;
885 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
886 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
887 localstatedir=$ac_optarg ;;
889 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
891 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
895 # Obsolete; use --without-fp.
898 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
899 | --no-cr | --no-c | -n)
902 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
903 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
906 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
907 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
908 | --oldin | --oldi | --old | --ol | --o)
909 ac_prev=oldincludedir ;;
910 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
911 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
912 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
913 oldincludedir=$ac_optarg ;;
915 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
917 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
920 -program-prefix | --program-prefix | --program-prefi | --program-pref \
921 | --program-pre | --program-pr | --program-p)
922 ac_prev=program_prefix ;;
923 -program-prefix=* | --program-prefix=* | --program-prefi=* \
924 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
925 program_prefix=$ac_optarg ;;
927 -program-suffix | --program-suffix | --program-suffi | --program-suff \
928 | --program-suf | --program-su | --program-s)
929 ac_prev=program_suffix ;;
930 -program-suffix=* | --program-suffix=* | --program-suffi=* \
931 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
932 program_suffix=$ac_optarg ;;
934 -program-transform-name | --program-transform-name \
935 | --program-transform-nam | --program-transform-na \
936 | --program-transform-n | --program-transform- \
937 | --program-transform | --program-transfor \
938 | --program-transfo | --program-transf \
939 | --program-trans | --program-tran \
940 | --progr-tra | --program-tr | --program-t)
941 ac_prev=program_transform_name ;;
942 -program-transform-name=* | --program-transform-name=* \
943 | --program-transform-nam=* | --program-transform-na=* \
944 | --program-transform-n=* | --program-transform-=* \
945 | --program-transform=* | --program-transfor=* \
946 | --program-transfo=* | --program-transf=* \
947 | --program-trans=* | --program-tran=* \
948 | --progr-tra=* | --program-tr=* | --program-t=*)
949 program_transform_name=$ac_optarg ;;
951 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
953 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
956 -psdir | --psdir | --psdi | --psd | --ps)
958 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
961 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
962 | -silent | --silent | --silen | --sile | --sil)
965 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
967 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
969 sbindir=$ac_optarg ;;
971 -sharedstatedir | --sharedstatedir | --sharedstatedi \
972 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
973 | --sharedst | --shareds | --shared | --share | --shar \
975 ac_prev=sharedstatedir ;;
976 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
977 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
978 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
980 sharedstatedir=$ac_optarg ;;
982 -site | --site | --sit)
984 -site=* | --site=* | --sit=*)
987 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
989 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
992 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
993 | --syscon | --sysco | --sysc | --sys | --sy)
994 ac_prev=sysconfdir ;;
995 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
996 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
997 sysconfdir=$ac_optarg ;;
999 -target | --target | --targe | --targ | --tar | --ta | --t)
1000 ac_prev=target_alias ;;
1001 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1002 target_alias=$ac_optarg ;;
1004 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1007 -version | --version | --versio | --versi | --vers | -V)
1008 ac_init_version=: ;;
1011 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error $? "invalid package name: $ac_useropt"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1024 eval with_$ac_useropt=\$ac_optarg ;;
1026 -without-* | --without-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid package name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1040 eval with_$ac_useropt=no ;;
1043 # Obsolete; use --with-x.
1046 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1047 | --x-incl | --x-inc | --x-in | --x-i)
1048 ac_prev=x_includes ;;
1049 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1050 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1051 x_includes=$ac_optarg ;;
1053 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1054 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1055 ac_prev=x_libraries ;;
1056 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1057 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1058 x_libraries=$ac_optarg ;;
1060 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1061 Try \`$0 --help' for more information"
1065 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1066 # Reject names that are not valid shell variable names.
1067 case $ac_envvar in #(
1068 '' | [0-9]* | *[!_$as_cr_alnum]* )
1069 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1071 eval $ac_envvar=\$ac_optarg
1072 export $ac_envvar ;;
1075 # FIXME: should be removed in autoconf 3.0.
1076 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1077 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1079 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1085 if test -n "$ac_prev"; then
1086 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1087 as_fn_error $? "missing argument to $ac_option"
1090 if test -n "$ac_unrecognized_opts"; then
1091 case $enable_option_checking in
1093 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1094 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1098 # Check all directory arguments for consistency.
1099 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1100 datadir sysconfdir sharedstatedir localstatedir includedir \
1101 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1102 libdir localedir mandir
1104 eval ac_val=\$$ac_var
1105 # Remove trailing slashes.
1108 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1109 eval $ac_var=\$ac_val;;
1111 # Be sure to have absolute directory names.
1113 [\\/$]* | ?:[\\/]* ) continue;;
1114 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1116 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1119 # There might be people who depend on the old broken behavior: `$host'
1120 # used to hold the argument of --host etc.
1121 # FIXME: To remove some day.
1124 target=$target_alias
1126 # FIXME: To remove some day.
1127 if test "x$host_alias" != x; then
1128 if test "x$build_alias" = x; then
1129 cross_compiling=maybe
1130 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1131 If a cross compiler is detected then cross compile mode will be used" >&2
1132 elif test "x$build_alias" != "x$host_alias"; then
1138 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1140 test "$silent" = yes && exec 6>/dev/null
1143 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1144 ac_ls_di=`ls -di .` &&
1145 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1146 as_fn_error $? "working directory cannot be determined"
1147 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1148 as_fn_error $? "pwd does not report name of working directory"
1151 # Find the source files, if location was not specified.
1152 if test -z "$srcdir"; then
1153 ac_srcdir_defaulted=yes
1154 # Try the directory containing this script, then the parent directory.
1155 ac_confdir=`$as_dirname -- "$as_myself" ||
1156 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1157 X"$as_myself" : 'X\(//\)[^/]' \| \
1158 X"$as_myself" : 'X\(//\)$' \| \
1159 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1160 $as_echo X"$as_myself" |
1161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1183 ac_srcdir_defaulted=no
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1186 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1187 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1189 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1191 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1193 # When building in place, set srcdir=.
1194 if test "$ac_abs_confdir" = "$ac_pwd"; then
1197 # Remove unnecessary trailing slashes from srcdir.
1198 # Double slashes in file names in object file debugging info
1199 # mess up M-x gdb in Emacs.
1201 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1203 for ac_var in $ac_precious_vars; do
1204 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1205 eval ac_env_${ac_var}_value=\$${ac_var}
1206 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1207 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1211 # Report the --help message.
1213 if test "$ac_init_help" = "long"; then
1214 # Omit some internal or obsolete options to make the list less imposing.
1215 # This message is too long to be a string in the A/UX 3.1 sh.
1217 \`configure' configures darkstat 3.0.715 to adapt to many kinds of systems.
1219 Usage: $0 [OPTION]... [VAR=VALUE]...
1221 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1222 VAR=VALUE. See below for descriptions of some of the useful variables.
1224 Defaults for the options are specified in brackets.
1227 -h, --help display this help and exit
1228 --help=short display options specific to this package
1229 --help=recursive display the short help of all the included packages
1230 -V, --version display version information and exit
1231 -q, --quiet, --silent do not print \`checking ...' messages
1232 --cache-file=FILE cache test results in FILE [disabled]
1233 -C, --config-cache alias for \`--cache-file=config.cache'
1234 -n, --no-create do not create output files
1235 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1237 Installation directories:
1238 --prefix=PREFIX install architecture-independent files in PREFIX
1239 [$ac_default_prefix]
1240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1243 By default, \`make install' will install all the files in
1244 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1245 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1246 for instance \`--prefix=\$HOME'.
1248 For better control, use the options below.
1250 Fine tuning of the installation directories:
1251 --bindir=DIR user executables [EPREFIX/bin]
1252 --sbindir=DIR system admin executables [EPREFIX/sbin]
1253 --libexecdir=DIR program executables [EPREFIX/libexec]
1254 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1255 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1256 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1257 --libdir=DIR object code libraries [EPREFIX/lib]
1258 --includedir=DIR C header files [PREFIX/include]
1259 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1260 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1261 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1262 --infodir=DIR info documentation [DATAROOTDIR/info]
1263 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1264 --mandir=DIR man documentation [DATAROOTDIR/man]
1265 --docdir=DIR documentation root [DATAROOTDIR/doc/darkstat]
1266 --htmldir=DIR html documentation [DOCDIR]
1267 --dvidir=DIR dvi documentation [DOCDIR]
1268 --pdfdir=DIR pdf documentation [DOCDIR]
1269 --psdir=DIR ps documentation [DOCDIR]
1276 if test -n "$ac_init_help"; then
1277 case $ac_init_help in
1278 short | recursive ) echo "Configuration of darkstat 3.0.715:";;
1283 --disable-option-checking ignore unrecognized --enable/--with options
1284 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1285 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1286 --enable-silent-rules less verbose build output (undo: 'make V=1')
1287 --disable-silent-rules verbose build output (undo: 'make V=0')
1288 --disable-debug turn off debugging code and asserts
1289 --enable-mad-warnings turn on lots of compile-time warnings, these are
1290 GCC-specific and only really useful for development
1293 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1294 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1295 --with-chroot-dir specify the chroot directory (default: /var/empty)
1296 --with-privdrop-user specify which user to drop privileges to (default:
1298 --with-pcap=DIR prefix to libpcap installation
1300 Some influential environment variables:
1301 CC C compiler command
1302 CFLAGS C compiler flags
1303 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1304 nonstandard directory <lib dir>
1305 LIBS libraries to pass to the linker, e.g. -l<library>
1306 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1307 you have headers in a nonstandard directory <include dir>
1310 Use these variables to override the choices made by `configure' or to help
1311 it to find libraries and programs with nonstandard names/locations.
1313 Report bugs to the package provider.
1314 darkstat home page: <http://unix4lyfe.org/darkstat/>.
1319 if test "$ac_init_help" = "recursive"; then
1320 # If there are subdirs, report their specific --help.
1321 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1322 test -d "$ac_dir" ||
1323 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1328 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1330 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1331 # A ".." for each directory in $ac_dir_suffix.
1332 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1333 case $ac_top_builddir_sub in
1334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1338 ac_abs_top_builddir=$ac_pwd
1339 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1340 # for backward compatibility:
1341 ac_top_builddir=$ac_top_build_prefix
1344 .) # We are building in place.
1346 ac_top_srcdir=$ac_top_builddir_sub
1347 ac_abs_top_srcdir=$ac_pwd ;;
1348 [\\/]* | ?:[\\/]* ) # Absolute name.
1349 ac_srcdir=$srcdir$ac_dir_suffix;
1350 ac_top_srcdir=$srcdir
1351 ac_abs_top_srcdir=$srcdir ;;
1353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1354 ac_top_srcdir=$ac_top_build_prefix$srcdir
1355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1357 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1359 cd "$ac_dir" || { ac_status=$?; continue; }
1360 # Check for guested configure.
1361 if test -f "$ac_srcdir/configure.gnu"; then
1363 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1364 elif test -f "$ac_srcdir/configure"; then
1366 $SHELL "$ac_srcdir/configure" --help=recursive
1368 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1370 cd "$ac_pwd" || { ac_status=$?; break; }
1374 test -n "$ac_init_help" && exit $ac_status
1375 if $ac_init_version; then
1377 darkstat configure 3.0.715
1378 generated by GNU Autoconf 2.68
1380 Copyright (C) 2010 Free Software Foundation, Inc.
1381 This configure script is free software; the Free Software Foundation
1382 gives unlimited permission to copy, distribute and modify it.
1387 ## ------------------------ ##
1388 ## Autoconf initialization. ##
1389 ## ------------------------ ##
1391 # ac_fn_c_try_compile LINENO
1392 # --------------------------
1393 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1394 ac_fn_c_try_compile ()
1396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1397 rm -f conftest.$ac_objext
1398 if { { ac_try="$ac_compile"
1400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1401 *) ac_try_echo=$ac_try;;
1403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1404 $as_echo "$ac_try_echo"; } >&5
1405 (eval "$ac_compile") 2>conftest.err
1407 if test -s conftest.err; then
1408 grep -v '^ *+' conftest.err >conftest.er1
1409 cat conftest.er1 >&5
1410 mv -f conftest.er1 conftest.err
1412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1413 test $ac_status = 0; } && {
1414 test -z "$ac_c_werror_flag" ||
1415 test ! -s conftest.err
1416 } && test -s conftest.$ac_objext; then :
1419 $as_echo "$as_me: failed program was:" >&5
1420 sed 's/^/| /' conftest.$ac_ext >&5
1424 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1425 as_fn_set_status $ac_retval
1427 } # ac_fn_c_try_compile
1429 # ac_fn_c_try_link LINENO
1430 # -----------------------
1431 # Try to link conftest.$ac_ext, and return whether this succeeded.
1434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1435 rm -f conftest.$ac_objext conftest$ac_exeext
1436 if { { ac_try="$ac_link"
1438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1439 *) ac_try_echo=$ac_try;;
1441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1442 $as_echo "$ac_try_echo"; } >&5
1443 (eval "$ac_link") 2>conftest.err
1445 if test -s conftest.err; then
1446 grep -v '^ *+' conftest.err >conftest.er1
1447 cat conftest.er1 >&5
1448 mv -f conftest.er1 conftest.err
1450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1451 test $ac_status = 0; } && {
1452 test -z "$ac_c_werror_flag" ||
1453 test ! -s conftest.err
1454 } && test -s conftest$ac_exeext && {
1455 test "$cross_compiling" = yes ||
1456 $as_test_x conftest$ac_exeext
1460 $as_echo "$as_me: failed program was:" >&5
1461 sed 's/^/| /' conftest.$ac_ext >&5
1465 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1466 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1467 # interfere with the next link command; also delete a directory that is
1468 # left behind by Apple's compiler. We do this before executing the actions.
1469 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1470 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1471 as_fn_set_status $ac_retval
1473 } # ac_fn_c_try_link
1475 # ac_fn_c_try_cpp LINENO
1476 # ----------------------
1477 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1481 if { { ac_try="$ac_cpp conftest.$ac_ext"
1483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1484 *) ac_try_echo=$ac_try;;
1486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1487 $as_echo "$ac_try_echo"; } >&5
1488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1490 if test -s conftest.err; then
1491 grep -v '^ *+' conftest.err >conftest.er1
1492 cat conftest.er1 >&5
1493 mv -f conftest.er1 conftest.err
1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1496 test $ac_status = 0; } > conftest.i && {
1497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1498 test ! -s conftest.err
1502 $as_echo "$as_me: failed program was:" >&5
1503 sed 's/^/| /' conftest.$ac_ext >&5
1507 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1508 as_fn_set_status $ac_retval
1512 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1513 # -------------------------------------------------------
1514 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1515 # the include files in INCLUDES and setting the cache variable VAR
1517 ac_fn_c_check_header_mongrel ()
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 if eval \${$3+:} false; then :
1521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1522 $as_echo_n "checking for $2... " >&6; }
1523 if eval \${$3+:} false; then :
1524 $as_echo_n "(cached) " >&6
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1528 $as_echo "$ac_res" >&6; }
1530 # Is the header compilable?
1531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1532 $as_echo_n "checking $2 usability... " >&6; }
1533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1534 /* end confdefs.h. */
1538 if ac_fn_c_try_compile "$LINENO"; then :
1539 ac_header_compiler=yes
1541 ac_header_compiler=no
1543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1545 $as_echo "$ac_header_compiler" >&6; }
1547 # Is the header present?
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1549 $as_echo_n "checking $2 presence... " >&6; }
1550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1551 /* end confdefs.h. */
1554 if ac_fn_c_try_cpp "$LINENO"; then :
1555 ac_header_preproc=yes
1557 ac_header_preproc=no
1559 rm -f conftest.err conftest.i conftest.$ac_ext
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1561 $as_echo "$ac_header_preproc" >&6; }
1563 # So? What about this header?
1564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1567 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1569 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1573 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1575 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1577 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1579 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1581 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585 $as_echo_n "checking for $2... " >&6; }
1586 if eval \${$3+:} false; then :
1587 $as_echo_n "(cached) " >&6
1589 eval "$3=\$ac_header_compiler"
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593 $as_echo "$ac_res" >&6; }
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 } # ac_fn_c_check_header_mongrel
1599 # ac_fn_c_try_run LINENO
1600 # ----------------------
1601 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1602 # that executables *can* be run.
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_link"
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_link") 2>&5
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1617 { { case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_try") 2>&5
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; }; }; then :
1629 $as_echo "$as_me: program exited with status $ac_status" >&5
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1633 ac_retval=$ac_status
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1641 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642 # -------------------------------------------------------
1643 # Tests whether HEADER exists and can be compiled using the include files in
1644 # INCLUDES, setting the cache variable VAR accordingly.
1645 ac_fn_c_check_header_compile ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if eval \${$3+:} false; then :
1651 $as_echo_n "(cached) " >&6
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1658 if ac_fn_c_try_compile "$LINENO"; then :
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 $as_echo "$ac_res" >&6; }
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 } # ac_fn_c_check_header_compile
1671 cat >config.log <<_ACEOF
1672 This file contains any messages produced by compilers while
1673 running configure, to aid debugging if configure makes a mistake.
1675 It was created by darkstat $as_me 3.0.715, which was
1676 generated by GNU Autoconf 2.68. Invocation command line was
1688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1697 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1698 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1700 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1701 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1702 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1703 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 test -z "$as_dir" && as_dir=.
1712 $as_echo "PATH: $as_dir"
1728 # Keep a trace of the command line.
1729 # Strip out --no-create and --no-recursion so they do not pile up.
1730 # Strip out --silent because we don't want to record it for future runs.
1731 # Also quote any args containing shell meta-characters.
1732 # Make two passes to allow for proper duplicate-argument suppression.
1736 ac_must_keep_next=false
1742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744 | -silent | --silent | --silen | --sile | --sil)
1747 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1750 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1752 as_fn_append ac_configure_args1 " '$ac_arg'"
1753 if test $ac_must_keep_next = true; then
1754 ac_must_keep_next=false # Got value, back to normal.
1757 *=* | --config-cache | -C | -disable-* | --disable-* \
1758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1760 | -with-* | --with-* | -without-* | --without-* | --x)
1761 case "$ac_configure_args0 " in
1762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1765 -* ) ac_must_keep_next=true ;;
1768 as_fn_append ac_configure_args " '$ac_arg'"
1773 { ac_configure_args0=; unset ac_configure_args0;}
1774 { ac_configure_args1=; unset ac_configure_args1;}
1776 # When interrupted or exit'd, cleanup temporary files, and complete
1777 # config.log. We remove comments because anyway the quotes in there
1778 # would cause problems or look ugly.
1779 # WARNING: Use '\'' to represent an apostrophe within the trap.
1780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1781 trap 'exit_status=$?
1782 # Save into config.log some information that might help in debugging.
1786 $as_echo "## ---------------- ##
1787 ## Cache variables. ##
1788 ## ---------------- ##"
1790 # The following way of writing the cache mishandles newlines in values,
1792 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1793 eval ac_val=\$$ac_var
1797 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1801 _ | IFS | as_nl) ;; #(
1802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1803 *) { eval $ac_var=; unset $ac_var;} ;;
1808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 *${as_nl}ac_space=\ *)
1811 "s/'\''/'\''\\\\'\'''\''/g;
1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1822 $as_echo "## ----------------- ##
1823 ## Output variables. ##
1824 ## ----------------- ##"
1826 for ac_var in $ac_subst_vars
1828 eval ac_val=\$$ac_var
1830 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832 $as_echo "$ac_var='\''$ac_val'\''"
1836 if test -n "$ac_subst_files"; then
1837 $as_echo "## ------------------- ##
1838 ## File substitutions. ##
1839 ## ------------------- ##"
1841 for ac_var in $ac_subst_files
1843 eval ac_val=\$$ac_var
1845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 $as_echo "$ac_var='\''$ac_val'\''"
1852 if test -s confdefs.h; then
1853 $as_echo "## ----------- ##
1860 test "$ac_signal" != 0 &&
1861 $as_echo "$as_me: caught signal $ac_signal"
1862 $as_echo "$as_me: exit $exit_status"
1864 rm -f core *.core core.conftest.* &&
1865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1868 for ac_signal in 1 2 13 15; do
1869 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1874 rm -f -r conftest* confdefs.h
1876 $as_echo "/* confdefs.h */" > confdefs.h
1878 # Predefined preprocessor variables.
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_STRING "$PACKAGE_STRING"
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_URL "$PACKAGE_URL"
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer an explicitly selected file to automatically selected ones.
1909 if test -n "$CONFIG_SITE"; then
1910 # We do not want a PATH search for config.site.
1911 case $CONFIG_SITE in #((
1912 -*) ac_site_file1=./$CONFIG_SITE;;
1913 */*) ac_site_file1=$CONFIG_SITE;;
1914 *) ac_site_file1=./$CONFIG_SITE;;
1916 elif test "x$prefix" != xNONE; then
1917 ac_site_file1=$prefix/share/config.site
1918 ac_site_file2=$prefix/etc/config.site
1920 ac_site_file1=$ac_default_prefix/share/config.site
1921 ac_site_file2=$ac_default_prefix/etc/config.site
1923 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1925 test "x$ac_site_file" = xNONE && continue
1926 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1928 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1929 sed 's/^/| /' "$ac_site_file" >&5
1931 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1933 as_fn_error $? "failed to load site script $ac_site_file
1934 See \`config.log' for more details" "$LINENO" 5; }
1938 if test -r "$cache_file"; then
1939 # Some versions of bash will fail to source /dev/null (special files
1940 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1941 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1943 $as_echo "$as_me: loading cache $cache_file" >&6;}
1945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946 *) . "./$cache_file";;
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1951 $as_echo "$as_me: creating cache $cache_file" >&6;}
1955 # Check that the precious variables saved in the cache have kept the same
1957 ac_cache_corrupted=false
1958 for ac_var in $ac_precious_vars; do
1959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
1961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
1963 case $ac_old_set,$ac_new_set in
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1970 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
1975 # differences in whitespace do not lead to failure.
1976 ac_old_val_w=`echo x $ac_old_val`
1977 ac_new_val_w=`echo x $ac_new_val`
1978 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1980 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981 ac_cache_corrupted=:
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1984 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1985 eval $ac_var=\$ac_old_val
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1988 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1990 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1993 # Pass precious variables to config.status.
1994 if test "$ac_new_set" = set; then
1996 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 *) ac_arg=$ac_var=$ac_new_val ;;
1999 case " $ac_configure_args " in
2000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2001 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2005 if $ac_cache_corrupted; then
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2009 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2010 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2012 ## -------------------- ##
2013 ## Main body of script. ##
2014 ## -------------------- ##
2017 ac_cpp='$CPP $CPPFLAGS'
2018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2024 ac_config_headers="$ac_config_headers config.h"
2027 RULE="------------------------------------------------------------"
2029 # Let user specify CHROOT_DIR, or else autodetect it, or else die.
2031 # Check whether --with-chroot-dir was given.
2032 if test "${with_chroot_dir+set}" = set; then :
2033 withval=$with_chroot_dir; if test "x$withval" = "xyes"; then
2034 as_fn_error $? "please specify --with-chroot-dir=/path/to/darkstat/chroot" "$LINENO" 5
2038 # Find an "empty" directory to serve as the chroot.
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $_chd" >&5
2041 $as_echo_n "checking for $_chd... " >&6; }
2042 if test -d $_chd ; then
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found it" >&5
2044 $as_echo "found it" >&6; }
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not there" >&5
2047 $as_echo "not there" >&6; }
2048 _chd="/var/lib/empty"
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $_chd" >&5
2050 $as_echo_n "checking for $_chd... " >&6; }
2051 if test -d $_chd ; then
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found it" >&5
2053 $as_echo "found it" >&6; }
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not there either" >&5
2056 $as_echo "not there either" >&6; }
2057 as_fn_error $? "please specify --with-chroot-dir=/path/to/darkstat/chroot" "$LINENO" 5
2063 cat >>confdefs.h <<_ACEOF
2064 #define CHROOT_DIR "$_chd"
2068 # Allow configure-time override of PRIVDROP_USER.
2070 # Check whether --with-privdrop-user was given.
2071 if test "${with_privdrop_user+set}" = set; then :
2072 withval=$with_privdrop_user; _pdu="$withval"
2078 cat >>confdefs.h <<_ACEOF
2079 #define PRIVDROP_USER "$_pdu"
2083 # Checks for programs.
2085 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2086 if test -f "$ac_dir/install-sh"; then
2088 ac_install_sh="$ac_aux_dir/install-sh -c"
2090 elif test -f "$ac_dir/install.sh"; then
2092 ac_install_sh="$ac_aux_dir/install.sh -c"
2094 elif test -f "$ac_dir/shtool"; then
2096 ac_install_sh="$ac_aux_dir/shtool install -c"
2100 if test -z "$ac_aux_dir"; then
2101 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2109 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2110 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2113 # Find a good install program. We prefer a C program (faster),
2114 # so one script is as good as another. But avoid the broken or
2115 # incompatible versions:
2116 # SysV /etc/install, /usr/sbin/install
2117 # SunOS /usr/etc/install
2118 # IRIX /sbin/install
2120 # AmigaOS /C/install, which installs bootblocks on floppy discs
2121 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2122 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2123 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2124 # OS/2's system install, which has a completely different semantic
2125 # ./install, which can be erroneously created by make from ./install.sh.
2126 # Reject install programs that cannot install multiple files.
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2128 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2129 if test -z "$INSTALL"; then
2130 if ${ac_cv_path_install+:} false; then :
2131 $as_echo_n "(cached) " >&6
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 test -z "$as_dir" && as_dir=.
2138 # Account for people who put trailing slashes in PATH elements.
2139 case $as_dir/ in #((
2140 ./ | .// | /[cC]/* | \
2141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2142 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2145 # OSF1 and SCO ODT 3.0 have their own names for install.
2146 # Don't use installbsd from OSF since it installs stuff as root
2148 for ac_prog in ginstall scoinst install; do
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2151 if test $ac_prog = install &&
2152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153 # AIX install. It has an incompatible calling convention.
2155 elif test $ac_prog = install &&
2156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157 # program-specific install script used by HP pwplus--don't use.
2160 rm -rf conftest.one conftest.two conftest.dir
2161 echo one > conftest.one
2162 echo two > conftest.two
2164 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2165 test -s conftest.one && test -s conftest.two &&
2166 test -s conftest.dir/conftest.one &&
2167 test -s conftest.dir/conftest.two
2169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2182 rm -rf conftest.one conftest.two conftest.dir
2185 if test "${ac_cv_path_install+set}" = set; then
2186 INSTALL=$ac_cv_path_install
2188 # As a last resort, use the slow shell script. Don't cache a
2189 # value for INSTALL within a source directory, because that will
2190 # break other packages using the cache if that directory is
2191 # removed, or if the value is a relative name.
2192 INSTALL=$ac_install_sh
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2196 $as_echo "$INSTALL" >&6; }
2198 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2199 # It thinks the first close brace ends the variable substitution.
2200 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2202 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2204 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211 if test -n "$ac_tool_prefix"; then
2212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2215 $as_echo_n "checking for $ac_word... " >&6; }
2216 if ${ac_cv_prog_CC+:} false; then :
2217 $as_echo_n "(cached) " >&6
2219 if test -n "$CC"; then
2220 ac_cv_prog_CC="$CC" # Let the user override the test.
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2240 if test -n "$CC"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2242 $as_echo "$CC" >&6; }
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2245 $as_echo "no" >&6; }
2250 if test -z "$ac_cv_prog_CC"; then
2252 # Extract the first word of "gcc", so it can be a program name with args.
2253 set dummy gcc; ac_word=$2
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2255 $as_echo_n "checking for $ac_word... " >&6; }
2256 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2257 $as_echo_n "(cached) " >&6
2259 if test -n "$ac_ct_CC"; then
2260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269 ac_cv_prog_ac_ct_CC="gcc"
2270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2280 if test -n "$ac_ct_CC"; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2282 $as_echo "$ac_ct_CC" >&6; }
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2285 $as_echo "no" >&6; }
2288 if test "x$ac_ct_CC" = x; then
2291 case $cross_compiling:$ac_tool_warned in
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2295 ac_tool_warned=yes ;;
2303 if test -z "$CC"; then
2304 if test -n "$ac_tool_prefix"; then
2305 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2306 set dummy ${ac_tool_prefix}cc; ac_word=$2
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2308 $as_echo_n "checking for $ac_word... " >&6; }
2309 if ${ac_cv_prog_CC+:} false; then :
2310 $as_echo_n "(cached) " >&6
2312 if test -n "$CC"; then
2313 ac_cv_prog_CC="$CC" # Let the user override the test.
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_CC="${ac_tool_prefix}cc"
2323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 if test -n "$CC"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2335 $as_echo "$CC" >&6; }
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2338 $as_echo "no" >&6; }
2344 if test -z "$CC"; then
2345 # Extract the first word of "cc", so it can be a program name with args.
2346 set dummy cc; ac_word=$2
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2348 $as_echo_n "checking for $ac_word... " >&6; }
2349 if ${ac_cv_prog_CC+:} false; then :
2350 $as_echo_n "(cached) " >&6
2352 if test -n "$CC"; then
2353 ac_cv_prog_CC="$CC" # Let the user override the test.
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 test -z "$as_dir" && as_dir=.
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2364 ac_prog_rejected=yes
2368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 if test $ac_prog_rejected = yes; then
2376 # We found a bogon in the path, so make sure we never use it.
2377 set dummy $ac_cv_prog_CC
2379 if test $# != 0; then
2380 # We chose a different compiler from the bogus one.
2381 # However, it has the same basename, so the bogon will be chosen
2382 # first if we set CC to just the basename; use the full file name.
2384 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2390 if test -n "$CC"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2392 $as_echo "$CC" >&6; }
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2395 $as_echo "no" >&6; }
2400 if test -z "$CC"; then
2401 if test -n "$ac_tool_prefix"; then
2402 for ac_prog in cl.exe
2404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2407 $as_echo_n "checking for $ac_word... " >&6; }
2408 if ${ac_cv_prog_CC+:} false; then :
2409 $as_echo_n "(cached) " >&6
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2421 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 if test -n "$CC"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2434 $as_echo "$CC" >&6; }
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2437 $as_echo "no" >&6; }
2441 test -n "$CC" && break
2444 if test -z "$CC"; then
2446 for ac_prog in cl.exe
2448 # Extract the first word of "$ac_prog", so it can be a program name with args.
2449 set dummy $ac_prog; ac_word=$2
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2451 $as_echo_n "checking for $ac_word... " >&6; }
2452 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2453 $as_echo_n "(cached) " >&6
2455 if test -n "$ac_ct_CC"; then
2456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465 ac_cv_prog_ac_ct_CC="$ac_prog"
2466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2476 if test -n "$ac_ct_CC"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2478 $as_echo "$ac_ct_CC" >&6; }
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2481 $as_echo "no" >&6; }
2485 test -n "$ac_ct_CC" && break
2488 if test "x$ac_ct_CC" = x; then
2491 case $cross_compiling:$ac_tool_warned in
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2495 ac_tool_warned=yes ;;
2504 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 as_fn_error $? "no acceptable C compiler found in \$PATH
2507 See \`config.log' for more details" "$LINENO" 5; }
2509 # Provide some information about the compiler.
2510 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2513 for ac_option in --version -v -V -qversion; do
2514 { { ac_try="$ac_compiler $ac_option >&5"
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2520 $as_echo "$ac_try_echo"; } >&5
2521 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2523 if test -s conftest.err; then
2525 ... rest of stderr output deleted ...
2526 10q' conftest.err >conftest.er1
2527 cat conftest.er1 >&5
2529 rm -f conftest.er1 conftest.err
2530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2531 test $ac_status = 0; }
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2545 ac_clean_files_save=$ac_clean_files
2546 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2547 # Try to create an executable without -o first, disregard a.out.
2548 # It will help us diagnose broken compilers, and finding out an intuition
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2551 $as_echo_n "checking whether the C compiler works... " >&6; }
2552 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2554 # The possible output files:
2555 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2558 for ac_file in $ac_files
2561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2562 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2567 if { { ac_try="$ac_link_default"
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 $as_echo "$ac_try_echo"; } >&5
2574 (eval "$ac_link_default") 2>&5
2576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577 test $ac_status = 0; }; then :
2578 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2579 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2580 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2581 # so that the user can short-circuit this test for compilers unknown to
2583 for ac_file in $ac_files ''
2585 test -f "$ac_file" || continue
2587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2590 # We found the default executable, but exeext='' is most
2594 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2596 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2598 # We set ac_cv_exeext here because the later test for it is not
2599 # safe: cross compilers may not add the suffix if given an `-o'
2600 # argument, so we may need to know it at that point already.
2601 # Even if this section looks crufty: it has the advantage of
2608 test "$ac_cv_exeext" = no && ac_cv_exeext=
2613 if test -z "$ac_file"; then :
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615 $as_echo "no" >&6; }
2616 $as_echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621 as_fn_error 77 "C compiler cannot create executables
2622 See \`config.log' for more details" "$LINENO" 5; }
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2625 $as_echo "yes" >&6; }
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2628 $as_echo_n "checking for C compiler default output file name... " >&6; }
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2630 $as_echo "$ac_file" >&6; }
2631 ac_exeext=$ac_cv_exeext
2633 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2634 ac_clean_files=$ac_clean_files_save
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2636 $as_echo_n "checking for suffix of executables... " >&6; }
2637 if { { ac_try="$ac_link"
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2643 $as_echo "$ac_try_echo"; } >&5
2644 (eval "$ac_link") 2>&5
2646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2647 test $ac_status = 0; }; then :
2648 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2649 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2650 # work properly (i.e., refer to `conftest.exe'), while it won't with
2652 for ac_file in conftest.exe conftest conftest.*; do
2653 test -f "$ac_file" || continue
2655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2656 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2664 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2665 See \`config.log' for more details" "$LINENO" 5; }
2667 rm -f conftest conftest$ac_cv_exeext
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2669 $as_echo "$ac_cv_exeext" >&6; }
2671 rm -f conftest.$ac_ext
2672 EXEEXT=$ac_cv_exeext
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2680 FILE *f = fopen ("conftest.out", "w");
2681 return ferror (f) || fclose (f) != 0;
2687 ac_clean_files="$ac_clean_files conftest.out"
2688 # Check that the compiler produces executables we can run. If not, either
2689 # the compiler is broken, or we cross compile.
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2691 $as_echo_n "checking whether we are cross compiling... " >&6; }
2692 if test "$cross_compiling" != yes; then
2693 { { ac_try="$ac_link"
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2699 $as_echo "$ac_try_echo"; } >&5
2700 (eval "$ac_link") 2>&5
2702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703 test $ac_status = 0; }
2704 if { ac_try='./conftest$ac_cv_exeext'
2705 { { case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710 $as_echo "$ac_try_echo"; } >&5
2711 (eval "$ac_try") 2>&5
2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714 test $ac_status = 0; }; }; then
2717 if test "$cross_compiling" = maybe; then
2720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2722 as_fn_error $? "cannot run C compiled programs.
2723 If you meant to cross compile, use \`--host'.
2724 See \`config.log' for more details" "$LINENO" 5; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2729 $as_echo "$cross_compiling" >&6; }
2731 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2732 ac_clean_files=$ac_clean_files_save
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2734 $as_echo_n "checking for suffix of object files... " >&6; }
2735 if ${ac_cv_objext+:} false; then :
2736 $as_echo_n "(cached) " >&6
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h. */
2749 rm -f conftest.o conftest.obj
2750 if { { ac_try="$ac_compile"
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2756 $as_echo "$ac_try_echo"; } >&5
2757 (eval "$ac_compile") 2>&5
2759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2760 test $ac_status = 0; }; then :
2761 for ac_file in conftest.o conftest.obj conftest.*; do
2762 test -f "$ac_file" || continue;
2764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2765 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2770 $as_echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2775 as_fn_error $? "cannot compute suffix of object files: cannot compile
2776 See \`config.log' for more details" "$LINENO" 5; }
2778 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2781 $as_echo "$ac_cv_objext" >&6; }
2782 OBJEXT=$ac_cv_objext
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2785 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2786 if ${ac_cv_c_compiler_gnu+:} false; then :
2787 $as_echo_n "(cached) " >&6
2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790 /* end confdefs.h. */
2803 if ac_fn_c_try_compile "$LINENO"; then :
2808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2813 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2814 if test $ac_compiler_gnu = yes; then
2819 ac_test_CFLAGS=${CFLAGS+set}
2820 ac_save_CFLAGS=$CFLAGS
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2822 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2823 if ${ac_cv_prog_cc_g+:} false; then :
2824 $as_echo_n "(cached) " >&6
2826 ac_save_c_werror_flag=$ac_c_werror_flag
2827 ac_c_werror_flag=yes
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h. */
2841 if ac_fn_c_try_compile "$LINENO"; then :
2845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2846 /* end confdefs.h. */
2856 if ac_fn_c_try_compile "$LINENO"; then :
2859 ac_c_werror_flag=$ac_save_c_werror_flag
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2872 if ac_fn_c_try_compile "$LINENO"; then :
2875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880 ac_c_werror_flag=$ac_save_c_werror_flag
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2883 $as_echo "$ac_cv_prog_cc_g" >&6; }
2884 if test "$ac_test_CFLAGS" = set; then
2885 CFLAGS=$ac_save_CFLAGS
2886 elif test $ac_cv_prog_cc_g = yes; then
2887 if test "$GCC" = yes; then
2893 if test "$GCC" = yes; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2900 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2901 if ${ac_cv_prog_cc_c89+:} false; then :
2902 $as_echo_n "(cached) " >&6
2904 ac_cv_prog_cc_c89=no
2906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907 /* end confdefs.h. */
2910 #include <sys/types.h>
2911 #include <sys/stat.h>
2912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2913 struct buf { int x; };
2914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2915 static char *e (p, i)
2921 static char *f (char * (*g) (char **, int), char **p, ...)
2926 s = g (p, va_arg (v,int));
2931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2932 function prototypes and stuff, but not '\xHH' hex character constants.
2933 These don't provoke an error unfortunately, instead are silently treated
2934 as 'x'. The following induces an error, until -std is added to get
2935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2936 array size at least. It's necessary to write '\x00'==0 to get something
2937 that's true only with -std. */
2938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2940 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2941 inside strings and character constants. */
2943 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2945 int test (int i, double x);
2946 struct s1 {int (*f) (int a);};
2947 struct s2 {int (*f) (double a);};
2948 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2954 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2959 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2960 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2962 CC="$ac_save_CC $ac_arg"
2963 if ac_fn_c_try_compile "$LINENO"; then :
2964 ac_cv_prog_cc_c89=$ac_arg
2966 rm -f core conftest.err conftest.$ac_objext
2967 test "x$ac_cv_prog_cc_c89" != "xno" && break
2969 rm -f conftest.$ac_ext
2974 case "x$ac_cv_prog_cc_c89" in
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2977 $as_echo "none needed" >&6; } ;;
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2980 $as_echo "unsupported" >&6; } ;;
2982 CC="$CC $ac_cv_prog_cc_c89"
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2984 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2986 if test "x$ac_cv_prog_cc_c89" != xno; then :
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2998 # Check whether --enable-silent-rules was given.
2999 if test "${enable_silent_rules+set}" = set; then :
3000 enableval=$enable_silent_rules;
3003 case $enable_silent_rules in
3004 no) AM_DEFAULT_VERBOSITY=1;;
3005 *) AM_DEFAULT_VERBOSITY=0;;
3009 # Let user disable debugging symbols so we create smaller binaries.
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want debug code" >&5
3011 $as_echo_n "checking if we want debug code... " >&6; }
3012 # Check whether --enable-debug was given.
3013 if test "${enable_debug+set}" = set; then :
3014 enableval=$enable_debug; if test "x$enableval" = "xno" ; then
3015 CFLAGS="$CFLAGS -DNDEBUG -g0"
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nope" >&5
3017 $as_echo "nope" >&6; }
3018 elif test "x$enableval" = "xyes" ; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure" >&5
3020 $as_echo "sure" >&6; }
3022 CFLAGS="$CFLAGS -g$enableval"
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure ($enableval)" >&5
3024 $as_echo "sure ($enableval)" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure" >&5
3028 $as_echo "sure" >&6; }
3032 # Augment CFLAGS for fun.
3033 echo "int main(void){return 1;}" > conftest.$ac_ext
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your C compiler wants a hit off the pipe" >&5
3036 $as_echo_n "checking if your C compiler wants a hit off the pipe... " >&6; }
3037 save_cflags="$CFLAGS"
3038 CFLAGS="-pipe $CFLAGS"
3039 if (eval $ac_link) 2>/dev/null; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure does" >&5
3041 $as_echo "sure does" >&6; }
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3045 CFLAGS="$save_cflags"
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your C compiler has a link-time optimizer" >&5
3049 $as_echo_n "checking if your C compiler has a link-time optimizer... " >&6; }
3050 if test x$GCC = xyes; then
3051 save_cflags="$CFLAGS"
3052 CFLAGS="-flto $CFLAGS"
3053 if (eval $ac_link) 2>/dev/null; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure does" >&5
3055 $as_echo "sure does" >&6; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 CFLAGS="$save_cflags"
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
3063 $as_echo "skipped" >&6; }
3066 # Check whether --enable-mad-warnings was given.
3067 if test "${enable_mad_warnings+set}" = set; then :
3068 enableval=$enable_mad_warnings; if test "x$enableval" = "xyes" ; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your C compiler can emit certain warnings" >&5
3070 $as_echo_n "checking if your C compiler can emit certain warnings... " >&6; }
3071 save_cflags="$CFLAGS"
3072 CFLAGS="$CFLAGS -fdiagnostics-show-option \
3074 -Waggregate-return \
3076 -Wbad-function-cast \
3081 -Wdeclaration-after-statement \
3082 -Wdisabled-optimization \
3087 -Wformat-nonliteral \
3091 -Wimplicit-function-declaration \
3098 -Wmissing-declarations \
3099 -Wmissing-field-initializers \
3100 -Wmissing-format-attribute \
3101 -Wmissing-include-dirs \
3102 -Wmissing-noreturn \
3103 -Wmissing-prototypes \
3106 -Wold-style-definition \
3116 -Wstrict-aliasing -fstrict-aliasing \
3117 -Wstrict-overflow=5 -fstrict-overflow \
3118 -Wstrict-prototypes \
3126 -Wunsafe-loop-optimizations \
3130 -Wunused-parameter \
3134 -Wvolatile-register-var \
3137 # The above are valid for gcc version 4.2.1.
3139 if (eval $ac_link) 2>/dev/null; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3141 $as_echo "yes" >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your C compiler can emit certain other warnings" >&5
3144 $as_echo_n "checking if your C compiler can emit certain other warnings... " >&6; }
3145 save_cflags="$CFLAGS"
3149 -Wcoverage-mismatch \
3151 -Wignored-qualifiers \
3153 -Wmissing-parameter-type \
3154 -Wold-style-declaration \
3155 -Wpacked-bitfield-compat \
3160 # The above are valid for gcc version 4.4.3.
3161 # We skip the following entirely:
3173 #-Wtraditional-conversion
3176 if (eval $ac_link) 2>/dev/null; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3178 $as_echo "yes" >&6; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 CFLAGS="$save_cflags"
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 CFLAGS="$save_cflags"
3194 rm -f conftest.$ac_objext conftest.$ac_ext
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
3201 $as_echo_n "checking for deflate in -lz... " >&6; }
3202 if ${ac_cv_lib_z_deflate+:} false; then :
3203 $as_echo_n "(cached) " >&6
3205 ac_check_lib_save_LIBS=$LIBS
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h. */
3210 /* Override any GCC internal prototype to avoid an error.
3211 Use char because int might match the return type of a GCC
3212 builtin and then its argument prototype would still apply. */
3225 if ac_fn_c_try_link "$LINENO"; then :
3226 ac_cv_lib_z_deflate=yes
3228 ac_cv_lib_z_deflate=no
3230 rm -f core conftest.err conftest.$ac_objext \
3231 conftest$ac_exeext conftest.$ac_ext
3232 LIBS=$ac_check_lib_save_LIBS
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
3235 $as_echo "$ac_cv_lib_z_deflate" >&6; }
3236 if test "x$ac_cv_lib_z_deflate" = xyes; then :
3237 cat >>confdefs.h <<_ACEOF
3248 I can't link to zlib. You really can't have a modern
3249 operating system without zlib.
3251 If you are using a package-based operating system (like
3252 something with RPMs), see if there is a zlib-devel package
3253 that you can install, to provide the zlib headers and
3258 as_fn_error $? "can't find usable zlib" "$LINENO" 5
3264 # Check for Solaris.
3265 # Must do at least socket and nsl before checking for libpcap.
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
3267 $as_echo_n "checking for library containing gethostbyname... " >&6; }
3268 if ${ac_cv_search_gethostbyname+:} false; then :
3269 $as_echo_n "(cached) " >&6
3271 ac_func_search_save_LIBS=$LIBS
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3275 /* Override any GCC internal prototype to avoid an error.
3276 Use char because int might match the return type of a GCC
3277 builtin and then its argument prototype would still apply. */
3281 char gethostbyname ();
3285 return gethostbyname ();
3290 for ac_lib in '' nsl; do
3291 if test -z "$ac_lib"; then
3292 ac_res="none required"
3295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3297 if ac_fn_c_try_link "$LINENO"; then :
3298 ac_cv_search_gethostbyname=$ac_res
3300 rm -f core conftest.err conftest.$ac_objext \
3302 if ${ac_cv_search_gethostbyname+:} false; then :
3306 if ${ac_cv_search_gethostbyname+:} false; then :
3309 ac_cv_search_gethostbyname=no
3312 LIBS=$ac_func_search_save_LIBS
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
3315 $as_echo "$ac_cv_search_gethostbyname" >&6; }
3316 ac_res=$ac_cv_search_gethostbyname
3317 if test "$ac_res" != no; then :
3318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3321 as_fn_error $? "gethostbyname() not found" "$LINENO" 5
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
3325 $as_echo_n "checking for library containing socket... " >&6; }
3326 if ${ac_cv_search_socket+:} false; then :
3327 $as_echo_n "(cached) " >&6
3329 ac_func_search_save_LIBS=$LIBS
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3333 /* Override any GCC internal prototype to avoid an error.
3334 Use char because int might match the return type of a GCC
3335 builtin and then its argument prototype would still apply. */
3348 for ac_lib in '' socket; do
3349 if test -z "$ac_lib"; then
3350 ac_res="none required"
3353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3355 if ac_fn_c_try_link "$LINENO"; then :
3356 ac_cv_search_socket=$ac_res
3358 rm -f core conftest.err conftest.$ac_objext \
3360 if ${ac_cv_search_socket+:} false; then :
3364 if ${ac_cv_search_socket+:} false; then :
3367 ac_cv_search_socket=no
3370 LIBS=$ac_func_search_save_LIBS
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
3373 $as_echo "$ac_cv_search_socket" >&6; }
3374 ac_res=$ac_cv_search_socket
3375 if test "$ac_res" != no; then :
3376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3379 as_fn_error $? "socket() not found" "$LINENO" 5
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
3383 $as_echo_n "checking for library containing hstrerror... " >&6; }
3384 if ${ac_cv_search_hstrerror+:} false; then :
3385 $as_echo_n "(cached) " >&6
3387 ac_func_search_save_LIBS=$LIBS
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3391 /* Override any GCC internal prototype to avoid an error.
3392 Use char because int might match the return type of a GCC
3393 builtin and then its argument prototype would still apply. */
3401 return hstrerror ();
3406 for ac_lib in '' resolv; do
3407 if test -z "$ac_lib"; then
3408 ac_res="none required"
3411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3413 if ac_fn_c_try_link "$LINENO"; then :
3414 ac_cv_search_hstrerror=$ac_res
3416 rm -f core conftest.err conftest.$ac_objext \
3418 if ${ac_cv_search_hstrerror+:} false; then :
3422 if ${ac_cv_search_hstrerror+:} false; then :
3425 ac_cv_search_hstrerror=no
3428 LIBS=$ac_func_search_save_LIBS
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
3431 $as_echo "$ac_cv_search_hstrerror" >&6; }
3432 ac_res=$ac_cv_search_hstrerror
3433 if test "$ac_res" != no; then :
3434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3437 as_fn_error $? "hstrerror() not found" "$LINENO" 5
3441 # Solaris need sys/filio.h for FIONBIO
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3448 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3449 # On Suns, sometimes $CPP names a directory.
3450 if test -n "$CPP" && test -d "$CPP"; then
3453 if test -z "$CPP"; then
3454 if ${ac_cv_prog_CPP+:} false; then :
3455 $as_echo_n "(cached) " >&6
3457 # Double quotes because CPP needs to be expanded
3458 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3461 for ac_c_preproc_warn_flag in '' yes
3463 # Use a header file that comes with gcc, so configuring glibc
3464 # with a fresh cross-compiler works.
3465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3466 # <limits.h> exists even on freestanding compilers.
3467 # On the NeXT, cc -E runs the code through the compiler's parser,
3468 # not just through cpp. "Syntax error" is here to catch this case.
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3472 # include <limits.h>
3474 # include <assert.h>
3478 if ac_fn_c_try_cpp "$LINENO"; then :
3481 # Broken: fails on valid input.
3484 rm -f conftest.err conftest.i conftest.$ac_ext
3486 # OK, works on sane cases. Now check whether nonexistent headers
3487 # can be detected and how.
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490 #include <ac_nonexistent.h>
3492 if ac_fn_c_try_cpp "$LINENO"; then :
3493 # Broken: success on invalid input.
3496 # Passes both tests.
3500 rm -f conftest.err conftest.i conftest.$ac_ext
3503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3504 rm -f conftest.i conftest.err conftest.$ac_ext
3505 if $ac_preproc_ok; then :
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3518 $as_echo "$CPP" >&6; }
3520 for ac_c_preproc_warn_flag in '' yes
3522 # Use a header file that comes with gcc, so configuring glibc
3523 # with a fresh cross-compiler works.
3524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3525 # <limits.h> exists even on freestanding compilers.
3526 # On the NeXT, cc -E runs the code through the compiler's parser,
3527 # not just through cpp. "Syntax error" is here to catch this case.
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3531 # include <limits.h>
3533 # include <assert.h>
3537 if ac_fn_c_try_cpp "$LINENO"; then :
3540 # Broken: fails on valid input.
3543 rm -f conftest.err conftest.i conftest.$ac_ext
3545 # OK, works on sane cases. Now check whether nonexistent headers
3546 # can be detected and how.
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3549 #include <ac_nonexistent.h>
3551 if ac_fn_c_try_cpp "$LINENO"; then :
3552 # Broken: success on invalid input.
3555 # Passes both tests.
3559 rm -f conftest.err conftest.i conftest.$ac_ext
3562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3563 rm -f conftest.i conftest.err conftest.$ac_ext
3564 if $ac_preproc_ok; then :
3567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3570 See \`config.log' for more details" "$LINENO" 5; }
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3581 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3582 if ${ac_cv_path_GREP+:} false; then :
3583 $as_echo_n "(cached) " >&6
3585 if test -z "$GREP"; then
3586 ac_path_GREP_found=false
3587 # Loop through the user's path and test for each of PROGNAME-LIST
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3592 test -z "$as_dir" && as_dir=.
3593 for ac_prog in grep ggrep; do
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3596 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3597 # Check for GNU ac_path_GREP and select it if it is found.
3598 # Check for GNU $ac_path_GREP
3599 case `"$ac_path_GREP" --version 2>&1` in
3601 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3604 $as_echo_n 0123456789 >"conftest.in"
3607 cat "conftest.in" "conftest.in" >"conftest.tmp"
3608 mv "conftest.tmp" "conftest.in"
3609 cp "conftest.in" "conftest.nl"
3610 $as_echo 'GREP' >> "conftest.nl"
3611 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3613 as_fn_arith $ac_count + 1 && ac_count=$as_val
3614 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3615 # Best one so far, save it but keep looking for a better one
3616 ac_cv_path_GREP="$ac_path_GREP"
3617 ac_path_GREP_max=$ac_count
3619 # 10*(2^10) chars as input seems more than enough
3620 test $ac_count -gt 10 && break
3622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3625 $ac_path_GREP_found && break 3
3630 if test -z "$ac_cv_path_GREP"; then
3631 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3634 ac_cv_path_GREP=$GREP
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3639 $as_echo "$ac_cv_path_GREP" >&6; }
3640 GREP="$ac_cv_path_GREP"
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3644 $as_echo_n "checking for egrep... " >&6; }
3645 if ${ac_cv_path_EGREP+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3649 then ac_cv_path_EGREP="$GREP -E"
3651 if test -z "$EGREP"; then
3652 ac_path_EGREP_found=false
3653 # Loop through the user's path and test for each of PROGNAME-LIST
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3658 test -z "$as_dir" && as_dir=.
3659 for ac_prog in egrep; do
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3662 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3663 # Check for GNU ac_path_EGREP and select it if it is found.
3664 # Check for GNU $ac_path_EGREP
3665 case `"$ac_path_EGREP" --version 2>&1` in
3667 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3670 $as_echo_n 0123456789 >"conftest.in"
3673 cat "conftest.in" "conftest.in" >"conftest.tmp"
3674 mv "conftest.tmp" "conftest.in"
3675 cp "conftest.in" "conftest.nl"
3676 $as_echo 'EGREP' >> "conftest.nl"
3677 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3679 as_fn_arith $ac_count + 1 && ac_count=$as_val
3680 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3681 # Best one so far, save it but keep looking for a better one
3682 ac_cv_path_EGREP="$ac_path_EGREP"
3683 ac_path_EGREP_max=$ac_count
3685 # 10*(2^10) chars as input seems more than enough
3686 test $ac_count -gt 10 && break
3688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3691 $ac_path_EGREP_found && break 3
3696 if test -z "$ac_cv_path_EGREP"; then
3697 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3700 ac_cv_path_EGREP=$EGREP
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3706 $as_echo "$ac_cv_path_EGREP" >&6; }
3707 EGREP="$ac_cv_path_EGREP"
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3711 $as_echo_n "checking for ANSI C header files... " >&6; }
3712 if ${ac_cv_header_stdc+:} false; then :
3713 $as_echo_n "(cached) " >&6
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3730 if ac_fn_c_try_compile "$LINENO"; then :
3731 ac_cv_header_stdc=yes
3733 ac_cv_header_stdc=no
3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 if test $ac_cv_header_stdc = yes; then
3738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3745 $EGREP "memchr" >/dev/null 2>&1; then :
3748 ac_cv_header_stdc=no
3754 if test $ac_cv_header_stdc = yes; then
3755 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3762 $EGREP "free" >/dev/null 2>&1; then :
3765 ac_cv_header_stdc=no
3771 if test $ac_cv_header_stdc = yes; then
3772 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3773 if test "$cross_compiling" = yes; then :
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3780 #if ((' ' & 0x0FF) == 0x020)
3781 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3782 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3784 # define ISLOWER(c) \
3785 (('a' <= (c) && (c) <= 'i') \
3786 || ('j' <= (c) && (c) <= 'r') \
3787 || ('s' <= (c) && (c) <= 'z'))
3788 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3791 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3796 for (i = 0; i < 256; i++)
3797 if (XOR (islower (i), ISLOWER (i))
3798 || toupper (i) != TOUPPER (i))
3803 if ac_fn_c_try_run "$LINENO"; then :
3806 ac_cv_header_stdc=no
3808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3809 conftest.$ac_objext conftest.beam conftest.$ac_ext
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3815 $as_echo "$ac_cv_header_stdc" >&6; }
3816 if test $ac_cv_header_stdc = yes; then
3818 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3822 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3823 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3824 inttypes.h stdint.h unistd.h
3826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3827 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3829 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3830 cat >>confdefs.h <<_ACEOF
3831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3839 for ac_header in sys/filio.h
3841 ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
3842 if test "x$ac_cv_header_sys_filio_h" = xyes; then :
3843 cat >>confdefs.h <<_ACEOF
3844 #define HAVE_SYS_FILIO_H 1
3852 # Debian GNU/kFreeBSD needs net/if_ether.h for ETH_P_IPV6
3853 for ac_header in net/if_ether.h
3855 ac_fn_c_check_header_mongrel "$LINENO" "net/if_ether.h" "ac_cv_header_net_if_ether_h" "$ac_includes_default"
3856 if test "x$ac_cv_header_net_if_ether_h" = xyes; then :
3857 cat >>confdefs.h <<_ACEOF
3858 #define HAVE_NET_IF_ETHER_H 1
3866 # This is the modern way. Older systems use the ioctl method.
3867 for ac_header in ifaddrs.h
3869 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
3870 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
3871 cat >>confdefs.h <<_ACEOF
3872 #define HAVE_IFADDRS_H 1
3880 # Some OSes (Solaris) need sys/sockio.h for SIOCGIFADDR
3881 for ac_header in sys/sockio.h
3883 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
3884 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
3885 cat >>confdefs.h <<_ACEOF
3886 #define HAVE_SYS_SOCKIO_H 1
3896 # Check whether --with-pcap was given.
3897 if test "${with_pcap+set}" = set; then :
3898 withval=$with_pcap; if test "$withval" = yes ; then
3899 as_fn_error $? "must specify a path, as in --with-pcap=DIR" "$LINENO" 5
3901 if test "$withval" != no ; then
3902 PCAP_HOME="$withval"
3907 if test -n "$PCAP_HOME" ; then
3908 LDFLAGS="$LDFLAGS -L$PCAP_HOME/lib"
3909 CPPFLAGS2="$CPPFLAGS -I$PCAP_HOME/include/pcap"
3910 CPPFLAGS="$CPPFLAGS -I$PCAP_HOME/include"
3912 CPPFLAGS2="$CPPFLAGS -I/usr/include/pcap"
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_loop in -lpcap" >&5
3916 $as_echo_n "checking for pcap_loop in -lpcap... " >&6; }
3917 if ${ac_cv_lib_pcap_pcap_loop+:} false; then :
3918 $as_echo_n "(cached) " >&6
3920 ac_check_lib_save_LIBS=$LIBS
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3925 /* Override any GCC internal prototype to avoid an error.
3926 Use char because int might match the return type of a GCC
3927 builtin and then its argument prototype would still apply. */
3935 return pcap_loop ();
3940 if ac_fn_c_try_link "$LINENO"; then :
3941 ac_cv_lib_pcap_pcap_loop=yes
3943 ac_cv_lib_pcap_pcap_loop=no
3945 rm -f core conftest.err conftest.$ac_objext \
3946 conftest$ac_exeext conftest.$ac_ext
3947 LIBS=$ac_check_lib_save_LIBS
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_loop" >&5
3950 $as_echo "$ac_cv_lib_pcap_pcap_loop" >&6; }
3951 if test "x$ac_cv_lib_pcap_pcap_loop" = xyes; then :
3952 cat >>confdefs.h <<_ACEOF
3953 #define HAVE_LIBPCAP 1
3963 if test -z "$PCAP_BROKEN" ; then
3964 for ac_header in pcap.h
3966 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
3967 if test "x$ac_cv_header_pcap_h" = xyes; then :
3968 cat >>confdefs.h <<_ACEOF
3969 #define HAVE_PCAP_H 1
3973 # Couldn't find headers, try include/pcap
3974 CPPFLAGS="$CPPFLAGS2"
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking in include/pcap" >&5
3976 $as_echo "$as_me: checking in include/pcap" >&6;}
3977 unset ac_cv_header_pcap_h
3978 for ac_header in pcap.h
3980 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
3981 if test "x$ac_cv_header_pcap_h" = xyes; then :
3982 cat >>confdefs.h <<_ACEOF
3983 #define HAVE_PCAP_H 1
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: I hate you." >&5
3986 $as_echo "I hate you." >&6; }
3999 if test -n "$PCAP_BROKEN" ; then
4003 darkstat absolutely requires libpcap to be installed. If
4004 it's installed into a prefix that isn't being picked up by
4005 configure, for example /usr/local, re-run configure and add
4006 --with-pcap=/usr/local
4008 If you are using a package-based operating system (like
4009 something with RPMs), see if there is a pcap-devel or
4010 libpcap-devel package that you can install, to provide the
4011 pcap headers and libraries.
4013 Failing all of the above, go to http://www.tcpdump.org/ and
4014 download the source distribution of libpcap and build it
4019 as_fn_error $? "can't find usable libpcap" "$LINENO" 5
4022 # If not in libc, we might find these in libbsd.
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
4024 $as_echo_n "checking for library containing setproctitle... " >&6; }
4025 if ${ac_cv_search_setproctitle+:} false; then :
4026 $as_echo_n "(cached) " >&6
4028 ac_func_search_save_LIBS=$LIBS
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4032 /* Override any GCC internal prototype to avoid an error.
4033 Use char because int might match the return type of a GCC
4034 builtin and then its argument prototype would still apply. */
4038 char setproctitle ();
4042 return setproctitle ();
4047 for ac_lib in '' bsd; do
4048 if test -z "$ac_lib"; then
4049 ac_res="none required"
4052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4054 if ac_fn_c_try_link "$LINENO"; then :
4055 ac_cv_search_setproctitle=$ac_res
4057 rm -f core conftest.err conftest.$ac_objext \
4059 if ${ac_cv_search_setproctitle+:} false; then :
4063 if ${ac_cv_search_setproctitle+:} false; then :
4066 ac_cv_search_setproctitle=no
4069 LIBS=$ac_func_search_save_LIBS
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
4072 $as_echo "$ac_cv_search_setproctitle" >&6; }
4073 ac_res=$ac_cv_search_setproctitle
4074 if test "$ac_res" != no; then :
4075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4077 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strlcpy" >&5
4082 $as_echo_n "checking for library containing strlcpy... " >&6; }
4083 if ${ac_cv_search_strlcpy+:} false; then :
4084 $as_echo_n "(cached) " >&6
4086 ac_func_search_save_LIBS=$LIBS
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4090 /* Override any GCC internal prototype to avoid an error.
4091 Use char because int might match the return type of a GCC
4092 builtin and then its argument prototype would still apply. */
4105 for ac_lib in '' bsd; do
4106 if test -z "$ac_lib"; then
4107 ac_res="none required"
4110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4112 if ac_fn_c_try_link "$LINENO"; then :
4113 ac_cv_search_strlcpy=$ac_res
4115 rm -f core conftest.err conftest.$ac_objext \
4117 if ${ac_cv_search_strlcpy+:} false; then :
4121 if ${ac_cv_search_strlcpy+:} false; then :
4124 ac_cv_search_strlcpy=no
4127 LIBS=$ac_func_search_save_LIBS
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcpy" >&5
4130 $as_echo "$ac_cv_search_strlcpy" >&6; }
4131 ac_res=$ac_cv_search_strlcpy
4132 if test "$ac_res" != no; then :
4133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4135 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strlcat" >&5
4140 $as_echo_n "checking for library containing strlcat... " >&6; }
4141 if ${ac_cv_search_strlcat+:} false; then :
4142 $as_echo_n "(cached) " >&6
4144 ac_func_search_save_LIBS=$LIBS
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4148 /* Override any GCC internal prototype to avoid an error.
4149 Use char because int might match the return type of a GCC
4150 builtin and then its argument prototype would still apply. */
4163 for ac_lib in '' bsd; do
4164 if test -z "$ac_lib"; then
4165 ac_res="none required"
4168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4170 if ac_fn_c_try_link "$LINENO"; then :
4171 ac_cv_search_strlcat=$ac_res
4173 rm -f core conftest.err conftest.$ac_objext \
4175 if ${ac_cv_search_strlcat+:} false; then :
4179 if ${ac_cv_search_strlcat+:} false; then :
4182 ac_cv_search_strlcat=no
4185 LIBS=$ac_func_search_save_LIBS
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcat" >&5
4188 $as_echo "$ac_cv_search_strlcat" >&6; }
4189 ac_res=$ac_cv_search_strlcat
4190 if test "$ac_res" != no; then :
4191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4193 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
4198 for ac_header in bsd/string.h
4200 ac_fn_c_check_header_mongrel "$LINENO" "bsd/string.h" "ac_cv_header_bsd_string_h" "$ac_includes_default"
4201 if test "x$ac_cv_header_bsd_string_h" = xyes; then :
4202 cat >>confdefs.h <<_ACEOF
4203 #define HAVE_BSD_STRING_H 1
4210 for ac_header in bsd/unistd.h
4212 ac_fn_c_check_header_mongrel "$LINENO" "bsd/unistd.h" "ac_cv_header_bsd_unistd_h" "$ac_includes_default"
4213 if test "x$ac_cv_header_bsd_unistd_h" = xyes; then :
4214 cat >>confdefs.h <<_ACEOF
4215 #define HAVE_BSD_UNISTD_H 1
4223 ac_config_files="$ac_config_files Makefile darkstat.8"
4225 cat >confcache <<\_ACEOF
4226 # This file is a shell script that caches the results of configure
4227 # tests run on this system so they can be shared between configure
4228 # scripts and configure runs, see configure's option --config-cache.
4229 # It is not useful on other systems. If it contains results you don't
4230 # want to keep, you may remove or edit it.
4232 # config.status only pays attention to the cache file if you give it
4233 # the --recheck option to rerun configure.
4235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4241 # The following way of writing the cache mishandles newlines in values,
4242 # but we know of no workaround that is simple, portable, and efficient.
4243 # So, we kill variables containing newlines.
4244 # Ultrix sh set writes to stderr and can't be redirected directly,
4245 # and sets the high bit in the cache file unless we assign to the vars.
4247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4248 eval ac_val=\$$ac_var
4252 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4253 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4256 _ | IFS | as_nl) ;; #(
4257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4258 *) { eval $ac_var=; unset $ac_var;} ;;
4264 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4265 *${as_nl}ac_space=\ *)
4266 # `set' does not quote correctly, so add quotes: double-quote
4267 # substitution turns \\\\ into \\, and sed turns \\ into \.
4270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4273 # `set' quotes correctly as required by POSIX, so do not add quotes.
4274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4285 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4287 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4288 if test -w "$cache_file"; then
4289 if test "x$cache_file" != "x/dev/null"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4291 $as_echo "$as_me: updating cache $cache_file" >&6;}
4292 if test ! -f "$cache_file" || test -h "$cache_file"; then
4293 cat confcache >"$cache_file"
4295 case $cache_file in #(
4297 mv -f confcache "$cache_file"$$ &&
4298 mv -f "$cache_file"$$ "$cache_file" ;; #(
4300 mv -f confcache "$cache_file" ;;
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4306 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4311 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4312 # Let make expand exec_prefix.
4313 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4315 DEFS=-DHAVE_CONFIG_H
4320 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4321 # 1. Remove the extension, and $U if already installed.
4322 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4323 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4324 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4325 # will be set to the directory where LIBOBJS objects are built.
4326 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4327 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4331 LTLIBOBJS=$ac_ltlibobjs
4335 : "${CONFIG_STATUS=./config.status}"
4337 ac_clean_files_save=$ac_clean_files
4338 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4340 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4342 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4344 # Generated by $as_me.
4345 # Run this file to recreate the current configuration.
4346 # Compiler output produced by configure, useful for debugging
4347 # configure, is in config.log if it exists.
4353 SHELL=\${CONFIG_SHELL-$SHELL}
4356 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4357 ## -------------------- ##
4358 ## M4sh Initialization. ##
4359 ## -------------------- ##
4361 # Be more Bourne compatible
4362 DUALCASE=1; export DUALCASE # for MKS sh
4363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4366 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4367 # is contrary to our usage. Disable this feature.
4368 alias -g '${1+"$@"}'='"$@"'
4369 setopt NO_GLOB_SUBST
4371 case `(set -o) 2>/dev/null` in #(
4383 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4384 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4386 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4387 # Prefer a ksh shell builtin over an external printf program on Solaris,
4388 # but without wasting forks for bash or zsh.
4389 if test -z "$BASH_VERSION$ZSH_VERSION" \
4390 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4391 as_echo='print -r --'
4392 as_echo_n='print -rn --'
4393 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4394 as_echo='printf %s\n'
4395 as_echo_n='printf %s'
4397 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4398 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4399 as_echo_n='/usr/ucb/echo -n'
4401 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4402 as_echo_n_body='eval
4406 expr "X$arg" : "X\\(.*\\)$as_nl";
4407 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4409 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4411 export as_echo_n_body
4412 as_echo_n='sh -c $as_echo_n_body as_echo'
4415 as_echo='sh -c $as_echo_body as_echo'
4418 # The user is always right.
4419 if test "${PATH_SEPARATOR+set}" != set; then
4421 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4422 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4429 # We need space, tab and new line, in precisely that order. Quoting is
4430 # there to prevent editors from complaining about space-tab.
4431 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4432 # splitting by setting IFS to empty value.)
4435 # Find who we are. Look in the path if we contain no directory separator.
4438 *[\\/]* ) as_myself=$0 ;;
4439 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir=.
4444 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4450 # We did not find ourselves, most probably we were run as `sh COMMAND'
4451 # in which case we are not to be found in the path.
4452 if test "x$as_myself" = x; then
4455 if test ! -f "$as_myself"; then
4456 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4460 # Unset variables that we do not need and which cause bugs (e.g. in
4461 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4462 # suppresses any "Segmentation fault" message there. '((' could
4463 # trigger a bug in pdksh 5.2.14.
4464 for as_var in BASH_ENV ENV MAIL MAILPATH
4465 do eval test x\${$as_var+set} = xset \
4466 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4479 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4482 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4483 # ----------------------------------------
4484 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4485 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4486 # script with STATUS, using 1 if that was 0.
4489 as_status=$1; test $as_status -eq 0 && as_status=1
4491 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4492 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4494 $as_echo "$as_me: error: $2" >&2
4495 as_fn_exit $as_status
4499 # as_fn_set_status STATUS
4500 # -----------------------
4501 # Set $? to STATUS, without forking.
4505 } # as_fn_set_status
4509 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4519 # Portably unset VAR.
4522 { eval $1=; unset $1;}
4524 as_unset=as_fn_unset
4525 # as_fn_append VAR VALUE
4526 # ----------------------
4527 # Append the text in VALUE to the end of the definition contained in VAR. Take
4528 # advantage of any shell optimizations that allow amortized linear growth over
4529 # repeated appends, instead of the typical quadratic growth present in naive
4531 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4532 eval 'as_fn_append ()
4543 # as_fn_arith ARG...
4544 # ------------------
4545 # Perform arithmetic evaluation on the ARGs, and store the result in the
4546 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4547 # must be portable across $(()) and expr.
4548 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4549 eval 'as_fn_arith ()
4556 as_val=`expr "$@" || test $? -eq 1`
4561 if expr a : '\(a\)' >/dev/null 2>&1 &&
4562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4568 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4569 as_basename=basename
4574 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4580 as_me=`$as_basename -- "$0" ||
4581 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4582 X"$0" : 'X\(//\)$' \| \
4583 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4585 sed '/^.*\/\([^/][^/]*\)\/*$/{
4599 # Avoid depending upon Character Ranges.
4600 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4601 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4602 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4603 as_cr_digits='0123456789'
4604 as_cr_alnum=$as_cr_Letters$as_cr_digits
4606 ECHO_C= ECHO_N= ECHO_T=
4607 case `echo -n x` in #(((((
4609 case `echo 'xy\c'` in
4610 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4612 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4619 rm -f conf$$ conf$$.exe conf$$.file
4620 if test -d conf$$.dir; then
4621 rm -f conf$$.dir/conf$$.file
4624 mkdir conf$$.dir 2>/dev/null
4626 if (echo >conf$$.file) 2>/dev/null; then
4627 if ln -s conf$$.file conf$$ 2>/dev/null; then
4629 # ... but there are two gotchas:
4630 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4631 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4632 # In both cases, we have to default to `cp -p'.
4633 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4635 elif ln conf$$.file conf$$ 2>/dev/null; then
4643 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4644 rmdir conf$$.dir 2>/dev/null
4649 # Create "$as_dir" as a directory, including parents if necessary.
4654 -*) as_dir=./$as_dir;;
4656 test -d "$as_dir" || eval $as_mkdir_p || {
4660 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4661 *) as_qdir=$as_dir;;
4663 as_dirs="'$as_qdir' $as_dirs"
4664 as_dir=`$as_dirname -- "$as_dir" ||
4665 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4666 X"$as_dir" : 'X\(//\)[^/]' \| \
4667 X"$as_dir" : 'X\(//\)$' \| \
4668 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4669 $as_echo X"$as_dir" |
4670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4687 test -d "$as_dir" && break
4689 test -z "$as_dirs" || eval "mkdir $as_dirs"
4690 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4694 if mkdir -p . 2>/dev/null; then
4695 as_mkdir_p='mkdir -p "$as_dir"'
4697 test -d ./-p && rmdir ./-p
4701 if test -x / >/dev/null 2>&1; then
4704 if ls -dL / >/dev/null 2>&1; then
4711 if test -d "$1"; then
4717 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4718 ???[sx]*):;;*)false;;esac;fi
4722 as_executable_p=$as_test_x
4724 # Sed expression to map a string onto a valid CPP name.
4725 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4727 # Sed expression to map a string onto a valid variable name.
4728 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4732 ## ----------------------------------- ##
4733 ## Main body of $CONFIG_STATUS script. ##
4734 ## ----------------------------------- ##
4736 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4739 # Save the log message, to keep $0 and so on meaningful, and to
4740 # report actual input values of CONFIG_FILES etc. instead of their
4741 # values after options handling.
4743 This file was extended by darkstat $as_me 3.0.715, which was
4744 generated by GNU Autoconf 2.68. Invocation command line was
4746 CONFIG_FILES = $CONFIG_FILES
4747 CONFIG_HEADERS = $CONFIG_HEADERS
4748 CONFIG_LINKS = $CONFIG_LINKS
4749 CONFIG_COMMANDS = $CONFIG_COMMANDS
4752 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4757 case $ac_config_files in *"
4758 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4761 case $ac_config_headers in *"
4762 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4767 # Files that config.status was made for.
4768 config_files="$ac_config_files"
4769 config_headers="$ac_config_headers"
4773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4775 \`$as_me' instantiates files and other configuration actions
4776 from templates according to the current configuration. Unless the files
4777 and actions are specified as TAGs, all are instantiated by default.
4779 Usage: $0 [OPTION]... [TAG]...
4781 -h, --help print this help, then exit
4782 -V, --version print version number and configuration settings, then exit
4783 --config print configuration, then exit
4784 -q, --quiet, --silent
4785 do not print progress messages
4786 -d, --debug don't remove temporary files
4787 --recheck update $as_me by reconfiguring in the same conditions
4788 --file=FILE[:TEMPLATE]
4789 instantiate the configuration file FILE
4790 --header=FILE[:TEMPLATE]
4791 instantiate the configuration header FILE
4793 Configuration files:
4796 Configuration headers:
4799 Report bugs to the package provider.
4800 darkstat home page: <http://unix4lyfe.org/darkstat/>."
4803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4804 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4806 darkstat config.status 3.0.715
4807 configured by $0, generated by GNU Autoconf 2.68,
4808 with options \\"\$ac_cs_config\\"
4810 Copyright (C) 2010 Free Software Foundation, Inc.
4811 This config.status script is free software; the Free Software Foundation
4812 gives unlimited permission to copy, distribute and modify it."
4817 test -n "\$AWK" || AWK=awk
4820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4821 # The default lists apply if the user does not specify any file.
4827 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4828 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4832 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4844 # Handling of the options.
4845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4847 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4848 $as_echo "$ac_cs_version"; exit ;;
4849 --config | --confi | --conf | --con | --co | --c )
4850 $as_echo "$ac_cs_config"; exit ;;
4851 --debug | --debu | --deb | --de | --d | -d )
4853 --file | --fil | --fi | --f )
4856 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4857 '') as_fn_error $? "missing file argument" ;;
4859 as_fn_append CONFIG_FILES " '$ac_optarg'"
4860 ac_need_defaults=false;;
4861 --header | --heade | --head | --hea )
4864 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4866 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4867 ac_need_defaults=false;;
4869 # Conflict between --help and --header
4870 as_fn_error $? "ambiguous option: \`$1'
4871 Try \`$0 --help' for more information.";;
4872 --help | --hel | -h )
4873 $as_echo "$ac_cs_usage"; exit ;;
4874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4875 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4879 -*) as_fn_error $? "unrecognized option: \`$1'
4880 Try \`$0 --help' for more information." ;;
4882 *) as_fn_append ac_config_targets " $1"
4883 ac_need_defaults=false ;;
4889 ac_configure_extra_args=
4891 if $ac_cs_silent; then
4893 ac_configure_extra_args="$ac_configure_extra_args --silent"
4897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4898 if \$ac_cs_recheck; then
4899 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4901 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4902 CONFIG_SHELL='$SHELL'
4908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4912 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4913 ## Running $as_me. ##
4919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4924 # Handling of arguments.
4925 for ac_config_target in $ac_config_targets
4927 case $ac_config_target in
4928 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4929 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4930 "darkstat.8") CONFIG_FILES="$CONFIG_FILES darkstat.8" ;;
4932 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4937 # If the user did not use the arguments to specify the items to instantiate,
4938 # then the envvar interface is used. Set only those that are not.
4939 # We use the long form for the default assignment because of an extremely
4940 # bizarre bug on SunOS 4.1.3.
4941 if $ac_need_defaults; then
4942 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4943 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4946 # Have a temporary directory for convenience. Make it in the build tree
4947 # simply because there is no reason against having it here, and in addition,
4948 # creating and moving files from /tmp can sometimes cause problems.
4949 # Hook for its removal unless debugging.