2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sysstat 10.2.1.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
578 PACKAGE_NAME='sysstat'
579 PACKAGE_TARNAME='sysstat'
580 PACKAGE_VERSION='10.2.1'
581 PACKAGE_STRING='sysstat 10.2.1'
585 ac_unique_file="ioconf.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars='LTLIBOBJS
719 program_transform_name
732 enable_option_checking
733 with_systemdsystemunitdir
739 enable_compress_manpg
748 ac_precious_vars='build_alias
769 # Initialize some variables set by options.
771 ac_init_version=false
772 ac_unrecognized_opts=
774 # The variables have the same names as the options, with
775 # dashes changed to underlines.
783 program_transform_name=s,x,x,
791 # Installation directory options.
792 # These are left unexpanded so users can "make install exec_prefix=/foo"
793 # and all the variables that are supposed to be based on exec_prefix
794 # by default will actually change.
795 # Use braces instead of parens because sh, perl, etc. also accept them.
796 # (The list follows the same order as the GNU Coding Standards.)
797 bindir='${exec_prefix}/bin'
798 sbindir='${exec_prefix}/sbin'
799 libexecdir='${exec_prefix}/libexec'
800 datarootdir='${prefix}/share'
801 datadir='${datarootdir}'
802 sysconfdir='${prefix}/etc'
803 sharedstatedir='${prefix}/com'
804 localstatedir='${prefix}/var'
805 includedir='${prefix}/include'
806 oldincludedir='/usr/include'
807 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808 infodir='${datarootdir}/info'
813 libdir='${exec_prefix}/lib'
814 localedir='${datarootdir}/locale'
815 mandir='${datarootdir}/man'
821 # If the previous option needs an argument, assign it.
822 if test -n "$ac_prev"; then
823 eval $ac_prev=\$ac_option
829 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 # Accept the important Cygnus configure options, so we can diagnose typos.
836 case $ac_dashdash$ac_option in
840 -bindir | --bindir | --bindi | --bind | --bin | --bi)
842 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845 -build | --build | --buil | --bui | --bu)
846 ac_prev=build_alias ;;
847 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
848 build_alias=$ac_optarg ;;
850 -cache-file | --cache-file | --cache-fil | --cache-fi \
851 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
852 ac_prev=cache_file ;;
853 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
854 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
855 cache_file=$ac_optarg ;;
858 cache_file=config.cache ;;
860 -datadir | --datadir | --datadi | --datad)
862 -datadir=* | --datadir=* | --datadi=* | --datad=*)
863 datadir=$ac_optarg ;;
865 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
866 | --dataroo | --dataro | --datar)
867 ac_prev=datarootdir ;;
868 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
869 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
870 datarootdir=$ac_optarg ;;
872 -disable-* | --disable-*)
873 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876 as_fn_error $? "invalid feature name: $ac_useropt"
877 ac_useropt_orig=$ac_useropt
878 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879 case $ac_user_opts in
883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
884 ac_unrecognized_sep=', ';;
886 eval enable_$ac_useropt=no ;;
888 -docdir | --docdir | --docdi | --doc | --do)
890 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 -enable-* | --enable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
912 eval enable_$ac_useropt=\$ac_optarg ;;
914 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916 | --exec | --exe | --ex)
917 ac_prev=exec_prefix ;;
918 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920 | --exec=* | --exe=* | --ex=*)
921 exec_prefix=$ac_optarg ;;
923 -gas | --gas | --ga | --g)
924 # Obsolete; use --with-gas.
927 -help | --help | --hel | --he | -h)
929 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930 ac_init_help=recursive ;;
931 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932 ac_init_help=short ;;
934 -host | --host | --hos | --ho)
935 ac_prev=host_alias ;;
936 -host=* | --host=* | --hos=* | --ho=*)
937 host_alias=$ac_optarg ;;
939 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
941 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
943 htmldir=$ac_optarg ;;
945 -includedir | --includedir | --includedi | --included | --include \
946 | --includ | --inclu | --incl | --inc)
947 ac_prev=includedir ;;
948 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949 | --includ=* | --inclu=* | --incl=* | --inc=*)
950 includedir=$ac_optarg ;;
952 -infodir | --infodir | --infodi | --infod | --info | --inf)
954 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955 infodir=$ac_optarg ;;
957 -libdir | --libdir | --libdi | --libd)
959 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963 | --libexe | --libex | --libe)
964 ac_prev=libexecdir ;;
965 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966 | --libexe=* | --libex=* | --libe=*)
967 libexecdir=$ac_optarg ;;
969 -localedir | --localedir | --localedi | --localed | --locale)
971 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972 localedir=$ac_optarg ;;
974 -localstatedir | --localstatedir | --localstatedi | --localstated \
975 | --localstate | --localstat | --localsta | --localst | --locals)
976 ac_prev=localstatedir ;;
977 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979 localstatedir=$ac_optarg ;;
981 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
983 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 # Obsolete; use --without-fp.
990 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991 | --no-cr | --no-c | -n)
994 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000 | --oldin | --oldi | --old | --ol | --o)
1001 ac_prev=oldincludedir ;;
1002 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005 oldincludedir=$ac_optarg ;;
1007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010 prefix=$ac_optarg ;;
1012 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013 | --program-pre | --program-pr | --program-p)
1014 ac_prev=program_prefix ;;
1015 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017 program_prefix=$ac_optarg ;;
1019 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020 | --program-suf | --program-su | --program-s)
1021 ac_prev=program_suffix ;;
1022 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024 program_suffix=$ac_optarg ;;
1026 -program-transform-name | --program-transform-name \
1027 | --program-transform-nam | --program-transform-na \
1028 | --program-transform-n | --program-transform- \
1029 | --program-transform | --program-transfor \
1030 | --program-transfo | --program-transf \
1031 | --program-trans | --program-tran \
1032 | --progr-tra | --program-tr | --program-t)
1033 ac_prev=program_transform_name ;;
1034 -program-transform-name=* | --program-transform-name=* \
1035 | --program-transform-nam=* | --program-transform-na=* \
1036 | --program-transform-n=* | --program-transform-=* \
1037 | --program-transform=* | --program-transfor=* \
1038 | --program-transfo=* | --program-transf=* \
1039 | --program-trans=* | --program-tran=* \
1040 | --progr-tra=* | --program-tr=* | --program-t=*)
1041 program_transform_name=$ac_optarg ;;
1043 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1045 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046 pdfdir=$ac_optarg ;;
1048 -psdir | --psdir | --psdi | --psd | --ps)
1050 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1057 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061 sbindir=$ac_optarg ;;
1063 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065 | --sharedst | --shareds | --shared | --share | --shar \
1067 ac_prev=sharedstatedir ;;
1068 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072 sharedstatedir=$ac_optarg ;;
1074 -site | --site | --sit)
1076 -site=* | --site=* | --sit=*)
1079 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082 srcdir=$ac_optarg ;;
1084 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085 | --syscon | --sysco | --sysc | --sys | --sy)
1086 ac_prev=sysconfdir ;;
1087 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089 sysconfdir=$ac_optarg ;;
1091 -target | --target | --targe | --targ | --tar | --ta | --t)
1092 ac_prev=target_alias ;;
1093 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094 target_alias=$ac_optarg ;;
1096 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 -version | --version | --versio | --versi | --vers | -V)
1100 ac_init_version=: ;;
1103 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error $? "invalid package name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1116 eval with_$ac_useropt=\$ac_optarg ;;
1118 -without-* | --without-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1132 eval with_$ac_useropt=no ;;
1135 # Obsolete; use --with-x.
1138 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139 | --x-incl | --x-inc | --x-in | --x-i)
1140 ac_prev=x_includes ;;
1141 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143 x_includes=$ac_optarg ;;
1145 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147 ac_prev=x_libraries ;;
1148 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150 x_libraries=$ac_optarg ;;
1152 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1153 Try \`$0 --help' for more information"
1157 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1158 # Reject names that are not valid shell variable names.
1159 case $ac_envvar in #(
1160 '' | [0-9]* | *[!_$as_cr_alnum]* )
1161 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1163 eval $ac_envvar=\$ac_optarg
1164 export $ac_envvar ;;
1167 # FIXME: should be removed in autoconf 3.0.
1168 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1177 if test -n "$ac_prev"; then
1178 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179 as_fn_error $? "missing argument to $ac_option"
1182 if test -n "$ac_unrecognized_opts"; then
1183 case $enable_option_checking in
1185 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1186 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 # Check all directory arguments for consistency.
1191 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192 datadir sysconfdir sharedstatedir localstatedir includedir \
1193 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194 libdir localedir mandir
1196 eval ac_val=\$$ac_var
1197 # Remove trailing slashes.
1200 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201 eval $ac_var=\$ac_val;;
1203 # Be sure to have absolute directory names.
1205 [\\/$]* | ?:[\\/]* ) continue;;
1206 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1216 target=$target_alias
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220 if test "x$build_alias" = x; then
1221 cross_compiling=maybe
1222 elif test "x$build_alias" != "x$host_alias"; then
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230 test "$silent" = yes && exec 6>/dev/null
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236 as_fn_error $? "working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238 as_fn_error $? "pwd does not report name of working directory"
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243 ac_srcdir_defaulted=yes
1244 # Try the directory containing this script, then the parent directory.
1245 ac_confdir=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247 X"$as_myself" : 'X\(//\)[^/]' \| \
1248 X"$as_myself" : 'X\(//\)$' \| \
1249 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1273 ac_srcdir_defaulted=no
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1279 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1291 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 for ac_var in $ac_precious_vars; do
1294 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_env_${ac_var}_value=\$${ac_var}
1296 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301 # Report the --help message.
1303 if test "$ac_init_help" = "long"; then
1304 # Omit some internal or obsolete options to make the list less imposing.
1305 # This message is too long to be a string in the A/UX 3.1 sh.
1307 \`configure' configures sysstat 10.2.1 to adapt to many kinds of systems.
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE. See below for descriptions of some of the useful variables.
1314 Defaults for the options are specified in brackets.
1317 -h, --help display this help and exit
1318 --help=short display options specific to this package
1319 --help=recursive display the short help of all the included packages
1320 -V, --version display version information and exit
1321 -q, --quiet, --silent do not print \`checking ...' messages
1322 --cache-file=FILE cache test results in FILE [disabled]
1323 -C, --config-cache alias for \`--cache-file=config.cache'
1324 -n, --no-create do not create output files
1325 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327 Installation directories:
1328 --prefix=PREFIX install architecture-independent files in PREFIX
1329 [$ac_default_prefix]
1330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1338 For better control, use the options below.
1340 Fine tuning of the installation directories:
1341 --bindir=DIR user executables [EPREFIX/bin]
1342 --sbindir=DIR system admin executables [EPREFIX/sbin]
1343 --libexecdir=DIR program executables [EPREFIX/libexec]
1344 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1345 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1346 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root [DATAROOTDIR/doc/sysstat]
1356 --htmldir=DIR html documentation [DOCDIR]
1357 --dvidir=DIR dvi documentation [DOCDIR]
1358 --pdfdir=DIR pdf documentation [DOCDIR]
1359 --psdir=DIR ps documentation [DOCDIR]
1366 if test -n "$ac_init_help"; then
1367 case $ac_init_help in
1368 short | recursive ) echo "Configuration of sysstat 10.2.1:";;
1373 --disable-option-checking ignore unrecognized --enable/--with options
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --disable-sensors disable sensors support
1377 --disable-largefile omit support for large files
1378 --disable-nls disable National Language Support
1379 --enable-yesterday tell sa2 to use data file of the day before
1380 --disable-man-group ignore man_group variable value
1381 --enable-compress-manpg compress sysstat manual pages
1382 --enable-install-isag install isag script
1383 --enable-clean-sa-dir clean system activity directory
1384 --enable-install-cron install a crontab to start sar
1385 --enable-collect-all collect all possible activities
1386 --disable-documentation do not install documentation
1387 --enable-debuginfo enable debug output (--debuginfo option)
1388 --disable-stripping do not strip object files
1391 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1392 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1393 --with-systemdsystemunitdir=DIR
1394 Directory for systemd service files
1396 Some influential environment variables:
1397 CC C compiler command
1398 CFLAGS C compiler flags
1399 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1400 nonstandard directory <lib dir>
1401 LIBS libraries to pass to the linker, e.g. -l<library>
1402 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1403 you have headers in a nonstandard directory <include dir>
1405 rcdir run-commands directory
1406 sa_lib_dir sadc directory
1407 sa_dir system activity directory
1408 conf_dir sysstat configuration directory
1409 history number of daily data files to keep (default value is 7)
1411 number of days after which data files are compressed (default
1413 prealloc preallocation factor that will determine data files size
1414 (default value is 1)
1415 man_group group for manual pages
1416 cron_owner crontab owner
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1423 Report bugs to the package provider.
1428 if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" ||
1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1453 .) # We are building in place.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1486 sysstat configure 10.2.1
1487 generated by GNU Autoconf 2.69
1489 Copyright (C) 2012 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1496 ## ------------------------ ##
1497 ## Autoconf initialization. ##
1498 ## ------------------------ ##
1500 # ac_fn_c_try_compile LINENO
1501 # --------------------------
1502 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_compile ()
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 rm -f conftest.$ac_objext
1507 if { { ac_try="$ac_compile"
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_compile") 2>conftest.err
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && {
1523 test -z "$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 } && test -s conftest.$ac_objext; then :
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534 as_fn_set_status $ac_retval
1536 } # ac_fn_c_try_compile
1538 # ac_fn_c_try_cpp LINENO
1539 # ----------------------
1540 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 if { { ac_try="$ac_cpp conftest.$ac_ext"
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } > conftest.i && {
1560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1575 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1576 # -------------------------------------------------------
1577 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1578 # the include files in INCLUDES and setting the cache variable VAR
1580 ac_fn_c_check_header_mongrel ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if eval \${$3+:} false; then :
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
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591 $as_echo "$ac_res" >&6; }
1593 # Is the header compilable?
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1595 $as_echo_n "checking $2 usability... " >&6; }
1596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597 /* end confdefs.h. */
1601 if ac_fn_c_try_compile "$LINENO"; then :
1602 ac_header_compiler=yes
1604 ac_header_compiler=no
1606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1608 $as_echo "$ac_header_compiler" >&6; }
1610 # Is the header present?
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1612 $as_echo_n "checking $2 presence... " >&6; }
1613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614 /* end confdefs.h. */
1617 if ac_fn_c_try_cpp "$LINENO"; then :
1618 ac_header_preproc=yes
1620 ac_header_preproc=no
1622 rm -f conftest.err conftest.i conftest.$ac_ext
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1624 $as_echo "$ac_header_preproc" >&6; }
1626 # So? What about this header?
1627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1630 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1636 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1638 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1640 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1642 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1644 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if eval \${$3+:} false; then :
1650 $as_echo_n "(cached) " >&6
1652 eval "$3=\$ac_header_compiler"
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656 $as_echo "$ac_res" >&6; }
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 } # ac_fn_c_check_header_mongrel
1662 # ac_fn_c_try_run LINENO
1663 # ----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1665 # that executables *can* be run.
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_link"
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>&5
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1680 { { case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_try") 2>&5
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; }; }; then :
1692 $as_echo "$as_me: program exited with status $ac_status" >&5
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1696 ac_retval=$ac_status
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1704 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705 # -------------------------------------------------------
1706 # Tests whether HEADER exists and can be compiled using the include files in
1707 # INCLUDES, setting the cache variable VAR accordingly.
1708 ac_fn_c_check_header_compile ()
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714 $as_echo_n "(cached) " >&6
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1721 if ac_fn_c_try_compile "$LINENO"; then :
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 } # ac_fn_c_check_header_compile
1735 # ac_fn_c_try_link LINENO
1736 # -----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded.
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 test -x conftest$ac_exeext
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1771 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773 # interfere with the next link command; also delete a directory that is
1774 # left behind by Apple's compiler. We do this before executing the actions.
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1779 } # ac_fn_c_try_link
1781 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1782 # -------------------------------------------
1783 # Tests whether TYPE exists after having included INCLUDES, setting cache
1784 # variable VAR accordingly.
1785 ac_fn_c_check_type ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1806 if ac_fn_c_try_compile "$LINENO"; then :
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1819 if ac_fn_c_try_compile "$LINENO"; then :
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 } # ac_fn_c_check_type
1835 # ac_fn_c_check_func LINENO FUNC VAR
1836 # ----------------------------------
1837 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1838 ac_fn_c_check_func ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850 #define $2 innocuous_$2
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1858 # include <limits.h>
1860 # include <assert.h>
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1887 if ac_fn_c_try_link "$LINENO"; then :
1892 rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 } # ac_fn_c_check_func
1901 cat >config.log <<_ACEOF
1902 This file contains any messages produced by compilers while
1903 running configure, to aid debugging if configure makes a mistake.
1905 It was created by sysstat $as_me 10.2.1, which was
1906 generated by GNU Autoconf 2.69. Invocation command line was
1918 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1924 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1927 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir=.
1942 $as_echo "PATH: $as_dir"
1958 # Keep a trace of the command line.
1959 # Strip out --no-create and --no-recursion so they do not pile up.
1960 # Strip out --silent because we don't want to record it for future runs.
1961 # Also quote any args containing shell meta-characters.
1962 # Make two passes to allow for proper duplicate-argument suppression.
1966 ac_must_keep_next=false
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982 as_fn_append ac_configure_args1 " '$ac_arg'"
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1995 -* ) ac_must_keep_next=true ;;
1998 as_fn_append ac_configure_args " '$ac_arg'"
2003 { ac_configure_args0=; unset ac_configure_args0;}
2004 { ac_configure_args1=; unset ac_configure_args1;}
2006 # When interrupted or exit'd, cleanup temporary files, and complete
2007 # config.log. We remove comments because anyway the quotes in there
2008 # would cause problems or look ugly.
2009 # WARNING: Use '\'' to represent an apostrophe within the trap.
2010 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011 trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2016 $as_echo "## ---------------- ##
2017 ## Cache variables. ##
2018 ## ---------------- ##"
2020 # The following way of writing the cache mishandles newlines in values,
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2052 $as_echo "## ----------------- ##
2053 ## Output variables. ##
2054 ## ----------------- ##"
2056 for ac_var in $ac_subst_vars
2058 eval ac_val=\$$ac_var
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062 $as_echo "$ac_var='\''$ac_val'\''"
2066 if test -n "$ac_subst_files"; then
2067 $as_echo "## ------------------- ##
2068 ## File substitutions. ##
2069 ## ------------------- ##"
2071 for ac_var in $ac_subst_files
2073 eval ac_val=\$$ac_var
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077 $as_echo "$ac_var='\''$ac_val'\''"
2082 if test -s confdefs.h; then
2083 $as_echo "## ----------- ##
2090 test "$ac_signal" != 0 &&
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2098 for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2104 rm -f -r conftest* confdefs.h
2106 $as_echo "/* confdefs.h */" > confdefs.h
2108 # Predefined preprocessor variables.
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_NAME "$PACKAGE_NAME"
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_STRING "$PACKAGE_STRING"
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_URL "$PACKAGE_URL"
2135 # Let the site file select an alternate cache file if it wants to.
2136 # Prefer an explicitly selected file to automatically selected ones.
2139 if test -n "$CONFIG_SITE"; then
2140 # We do not want a PATH search for config.site.
2141 case $CONFIG_SITE in #((
2142 -*) ac_site_file1=./$CONFIG_SITE;;
2143 */*) ac_site_file1=$CONFIG_SITE;;
2144 *) ac_site_file1=./$CONFIG_SITE;;
2146 elif test "x$prefix" != xNONE; then
2147 ac_site_file1=$prefix/share/config.site
2148 ac_site_file2=$prefix/etc/config.site
2150 ac_site_file1=$ac_default_prefix/share/config.site
2151 ac_site_file2=$ac_default_prefix/etc/config.site
2153 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2155 test "x$ac_site_file" = xNONE && continue
2156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2159 sed 's/^/| /' "$ac_site_file" >&5
2161 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163 as_fn_error $? "failed to load site script $ac_site_file
2164 See \`config.log' for more details" "$LINENO" 5; }
2168 if test -r "$cache_file"; then
2169 # Some versions of bash will fail to source /dev/null (special files
2170 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2171 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173 $as_echo "$as_me: loading cache $cache_file" >&6;}
2175 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2176 *) . "./$cache_file";;
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181 $as_echo "$as_me: creating cache $cache_file" >&6;}
2185 # Check that the precious variables saved in the cache have kept the same
2187 ac_cache_corrupted=false
2188 for ac_var in $ac_precious_vars; do
2189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2190 eval ac_new_set=\$ac_env_${ac_var}_set
2191 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2192 eval ac_new_val=\$ac_env_${ac_var}_value
2193 case $ac_old_set,$ac_new_set in
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2196 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2200 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2204 if test "x$ac_old_val" != "x$ac_new_val"; then
2205 # differences in whitespace do not lead to failure.
2206 ac_old_val_w=`echo x $ac_old_val`
2207 ac_new_val_w=`echo x $ac_new_val`
2208 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2210 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2211 ac_cache_corrupted=:
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2214 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2215 eval $ac_var=\$ac_old_val
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2218 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2220 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2223 # Pass precious variables to config.status.
2224 if test "$ac_new_set" = set; then
2226 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 *) ac_arg=$ac_var=$ac_new_val ;;
2229 case " $ac_configure_args " in
2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2231 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2235 if $ac_cache_corrupted; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2239 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2240 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2242 ## -------------------- ##
2243 ## Main body of script. ##
2244 ## -------------------- ##
2247 ac_cpp='$CPP $CPPFLAGS'
2248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2254 # Ensure that a recent enough version of Autoconf is being used
2257 # Check whether the configure script is in the right dir
2262 echo Check programs:
2266 ac_cpp='$CPP $CPPFLAGS'
2267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2270 if test -n "$ac_tool_prefix"; then
2271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2272 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2274 $as_echo_n "checking for $ac_word... " >&6; }
2275 if ${ac_cv_prog_CC+:} false; then :
2276 $as_echo_n "(cached) " >&6
2278 if test -n "$CC"; then
2279 ac_cv_prog_CC="$CC" # Let the user override the test.
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 if test -n "$CC"; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2301 $as_echo "$CC" >&6; }
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2304 $as_echo "no" >&6; }
2309 if test -z "$ac_cv_prog_CC"; then
2311 # Extract the first word of "gcc", so it can be a program name with args.
2312 set dummy gcc; ac_word=$2
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2314 $as_echo_n "checking for $ac_word... " >&6; }
2315 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2316 $as_echo_n "(cached) " >&6
2318 if test -n "$ac_ct_CC"; then
2319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2328 ac_cv_prog_ac_ct_CC="gcc"
2329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2339 if test -n "$ac_ct_CC"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2341 $as_echo "$ac_ct_CC" >&6; }
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2344 $as_echo "no" >&6; }
2347 if test "x$ac_ct_CC" = x; then
2350 case $cross_compiling:$ac_tool_warned in
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2354 ac_tool_warned=yes ;;
2362 if test -z "$CC"; then
2363 if test -n "$ac_tool_prefix"; then
2364 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2365 set dummy ${ac_tool_prefix}cc; ac_word=$2
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2367 $as_echo_n "checking for $ac_word... " >&6; }
2368 if ${ac_cv_prog_CC+:} false; then :
2369 $as_echo_n "(cached) " >&6
2371 if test -n "$CC"; then
2372 ac_cv_prog_CC="$CC" # Let the user override the test.
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2381 ac_cv_prog_CC="${ac_tool_prefix}cc"
2382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 if test -n "$CC"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2394 $as_echo "$CC" >&6; }
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397 $as_echo "no" >&6; }
2403 if test -z "$CC"; then
2404 # Extract the first word of "cc", so it can be a program name with args.
2405 set dummy cc; 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.
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2423 ac_prog_rejected=yes
2427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 if test $ac_prog_rejected = yes; then
2435 # We found a bogon in the path, so make sure we never use it.
2436 set dummy $ac_cv_prog_CC
2438 if test $# != 0; then
2439 # We chose a different compiler from the bogus one.
2440 # However, it has the same basename, so the bogon will be chosen
2441 # first if we set CC to just the basename; use the full file name.
2443 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2449 if test -n "$CC"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2451 $as_echo "$CC" >&6; }
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2454 $as_echo "no" >&6; }
2459 if test -z "$CC"; then
2460 if test -n "$ac_tool_prefix"; then
2461 for ac_prog in cl.exe
2463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if ${ac_cv_prog_CC+:} false; then :
2468 $as_echo_n "(cached) " >&6
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC="$CC" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2480 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 if test -n "$CC"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2493 $as_echo "$CC" >&6; }
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2500 test -n "$CC" && break
2503 if test -z "$CC"; then
2505 for ac_prog in cl.exe
2507 # Extract the first word of "$ac_prog", so it can be a program name with args.
2508 set dummy $ac_prog; ac_word=$2
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2510 $as_echo_n "checking for $ac_word... " >&6; }
2511 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2512 $as_echo_n "(cached) " >&6
2514 if test -n "$ac_ct_CC"; then
2515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2524 ac_cv_prog_ac_ct_CC="$ac_prog"
2525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2535 if test -n "$ac_ct_CC"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2537 $as_echo "$ac_ct_CC" >&6; }
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540 $as_echo "no" >&6; }
2544 test -n "$ac_ct_CC" && break
2547 if test "x$ac_ct_CC" = x; then
2550 case $cross_compiling:$ac_tool_warned in
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2554 ac_tool_warned=yes ;;
2563 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565 as_fn_error $? "no acceptable C compiler found in \$PATH
2566 See \`config.log' for more details" "$LINENO" 5; }
2568 # Provide some information about the compiler.
2569 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2572 for ac_option in --version -v -V -qversion; do
2573 { { ac_try="$ac_compiler $ac_option >&5"
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2579 $as_echo "$ac_try_echo"; } >&5
2580 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2582 if test -s conftest.err; then
2584 ... rest of stderr output deleted ...
2585 10q' conftest.err >conftest.er1
2586 cat conftest.er1 >&5
2588 rm -f conftest.er1 conftest.err
2589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2590 test $ac_status = 0; }
2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594 /* end confdefs.h. */
2604 ac_clean_files_save=$ac_clean_files
2605 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2606 # Try to create an executable without -o first, disregard a.out.
2607 # It will help us diagnose broken compilers, and finding out an intuition
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2610 $as_echo_n "checking whether the C compiler works... " >&6; }
2611 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2613 # The possible output files:
2614 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2617 for ac_file in $ac_files
2620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2621 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2626 if { { ac_try="$ac_link_default"
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2632 $as_echo "$ac_try_echo"; } >&5
2633 (eval "$ac_link_default") 2>&5
2635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636 test $ac_status = 0; }; then :
2637 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2638 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2639 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2640 # so that the user can short-circuit this test for compilers unknown to
2642 for ac_file in $ac_files ''
2644 test -f "$ac_file" || continue
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2649 # We found the default executable, but exeext='' is most
2653 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2655 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2657 # We set ac_cv_exeext here because the later test for it is not
2658 # safe: cross compilers may not add the suffix if given an `-o'
2659 # argument, so we may need to know it at that point already.
2660 # Even if this section looks crufty: it has the advantage of
2667 test "$ac_cv_exeext" = no && ac_cv_exeext=
2672 if test -z "$ac_file"; then :
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2675 $as_echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680 as_fn_error 77 "C compiler cannot create executables
2681 See \`config.log' for more details" "$LINENO" 5; }
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2684 $as_echo "yes" >&6; }
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2687 $as_echo_n "checking for C compiler default output file name... " >&6; }
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2689 $as_echo "$ac_file" >&6; }
2690 ac_exeext=$ac_cv_exeext
2692 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2693 ac_clean_files=$ac_clean_files_save
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2695 $as_echo_n "checking for suffix of executables... " >&6; }
2696 if { { ac_try="$ac_link"
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2702 $as_echo "$ac_try_echo"; } >&5
2703 (eval "$ac_link") 2>&5
2705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2706 test $ac_status = 0; }; then :
2707 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2708 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2709 # work properly (i.e., refer to `conftest.exe'), while it won't with
2711 for ac_file in conftest.exe conftest conftest.*; do
2712 test -f "$ac_file" || continue
2714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2715 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2723 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2724 See \`config.log' for more details" "$LINENO" 5; }
2726 rm -f conftest conftest$ac_cv_exeext
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2728 $as_echo "$ac_cv_exeext" >&6; }
2730 rm -f conftest.$ac_ext
2731 EXEEXT=$ac_cv_exeext
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2739 FILE *f = fopen ("conftest.out", "w");
2740 return ferror (f) || fclose (f) != 0;
2746 ac_clean_files="$ac_clean_files conftest.out"
2747 # Check that the compiler produces executables we can run. If not, either
2748 # the compiler is broken, or we cross compile.
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2750 $as_echo_n "checking whether we are cross compiling... " >&6; }
2751 if test "$cross_compiling" != yes; then
2752 { { ac_try="$ac_link"
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2758 $as_echo "$ac_try_echo"; } >&5
2759 (eval "$ac_link") 2>&5
2761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2762 test $ac_status = 0; }
2763 if { ac_try='./conftest$ac_cv_exeext'
2764 { { case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2769 $as_echo "$ac_try_echo"; } >&5
2770 (eval "$ac_try") 2>&5
2772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2773 test $ac_status = 0; }; }; then
2776 if test "$cross_compiling" = maybe; then
2779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781 as_fn_error $? "cannot run C compiled programs.
2782 If you meant to cross compile, use \`--host'.
2783 See \`config.log' for more details" "$LINENO" 5; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2788 $as_echo "$cross_compiling" >&6; }
2790 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2791 ac_clean_files=$ac_clean_files_save
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2793 $as_echo_n "checking for suffix of object files... " >&6; }
2794 if ${ac_cv_objext+:} false; then :
2795 $as_echo_n "(cached) " >&6
2797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2798 /* end confdefs.h. */
2808 rm -f conftest.o conftest.obj
2809 if { { ac_try="$ac_compile"
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815 $as_echo "$ac_try_echo"; } >&5
2816 (eval "$ac_compile") 2>&5
2818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819 test $ac_status = 0; }; then :
2820 for ac_file in conftest.o conftest.obj conftest.*; do
2821 test -f "$ac_file" || continue;
2823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2824 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2829 $as_echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2834 as_fn_error $? "cannot compute suffix of object files: cannot compile
2835 See \`config.log' for more details" "$LINENO" 5; }
2837 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2840 $as_echo "$ac_cv_objext" >&6; }
2841 OBJEXT=$ac_cv_objext
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2844 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2845 if ${ac_cv_c_compiler_gnu+:} false; then :
2846 $as_echo_n "(cached) " >&6
2848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849 /* end confdefs.h. */
2862 if ac_fn_c_try_compile "$LINENO"; then :
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2872 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2873 if test $ac_compiler_gnu = yes; then
2878 ac_test_CFLAGS=${CFLAGS+set}
2879 ac_save_CFLAGS=$CFLAGS
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2881 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2882 if ${ac_cv_prog_cc_g+:} false; then :
2883 $as_echo_n "(cached) " >&6
2885 ac_save_c_werror_flag=$ac_c_werror_flag
2886 ac_c_werror_flag=yes
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2900 if ac_fn_c_try_compile "$LINENO"; then :
2904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905 /* end confdefs.h. */
2915 if ac_fn_c_try_compile "$LINENO"; then :
2918 ac_c_werror_flag=$ac_save_c_werror_flag
2920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2921 /* end confdefs.h. */
2931 if ac_fn_c_try_compile "$LINENO"; then :
2934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2939 ac_c_werror_flag=$ac_save_c_werror_flag
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2942 $as_echo "$ac_cv_prog_cc_g" >&6; }
2943 if test "$ac_test_CFLAGS" = set; then
2944 CFLAGS=$ac_save_CFLAGS
2945 elif test $ac_cv_prog_cc_g = yes; then
2946 if test "$GCC" = yes; then
2952 if test "$GCC" = yes; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2959 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2960 if ${ac_cv_prog_cc_c89+:} false; then :
2961 $as_echo_n "(cached) " >&6
2963 ac_cv_prog_cc_c89=no
2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h. */
2970 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2971 struct buf { int x; };
2972 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2973 static char *e (p, i)
2979 static char *f (char * (*g) (char **, int), char **p, ...)
2984 s = g (p, va_arg (v,int));
2989 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2990 function prototypes and stuff, but not '\xHH' hex character constants.
2991 These don't provoke an error unfortunately, instead are silently treated
2992 as 'x'. The following induces an error, until -std is added to get
2993 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2994 array size at least. It's necessary to write '\x00'==0 to get something
2995 that's true only with -std. */
2996 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2998 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2999 inside strings and character constants. */
3001 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3003 int test (int i, double x);
3004 struct s1 {int (*f) (int a);};
3005 struct s2 {int (*f) (double a);};
3006 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3012 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3017 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3018 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3020 CC="$ac_save_CC $ac_arg"
3021 if ac_fn_c_try_compile "$LINENO"; then :
3022 ac_cv_prog_cc_c89=$ac_arg
3024 rm -f core conftest.err conftest.$ac_objext
3025 test "x$ac_cv_prog_cc_c89" != "xno" && break
3027 rm -f conftest.$ac_ext
3032 case "x$ac_cv_prog_cc_c89" in
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3035 $as_echo "none needed" >&6; } ;;
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3038 $as_echo "unsupported" >&6; } ;;
3040 CC="$CC $ac_cv_prog_cc_c89"
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3042 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3044 if test "x$ac_cv_prog_cc_c89" != xno; then :
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3061 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3062 # On Suns, sometimes $CPP names a directory.
3063 if test -n "$CPP" && test -d "$CPP"; then
3066 if test -z "$CPP"; then
3067 if ${ac_cv_prog_CPP+:} false; then :
3068 $as_echo_n "(cached) " >&6
3070 # Double quotes because CPP needs to be expanded
3071 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3074 for ac_c_preproc_warn_flag in '' yes
3076 # Use a header file that comes with gcc, so configuring glibc
3077 # with a fresh cross-compiler works.
3078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3079 # <limits.h> exists even on freestanding compilers.
3080 # On the NeXT, cc -E runs the code through the compiler's parser,
3081 # not just through cpp. "Syntax error" is here to catch this case.
3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083 /* end confdefs.h. */
3085 # include <limits.h>
3087 # include <assert.h>
3091 if ac_fn_c_try_cpp "$LINENO"; then :
3094 # Broken: fails on valid input.
3097 rm -f conftest.err conftest.i conftest.$ac_ext
3099 # OK, works on sane cases. Now check whether nonexistent headers
3100 # can be detected and how.
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3103 #include <ac_nonexistent.h>
3105 if ac_fn_c_try_cpp "$LINENO"; then :
3106 # Broken: success on invalid input.
3109 # Passes both tests.
3113 rm -f conftest.err conftest.i conftest.$ac_ext
3116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3117 rm -f conftest.i conftest.err conftest.$ac_ext
3118 if $ac_preproc_ok; then :
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3131 $as_echo "$CPP" >&6; }
3133 for ac_c_preproc_warn_flag in '' yes
3135 # Use a header file that comes with gcc, so configuring glibc
3136 # with a fresh cross-compiler works.
3137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3138 # <limits.h> exists even on freestanding compilers.
3139 # On the NeXT, cc -E runs the code through the compiler's parser,
3140 # not just through cpp. "Syntax error" is here to catch this case.
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142 /* end confdefs.h. */
3144 # include <limits.h>
3146 # include <assert.h>
3150 if ac_fn_c_try_cpp "$LINENO"; then :
3153 # Broken: fails on valid input.
3156 rm -f conftest.err conftest.i conftest.$ac_ext
3158 # OK, works on sane cases. Now check whether nonexistent headers
3159 # can be detected and how.
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3162 #include <ac_nonexistent.h>
3164 if ac_fn_c_try_cpp "$LINENO"; then :
3165 # Broken: success on invalid input.
3168 # Passes both tests.
3172 rm -f conftest.err conftest.i conftest.$ac_ext
3175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3176 rm -f conftest.i conftest.err conftest.$ac_ext
3177 if $ac_preproc_ok; then :
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3183 See \`config.log' for more details" "$LINENO" 5; }
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3194 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3195 if ${ac_cv_path_GREP+:} false; then :
3196 $as_echo_n "(cached) " >&6
3198 if test -z "$GREP"; then
3199 ac_path_GREP_found=false
3200 # Loop through the user's path and test for each of PROGNAME-LIST
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3205 test -z "$as_dir" && as_dir=.
3206 for ac_prog in grep ggrep; do
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3209 as_fn_executable_p "$ac_path_GREP" || continue
3210 # Check for GNU ac_path_GREP and select it if it is found.
3211 # Check for GNU $ac_path_GREP
3212 case `"$ac_path_GREP" --version 2>&1` in
3214 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3217 $as_echo_n 0123456789 >"conftest.in"
3220 cat "conftest.in" "conftest.in" >"conftest.tmp"
3221 mv "conftest.tmp" "conftest.in"
3222 cp "conftest.in" "conftest.nl"
3223 $as_echo 'GREP' >> "conftest.nl"
3224 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3226 as_fn_arith $ac_count + 1 && ac_count=$as_val
3227 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3228 # Best one so far, save it but keep looking for a better one
3229 ac_cv_path_GREP="$ac_path_GREP"
3230 ac_path_GREP_max=$ac_count
3232 # 10*(2^10) chars as input seems more than enough
3233 test $ac_count -gt 10 && break
3235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3238 $ac_path_GREP_found && break 3
3243 if test -z "$ac_cv_path_GREP"; then
3244 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3247 ac_cv_path_GREP=$GREP
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3252 $as_echo "$ac_cv_path_GREP" >&6; }
3253 GREP="$ac_cv_path_GREP"
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3257 $as_echo_n "checking for egrep... " >&6; }
3258 if ${ac_cv_path_EGREP+:} false; then :
3259 $as_echo_n "(cached) " >&6
3261 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3262 then ac_cv_path_EGREP="$GREP -E"
3264 if test -z "$EGREP"; then
3265 ac_path_EGREP_found=false
3266 # Loop through the user's path and test for each of PROGNAME-LIST
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3271 test -z "$as_dir" && as_dir=.
3272 for ac_prog in egrep; do
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3275 as_fn_executable_p "$ac_path_EGREP" || continue
3276 # Check for GNU ac_path_EGREP and select it if it is found.
3277 # Check for GNU $ac_path_EGREP
3278 case `"$ac_path_EGREP" --version 2>&1` in
3280 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3283 $as_echo_n 0123456789 >"conftest.in"
3286 cat "conftest.in" "conftest.in" >"conftest.tmp"
3287 mv "conftest.tmp" "conftest.in"
3288 cp "conftest.in" "conftest.nl"
3289 $as_echo 'EGREP' >> "conftest.nl"
3290 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3292 as_fn_arith $ac_count + 1 && ac_count=$as_val
3293 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3294 # Best one so far, save it but keep looking for a better one
3295 ac_cv_path_EGREP="$ac_path_EGREP"
3296 ac_path_EGREP_max=$ac_count
3298 # 10*(2^10) chars as input seems more than enough
3299 test $ac_count -gt 10 && break
3301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3304 $ac_path_EGREP_found && break 3
3309 if test -z "$ac_cv_path_EGREP"; then
3310 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3313 ac_cv_path_EGREP=$EGREP
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3319 $as_echo "$ac_cv_path_EGREP" >&6; }
3320 EGREP="$ac_cv_path_EGREP"
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3324 $as_echo_n "checking for ANSI C header files... " >&6; }
3325 if ${ac_cv_header_stdc+:} false; then :
3326 $as_echo_n "(cached) " >&6
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3343 if ac_fn_c_try_compile "$LINENO"; then :
3344 ac_cv_header_stdc=yes
3346 ac_cv_header_stdc=no
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 if test $ac_cv_header_stdc = yes; then
3351 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3358 $EGREP "memchr" >/dev/null 2>&1; then :
3361 ac_cv_header_stdc=no
3367 if test $ac_cv_header_stdc = yes; then
3368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3375 $EGREP "free" >/dev/null 2>&1; then :
3378 ac_cv_header_stdc=no
3384 if test $ac_cv_header_stdc = yes; then
3385 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3386 if test "$cross_compiling" = yes; then :
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3393 #if ((' ' & 0x0FF) == 0x020)
3394 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3395 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3397 # define ISLOWER(c) \
3398 (('a' <= (c) && (c) <= 'i') \
3399 || ('j' <= (c) && (c) <= 'r') \
3400 || ('s' <= (c) && (c) <= 'z'))
3401 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3404 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3409 for (i = 0; i < 256; i++)
3410 if (XOR (islower (i), ISLOWER (i))
3411 || toupper (i) != TOUPPER (i))
3416 if ac_fn_c_try_run "$LINENO"; then :
3419 ac_cv_header_stdc=no
3421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3422 conftest.$ac_objext conftest.beam conftest.$ac_ext
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3428 $as_echo "$ac_cv_header_stdc" >&6; }
3429 if test $ac_cv_header_stdc = yes; then
3431 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3435 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3436 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3437 inttypes.h stdint.h unistd.h
3439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3440 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3442 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3443 cat >>confdefs.h <<_ACEOF
3444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3453 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3454 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3461 if test "$MINIX" = yes; then
3463 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3466 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3469 $as_echo "#define _MINIX 1" >>confdefs.h
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3475 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3476 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3477 $as_echo_n "(cached) " >&6
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3482 # define __EXTENSIONS__ 1
3483 $ac_includes_default
3492 if ac_fn_c_try_compile "$LINENO"; then :
3493 ac_cv_safe_to_define___extensions__=yes
3495 ac_cv_safe_to_define___extensions__=no
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3500 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3501 test $ac_cv_safe_to_define___extensions__ = yes &&
3502 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3504 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3506 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3508 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3510 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3515 $as_echo_n "checking whether ln -s works... " >&6; }
3517 if test "$LN_S" = "ln -s"; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3519 $as_echo "yes" >&6; }
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3522 $as_echo "no, using $LN_S" >&6; }
3528 # Extract the first word of "chmod", so it can be a program name with args.
3529 set dummy chmod; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_prog_CHMOD+:} false; then :
3533 $as_echo_n "(cached) " >&6
3535 if test -n "$CHMOD"; then
3536 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545 ac_cv_prog_CHMOD="chmod"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 CHMOD=$ac_cv_prog_CHMOD
3556 if test -n "$CHMOD"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3558 $as_echo "$CHMOD" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3565 # Extract the first word of "chown", so it can be a program name with args.
3566 set dummy chown; ac_word=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if ${ac_cv_prog_CHOWN+:} false; then :
3570 $as_echo_n "(cached) " >&6
3572 if test -n "$CHOWN"; then
3573 ac_cv_prog_CHOWN="$CHOWN" # Let the user override the test.
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582 ac_cv_prog_CHOWN="chown"
3583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 CHOWN=$ac_cv_prog_CHOWN
3593 if test -n "$CHOWN"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHOWN" >&5
3595 $as_echo "$CHOWN" >&6; }
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3602 # Extract the first word of "ar", so it can be a program name with args.
3603 set dummy ar; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_AR+:} false; then :
3607 $as_echo_n "(cached) " >&6
3609 if test -n "$AR"; then
3610 ac_cv_prog_AR="$AR" # Let the user override the test.
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 if test -n "$AR"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3632 $as_echo "$AR" >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3639 # Extract the first word of "install", so it can be a program name with args.
3640 set dummy install; ac_word=$2
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 $as_echo_n "checking for $ac_word... " >&6; }
3643 if ${ac_cv_prog_INSTALL+:} false; then :
3644 $as_echo_n "(cached) " >&6
3646 if test -n "$INSTALL"; then
3647 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656 ac_cv_prog_INSTALL="install"
3657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 INSTALL=$ac_cv_prog_INSTALL
3667 if test -n "$INSTALL"; then
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3669 $as_echo "$INSTALL" >&6; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3676 # Extract the first word of "msgfmt", so it can be a program name with args.
3677 set dummy msgfmt; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if ${ac_cv_prog_MSGFMT+:} false; then :
3681 $as_echo_n "(cached) " >&6
3683 if test -n "$MSGFMT"; then
3684 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693 ac_cv_prog_MSGFMT="msgfmt"
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 MSGFMT=$ac_cv_prog_MSGFMT
3704 if test -n "$MSGFMT"; then
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3706 $as_echo "$MSGFMT" >&6; }
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3713 # Extract the first word of "xgettext", so it can be a program name with args.
3714 set dummy xgettext; ac_word=$2
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716 $as_echo_n "checking for $ac_word... " >&6; }
3717 if ${ac_cv_prog_XGETTEXT+:} false; then :
3718 $as_echo_n "(cached) " >&6
3720 if test -n "$XGETTEXT"; then
3721 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3730 ac_cv_prog_XGETTEXT="xgettext"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 XGETTEXT=$ac_cv_prog_XGETTEXT
3741 if test -n "$XGETTEXT"; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3743 $as_echo "$XGETTEXT" >&6; }
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3750 # Extract the first word of "msgmerge", so it can be a program name with args.
3751 set dummy msgmerge; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if ${ac_cv_prog_MSGMERGE+:} false; then :
3755 $as_echo_n "(cached) " >&6
3757 if test -n "$MSGMERGE"; then
3758 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_MSGMERGE="msgmerge"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 MSGMERGE=$ac_cv_prog_MSGMERGE
3778 if test -n "$MSGMERGE"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3780 $as_echo "$MSGMERGE" >&6; }
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3787 for ac_prog in bzip2 gzip
3789 # Extract the first word of "$ac_prog", so it can be a program name with args.
3790 set dummy $ac_prog; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_ZIP+:} false; then :
3794 $as_echo_n "(cached) " >&6
3796 if test -n "$ZIP"; then
3797 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_ZIP="$ac_prog"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 if test -n "$ZIP"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
3819 $as_echo "$ZIP" >&6; }
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3826 test -n "$ZIP" && break
3828 test -n "$ZIP" || ZIP="gzip"
3830 INSTALL_DATA="\${INSTALL} -m 644"
3832 INSTALL_BIN="\${INSTALL} -m 755"
3837 # Extract the first word of "$ac_prog", so it can be a program name with args.
3838 set dummy $ac_prog; ac_word=$2
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 $as_echo_n "checking for $ac_word... " >&6; }
3841 if ${ac_cv_path_PATH_CP+:} false; then :
3842 $as_echo_n "(cached) " >&6
3846 ac_cv_path_PATH_CP="$PATH_CP" # Let the user override the test with a path.
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856 ac_cv_path_PATH_CP="$as_dir/$ac_word$ac_exec_ext"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 PATH_CP=$ac_cv_path_PATH_CP
3868 if test -n "$PATH_CP"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_CP" >&5
3870 $as_echo "$PATH_CP" >&6; }
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3877 test -n "$PATH_CP" && break
3879 test -n "$PATH_CP" || PATH_CP="cp"
3881 for ac_prog in chkconfig
3883 # Extract the first word of "$ac_prog", so it can be a program name with args.
3884 set dummy $ac_prog; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_path_PATH_CHKCONFIG+:} false; then :
3888 $as_echo_n "(cached) " >&6
3890 case $PATH_CHKCONFIG in
3892 ac_cv_path_PATH_CHKCONFIG="$PATH_CHKCONFIG" # Let the user override the test with a path.
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_path_PATH_CHKCONFIG="$as_dir/$ac_word$ac_exec_ext"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 PATH_CHKCONFIG=$ac_cv_path_PATH_CHKCONFIG
3914 if test -n "$PATH_CHKCONFIG"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_CHKCONFIG" >&5
3916 $as_echo "$PATH_CHKCONFIG" >&6; }
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3923 test -n "$PATH_CHKCONFIG" && break
3925 test -n "$PATH_CHKCONFIG" || PATH_CHKCONFIG="chkconfig"
3929 # Extract the first word of "pkg-config", so it can be a program name with args.
3930 set dummy pkg-config; ac_word=$2
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
3934 $as_echo_n "(cached) " >&6
3936 if test -n "$PKG_CONFIG"; then
3937 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946 ac_cv_prog_PKG_CONFIG="pkg-config"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3957 if test -n "$PKG_CONFIG"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3959 $as_echo "$PKG_CONFIG" >&6; }
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3966 for ac_prog in systemctl
3968 # Extract the first word of "$ac_prog", so it can be a program name with args.
3969 set dummy $ac_prog; ac_word=$2
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971 $as_echo_n "checking for $ac_word... " >&6; }
3972 if ${ac_cv_path_SYSTEMCTL+:} false; then :
3973 $as_echo_n "(cached) " >&6
3977 ac_cv_path_SYSTEMCTL="$SYSTEMCTL" # Let the user override the test with a path.
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_path_SYSTEMCTL="$as_dir/$ac_word$ac_exec_ext"
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 SYSTEMCTL=$ac_cv_path_SYSTEMCTL
3999 if test -n "$SYSTEMCTL"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEMCTL" >&5
4001 $as_echo "$SYSTEMCTL" >&6; }
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4008 test -n "$SYSTEMCTL" && break
4010 test -n "$SYSTEMCTL" || SYSTEMCTL="systemctl"
4013 # Check whether --with-systemdsystemunitdir was given.
4014 if test "${with_systemdsystemunitdir+set}" = set; then :
4015 withval=$with_systemdsystemunitdir;
4017 with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
4020 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
4021 SYSTEMD_UNIT_DIR=$with_systemdsystemunitdir
4027 # Check header files
4029 echo Check header files:
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4034 $as_echo_n "checking for ANSI C header files... " >&6; }
4035 if ${ac_cv_header_stdc+:} false; then :
4036 $as_echo_n "(cached) " >&6
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054 ac_cv_header_stdc=yes
4056 ac_cv_header_stdc=no
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 if test $ac_cv_header_stdc = yes; then
4061 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4068 $EGREP "memchr" >/dev/null 2>&1; then :
4071 ac_cv_header_stdc=no
4077 if test $ac_cv_header_stdc = yes; then
4078 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4085 $EGREP "free" >/dev/null 2>&1; then :
4088 ac_cv_header_stdc=no
4094 if test $ac_cv_header_stdc = yes; then
4095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4096 if test "$cross_compiling" = yes; then :
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4103 #if ((' ' & 0x0FF) == 0x020)
4104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4107 # define ISLOWER(c) \
4108 (('a' <= (c) && (c) <= 'i') \
4109 || ('j' <= (c) && (c) <= 'r') \
4110 || ('s' <= (c) && (c) <= 'z'))
4111 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4119 for (i = 0; i < 256; i++)
4120 if (XOR (islower (i), ISLOWER (i))
4121 || toupper (i) != TOUPPER (i))
4126 if ac_fn_c_try_run "$LINENO"; then :
4129 ac_cv_header_stdc=no
4131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4132 conftest.$ac_objext conftest.beam conftest.$ac_ext
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4138 $as_echo "$ac_cv_header_stdc" >&6; }
4139 if test $ac_cv_header_stdc = yes; then
4141 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4146 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4147 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4149 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4150 if eval \${$as_ac_Header+:} false; then :
4151 $as_echo_n "(cached) " >&6
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <sys/types.h>
4167 if ac_fn_c_try_compile "$LINENO"; then :
4168 eval "$as_ac_Header=yes"
4170 eval "$as_ac_Header=no"
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 eval ac_res=\$$as_ac_Header
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4176 $as_echo "$ac_res" >&6; }
4177 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4178 cat >>confdefs.h <<_ACEOF
4179 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4182 ac_header_dirent=$ac_hdr; break
4186 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4187 if test $ac_header_dirent = dirent.h; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4189 $as_echo_n "checking for library containing opendir... " >&6; }
4190 if ${ac_cv_search_opendir+:} false; then :
4191 $as_echo_n "(cached) " >&6
4193 ac_func_search_save_LIBS=$LIBS
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4197 /* Override any GCC internal prototype to avoid an error.
4198 Use char because int might match the return type of a GCC
4199 builtin and then its argument prototype would still apply. */
4212 for ac_lib in '' dir; do
4213 if test -z "$ac_lib"; then
4214 ac_res="none required"
4217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4219 if ac_fn_c_try_link "$LINENO"; then :
4220 ac_cv_search_opendir=$ac_res
4222 rm -f core conftest.err conftest.$ac_objext \
4224 if ${ac_cv_search_opendir+:} false; then :
4228 if ${ac_cv_search_opendir+:} false; then :
4231 ac_cv_search_opendir=no
4234 LIBS=$ac_func_search_save_LIBS
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4237 $as_echo "$ac_cv_search_opendir" >&6; }
4238 ac_res=$ac_cv_search_opendir
4239 if test "$ac_res" != no; then :
4240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4246 $as_echo_n "checking for library containing opendir... " >&6; }
4247 if ${ac_cv_search_opendir+:} false; then :
4248 $as_echo_n "(cached) " >&6
4250 ac_func_search_save_LIBS=$LIBS
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4254 /* Override any GCC internal prototype to avoid an error.
4255 Use char because int might match the return type of a GCC
4256 builtin and then its argument prototype would still apply. */
4269 for ac_lib in '' x; do
4270 if test -z "$ac_lib"; then
4271 ac_res="none required"
4274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4276 if ac_fn_c_try_link "$LINENO"; then :
4277 ac_cv_search_opendir=$ac_res
4279 rm -f core conftest.err conftest.$ac_objext \
4281 if ${ac_cv_search_opendir+:} false; then :
4285 if ${ac_cv_search_opendir+:} false; then :
4288 ac_cv_search_opendir=no
4291 LIBS=$ac_func_search_save_LIBS
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4294 $as_echo "$ac_cv_search_opendir" >&6; }
4295 ac_res=$ac_cv_search_opendir
4296 if test "$ac_res" != no; then :
4297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4303 for ac_header in ctype.h
4305 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4306 if test "x$ac_cv_header_ctype_h" = xyes; then :
4307 cat >>confdefs.h <<_ACEOF
4308 #define HAVE_CTYPE_H 1
4315 for ac_header in errno.h
4317 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4318 if test "x$ac_cv_header_errno_h" = xyes; then :
4319 cat >>confdefs.h <<_ACEOF
4320 #define HAVE_ERRNO_H 1
4327 for ac_header in libintl.h
4329 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
4330 if test "x$ac_cv_header_libintl_h" = xyes; then :
4331 cat >>confdefs.h <<_ACEOF
4332 #define HAVE_LIBINTL_H 1
4339 for ac_header in locale.h
4341 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
4342 if test "x$ac_cv_header_locale_h" = xyes; then :
4343 cat >>confdefs.h <<_ACEOF
4344 #define HAVE_LOCALE_H 1
4351 for ac_header in net/if.h
4353 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
4354 if test "x$ac_cv_header_net_if_h" = xyes; then :
4355 cat >>confdefs.h <<_ACEOF
4356 #define HAVE_NET_IF_H 1
4363 for ac_header in regex.h
4365 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
4366 if test "x$ac_cv_header_regex_h" = xyes; then :
4367 cat >>confdefs.h <<_ACEOF
4368 #define HAVE_REGEX_H 1
4375 for ac_header in signal.h
4377 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
4378 if test "x$ac_cv_header_signal_h" = xyes; then :
4379 cat >>confdefs.h <<_ACEOF
4380 #define HAVE_SIGNAL_H 1
4387 for ac_header in stdio.h
4389 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4390 if test "x$ac_cv_header_stdio_h" = xyes; then :
4391 cat >>confdefs.h <<_ACEOF
4392 #define HAVE_STDIO_H 1
4399 for ac_header in sys/file.h
4401 ac_fn_c_check_header_mongrel "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
4402 if test "x$ac_cv_header_sys_file_h" = xyes; then :
4403 cat >>confdefs.h <<_ACEOF
4404 #define HAVE_SYS_FILE_H 1
4411 for ac_header in sys/ioctl.h
4413 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4414 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
4415 cat >>confdefs.h <<_ACEOF
4416 #define HAVE_SYS_IOCTL_H 1
4423 for ac_header in sys/stat.h
4425 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
4426 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
4427 cat >>confdefs.h <<_ACEOF
4428 #define HAVE_SYS_STAT_H 1
4437 echo Check typedefs, structures and compiler characteristics:
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4440 $as_echo_n "checking return type of signal handlers... " >&6; }
4441 if ${ac_cv_type_signal+:} false; then :
4442 $as_echo_n "(cached) " >&6
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <sys/types.h>
4452 return *(signal (0, 0)) (0) == 1;
4457 if ac_fn_c_try_compile "$LINENO"; then :
4458 ac_cv_type_signal=int
4460 ac_cv_type_signal=void
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4465 $as_echo "$ac_cv_type_signal" >&6; }
4467 cat >>confdefs.h <<_ACEOF
4468 #define RETSIGTYPE $ac_cv_type_signal
4472 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4473 if test "x$ac_cv_type_size_t" = xyes; then :
4477 cat >>confdefs.h <<_ACEOF
4478 #define size_t unsigned int
4483 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4484 if test "x$ac_cv_type_off_t" = xyes; then :
4488 cat >>confdefs.h <<_ACEOF
4489 #define off_t long int
4496 echo Check library functions:
4498 for ac_func in strchr
4500 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
4501 if test "x$ac_cv_func_strchr" = xyes; then :
4502 cat >>confdefs.h <<_ACEOF
4503 #define HAVE_STRCHR 1
4509 for ac_func in strcspn
4511 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
4512 if test "x$ac_cv_func_strcspn" = xyes; then :
4513 cat >>confdefs.h <<_ACEOF
4514 #define HAVE_STRCSPN 1
4520 for ac_func in strspn
4522 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
4523 if test "x$ac_cv_func_strspn" = xyes; then :
4524 cat >>confdefs.h <<_ACEOF
4525 #define HAVE_STRSPN 1
4531 for ac_func in strstr
4533 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
4534 if test "x$ac_cv_func_strstr" = xyes; then :
4535 cat >>confdefs.h <<_ACEOF
4536 #define HAVE_STRSTR 1
4543 # Should we check for lm_sensors?
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors support" >&5
4545 $as_echo_n "checking for sensors support... " >&6; }
4546 # Check whether --enable-sensors was given.
4547 if test "${enable_sensors+set}" = set; then :
4548 enableval=$enable_sensors; SENSORS=$enableval
4553 if test $SENSORS != "yes"; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4559 $as_echo "$SENSORS" >&6; }
4561 # Check for lm_sensors
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_get_detected_chips in -lsensors" >&5
4566 $as_echo_n "checking for sensors_get_detected_chips in -lsensors... " >&6; }
4567 if ${ac_cv_lib_sensors_sensors_get_detected_chips+:} false; then :
4568 $as_echo_n "(cached) " >&6
4570 ac_check_lib_save_LIBS=$LIBS
4571 LIBS="-lsensors $LIBS"
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4575 /* Override any GCC internal prototype to avoid an error.
4576 Use char because int might match the return type of a GCC
4577 builtin and then its argument prototype would still apply. */
4581 char sensors_get_detected_chips ();
4585 return sensors_get_detected_chips ();
4590 if ac_fn_c_try_link "$LINENO"; then :
4591 ac_cv_lib_sensors_sensors_get_detected_chips=yes
4593 ac_cv_lib_sensors_sensors_get_detected_chips=no
4595 rm -f core conftest.err conftest.$ac_objext \
4596 conftest$ac_exeext conftest.$ac_ext
4597 LIBS=$ac_check_lib_save_LIBS
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_get_detected_chips" >&5
4600 $as_echo "$ac_cv_lib_sensors_sensors_get_detected_chips" >&6; }
4601 if test "x$ac_cv_lib_sensors_sensors_get_detected_chips" = xyes; then :
4602 LFSENSORS="-lsensors"
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors lib" >&5
4608 $as_echo_n "checking for sensors lib... " >&6; }
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4611 #include <sensors/sensors.h>
4612 #include <sensors/error.h>
4622 if ac_fn_c_try_compile "$LINENO"; then :
4623 SENSORS=yes; DFSENSORS="-DHAVE_SENSORS"
4625 HAVE_SENSORS="n"; SENSORS=no
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4629 $as_echo "$SENSORS" >&6; }
4635 echo Check system services:
4637 # Check whether --enable-largefile was given.
4638 if test "${enable_largefile+set}" = set; then :
4639 enableval=$enable_largefile;
4642 if test "$enable_largefile" != no; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4645 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4646 if ${ac_cv_sys_largefile_CC+:} false; then :
4647 $as_echo_n "(cached) " >&6
4649 ac_cv_sys_largefile_CC=no
4650 if test "$GCC" != yes; then
4653 # IRIX 6.2 and later do not support large files by default,
4654 # so use the C compiler's -n32 option if that helps.
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657 #include <sys/types.h>
4658 /* Check that off_t can represent 2**63 - 1 correctly.
4659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4660 since some C++ compilers masquerading as C compilers
4661 incorrectly reject 9223372036854775807. */
4662 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4664 && LARGE_OFF_T % 2147483647 == 1)
4674 if ac_fn_c_try_compile "$LINENO"; then :
4677 rm -f core conftest.err conftest.$ac_objext
4679 if ac_fn_c_try_compile "$LINENO"; then :
4680 ac_cv_sys_largefile_CC=' -n32'; break
4682 rm -f core conftest.err conftest.$ac_objext
4686 rm -f conftest.$ac_ext
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4690 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4691 if test "$ac_cv_sys_largefile_CC" != no; then
4692 CC=$CC$ac_cv_sys_largefile_CC
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4696 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4697 if ${ac_cv_sys_file_offset_bits+:} false; then :
4698 $as_echo_n "(cached) " >&6
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4703 #include <sys/types.h>
4704 /* Check that off_t can represent 2**63 - 1 correctly.
4705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4706 since some C++ compilers masquerading as C compilers
4707 incorrectly reject 9223372036854775807. */
4708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4710 && LARGE_OFF_T % 2147483647 == 1)
4720 if ac_fn_c_try_compile "$LINENO"; then :
4721 ac_cv_sys_file_offset_bits=no; break
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4726 #define _FILE_OFFSET_BITS 64
4727 #include <sys/types.h>
4728 /* Check that off_t can represent 2**63 - 1 correctly.
4729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4730 since some C++ compilers masquerading as C compilers
4731 incorrectly reject 9223372036854775807. */
4732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4734 && LARGE_OFF_T % 2147483647 == 1)
4744 if ac_fn_c_try_compile "$LINENO"; then :
4745 ac_cv_sys_file_offset_bits=64; break
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 ac_cv_sys_file_offset_bits=unknown
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4753 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4754 case $ac_cv_sys_file_offset_bits in #(
4757 cat >>confdefs.h <<_ACEOF
4758 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4763 if test $ac_cv_sys_file_offset_bits = unknown; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4765 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4766 if ${ac_cv_sys_large_files+:} false; then :
4767 $as_echo_n "(cached) " >&6
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4772 #include <sys/types.h>
4773 /* Check that off_t can represent 2**63 - 1 correctly.
4774 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4775 since some C++ compilers masquerading as C compilers
4776 incorrectly reject 9223372036854775807. */
4777 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4778 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4779 && LARGE_OFF_T % 2147483647 == 1)
4789 if ac_fn_c_try_compile "$LINENO"; then :
4790 ac_cv_sys_large_files=no; break
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4795 #define _LARGE_FILES 1
4796 #include <sys/types.h>
4797 /* Check that off_t can represent 2**63 - 1 correctly.
4798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4799 since some C++ compilers masquerading as C compilers
4800 incorrectly reject 9223372036854775807. */
4801 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4803 && LARGE_OFF_T % 2147483647 == 1)
4813 if ac_fn_c_try_compile "$LINENO"; then :
4814 ac_cv_sys_large_files=1; break
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 ac_cv_sys_large_files=unknown
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4822 $as_echo "$ac_cv_sys_large_files" >&6; }
4823 case $ac_cv_sys_large_files in #(
4826 cat >>confdefs.h <<_ACEOF
4827 #define _LARGE_FILES $ac_cv_sys_large_files
4839 echo Check configuration:
4841 # Check arguments used
4843 # Optional Features:
4844 # --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
4845 # --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
4846 # --disable-largefile omit support for large files
4847 # --disable-nls disable National Language Support
4848 # --enable-yesterday tell sa2 to use "yesterday" data files
4849 # --disable-man-group ignore man_group variable value
4850 # --enable-install-cron tell sysstat to install cron scripts
4851 # --collect-all tell sadc to collect all possible data
4852 # --enable-clean-sa-dir clean system activity directory
4853 # --enable-compress-manpg compress manual pages
4854 # --enable-install-isag install isag script
4855 # --enable-debuginfo enable debug output (--debuginfo option)
4856 # --disable-documentation do not install documentation (man pages...)
4857 # --disable-sensors do not link against libsensors even if available
4858 # --disable-stripping do not strip object files
4860 # Some influential environment variables:
4861 # rcdir directory where startup scripts are installed
4862 # sa_lib_dir sadc, sa1 and sa2 directory
4863 # sa_dir system activity daily datafiles directory
4864 # conf_dir sysstat configuration directory (default is /etc/sysconfig)
4865 # history number of daily datafiles to keep (default value is 7)
4866 # compressafter number of days after which datafiles are compressed
4867 # man_group group for man pages
4868 # cron_owner crontab owner
4869 # cron_interval crontab sampling interval
4871 # Fine tuning the installation directories:
4872 # --mandir=DIR man documentation directory [PREFIX/man]
4873 # --docdir=DIR other documentation directory [PREFIX/share/doc]
4875 # Installation directories:
4876 # --prefix=PREFIX install architecture-independent files in PREFIX
4878 # --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
4882 if test -d /etc/init.d && test ! -L /etc/init.d; then
4883 if test -d /etc/init.d/rc2.d; then
4890 INIT_DIR=/etc/init.d
4891 elif test -d /sbin/init.d; then
4893 INIT_DIR=/sbin/init.d
4897 INIT_DIR=/etc/rc.d/init.d
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-commands directory" >&5
4902 $as_echo_n "checking run-commands directory... " >&6; }
4904 if test x$rcdir != x""; then
4905 # Override previous rc directories values
4907 INIT_DIR=$rcdir/init.d
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC_DIR" >&5
4911 $as_echo "$RC_DIR" >&6; }
4912 if test ! -d $RC_DIR; then
4913 echo "INFO: Directory ${RC_DIR} doesn't exist."
4914 echo "INFO: Startup scripts won't be installed."
4921 # Set sadc directory
4922 if test $prefix != "NONE"; then
4925 AuxPrefix=/usr/local
4928 SADC_DIR=$AuxPrefix/lib
4929 if test -d $AuxPrefix/lib64; then
4930 # Look for lm (long mode) flag to know if CPU is 64 bit
4931 grep " lm " /proc/cpuinfo >/dev/null 2>&1
4932 if test $? = 0; then
4933 SADC_DIR=$AuxPrefix/lib64
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sadc directory" >&5
4938 $as_echo_n "checking sadc directory... " >&6; }
4940 if test x$sa_lib_dir != x""; then
4941 SA_LIB_DIR=$sa_lib_dir
4943 SA_LIB_DIR=$SADC_DIR/sa
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SA_LIB_DIR" >&5
4946 $as_echo "$SA_LIB_DIR" >&6; }
4947 if test ! -d $SA_LIB_DIR; then
4948 echo "INFO: Directory ${SA_LIB_DIR} will be created during installation stage."
4952 # Set system activity directory
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system activity directory" >&5
4954 $as_echo_n "checking system activity directory... " >&6; }
4956 if test x$sa_dir != x""; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SA_DIR" >&5
4962 $as_echo "$SA_DIR" >&6; }
4963 if test ! -d $SA_DIR; then
4964 echo "INFO: Directory ${SA_DIR} will be created during installation stage."
4968 # Set configuration directory
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysstat configuration directory" >&5
4970 $as_echo_n "checking sysstat configuration directory... " >&6; }
4972 if test x$conf_dir != x""; then
4973 SYSCONFIG_DIR=$conf_dir
4975 SYSCONFIG_DIR=/etc/sysconfig
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFIG_DIR" >&5
4978 $as_echo "$SYSCONFIG_DIR" >&6; }
4979 if test ! -d $SYSCONFIG_DIR; then
4980 echo "INFO: Directory ${SYSCONFIG_DIR} will be created during installation stage."
4984 # National Language Support
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking National Language Support" >&5
4986 $as_echo_n "checking National Language Support... " >&6; }
4987 # Check whether --enable-nls was given.
4988 if test "${enable_nls+set}" = set; then :
4989 enableval=$enable_nls; AUX_NLS=$enableval
4994 if test $AUX_NLS != "no" && test $HAVE_LIBINTL_H && test $HAVE_LOCALE_H; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_NLS" >&5
5002 $as_echo "$AUX_NLS" >&6; }
5004 if test $AUX_NLS = "yes" && test x$MSGFMT != x"msgfmt"; then
5005 echo "WARNING: msgfmt command not found!"
5007 if test $AUX_NLS = "yes" && test x$XGETTEXT != x"xgettext"; then
5008 echo "WARNING: xgettext command not found!"
5010 if test $AUX_NLS = "yes" && test x$MSGMERGE != x"msgmerge"; then
5011 echo "WARNING: msgmerge command not found!"
5014 # Check whether sa2 should process data file of the day before
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sa2 should process data file of the day before" >&5
5016 $as_echo_n "checking whether sa2 should process data file of the day before... " >&6; }
5017 # Check whether --enable-yesterday was given.
5018 if test "${enable_yesterday+set}" = set; then :
5019 enableval=$enable_yesterday; AUX_YESTERDAY=$enableval
5024 if test $AUX_YESTERDAY = "yes"; then
5025 YESTERDAY="--date=yesterday"
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5027 $as_echo "yes" >&6; }
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5035 # Data history to keep by sa2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of daily data files to keep" >&5
5037 $as_echo_n "checking number of daily data files to keep... " >&6; }
5039 if test x$history = x""; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HISTORY" >&5
5045 $as_echo "$HISTORY" >&6; }
5048 # Number of days after which datafiles are compressed
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of days after which data files are compressed" >&5
5050 $as_echo_n "checking number of days after which data files are compressed... " >&6; }
5052 if test x$compressafter = x""; then
5055 COMPRESSAFTER=$compressafter
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESSAFTER" >&5
5058 $as_echo "$COMPRESSAFTER" >&6; }
5061 # Preallocation factor
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking preallocation factor value" >&5
5063 $as_echo_n "checking preallocation factor value... " >&6; }
5065 if test x$prealloc = x""; then
5068 PREALLOC_FACTOR=$prealloc
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PREALLOC_FACTOR" >&5
5071 $as_echo "$PREALLOC_FACTOR" >&6; }
5075 grep ^man: /etc/group >/dev/null 2>&1
5076 if test $? = 0; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group for manual pages" >&5
5083 $as_echo_n "checking group for manual pages... " >&6; }
5085 if test x$man_group = x""; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5088 $as_echo "$MAN_GROUP" >&6; }
5090 grep ^$man_group: /etc/group >/dev/null 2>&1
5091 if test $? = 1; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5094 $as_echo "$MAN_GROUP" >&6; }
5095 echo "WARNING: Group ${man_group} not found: Using ${GRP} instead"
5097 MAN_GROUP=$man_group
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5099 $as_echo "$MAN_GROUP" >&6; }
5104 # Ignore manual pages group?
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether man_group variable should be ignored" >&5
5106 $as_echo_n "checking whether man_group variable should be ignored... " >&6; }
5107 # Check whether --enable-man-group was given.
5108 if test "${enable_man_group+set}" = set; then :
5109 enableval=$enable_man_group; AUX_IMG=$enableval
5114 if test $AUX_IMG != "no"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_IMG" >&5
5122 $as_echo "$AUX_IMG" >&6; }
5125 # Compress manual pages?
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether manual pages should be compressed" >&5
5127 $as_echo_n "checking whether manual pages should be compressed... " >&6; }
5128 # Check whether --enable-compress-manpg was given.
5129 if test "${enable_compress_manpg+set}" = set; then :
5130 enableval=$enable_compress_manpg; AUX_MPG=$enableval
5135 if test $AUX_MPG != "yes"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_MPG" >&5
5142 $as_echo "$AUX_MPG" >&6; }
5145 # Check whether isag should be installed
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isag script should be installed" >&5
5147 $as_echo_n "checking whether isag script should be installed... " >&6; }
5148 # Check whether --enable-install-isag was given.
5149 if test "${enable_install_isag+set}" = set; then :
5150 enableval=$enable_install_isag; AUX_IIS=$enableval
5155 if test $AUX_IIS != "yes"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_IIS" >&5
5162 $as_echo "$AUX_IIS" >&6; }
5165 # Check whether sa directory should be cleaned
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system activity directory should be cleaned" >&5
5167 $as_echo_n "checking whether system activity directory should be cleaned... " >&6; }
5168 # Check whether --enable-clean-sa-dir was given.
5169 if test "${enable_clean_sa_dir+set}" = set; then :
5170 enableval=$enable_clean_sa_dir; AUX_CSD=$enableval
5175 if test $AUX_CSD != "yes"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_CSD" >&5
5182 $as_echo "$AUX_CSD" >&6; }
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cron should start sar automatically" >&5
5187 $as_echo_n "checking whether cron should start sar automatically... " >&6; }
5188 # Check whether --enable-install-cron was given.
5189 if test "${enable_install_cron+set}" = set; then :
5190 enableval=$enable_install_cron; INSTALL_CRON=$enableval
5195 if test $INSTALL_CRON != "yes"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_CRON" >&5
5203 $as_echo "$AUX_CRON" >&6; }
5208 if test $INSTALL_CRON = "y"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking crontab owner" >&5
5210 $as_echo_n "checking crontab owner... " >&6; }
5212 if test x$cron_owner = x""; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5215 $as_echo "$CRON_OWNER" >&6; }
5217 grep ^$cron_owner: /etc/passwd >/dev/null 2>&1
5218 if test $? = 1; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5221 $as_echo "$CRON_OWNER" >&6; }
5222 echo "WARNING: User ${cron_owner} not found: Using ${CUSR} instead."
5224 CRON_OWNER=$cron_owner
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5226 $as_echo "$CRON_OWNER" >&6; }
5229 echo "INFO: Crontab for ${CRON_OWNER} will be saved in current directory if necessary"
5230 if test $CRON_OWNER = "root"; then
5233 REM_CHOWN="# REM_CHOWN"
5235 SU_C_OWNER="su $CRON_OWNER -c "
5237 # " (ignore this line)
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking crontab interval" >&5
5243 $as_echo_n "checking crontab interval... " >&6; }
5245 if test x$cron_interval = x""; then
5248 CRON_INTERVAL=$cron_interval
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_INTERVAL" >&5
5251 $as_echo "$CRON_INTERVAL" >&6; }
5252 CRON_INTERVAL_SEC=`expr ${CRON_INTERVAL} \* 60`
5253 CRON_COUNT=`expr 60 / ${CRON_INTERVAL}`
5255 # Check whether sadc should collect all possible activities
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sadc should collect all possible activities" >&5
5257 $as_echo_n "checking whether sadc should collect all possible activities... " >&6; }
5258 # Check whether --enable-collect-all was given.
5259 if test "${enable_collect_all+set}" = set; then :
5260 enableval=$enable_collect_all; COLLECT_ALL=$enableval
5265 if test $COLLECT_ALL != "yes"; then
5269 COLLECT_ALL="-S XALL"
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_COLL" >&5
5273 $as_echo "$AUX_COLL" >&6; }
5279 REM_CHOWN="# REM_CHOWN"
5281 CRON_INTERVAL_SEC=600
5294 # Check whether documentation should be installed
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether documentation should be installed" >&5
5296 $as_echo_n "checking whether documentation should be installed... " >&6; }
5297 # Check whether --enable-documentation was given.
5298 if test "${enable_documentation+set}" = set; then :
5299 enableval=$enable_documentation; AUX_DOC=$enableval
5304 if test $AUX_DOC != "no"; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_DOC" >&5
5312 $as_echo "$AUX_DOC" >&6; }
5315 # Set directory for installing manual pages (see comment in Makefile)
5318 # Check whether --debuginfo options should be allowed
5319 # Check whether --enable-debuginfo was given.
5320 if test "${enable_debuginfo+set}" = set; then :
5321 enableval=$enable_debuginfo; WITH_DEBUG=yes ; DFLAGS="$DFLAGS -DDEBUG"
5329 # Check whether object files should be stripped
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether object files should be stripped" >&5
5331 $as_echo_n "checking whether object files should be stripped... " >&6; }
5332 # Check whether --enable-stripping was given.
5333 if test "${enable_stripping+set}" = set; then :
5334 enableval=$enable_stripping; AUX_STRIP=$enableval
5339 if test $AUX_STRIP != "no"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_STRIP" >&5
5347 $as_echo "$AUX_STRIP" >&6; }
5349 # National Language Support
5350 #AC_MSG_CHECKING(National Language Support)
5352 # AC_HELP_STRING([--disable-nls],
5353 # [disable National Language Support]),
5354 # AUX_NLS=$enableval,AUX_NLS=yes)
5355 #if test $AUX_NLS != "no" && test $HAVE_LIBINTL_H && test $HAVE_LOCALE_H; then
5362 #AC_MSG_RESULT($AUX_NLS)
5367 echo Now create files:
5369 ac_config_files="$ac_config_files sa1"
5370 # Permissions must be changed
5371 ac_config_files="$ac_config_files sa2"
5372 # Permissions must be changed
5373 ac_config_files="$ac_config_files cron/crontab:cron/crontab.sample"
5374 # File must be renamed
5375 ac_config_files="$ac_config_files sysstat.sysconfig"
5377 ac_config_files="$ac_config_files version.h:version.in"
5378 # File must be renamed
5379 ac_config_files="$ac_config_files sysconfig.h:sysconfig.in"
5380 # File must be renamed
5381 ac_config_files="$ac_config_files prealloc.h:prealloc.in"
5382 # File must be renamed
5383 ac_config_files="$ac_config_files cron/sysstat.cron.daily"
5385 ac_config_files="$ac_config_files cron/sysstat.cron.hourly"
5387 ac_config_files="$ac_config_files cron/sysstat.crond"
5389 ac_config_files="$ac_config_files cron/sysstat.crond.sample.in:cron/sysstat.crond.in"
5391 ac_config_files="$ac_config_files sysstat"
5392 # Permissions must be changed
5393 ac_config_files="$ac_config_files sysstat.service"
5395 ac_config_files="$ac_config_files man/sa1.8:man/sa1.in"
5396 # File must be renamed
5397 ac_config_files="$ac_config_files man/sa2.8:man/sa2.in"
5398 # File must be renamed
5399 ac_config_files="$ac_config_files man/sadc.8:man/sadc.in"
5400 # File must be renamed
5401 ac_config_files="$ac_config_files man/sadf.1:man/sadf.in"
5402 # File must be renamed
5403 ac_config_files="$ac_config_files man/sar.1:man/sar.in"
5404 # File must be renamed
5405 ac_config_files="$ac_config_files man/sysstat.5:man/sysstat.in"
5406 # File must be renamed
5407 ac_config_files="$ac_config_files man/iostat.1:man/iostat.in"
5408 # File must be renamed
5409 ac_config_files="$ac_config_files man/cifsiostat.1:man/cifsiostat.in"
5410 # File must be renamed
5411 ac_config_files="$ac_config_files man/nfsiostat.1:man/nfsiostat.in"
5412 # File must be renamed
5413 ac_config_files="$ac_config_files contrib/isag/isag"
5414 # Permissions must be changed
5416 ac_config_files="$ac_config_files Makefile"
5418 cat >confcache <<\_ACEOF
5419 # This file is a shell script that caches the results of configure
5420 # tests run on this system so they can be shared between configure
5421 # scripts and configure runs, see configure's option --config-cache.
5422 # It is not useful on other systems. If it contains results you don't
5423 # want to keep, you may remove or edit it.
5425 # config.status only pays attention to the cache file if you give it
5426 # the --recheck option to rerun configure.
5428 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5429 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5434 # The following way of writing the cache mishandles newlines in values,
5435 # but we know of no workaround that is simple, portable, and efficient.
5436 # So, we kill variables containing newlines.
5437 # Ultrix sh set writes to stderr and can't be redirected directly,
5438 # and sets the high bit in the cache file unless we assign to the vars.
5440 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5441 eval ac_val=\$$ac_var
5445 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5446 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5449 _ | IFS | as_nl) ;; #(
5450 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5451 *) { eval $ac_var=; unset $ac_var;} ;;
5457 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5458 *${as_nl}ac_space=\ *)
5459 # `set' does not quote correctly, so add quotes: double-quote
5460 # substitution turns \\\\ into \\, and sed turns \\ into \.
5463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5466 # `set' quotes correctly as required by POSIX, so do not add quotes.
5467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5476 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5478 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5480 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5481 if test -w "$cache_file"; then
5482 if test "x$cache_file" != "x/dev/null"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5484 $as_echo "$as_me: updating cache $cache_file" >&6;}
5485 if test ! -f "$cache_file" || test -h "$cache_file"; then
5486 cat confcache >"$cache_file"
5488 case $cache_file in #(
5490 mv -f confcache "$cache_file"$$ &&
5491 mv -f "$cache_file"$$ "$cache_file" ;; #(
5493 mv -f confcache "$cache_file" ;;
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5499 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5505 # Let make expand exec_prefix.
5506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5508 # Transform confdefs.h into DEFS.
5509 # Protect against shell expansion while executing Makefile rules.
5510 # Protect against Makefile macro expansion.
5512 # If the first sed substitution is executed (which looks for macros that
5513 # take arguments), then branch to the quote section. Otherwise,
5514 # look for a macro that doesn't take arguments.
5524 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5526 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5530 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5543 DEFS=`sed -n "$ac_script" confdefs.h`
5549 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5550 # 1. Remove the extension, and $U if already installed.
5551 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5552 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5553 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5554 # will be set to the directory where LIBOBJS objects are built.
5555 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5556 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5560 LTLIBOBJS=$ac_ltlibobjs
5564 : "${CONFIG_STATUS=./config.status}"
5566 ac_clean_files_save=$ac_clean_files
5567 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5569 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5571 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5573 # Generated by $as_me.
5574 # Run this file to recreate the current configuration.
5575 # Compiler output produced by configure, useful for debugging
5576 # configure, is in config.log if it exists.
5582 SHELL=\${CONFIG_SHELL-$SHELL}
5585 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5586 ## -------------------- ##
5587 ## M4sh Initialization. ##
5588 ## -------------------- ##
5590 # Be more Bourne compatible
5591 DUALCASE=1; export DUALCASE # for MKS sh
5592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5595 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5596 # is contrary to our usage. Disable this feature.
5597 alias -g '${1+"$@"}'='"$@"'
5598 setopt NO_GLOB_SUBST
5600 case `(set -o) 2>/dev/null` in #(
5612 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5613 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5614 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5616 # Prefer a ksh shell builtin over an external printf program on Solaris,
5617 # but without wasting forks for bash or zsh.
5618 if test -z "$BASH_VERSION$ZSH_VERSION" \
5619 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5620 as_echo='print -r --'
5621 as_echo_n='print -rn --'
5622 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5623 as_echo='printf %s\n'
5624 as_echo_n='printf %s'
5626 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5627 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5628 as_echo_n='/usr/ucb/echo -n'
5630 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5631 as_echo_n_body='eval
5635 expr "X$arg" : "X\\(.*\\)$as_nl";
5636 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5638 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5640 export as_echo_n_body
5641 as_echo_n='sh -c $as_echo_n_body as_echo'
5644 as_echo='sh -c $as_echo_body as_echo'
5647 # The user is always right.
5648 if test "${PATH_SEPARATOR+set}" != set; then
5650 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5651 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5658 # We need space, tab and new line, in precisely that order. Quoting is
5659 # there to prevent editors from complaining about space-tab.
5660 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5661 # splitting by setting IFS to empty value.)
5664 # Find who we are. Look in the path if we contain no directory separator.
5667 *[\\/]* ) as_myself=$0 ;;
5668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 test -z "$as_dir" && as_dir=.
5673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5679 # We did not find ourselves, most probably we were run as `sh COMMAND'
5680 # in which case we are not to be found in the path.
5681 if test "x$as_myself" = x; then
5684 if test ! -f "$as_myself"; then
5685 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5689 # Unset variables that we do not need and which cause bugs (e.g. in
5690 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5691 # suppresses any "Segmentation fault" message there. '((' could
5692 # trigger a bug in pdksh 5.2.14.
5693 for as_var in BASH_ENV ENV MAIL MAILPATH
5694 do eval test x\${$as_var+set} = xset \
5695 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5708 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5711 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5712 # ----------------------------------------
5713 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5714 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5715 # script with STATUS, using 1 if that was 0.
5718 as_status=$1; test $as_status -eq 0 && as_status=1
5720 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5721 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5723 $as_echo "$as_me: error: $2" >&2
5724 as_fn_exit $as_status
5728 # as_fn_set_status STATUS
5729 # -----------------------
5730 # Set $? to STATUS, without forking.
5734 } # as_fn_set_status
5738 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5748 # Portably unset VAR.
5751 { eval $1=; unset $1;}
5753 as_unset=as_fn_unset
5754 # as_fn_append VAR VALUE
5755 # ----------------------
5756 # Append the text in VALUE to the end of the definition contained in VAR. Take
5757 # advantage of any shell optimizations that allow amortized linear growth over
5758 # repeated appends, instead of the typical quadratic growth present in naive
5760 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5761 eval 'as_fn_append ()
5772 # as_fn_arith ARG...
5773 # ------------------
5774 # Perform arithmetic evaluation on the ARGs, and store the result in the
5775 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5776 # must be portable across $(()) and expr.
5777 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5778 eval 'as_fn_arith ()
5785 as_val=`expr "$@" || test $? -eq 1`
5790 if expr a : '\(a\)' >/dev/null 2>&1 &&
5791 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5797 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5798 as_basename=basename
5803 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5809 as_me=`$as_basename -- "$0" ||
5810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5811 X"$0" : 'X\(//\)$' \| \
5812 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5814 sed '/^.*\/\([^/][^/]*\)\/*$/{
5828 # Avoid depending upon Character Ranges.
5829 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5830 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5831 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5832 as_cr_digits='0123456789'
5833 as_cr_alnum=$as_cr_Letters$as_cr_digits
5835 ECHO_C= ECHO_N= ECHO_T=
5836 case `echo -n x` in #(((((
5838 case `echo 'xy\c'` in
5839 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5841 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5848 rm -f conf$$ conf$$.exe conf$$.file
5849 if test -d conf$$.dir; then
5850 rm -f conf$$.dir/conf$$.file
5853 mkdir conf$$.dir 2>/dev/null
5855 if (echo >conf$$.file) 2>/dev/null; then
5856 if ln -s conf$$.file conf$$ 2>/dev/null; then
5858 # ... but there are two gotchas:
5859 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5860 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5861 # In both cases, we have to default to `cp -pR'.
5862 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5864 elif ln conf$$.file conf$$ 2>/dev/null; then
5872 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5873 rmdir conf$$.dir 2>/dev/null
5878 # Create "$as_dir" as a directory, including parents if necessary.
5883 -*) as_dir=./$as_dir;;
5885 test -d "$as_dir" || eval $as_mkdir_p || {
5889 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5890 *) as_qdir=$as_dir;;
5892 as_dirs="'$as_qdir' $as_dirs"
5893 as_dir=`$as_dirname -- "$as_dir" ||
5894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5895 X"$as_dir" : 'X\(//\)[^/]' \| \
5896 X"$as_dir" : 'X\(//\)$' \| \
5897 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5898 $as_echo X"$as_dir" |
5899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5916 test -d "$as_dir" && break
5918 test -z "$as_dirs" || eval "mkdir $as_dirs"
5919 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5923 if mkdir -p . 2>/dev/null; then
5924 as_mkdir_p='mkdir -p "$as_dir"'
5926 test -d ./-p && rmdir ./-p
5931 # as_fn_executable_p FILE
5932 # -----------------------
5933 # Test if FILE is an executable regular file.
5934 as_fn_executable_p ()
5936 test -f "$1" && test -x "$1"
5937 } # as_fn_executable_p
5939 as_executable_p=as_fn_executable_p
5941 # Sed expression to map a string onto a valid CPP name.
5942 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5944 # Sed expression to map a string onto a valid variable name.
5945 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5949 ## ----------------------------------- ##
5950 ## Main body of $CONFIG_STATUS script. ##
5951 ## ----------------------------------- ##
5953 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5956 # Save the log message, to keep $0 and so on meaningful, and to
5957 # report actual input values of CONFIG_FILES etc. instead of their
5958 # values after options handling.
5960 This file was extended by sysstat $as_me 10.2.1, which was
5961 generated by GNU Autoconf 2.69. Invocation command line was
5963 CONFIG_FILES = $CONFIG_FILES
5964 CONFIG_HEADERS = $CONFIG_HEADERS
5965 CONFIG_LINKS = $CONFIG_LINKS
5966 CONFIG_COMMANDS = $CONFIG_COMMANDS
5969 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5974 case $ac_config_files in *"
5975 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5981 # Files that config.status was made for.
5982 config_files="$ac_config_files"
5986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5988 \`$as_me' instantiates files and other configuration actions
5989 from templates according to the current configuration. Unless the files
5990 and actions are specified as TAGs, all are instantiated by default.
5992 Usage: $0 [OPTION]... [TAG]...
5994 -h, --help print this help, then exit
5995 -V, --version print version number and configuration settings, then exit
5996 --config print configuration, then exit
5997 -q, --quiet, --silent
5998 do not print progress messages
5999 -d, --debug don't remove temporary files
6000 --recheck update $as_me by reconfiguring in the same conditions
6001 --file=FILE[:TEMPLATE]
6002 instantiate the configuration file FILE
6004 Configuration files:
6007 Report bugs to the package provider."
6010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6011 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6013 sysstat config.status 10.2.1
6014 configured by $0, generated by GNU Autoconf 2.69,
6015 with options \\"\$ac_cs_config\\"
6017 Copyright (C) 2012 Free Software Foundation, Inc.
6018 This config.status script is free software; the Free Software Foundation
6019 gives unlimited permission to copy, distribute and modify it."
6023 test -n "\$AWK" || AWK=awk
6026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6027 # The default lists apply if the user does not specify any file.
6033 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6034 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6038 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6050 # Handling of the options.
6051 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6053 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6054 $as_echo "$ac_cs_version"; exit ;;
6055 --config | --confi | --conf | --con | --co | --c )
6056 $as_echo "$ac_cs_config"; exit ;;
6057 --debug | --debu | --deb | --de | --d | -d )
6059 --file | --fil | --fi | --f )
6062 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6063 '') as_fn_error $? "missing file argument" ;;
6065 as_fn_append CONFIG_FILES " '$ac_optarg'"
6066 ac_need_defaults=false;;
6067 --he | --h | --help | --hel | -h )
6068 $as_echo "$ac_cs_usage"; exit ;;
6069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6070 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6074 -*) as_fn_error $? "unrecognized option: \`$1'
6075 Try \`$0 --help' for more information." ;;
6077 *) as_fn_append ac_config_targets " $1"
6078 ac_need_defaults=false ;;
6084 ac_configure_extra_args=
6086 if $ac_cs_silent; then
6088 ac_configure_extra_args="$ac_configure_extra_args --silent"
6092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6093 if \$ac_cs_recheck; then
6094 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6096 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6097 CONFIG_SHELL='$SHELL'
6103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6107 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6108 ## Running $as_me. ##
6114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6119 # Handling of arguments.
6120 for ac_config_target in $ac_config_targets
6122 case $ac_config_target in
6123 "sa1") CONFIG_FILES="$CONFIG_FILES sa1" ;;
6124 "sa2") CONFIG_FILES="$CONFIG_FILES sa2" ;;
6125 "cron/crontab") CONFIG_FILES="$CONFIG_FILES cron/crontab:cron/crontab.sample" ;;
6126 "sysstat.sysconfig") CONFIG_FILES="$CONFIG_FILES sysstat.sysconfig" ;;
6127 "version.h") CONFIG_FILES="$CONFIG_FILES version.h:version.in" ;;
6128 "sysconfig.h") CONFIG_FILES="$CONFIG_FILES sysconfig.h:sysconfig.in" ;;
6129 "prealloc.h") CONFIG_FILES="$CONFIG_FILES prealloc.h:prealloc.in" ;;
6130 "cron/sysstat.cron.daily") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.daily" ;;
6131 "cron/sysstat.cron.hourly") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.hourly" ;;
6132 "cron/sysstat.crond") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond" ;;
6133 "cron/sysstat.crond.sample.in") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond.sample.in:cron/sysstat.crond.in" ;;
6134 "sysstat") CONFIG_FILES="$CONFIG_FILES sysstat" ;;
6135 "sysstat.service") CONFIG_FILES="$CONFIG_FILES sysstat.service" ;;
6136 "man/sa1.8") CONFIG_FILES="$CONFIG_FILES man/sa1.8:man/sa1.in" ;;
6137 "man/sa2.8") CONFIG_FILES="$CONFIG_FILES man/sa2.8:man/sa2.in" ;;
6138 "man/sadc.8") CONFIG_FILES="$CONFIG_FILES man/sadc.8:man/sadc.in" ;;
6139 "man/sadf.1") CONFIG_FILES="$CONFIG_FILES man/sadf.1:man/sadf.in" ;;
6140 "man/sar.1") CONFIG_FILES="$CONFIG_FILES man/sar.1:man/sar.in" ;;
6141 "man/sysstat.5") CONFIG_FILES="$CONFIG_FILES man/sysstat.5:man/sysstat.in" ;;
6142 "man/iostat.1") CONFIG_FILES="$CONFIG_FILES man/iostat.1:man/iostat.in" ;;
6143 "man/cifsiostat.1") CONFIG_FILES="$CONFIG_FILES man/cifsiostat.1:man/cifsiostat.in" ;;
6144 "man/nfsiostat.1") CONFIG_FILES="$CONFIG_FILES man/nfsiostat.1:man/nfsiostat.in" ;;
6145 "contrib/isag/isag") CONFIG_FILES="$CONFIG_FILES contrib/isag/isag" ;;
6146 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6148 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6153 # If the user did not use the arguments to specify the items to instantiate,
6154 # then the envvar interface is used. Set only those that are not.
6155 # We use the long form for the default assignment because of an extremely
6156 # bizarre bug on SunOS 4.1.3.
6157 if $ac_need_defaults; then
6158 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6161 # Have a temporary directory for convenience. Make it in the build tree
6162 # simply because there is no reason against having it here, and in addition,
6163 # creating and moving files from /tmp can sometimes cause problems.
6164 # Hook for its removal unless debugging.
6165 # Note that there is a small window in which the directory will not be cleaned:
6166 # after its creation but before its name has been assigned to `$tmp'.
6170 trap 'exit_status=$?
6172 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6174 trap 'as_fn_exit 1' 1 2 13 15
6176 # Create a (secure) tmp directory for tmp files.
6179 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6183 tmp=./conf$$-$RANDOM
6184 (umask 077 && mkdir "$tmp")
6185 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6188 # Set up the scripts for CONFIG_FILES section.
6189 # No need to generate them if there are no CONFIG_FILES.
6190 # This happens for instance with `./config.status config.h'.
6191 if test -n "$CONFIG_FILES"; then
6194 ac_cr=`echo X | tr X '\015'`
6195 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6196 # But we know of no other shell where ac_cr would be empty at this
6197 # point, so we can use a bashism as a fallback.
6198 if test "x$ac_cr" = x; then
6199 eval ac_cr=\$\'\\r\'
6201 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6202 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6208 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6213 echo "cat >conf$$subs.awk <<_ACEOF" &&
6214 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6217 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6218 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6220 for ac_last_try in false false false false false :; do
6221 . ./conf$$subs.sh ||
6222 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6224 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6225 if test $ac_delim_n = $ac_delim_num; then
6227 elif $ac_last_try; then
6228 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6230 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6236 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6240 s/^/S["/; s/!.*/"]=/
6250 s/\(.\{148\}\)..*/\1/
6252 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6257 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6264 s/\(.\{148\}\)..*/\1/
6266 s/["\\]/\\&/g; s/^/"/; s/$/"/
6270 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6275 ' <conf$$subs.awk | sed '
6280 ' >>$CONFIG_STATUS || ac_write_fail=1
6281 rm -f conf$$subs.awk
6282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6284 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6285 for (key in S) S_is_set[key] = 1
6291 nfields = split(line, field, "@")
6293 len = length(field[1])
6294 for (i = 2; i < nfields; i++) {
6296 keylen = length(key)
6297 if (S_is_set[key]) {
6299 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6300 len += length(value) + length(field[++i])
6311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6312 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6313 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6316 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6317 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6320 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6321 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6322 # trailing colons and then remove the whole line if VPATH becomes empty
6323 # (actually we leave an empty line to preserve line numbers).
6324 if test "x$srcdir" = x.; then
6325 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6344 fi # test -n "$CONFIG_FILES"
6347 eval set X " :F $CONFIG_FILES "
6352 :[FHLC]) ac_mode=$ac_tag; continue;;
6354 case $ac_mode$ac_tag in
6356 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6357 :[FH]-) ac_tag=-:-;;
6358 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6375 -) ac_f="$ac_tmp/stdin";;
6376 *) # Look for the file first in the build tree, then in the source tree
6377 # (if the path is not absolute). The absolute path cannot be DOS-style,
6378 # because $ac_f cannot contain `:'.
6382 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6384 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6386 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6387 as_fn_append ac_file_inputs " '$ac_f'"
6390 # Let's still pretend it is `configure' which instantiates (i.e., don't
6391 # use $as_me), people would be surprised to read:
6392 # /* config.h. Generated by config.status. */
6393 configure_input='Generated from '`
6394 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6396 if test x"$ac_file" != x-; then
6397 configure_input="$ac_file. $configure_input"
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6399 $as_echo "$as_me: creating $ac_file" >&6;}
6401 # Neutralize special characters interpreted by sed in replacement strings.
6402 case $configure_input in #(
6403 *\&* | *\|* | *\\* )
6404 ac_sed_conf_input=`$as_echo "$configure_input" |
6405 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6406 *) ac_sed_conf_input=$configure_input;;
6410 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6416 ac_dir=`$as_dirname -- "$ac_file" ||
6417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6418 X"$ac_file" : 'X\(//\)[^/]' \| \
6419 X"$ac_file" : 'X\(//\)$' \| \
6420 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6421 $as_echo X"$ac_file" |
6422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6439 as_dir="$ac_dir"; as_fn_mkdir_p
6443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6446 # A ".." for each directory in $ac_dir_suffix.
6447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6448 case $ac_top_builddir_sub in
6449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6453 ac_abs_top_builddir=$ac_pwd
6454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6455 # for backward compatibility:
6456 ac_top_builddir=$ac_top_build_prefix
6459 .) # We are building in place.
6461 ac_top_srcdir=$ac_top_builddir_sub
6462 ac_abs_top_srcdir=$ac_pwd ;;
6463 [\\/]* | ?:[\\/]* ) # Absolute name.
6464 ac_srcdir=$srcdir$ac_dir_suffix;
6465 ac_top_srcdir=$srcdir
6466 ac_abs_top_srcdir=$srcdir ;;
6468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6469 ac_top_srcdir=$ac_top_build_prefix$srcdir
6470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6484 # If the template does not know about datarootdir, expand it.
6485 # FIXME: This hack should be removed a few years after 2.60.
6486 ac_datarootdir_hack=; ac_datarootdir_seen=
6497 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6498 *datarootdir*) ac_datarootdir_seen=yes;;
6499 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6501 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6504 ac_datarootdir_hack='
6505 s&@datadir@&$datadir&g
6506 s&@docdir@&$docdir&g
6507 s&@infodir@&$infodir&g
6508 s&@localedir@&$localedir&g
6509 s&@mandir@&$mandir&g
6510 s&\\\${datarootdir}&$datarootdir&g' ;;
6514 # Neutralize VPATH when `$srcdir' = `.'.
6515 # Shell code in configure.ac might set extrasub.
6516 # FIXME: do we really want to maintain this feature?
6517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6518 ac_sed_extra="$ac_vpsub
6521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6524 s|@configure_input@|$ac_sed_conf_input|;t t
6525 s&@top_builddir@&$ac_top_builddir_sub&;t t
6526 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6527 s&@srcdir@&$ac_srcdir&;t t
6528 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6529 s&@top_srcdir@&$ac_top_srcdir&;t t
6530 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6531 s&@builddir@&$ac_builddir&;t t
6532 s&@abs_builddir@&$ac_abs_builddir&;t t
6533 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6534 $ac_datarootdir_hack
6536 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6537 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6539 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6540 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6541 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6542 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6544 which seems to be undefined. Please make sure it is defined" >&5
6545 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6546 which seems to be undefined. Please make sure it is defined" >&2;}
6548 rm -f "$ac_tmp/stdin"
6550 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6551 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6561 case $ac_file$ac_mode in
6562 "sa1":F) chmod +x sa1 ;;
6563 "sa2":F) chmod +x sa2 ;;
6564 "cron/sysstat.crond.sample.in":F) sed s/^/#/ cron/sysstat.crond.sample.in > cron/sysstat.crond.sample ;;
6565 "sysstat":F) chmod +x sysstat ;;
6566 "contrib/isag/isag":F) chmod +x contrib/isag/isag ;;
6574 ac_clean_files=$ac_clean_files_save
6576 test $ac_write_fail = 0 ||
6577 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6580 # configure is writing to config.log, and then calls config.status.
6581 # config.status does its own redirection, appending to config.log.
6582 # Unfortunately, on DOS this fails, as config.log is still kept open
6583 # by configure, so config.status won't be able to write to it; its
6584 # output is simply discarded. So we exec the FD to /dev/null,
6585 # effectively closing config.log, so it can be properly (re)opened and
6586 # appended to by config.status. When coming back to configure, we
6587 # need to make the FD available again.
6588 if test "$no_create" != yes; then
6590 ac_config_status_args=
6591 test "$silent" = yes &&
6592 ac_config_status_args="$ac_config_status_args --quiet"
6594 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6596 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6597 # would make configure fail if this is the last instruction.
6598 $ac_cs_success || as_fn_exit 1
6600 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6602 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6607 Sysstat version: $PACKAGE_VERSION
6608 Installation prefix: $prefix
6609 rc directory: ${RC_DIR}
6610 Init directory: ${INIT_DIR}
6611 Systemd unit dir: ${with_systemdsystemunitdir}
6612 Configuration directory: ${SYSCONFIG_DIR}
6613 Man pages directory: $mandir
6615 Compiler flags: $CFLAGS