2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for sysstat 12.7.1.
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
38 # Reset variables that may have inherited troublesome values from
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
54 # Ensure predictable behavior from utilities with locale-dependent output.
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Find who we are. Look in the path if we contain no directory separator.
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
127 *v*x* | *x*v* ) as_opts=-vx ;;
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 exitcode=1; echo positional parameters were not saved.
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
184 if (eval "$as_required") 2>/dev/null
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 *) as_dir=$as_dir/ ;;
207 for as_base in sh bash ksh sh5; do
208 # Try only shells that exist, to save several forks.
209 as_shell=$as_dir$as_base
210 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
211 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 CONFIG_SHELL=$as_shell as_have_required=yes
214 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
229 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 CONFIG_SHELL=$SHELL as_have_required=yes
236 if test "x$CONFIG_SHELL" != x
239 # We cannot yet assume a decent shell, so we have to provide a
240 # neutralization value for shells without unset; and this also
241 # works around shells that cannot unset nonexistent variables.
242 # Preserve -v and -x to the replacement shell.
245 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 *v*x* | *x*v* ) as_opts=-vx ;;
252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253 # Admittedly, this is quite paranoid, since all the known shells bail
254 # out after a failed `exec'.
255 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 if test x$as_have_required = xno
261 printf "%s\n" "$0: This script requires a shell more modern than all"
262 printf "%s\n" "$0: the shells that I found on your system."
263 if test ${ZSH_VERSION+y} ; then
264 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267 printf "%s\n" "$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;}
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Do nothing but, unlike ":", preserve the value of $?.
323 # Create "$as_dir" as a directory, including parents if necessary.
328 -*) as_dir=./$as_dir;;
330 test -d "$as_dir" || eval $as_mkdir_p || {
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
361 test -d "$as_dir" && break
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 eval 'as_fn_append ()
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
409 as_val=`expr "$@" || test $? -eq 1`
415 # Do nothing but, unlike ":", preserve the value of $?.
422 # as_fn_error STATUS ERROR [LINENO LOG_FD]
423 # ----------------------------------------
424 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
425 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
426 # script with STATUS, using 1 if that was 0.
429 as_status=$1; test $as_status -eq 0 && as_status=1
431 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 printf "%s\n" "$as_me: error: $2" >&2
435 as_fn_exit $as_status
438 if expr a : '\(a\)' >/dev/null 2>&1 &&
439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_me=`$as_basename -- "$0" ||
458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
459 X"$0" : 'X\(//\)$' \| \
460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
461 printf "%s\n" X/"$0" |
462 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 # Avoid depending upon Character Ranges.
477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
480 as_cr_digits='0123456789'
481 as_cr_alnum=$as_cr_Letters$as_cr_digits
484 as_lineno_1=$LINENO as_lineno_1a=$LINENO
485 as_lineno_2=$LINENO as_lineno_2a=$LINENO
486 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
487 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
488 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
500 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 chmod +x "$as_me.lineno" ||
505 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
508 # already done that, so ensure we don't try to do so again and fall
509 # in an infinite loop. This has already happened in practice.
510 _as_can_reexec=no; export _as_can_reexec
511 # Don't try to exec as it changes $[0], causing all sort of problems
512 # (the dirname of $[0] is not the place where we might find the
513 # original and so on. Autoconf is especially sensitive to this).
515 # Exit status is that of the last command.
520 # Determine whether it's possible to make 'echo' print without a newline.
521 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
522 # for compatibility with existing Makefiles.
523 ECHO_C= ECHO_N= ECHO_T=
524 case `echo -n x` in #(((((
526 case `echo 'xy\c'` in
527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
536 # For backward compatibility with old third-party macros, we provide
537 # the shell variables $as_echo and $as_echo_n. New code should use
538 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
539 as_echo='printf %s\n'
540 as_echo_n='printf %s'
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
548 mkdir conf$$.dir 2>/dev/null
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
553 # ... but there are two gotchas:
554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
556 # In both cases, we have to default to `cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559 elif ln conf$$.file conf$$ 2>/dev/null; then
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
573 test -d ./-p && rmdir ./-p
578 as_executable_p=as_fn_executable_p
580 # Sed expression to map a string onto a valid CPP name.
581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583 # Sed expression to map a string onto a valid variable name.
584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
587 test -n "$DJDIR" || exec 7<&0 </dev/null
591 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
592 # so uname gets run too.
593 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598 ac_default_prefix=/usr/local
600 ac_config_libobj_dir=.
607 # Identity of this package.
608 PACKAGE_NAME='sysstat'
609 PACKAGE_TARNAME='sysstat'
610 PACKAGE_VERSION='12.7.1'
611 PACKAGE_STRING='sysstat 12.7.1'
615 ac_unique_file="ioconf.h"
616 # Factoring default headers for most tests.
617 ac_includes_default="\
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
634 #ifdef HAVE_STRINGS_H
635 # include <strings.h>
637 #ifdef HAVE_SYS_TYPES_H
638 # include <sys/types.h>
640 #ifdef HAVE_SYS_STAT_H
641 # include <sys/stat.h>
648 ac_subst_vars='LTLIBOBJS
671 IGNORE_FILE_ATTRIBUTES
766 program_transform_name
779 enable_option_checking
780 with_systemdsystemunitdir
788 enable_compress_manpg
798 ac_precious_vars='build_alias
821 # Initialize some variables set by options.
823 ac_init_version=false
824 ac_unrecognized_opts=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
835 program_transform_name=s,x,x,
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 runstatedir='${localstatedir}/run'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 case $ac_dashdash$ac_option in
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: \`$ac_useropt'"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
937 eval enable_$ac_useropt=no ;;
939 -docdir | --docdir | --docdi | --doc | --do)
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: \`$ac_useropt'"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
963 eval enable_$ac_useropt=\$ac_optarg ;;
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
978 -help | --help | --hel | --he | -h)
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 htmldir=$ac_optarg ;;
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1008 -libdir | --libdir | --libdi | --libd)
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1099 -psdir | --psdir | --psdi | --psd | --ps)
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1108 -runstatedir | --runstatedir | --runstatedi | --runstated \
1109 | --runstate | --runstat | --runsta | --runst | --runs \
1110 | --run | --ru | --r)
1111 ac_prev=runstatedir ;;
1112 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1113 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1114 | --run=* | --ru=* | --r=*)
1115 runstatedir=$ac_optarg ;;
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 sbindir=$ac_optarg ;;
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 sharedstatedir=$ac_optarg ;;
1134 -site | --site | --sit)
1136 -site=* | --site=* | --sit=*)
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: \`$ac_useropt'"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1176 eval with_$ac_useropt=\$ac_optarg ;;
1178 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: \`$ac_useropt'"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1192 eval with_$ac_useropt=no ;;
1195 # Obsolete; use --with-x.
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203 x_includes=$ac_optarg ;;
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;;
1212 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213 Try \`$0 --help' for more information"
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1223 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;;
1227 # FIXME: should be removed in autoconf 3.0.
1228 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1231 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error $? "missing argument to $ac_option"
1242 if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1245 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir runstatedir
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1263 # Be sure to have absolute directory names.
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1276 target=$target_alias
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 elif test "x$build_alias" != "x$host_alias"; then
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290 test "$silent" = yes && exec 6>/dev/null
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 as_fn_error $? "working directory cannot be determined"
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 as_fn_error $? "pwd does not report name of working directory"
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 printf "%s\n" X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1333 ac_srcdir_defaulted=no
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343 # When building in place, set srcdir=.
1344 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 # Remove unnecessary trailing slashes from srcdir.
1348 # Double slashes in file names in object file debugging info
1349 # mess up M-x gdb in Emacs.
1351 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 # Report the --help message.
1363 if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
1367 \`configure' configures sysstat 12.7.1 to adapt to many kinds of systems.
1369 Usage: $0 [OPTION]... [VAR=VALUE]...
1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372 VAR=VALUE. See below for descriptions of some of the useful variables.
1374 Defaults for the options are specified in brackets.
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking ...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387 Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
1389 [$ac_default_prefix]
1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 By default, \`make install' will install all the files in
1394 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396 for instance \`--prefix=\$HOME'.
1398 For better control, use the options below.
1400 Fine tuning of the installation directories:
1401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/sysstat]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of sysstat 12.7.1:";;
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --disable-pcp disable PCP support
1438 --disable-sensors disable sensors support
1439 --disable-largefile omit support for large files
1440 --disable-nls disable National Language Support
1441 --enable-lto enable Link Time Optimization
1442 --disable-file-attr do not set attributes on files being installed
1443 --disable-compress-manpg
1444 do not compress sysstat manual pages
1445 --enable-clean-sa-dir clean system activity directory
1446 --enable-install-cron install a crontab to start sar
1447 --enable-use-crond use standard cron daemon
1448 --enable-collect-all collect all possible activities
1449 --enable-copy-only only copy files when installing
1450 --disable-documentation do not install documentation
1451 --enable-debuginfo enable debug output (--debuginfo option)
1452 --disable-stripping do not strip object files
1455 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1456 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1457 --with-systemdsystemunitdir=DIR
1458 Directory for systemd service files
1459 --with-systemdsleepdir=DIR
1460 Directory for systemd suspend/resume scripts
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 rcdir run-commands directory
1471 sa_lib_dir sadc directory
1472 sa_dir system activity directory
1473 sar_dir sar directory
1474 conf_dir sysstat configuration directory
1475 conf_file sysstat configuration file
1476 history number of daily data files to keep (default value is 7)
1478 number of days after which data files are compressed (default
1480 delay_range maximum delay (in seconds) to wait before sa2 script generates
1482 man_group group for manual pages
1483 cron_owner crontab owner
1487 options to be passed to sadc
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1492 Report bugs to the package provider.
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1522 .) # We are building in place.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for configure.gnu first; this name is used for a wrapper for
1539 # Metaconfig's "Configure" on case-insensitive file systems.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1547 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1556 sysstat configure 12.7.1
1557 generated by GNU Autoconf 2.71
1559 Copyright (C) 2021 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext conftest.beam
1577 if { { ac_try="$ac_compile"
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 printf "%s\n" "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext
1599 printf "%s\n" "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1607 } # ac_fn_c_try_compile
1609 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610 # -------------------------------------------------------
1611 # Tests whether HEADER exists and can be compiled using the include files in
1612 # INCLUDES, setting the cache variable VAR accordingly.
1613 ac_fn_c_check_header_compile ()
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 printf %s "checking for $2... " >&6; }
1618 if eval test \${$3+y}
1620 printf %s "(cached) " >&6
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1627 if ac_fn_c_try_compile "$LINENO"
1633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637 printf "%s\n" "$ac_res" >&6; }
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 } # ac_fn_c_check_header_compile
1642 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1643 # -------------------------------------------
1644 # Tests whether TYPE exists after having included INCLUDES, setting cache
1645 # variable VAR accordingly.
1646 ac_fn_c_check_type ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650 printf %s "checking for $2... " >&6; }
1651 if eval test \${$3+y}
1653 printf %s "(cached) " >&6
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1668 if ac_fn_c_try_compile "$LINENO"
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1682 if ac_fn_c_try_compile "$LINENO"
1688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 printf "%s\n" "$ac_res" >&6; }
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 } # ac_fn_c_check_type
1699 # ac_fn_c_try_link LINENO
1700 # -----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded.
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1706 if { { ac_try="$ac_link"
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 printf "%s\n" "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>conftest.err
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest$ac_exeext && {
1725 test "$cross_compiling" = yes ||
1726 test -x conftest$ac_exeext
1731 printf "%s\n" "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1736 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1737 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1738 # interfere with the next link command; also delete a directory that is
1739 # left behind by Apple's compiler. We do this before executing the actions.
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1744 } # ac_fn_c_try_link
1746 # ac_fn_c_check_func LINENO FUNC VAR
1747 # ----------------------------------
1748 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1749 ac_fn_c_check_func ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 printf %s "checking for $2... " >&6; }
1754 if eval test \${$3+y}
1756 printf %s "(cached) " >&6
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1762 #define $2 innocuous_$2
1764 /* System header to define __stub macros and hopefully few prototypes,
1765 which can conflict with char $2 (); below. */
1770 /* Override any GCC internal prototype to avoid an error.
1771 Use char because int might match the return type of a GCC
1772 builtin and then its argument prototype would still apply. */
1777 /* The GNU C library defines this for functions which it implements
1778 to always fail with ENOSYS. Some functions are actually named
1779 something starting with __ and the normal name is an alias. */
1780 #if defined __stub_$2 || defined __stub___$2
1792 if ac_fn_c_try_link "$LINENO"
1798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1799 conftest$ac_exeext conftest.$ac_ext
1802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 printf "%s\n" "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 } # ac_fn_c_check_func
1807 ac_configure_args_raw=
1812 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1814 as_fn_append ac_configure_args_raw " '$ac_arg'"
1817 case $ac_configure_args_raw in
1821 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1822 ac_unsafe_a="$ac_unsafe_z#~"
1823 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1824 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1827 cat >config.log <<_ACEOF
1828 This file contains any messages produced by compilers while
1829 running configure, to aid debugging if configure makes a mistake.
1831 It was created by sysstat $as_me 12.7.1, which was
1832 generated by GNU Autoconf 2.71. Invocation command line was
1834 $ $0$ac_configure_args_raw
1844 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1845 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1846 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1847 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1848 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1850 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1851 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1853 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1854 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1855 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1856 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1857 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1858 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1859 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 case $as_dir in #(((
1870 *) as_dir=$as_dir/ ;;
1872 printf "%s\n" "PATH: $as_dir"
1888 # Keep a trace of the command line.
1889 # Strip out --no-create and --no-recursion so they do not pile up.
1890 # Strip out --silent because we don't want to record it for future runs.
1891 # Also quote any args containing shell meta-characters.
1892 # Make two passes to allow for proper duplicate-argument suppression.
1896 ac_must_keep_next=false
1902 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1903 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1904 | -silent | --silent | --silen | --sile | --sil)
1907 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1910 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1912 as_fn_append ac_configure_args1 " '$ac_arg'"
1913 if test $ac_must_keep_next = true; then
1914 ac_must_keep_next=false # Got value, back to normal.
1917 *=* | --config-cache | -C | -disable-* | --disable-* \
1918 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1919 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1920 | -with-* | --with-* | -without-* | --without-* | --x)
1921 case "$ac_configure_args0 " in
1922 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1925 -* ) ac_must_keep_next=true ;;
1928 as_fn_append ac_configure_args " '$ac_arg'"
1933 { ac_configure_args0=; unset ac_configure_args0;}
1934 { ac_configure_args1=; unset ac_configure_args1;}
1936 # When interrupted or exit'd, cleanup temporary files, and complete
1937 # config.log. We remove comments because anyway the quotes in there
1938 # would cause problems or look ugly.
1939 # WARNING: Use '\'' to represent an apostrophe within the trap.
1940 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1941 trap 'exit_status=$?
1944 # Save into config.log some information that might help in debugging.
1948 printf "%s\n" "## ---------------- ##
1949 ## Cache variables. ##
1950 ## ---------------- ##"
1952 # The following way of writing the cache mishandles newlines in values,
1954 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1955 eval ac_val=\$$ac_var
1959 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1960 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1963 _ | IFS | as_nl) ;; #(
1964 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1965 *) { eval $ac_var=; unset $ac_var;} ;;
1970 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1971 *${as_nl}ac_space=\ *)
1973 "s/'\''/'\''\\\\'\'''\''/g;
1974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1984 printf "%s\n" "## ----------------- ##
1985 ## Output variables. ##
1986 ## ----------------- ##"
1988 for ac_var in $ac_subst_vars
1990 eval ac_val=\$$ac_var
1992 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994 printf "%s\n" "$ac_var='\''$ac_val'\''"
1998 if test -n "$ac_subst_files"; then
1999 printf "%s\n" "## ------------------- ##
2000 ## File substitutions. ##
2001 ## ------------------- ##"
2003 for ac_var in $ac_subst_files
2005 eval ac_val=\$$ac_var
2007 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009 printf "%s\n" "$ac_var='\''$ac_val'\''"
2014 if test -s confdefs.h; then
2015 printf "%s\n" "## ----------- ##
2022 test "$ac_signal" != 0 &&
2023 printf "%s\n" "$as_me: caught signal $ac_signal"
2024 printf "%s\n" "$as_me: exit $exit_status"
2026 rm -f core *.core core.conftest.* &&
2027 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2030 for ac_signal in 1 2 13 15; do
2031 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2035 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2036 rm -f -r conftest* confdefs.h
2038 printf "%s\n" "/* confdefs.h */" > confdefs.h
2040 # Predefined preprocessor variables.
2042 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2044 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2046 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2048 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2050 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2052 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2055 # Let the site file select an alternate cache file if it wants to.
2056 # Prefer an explicitly selected file to automatically selected ones.
2057 if test -n "$CONFIG_SITE"; then
2058 ac_site_files="$CONFIG_SITE"
2059 elif test "x$prefix" != xNONE; then
2060 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2062 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2065 for ac_site_file in $ac_site_files
2067 case $ac_site_file in #(
2071 ac_site_file=./$ac_site_file ;;
2073 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2075 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2076 sed 's/^/| /' "$ac_site_file" >&5
2078 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2079 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2080 as_fn_error $? "failed to load site script $ac_site_file
2081 See \`config.log' for more details" "$LINENO" 5; }
2085 if test -r "$cache_file"; then
2086 # Some versions of bash will fail to source /dev/null (special files
2087 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2088 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2090 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2092 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2093 *) . "./$cache_file";;
2097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2098 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2102 # Test code for whether the C compiler supports C89 (global declarations)
2103 ac_c_conftest_c89_globals='
2104 /* Does the compiler advertise C89 conformance?
2105 Do not test the value of __STDC__, because some compilers set it to 0
2106 while being otherwise adequately conformant. */
2107 #if !defined __STDC__
2108 # error "Compiler does not advertise C89 conformance"
2114 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2115 struct buf { int x; };
2116 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2117 static char *e (p, i)
2123 static char *f (char * (*g) (char **, int), char **p, ...)
2128 s = g (p, va_arg (v,int));
2133 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2134 function prototypes and stuff, but not \xHH hex character constants.
2135 These do not provoke an error unfortunately, instead are silently treated
2136 as an "x". The following induces an error, until -std is added to get
2137 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2138 array size at least. It is necessary to write \x00 == 0 to get something
2139 that is true only with -std. */
2140 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2142 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2143 inside strings and character constants. */
2144 #define FOO(x) '\''x'\''
2145 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2147 int test (int i, double x);
2148 struct s1 {int (*f) (int a);};
2149 struct s2 {int (*f) (double a);};
2150 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2153 # Test code for whether the C compiler supports C89 (body of main).
2154 ac_c_conftest_c89_main='
2155 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2158 # Test code for whether the C compiler supports C99 (global declarations)
2159 ac_c_conftest_c99_globals='
2160 // Does the compiler advertise C99 conformance?
2161 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2162 # error "Compiler does not advertise C99 conformance"
2165 #include <stdbool.h>
2166 extern int puts (const char *);
2167 extern int printf (const char *, ...);
2168 extern int dprintf (int, const char *, ...);
2169 extern void *malloc (size_t);
2171 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2172 // dprintf is used instead of fprintf to avoid needing to declare
2174 #define debug(...) dprintf (2, __VA_ARGS__)
2175 #define showlist(...) puts (#__VA_ARGS__)
2176 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2178 test_varargs_macros (void)
2183 debug ("X = %d\n", x);
2184 showlist (The first, second, and third items.);
2185 report (x>y, "x is %d but y is %d", x, y);
2188 // Check long long types.
2189 #define BIG64 18446744073709551615ull
2190 #define BIG32 4294967295ul
2191 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2193 #error "your preprocessor is broken"
2197 #error "your preprocessor is broken"
2199 static long long int bignum = -9223372036854775807LL;
2200 static unsigned long long int ubignum = BIG64;
2202 struct incomplete_array
2210 const wchar_t *name;
2214 typedef const char *ccp;
2217 test_restrict (ccp restrict text)
2219 // See if C++-style comments work.
2220 // Iterate through items via the restricted pointer.
2221 // Also check for declarations in for loops.
2222 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2227 // Check varargs and va_copy.
2229 test_varargs (const char *format, ...)
2232 va_start (args, format);
2234 va_copy (args_copy, args);
2236 const char *str = "";
2244 case '\''s'\'': // string
2245 str = va_arg (args_copy, const char *);
2247 case '\''d'\'': // int
2248 number = va_arg (args_copy, int);
2250 case '\''f'\'': // float
2251 fnumber = va_arg (args_copy, double);
2260 return *str && number && fnumber;
2264 # Test code for whether the C compiler supports C99 (body of main).
2265 ac_c_conftest_c99_main='
2267 _Bool success = false;
2268 success |= (argc != 0);
2271 if (test_restrict ("String literal") == 0)
2273 char *restrict newvar = "Another string";
2276 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2277 test_varargs_macros ();
2279 // Check flexible array members.
2280 struct incomplete_array *ia =
2281 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2283 for (int i = 0; i < ia->datasize; ++i)
2284 ia->data[i] = i * 1.234;
2286 // Check named initializers.
2287 struct named_init ni = {
2289 .name = L"Test wide string",
2290 .average = 543.34343,
2295 int dynamic_array[ni.number];
2296 dynamic_array[0] = argv[0][0];
2297 dynamic_array[ni.number - 1] = 543;
2299 // work around unused variable warnings
2300 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2301 || dynamic_array[ni.number - 1] != 543);
2304 # Test code for whether the C compiler supports C11 (global declarations)
2305 ac_c_conftest_c11_globals='
2306 // Does the compiler advertise C11 conformance?
2307 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2308 # error "Compiler does not advertise C11 conformance"
2312 char _Alignas (double) aligned_as_double;
2313 char _Alignas (0) no_special_alignment;
2314 extern char aligned_as_int;
2315 char _Alignas (0) _Alignas (int) aligned_as_int;
2320 int_alignment = _Alignof (int),
2321 int_array_alignment = _Alignof (int[100]),
2322 char_alignment = _Alignof (char)
2324 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2327 int _Noreturn does_not_return (void) { for (;;) continue; }
2329 // Check _Static_assert.
2330 struct test_static_assert
2333 _Static_assert (sizeof (int) <= sizeof (long int),
2334 "_Static_assert does not work in struct");
2338 // Check UTF-8 literals.
2339 #define u8 syntax error!
2340 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2342 // Check duplicate typedefs.
2343 typedef long *long_ptr;
2344 typedef long int *long_ptr;
2345 typedef long_ptr long_ptr;
2347 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2351 struct { int i; int j; };
2352 struct { int k; long int l; } w;
2358 # Test code for whether the C compiler supports C11 (body of main).
2359 ac_c_conftest_c11_main='
2360 _Static_assert ((offsetof (struct anonymous, i)
2361 == offsetof (struct anonymous, w.k)),
2362 "Anonymous union alignment botch");
2368 # Test code for whether the C compiler supports C11 (complete).
2369 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2370 ${ac_c_conftest_c99_globals}
2371 ${ac_c_conftest_c11_globals}
2374 main (int argc, char **argv)
2377 ${ac_c_conftest_c89_main}
2378 ${ac_c_conftest_c99_main}
2379 ${ac_c_conftest_c11_main}
2384 # Test code for whether the C compiler supports C99 (complete).
2385 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2386 ${ac_c_conftest_c99_globals}
2389 main (int argc, char **argv)
2392 ${ac_c_conftest_c89_main}
2393 ${ac_c_conftest_c99_main}
2398 # Test code for whether the C compiler supports C89 (complete).
2399 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2402 main (int argc, char **argv)
2405 ${ac_c_conftest_c89_main}
2410 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2411 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2412 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2413 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2414 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2415 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2416 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2417 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2418 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2419 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2420 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2421 # Check that the precious variables saved in the cache have kept the same
2423 ac_cache_corrupted=false
2424 for ac_var in $ac_precious_vars; do
2425 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2426 eval ac_new_set=\$ac_env_${ac_var}_set
2427 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2428 eval ac_new_val=\$ac_env_${ac_var}_value
2429 case $ac_old_set,$ac_new_set in
2431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2432 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2433 ac_cache_corrupted=: ;;
2435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2436 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2437 ac_cache_corrupted=: ;;
2440 if test "x$ac_old_val" != "x$ac_new_val"; then
2441 # differences in whitespace do not lead to failure.
2442 ac_old_val_w=`echo x $ac_old_val`
2443 ac_new_val_w=`echo x $ac_new_val`
2444 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2446 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2447 ac_cache_corrupted=:
2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2450 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2451 eval $ac_var=\$ac_old_val
2453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2454 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2456 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2459 # Pass precious variables to config.status.
2460 if test "$ac_new_set" = set; then
2462 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2463 *) ac_arg=$ac_var=$ac_new_val ;;
2465 case " $ac_configure_args " in
2466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2467 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2471 if $ac_cache_corrupted; then
2472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2473 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2475 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2476 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2477 and start over" "$LINENO" 5
2479 ## -------------------- ##
2480 ## Main body of script. ##
2481 ## -------------------- ##
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2491 # Ensure that a recent enough version of Autoconf is being used
2494 # Check whether the configure script is in the right dir
2499 echo Check programs:
2512 ac_cpp='$CPP $CPPFLAGS'
2513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2516 if test -n "$ac_tool_prefix"; then
2517 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2518 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520 printf %s "checking for $ac_word... " >&6; }
2521 if test ${ac_cv_prog_CC+y}
2523 printf %s "(cached) " >&6
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 case $as_dir in #(((
2535 *) as_dir=$as_dir/ ;;
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2550 if test -n "$CC"; then
2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2552 printf "%s\n" "$CC" >&6; }
2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 printf "%s\n" "no" >&6; }
2560 if test -z "$ac_cv_prog_CC"; then
2562 # Extract the first word of "gcc", so it can be a program name with args.
2563 set dummy gcc; ac_word=$2
2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565 printf %s "checking for $ac_word... " >&6; }
2566 if test ${ac_cv_prog_ac_ct_CC+y}
2568 printf %s "(cached) " >&6
2570 if test -n "$ac_ct_CC"; then
2571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 case $as_dir in #(((
2580 *) as_dir=$as_dir/ ;;
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_ac_ct_CC="gcc"
2585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2595 if test -n "$ac_ct_CC"; then
2596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2597 printf "%s\n" "$ac_ct_CC" >&6; }
2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 printf "%s\n" "no" >&6; }
2603 if test "x$ac_ct_CC" = x; then
2606 case $cross_compiling:$ac_tool_warned in
2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2609 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2610 ac_tool_warned=yes ;;
2618 if test -z "$CC"; then
2619 if test -n "$ac_tool_prefix"; then
2620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2621 set dummy ${ac_tool_prefix}cc; ac_word=$2
2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 printf %s "checking for $ac_word... " >&6; }
2624 if test ${ac_cv_prog_CC+y}
2626 printf %s "(cached) " >&6
2628 if test -n "$CC"; then
2629 ac_cv_prog_CC="$CC" # Let the user override the test.
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 case $as_dir in #(((
2638 *) as_dir=$as_dir/ ;;
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2642 ac_cv_prog_CC="${ac_tool_prefix}cc"
2643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2653 if test -n "$CC"; then
2654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2655 printf "%s\n" "$CC" >&6; }
2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 printf "%s\n" "no" >&6; }
2664 if test -z "$CC"; then
2665 # Extract the first word of "cc", so it can be a program name with args.
2666 set dummy cc; ac_word=$2
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 printf %s "checking for $ac_word... " >&6; }
2669 if test ${ac_cv_prog_CC+y}
2671 printf %s "(cached) " >&6
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 case $as_dir in #(((
2684 *) as_dir=$as_dir/ ;;
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2688 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2689 ac_prog_rejected=yes
2693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2700 if test $ac_prog_rejected = yes; then
2701 # We found a bogon in the path, so make sure we never use it.
2702 set dummy $ac_cv_prog_CC
2704 if test $# != 0; then
2705 # We chose a different compiler from the bogus one.
2706 # However, it has the same basename, so the bogon will be chosen
2707 # first if we set CC to just the basename; use the full file name.
2709 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2715 if test -n "$CC"; then
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717 printf "%s\n" "$CC" >&6; }
2719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 printf "%s\n" "no" >&6; }
2725 if test -z "$CC"; then
2726 if test -n "$ac_tool_prefix"; then
2727 for ac_prog in cl.exe
2729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 printf %s "checking for $ac_word... " >&6; }
2733 if test ${ac_cv_prog_CC+y}
2735 printf %s "(cached) " >&6
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 case $as_dir in #(((
2747 *) as_dir=$as_dir/ ;;
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2762 if test -n "$CC"; then
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2764 printf "%s\n" "$CC" >&6; }
2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 printf "%s\n" "no" >&6; }
2771 test -n "$CC" && break
2774 if test -z "$CC"; then
2776 for ac_prog in cl.exe
2778 # Extract the first word of "$ac_prog", so it can be a program name with args.
2779 set dummy $ac_prog; ac_word=$2
2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 printf %s "checking for $ac_word... " >&6; }
2782 if test ${ac_cv_prog_ac_ct_CC+y}
2784 printf %s "(cached) " >&6
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 case $as_dir in #(((
2796 *) as_dir=$as_dir/ ;;
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2800 ac_cv_prog_ac_ct_CC="$ac_prog"
2801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811 if test -n "$ac_ct_CC"; then
2812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2813 printf "%s\n" "$ac_ct_CC" >&6; }
2815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 printf "%s\n" "no" >&6; }
2820 test -n "$ac_ct_CC" && break
2823 if test "x$ac_ct_CC" = x; then
2826 case $cross_compiling:$ac_tool_warned in
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2829 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2830 ac_tool_warned=yes ;;
2837 if test -z "$CC"; then
2838 if test -n "$ac_tool_prefix"; then
2839 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}clang; ac_word=$2
2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 printf %s "checking for $ac_word... " >&6; }
2843 if test ${ac_cv_prog_CC+y}
2845 printf %s "(cached) " >&6
2847 if test -n "$CC"; then
2848 ac_cv_prog_CC="$CC" # Let the user override the test.
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 case $as_dir in #(((
2857 *) as_dir=$as_dir/ ;;
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2861 ac_cv_prog_CC="${ac_tool_prefix}clang"
2862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2872 if test -n "$CC"; then
2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2874 printf "%s\n" "$CC" >&6; }
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 printf "%s\n" "no" >&6; }
2882 if test -z "$ac_cv_prog_CC"; then
2884 # Extract the first word of "clang", so it can be a program name with args.
2885 set dummy clang; ac_word=$2
2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 printf %s "checking for $ac_word... " >&6; }
2888 if test ${ac_cv_prog_ac_ct_CC+y}
2890 printf %s "(cached) " >&6
2892 if test -n "$ac_ct_CC"; then
2893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 case $as_dir in #(((
2902 *) as_dir=$as_dir/ ;;
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_ac_ct_CC="clang"
2907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917 if test -n "$ac_ct_CC"; then
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2919 printf "%s\n" "$ac_ct_CC" >&6; }
2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 printf "%s\n" "no" >&6; }
2925 if test "x$ac_ct_CC" = x; then
2928 case $cross_compiling:$ac_tool_warned in
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2943 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2945 as_fn_error $? "no acceptable C compiler found in \$PATH
2946 See \`config.log' for more details" "$LINENO" 5; }
2948 # Provide some information about the compiler.
2949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2952 for ac_option in --version -v -V -qversion -version; do
2953 { { ac_try="$ac_compiler $ac_option >&5"
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959 printf "%s\n" "$ac_try_echo"; } >&5
2960 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2962 if test -s conftest.err; then
2964 ... rest of stderr output deleted ...
2965 10q' conftest.err >conftest.er1
2966 cat conftest.er1 >&5
2968 rm -f conftest.er1 conftest.err
2969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }
2973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974 /* end confdefs.h. */
2984 ac_clean_files_save=$ac_clean_files
2985 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2986 # Try to create an executable without -o first, disregard a.out.
2987 # It will help us diagnose broken compilers, and finding out an intuition
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2990 printf %s "checking whether the C compiler works... " >&6; }
2991 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2993 # The possible output files:
2994 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2997 for ac_file in $ac_files
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3001 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3006 if { { ac_try="$ac_link_default"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 printf "%s\n" "$ac_try_echo"; } >&5
3013 (eval "$ac_link_default") 2>&5
3015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }
3018 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3019 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3020 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3021 # so that the user can short-circuit this test for compilers unknown to
3023 for ac_file in $ac_files ''
3025 test -f "$ac_file" || continue
3027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3030 # We found the default executable, but exeext='' is most
3034 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3036 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3038 # We set ac_cv_exeext here because the later test for it is not
3039 # safe: cross compilers may not add the suffix if given an `-o'
3040 # argument, so we may need to know it at that point already.
3041 # Even if this section looks crufty: it has the advantage of
3048 test "$ac_cv_exeext" = no && ac_cv_exeext=
3053 if test -z "$ac_file"
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 printf "%s\n" "no" >&6; }
3057 printf "%s\n" "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3060 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3062 as_fn_error 77 "C compiler cannot create executables
3063 See \`config.log' for more details" "$LINENO" 5; }
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3066 printf "%s\n" "yes" >&6; }
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3069 printf %s "checking for C compiler default output file name... " >&6; }
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3071 printf "%s\n" "$ac_file" >&6; }
3072 ac_exeext=$ac_cv_exeext
3074 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3075 ac_clean_files=$ac_clean_files_save
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3077 printf %s "checking for suffix of executables... " >&6; }
3078 if { { ac_try="$ac_link"
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084 printf "%s\n" "$ac_try_echo"; } >&5
3085 (eval "$ac_link") 2>&5
3087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088 test $ac_status = 0; }
3090 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3091 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3092 # work properly (i.e., refer to `conftest.exe'), while it won't with
3094 for ac_file in conftest.exe conftest conftest.*; do
3095 test -f "$ac_file" || continue
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3098 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3107 See \`config.log' for more details" "$LINENO" 5; }
3109 rm -f conftest conftest$ac_cv_exeext
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3111 printf "%s\n" "$ac_cv_exeext" >&6; }
3113 rm -f conftest.$ac_ext
3114 EXEEXT=$ac_cv_exeext
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3122 FILE *f = fopen ("conftest.out", "w");
3123 return ferror (f) || fclose (f) != 0;
3129 ac_clean_files="$ac_clean_files conftest.out"
3130 # Check that the compiler produces executables we can run. If not, either
3131 # the compiler is broken, or we cross compile.
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3133 printf %s "checking whether we are cross compiling... " >&6; }
3134 if test "$cross_compiling" != yes; then
3135 { { ac_try="$ac_link"
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 printf "%s\n" "$ac_try_echo"; } >&5
3142 (eval "$ac_link") 2>&5
3144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }
3146 if { ac_try='./conftest$ac_cv_exeext'
3147 { { case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 printf "%s\n" "$ac_try_echo"; } >&5
3153 (eval "$ac_try") 2>&5
3155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }; }; then
3159 if test "$cross_compiling" = maybe; then
3162 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3164 as_fn_error 77 "cannot run C compiled programs.
3165 If you meant to cross compile, use \`--host'.
3166 See \`config.log' for more details" "$LINENO" 5; }
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3171 printf "%s\n" "$cross_compiling" >&6; }
3173 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3174 ac_clean_files=$ac_clean_files_save
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3176 printf %s "checking for suffix of object files... " >&6; }
3177 if test ${ac_cv_objext+y}
3179 printf %s "(cached) " >&6
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3192 rm -f conftest.o conftest.obj
3193 if { { ac_try="$ac_compile"
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 printf "%s\n" "$ac_try_echo"; } >&5
3200 (eval "$ac_compile") 2>&5
3202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }
3205 for ac_file in conftest.o conftest.obj conftest.*; do
3206 test -f "$ac_file" || continue;
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3209 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3214 printf "%s\n" "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3217 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error $? "cannot compute suffix of object files: cannot compile
3220 See \`config.log' for more details" "$LINENO" 5; }
3222 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3225 printf "%s\n" "$ac_cv_objext" >&6; }
3226 OBJEXT=$ac_cv_objext
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3229 printf %s "checking whether the compiler supports GNU C... " >&6; }
3230 if test ${ac_cv_c_compiler_gnu+y}
3232 printf %s "(cached) " >&6
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3248 if ac_fn_c_try_compile "$LINENO"
3254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3255 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3259 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262 if test $ac_compiler_gnu = yes; then
3267 ac_test_CFLAGS=${CFLAGS+y}
3268 ac_save_CFLAGS=$CFLAGS
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3270 printf %s "checking whether $CC accepts -g... " >&6; }
3271 if test ${ac_cv_prog_cc_g+y}
3273 printf %s "(cached) " >&6
3275 ac_save_c_werror_flag=$ac_c_werror_flag
3276 ac_c_werror_flag=yes
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3290 if ac_fn_c_try_compile "$LINENO"
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3306 if ac_fn_c_try_compile "$LINENO"
3310 ac_c_werror_flag=$ac_save_c_werror_flag
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3323 if ac_fn_c_try_compile "$LINENO"
3327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3332 ac_c_werror_flag=$ac_save_c_werror_flag
3334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3335 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3336 if test $ac_test_CFLAGS; then
3337 CFLAGS=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339 if test "$GCC" = yes; then
3345 if test "$GCC" = yes; then
3352 if test x$ac_prog_cc_stdc = xno
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3355 printf %s "checking for $CC option to enable C11 features... " >&6; }
3356 if test ${ac_cv_prog_cc_c11+y}
3358 printf %s "(cached) " >&6
3360 ac_cv_prog_cc_c11=no
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3364 $ac_c_conftest_c11_program
3366 for ac_arg in '' -std=gnu11
3368 CC="$ac_save_CC $ac_arg"
3369 if ac_fn_c_try_compile "$LINENO"
3371 ac_cv_prog_cc_c11=$ac_arg
3373 rm -f core conftest.err conftest.$ac_objext conftest.beam
3374 test "x$ac_cv_prog_cc_c11" != "xno" && break
3376 rm -f conftest.$ac_ext
3380 if test "x$ac_cv_prog_cc_c11" = xno
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3383 printf "%s\n" "unsupported" >&6; }
3385 if test "x$ac_cv_prog_cc_c11" = x
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3388 printf "%s\n" "none needed" >&6; }
3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3391 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3392 CC="$CC $ac_cv_prog_cc_c11"
3394 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3398 if test x$ac_prog_cc_stdc = xno
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3401 printf %s "checking for $CC option to enable C99 features... " >&6; }
3402 if test ${ac_cv_prog_cc_c99+y}
3404 printf %s "(cached) " >&6
3406 ac_cv_prog_cc_c99=no
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410 $ac_c_conftest_c99_program
3412 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3414 CC="$ac_save_CC $ac_arg"
3415 if ac_fn_c_try_compile "$LINENO"
3417 ac_cv_prog_cc_c99=$ac_arg
3419 rm -f core conftest.err conftest.$ac_objext conftest.beam
3420 test "x$ac_cv_prog_cc_c99" != "xno" && break
3422 rm -f conftest.$ac_ext
3426 if test "x$ac_cv_prog_cc_c99" = xno
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3429 printf "%s\n" "unsupported" >&6; }
3431 if test "x$ac_cv_prog_cc_c99" = x
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3434 printf "%s\n" "none needed" >&6; }
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3437 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3438 CC="$CC $ac_cv_prog_cc_c99"
3440 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3444 if test x$ac_prog_cc_stdc = xno
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3447 printf %s "checking for $CC option to enable C89 features... " >&6; }
3448 if test ${ac_cv_prog_cc_c89+y}
3450 printf %s "(cached) " >&6
3452 ac_cv_prog_cc_c89=no
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3456 $ac_c_conftest_c89_program
3458 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3460 CC="$ac_save_CC $ac_arg"
3461 if ac_fn_c_try_compile "$LINENO"
3463 ac_cv_prog_cc_c89=$ac_arg
3465 rm -f core conftest.err conftest.$ac_objext conftest.beam
3466 test "x$ac_cv_prog_cc_c89" != "xno" && break
3468 rm -f conftest.$ac_ext
3472 if test "x$ac_cv_prog_cc_c89" = xno
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3475 printf "%s\n" "unsupported" >&6; }
3477 if test "x$ac_cv_prog_cc_c89" = x
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3480 printf "%s\n" "none needed" >&6; }
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3483 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3484 CC="$CC $ac_cv_prog_cc_c89"
3486 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 ac_header= ac_cache=
3499 for ac_item in $ac_header_c_list
3501 if test $ac_cache; then
3502 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3503 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3504 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3506 ac_header= ac_cache=
3507 elif test $ac_header; then
3521 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3524 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3534 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3535 if test ${ac_cv_safe_to_define___extensions__+y}
3537 printf %s "(cached) " >&6
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3542 # define __EXTENSIONS__ 1
3543 $ac_includes_default
3552 if ac_fn_c_try_compile "$LINENO"
3554 ac_cv_safe_to_define___extensions__=yes
3556 ac_cv_safe_to_define___extensions__=no
3558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3561 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3564 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3565 if test ${ac_cv_should_define__xopen_source+y}
3567 printf %s "(cached) " >&6
3569 ac_cv_should_define__xopen_source=no
3570 if test $ac_cv_header_wchar_h = yes
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3585 if ac_fn_c_try_compile "$LINENO"
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3592 #define _XOPEN_SOURCE 500
3603 if ac_fn_c_try_compile "$LINENO"
3605 ac_cv_should_define__xopen_source=yes
3607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3613 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3615 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3617 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3619 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3621 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3623 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3625 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3627 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3629 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3631 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3633 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3635 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3637 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3639 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3641 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3643 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3645 if test $ac_cv_header_minix_config_h = yes
3648 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3650 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3652 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3657 if test $ac_cv_safe_to_define___extensions__ = yes
3659 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3662 if test $ac_cv_should_define__xopen_source = yes
3664 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3669 printf %s "checking whether ln -s works... " >&6; }
3671 if test "$LN_S" = "ln -s"; then
3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673 printf "%s\n" "yes" >&6; }
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3676 printf "%s\n" "no, using $LN_S" >&6; }
3682 # Extract the first word of "chmod", so it can be a program name with args.
3683 set dummy chmod; ac_word=$2
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 printf %s "checking for $ac_word... " >&6; }
3686 if test ${ac_cv_prog_CHMOD+y}
3688 printf %s "(cached) " >&6
3690 if test -n "$CHMOD"; then
3691 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 case $as_dir in #(((
3700 *) as_dir=$as_dir/ ;;
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_CHMOD="chmod"
3705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3714 CHMOD=$ac_cv_prog_CHMOD
3715 if test -n "$CHMOD"; then
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3717 printf "%s\n" "$CHMOD" >&6; }
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 printf "%s\n" "no" >&6; }
3724 # Extract the first word of "chown", so it can be a program name with args.
3725 set dummy chown; ac_word=$2
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 printf %s "checking for $ac_word... " >&6; }
3728 if test ${ac_cv_prog_CHOWN+y}
3730 printf %s "(cached) " >&6
3732 if test -n "$CHOWN"; then
3733 ac_cv_prog_CHOWN="$CHOWN" # Let the user override the test.
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 case $as_dir in #(((
3742 *) as_dir=$as_dir/ ;;
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_CHOWN="chown"
3747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3756 CHOWN=$ac_cv_prog_CHOWN
3757 if test -n "$CHOWN"; then
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHOWN" >&5
3759 printf "%s\n" "$CHOWN" >&6; }
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 printf "%s\n" "no" >&6; }
3766 # Extract the first word of "ar", so it can be a program name with args.
3767 set dummy ar; ac_word=$2
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 printf %s "checking for $ac_word... " >&6; }
3770 if test ${ac_cv_prog_AR+y}
3772 printf %s "(cached) " >&6
3774 if test -n "$AR"; then
3775 ac_cv_prog_AR="$AR" # Let the user override the test.
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 case $as_dir in #(((
3784 *) as_dir=$as_dir/ ;;
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3799 if test -n "$AR"; then
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3801 printf "%s\n" "$AR" >&6; }
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 printf "%s\n" "no" >&6; }
3808 # Extract the first word of "install", so it can be a program name with args.
3809 set dummy install; ac_word=$2
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 printf %s "checking for $ac_word... " >&6; }
3812 if test ${ac_cv_prog_INSTALL+y}
3814 printf %s "(cached) " >&6
3816 if test -n "$INSTALL"; then
3817 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 case $as_dir in #(((
3826 *) as_dir=$as_dir/ ;;
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3830 ac_cv_prog_INSTALL="install"
3831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3840 INSTALL=$ac_cv_prog_INSTALL
3841 if test -n "$INSTALL"; then
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3843 printf "%s\n" "$INSTALL" >&6; }
3845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 printf "%s\n" "no" >&6; }
3850 # Extract the first word of "msgfmt", so it can be a program name with args.
3851 set dummy msgfmt; ac_word=$2
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 printf %s "checking for $ac_word... " >&6; }
3854 if test ${ac_cv_prog_MSGFMT+y}
3856 printf %s "(cached) " >&6
3858 if test -n "$MSGFMT"; then
3859 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 case $as_dir in #(((
3868 *) as_dir=$as_dir/ ;;
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3872 ac_cv_prog_MSGFMT="msgfmt"
3873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3882 MSGFMT=$ac_cv_prog_MSGFMT
3883 if test -n "$MSGFMT"; then
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3885 printf "%s\n" "$MSGFMT" >&6; }
3887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 printf "%s\n" "no" >&6; }
3892 # Extract the first word of "xgettext", so it can be a program name with args.
3893 set dummy xgettext; ac_word=$2
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 printf %s "checking for $ac_word... " >&6; }
3896 if test ${ac_cv_prog_XGETTEXT+y}
3898 printf %s "(cached) " >&6
3900 if test -n "$XGETTEXT"; then
3901 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 case $as_dir in #(((
3910 *) as_dir=$as_dir/ ;;
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3914 ac_cv_prog_XGETTEXT="xgettext"
3915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3924 XGETTEXT=$ac_cv_prog_XGETTEXT
3925 if test -n "$XGETTEXT"; then
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3927 printf "%s\n" "$XGETTEXT" >&6; }
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 printf "%s\n" "no" >&6; }
3934 # Extract the first word of "msgmerge", so it can be a program name with args.
3935 set dummy msgmerge; ac_word=$2
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 printf %s "checking for $ac_word... " >&6; }
3938 if test ${ac_cv_prog_MSGMERGE+y}
3940 printf %s "(cached) " >&6
3942 if test -n "$MSGMERGE"; then
3943 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 case $as_dir in #(((
3952 *) as_dir=$as_dir/ ;;
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3956 ac_cv_prog_MSGMERGE="msgmerge"
3957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3966 MSGMERGE=$ac_cv_prog_MSGMERGE
3967 if test -n "$MSGMERGE"; then
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3969 printf "%s\n" "$MSGMERGE" >&6; }
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 printf "%s\n" "no" >&6; }
3976 # Extract the first word of "xmllint", so it can be a program name with args.
3977 set dummy xmllint; ac_word=$2
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 printf %s "checking for $ac_word... " >&6; }
3980 if test ${ac_cv_prog_VER_XML+y}
3982 printf %s "(cached) " >&6
3984 if test -n "$VER_XML"; then
3985 ac_cv_prog_VER_XML="$VER_XML" # Let the user override the test.
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 case $as_dir in #(((
3994 *) as_dir=$as_dir/ ;;
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3998 ac_cv_prog_VER_XML="xmllint"
3999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4008 VER_XML=$ac_cv_prog_VER_XML
4009 if test -n "$VER_XML"; then
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VER_XML" >&5
4011 printf "%s\n" "$VER_XML" >&6; }
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 printf "%s\n" "no" >&6; }
4018 for ac_prog in json_verify json_pp
4020 # Extract the first word of "$ac_prog", so it can be a program name with args.
4021 set dummy $ac_prog; ac_word=$2
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 printf %s "checking for $ac_word... " >&6; }
4024 if test ${ac_cv_prog_VER_JSON+y}
4026 printf %s "(cached) " >&6
4028 if test -n "$VER_JSON"; then
4029 ac_cv_prog_VER_JSON="$VER_JSON" # Let the user override the test.
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 case $as_dir in #(((
4038 *) as_dir=$as_dir/ ;;
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_VER_JSON="$ac_prog"
4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4052 VER_JSON=$ac_cv_prog_VER_JSON
4053 if test -n "$VER_JSON"; then
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VER_JSON" >&5
4055 printf "%s\n" "$VER_JSON" >&6; }
4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 printf "%s\n" "no" >&6; }
4062 test -n "$VER_JSON" && break
4064 test -n "$VER_JSON" || VER_JSON="true"
4066 for ac_prog in xz bzip2 gzip
4068 # Extract the first word of "$ac_prog", so it can be a program name with args.
4069 set dummy $ac_prog; ac_word=$2
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 printf %s "checking for $ac_word... " >&6; }
4072 if test ${ac_cv_prog_ZIP+y}
4074 printf %s "(cached) " >&6
4076 if test -n "$ZIP"; then
4077 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 case $as_dir in #(((
4086 *) as_dir=$as_dir/ ;;
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4090 ac_cv_prog_ZIP="$ac_prog"
4091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4101 if test -n "$ZIP"; then
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
4103 printf "%s\n" "$ZIP" >&6; }
4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106 printf "%s\n" "no" >&6; }
4110 test -n "$ZIP" && break
4112 test -n "$ZIP" || ZIP="gzip"
4114 INSTALL_DATA="\${INSTALL} -m 644"
4116 INSTALL_BIN="\${INSTALL} -m 755"
4122 # Extract the first word of "cp", so it can be a program name with args.
4123 set dummy cp; ac_word=$2
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 printf %s "checking for $ac_word... " >&6; }
4126 if test ${ac_cv_path_PATH_CP+y}
4128 printf %s "(cached) " >&6
4132 ac_cv_path_PATH_CP="$PATH_CP" # Let the user override the test with a path.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 case $as_dir in #(((
4142 *) as_dir=$as_dir/ ;;
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4146 ac_cv_path_PATH_CP="$as_dir$ac_word$ac_exec_ext"
4147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4157 PATH_CP=$ac_cv_path_PATH_CP
4158 if test -n "$PATH_CP"; then
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_CP" >&5
4160 printf "%s\n" "$PATH_CP" >&6; }
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 printf "%s\n" "no" >&6; }
4167 # Extract the first word of "chkconfig", so it can be a program name with args.
4168 set dummy chkconfig; ac_word=$2
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 printf %s "checking for $ac_word... " >&6; }
4171 if test ${ac_cv_path_PATH_CHKCONFIG+y}
4173 printf %s "(cached) " >&6
4175 case $PATH_CHKCONFIG in
4177 ac_cv_path_PATH_CHKCONFIG="$PATH_CHKCONFIG" # Let the user override the test with a path.
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 case $as_dir in #(((
4187 *) as_dir=$as_dir/ ;;
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4191 ac_cv_path_PATH_CHKCONFIG="$as_dir$ac_word$ac_exec_ext"
4192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4202 PATH_CHKCONFIG=$ac_cv_path_PATH_CHKCONFIG
4203 if test -n "$PATH_CHKCONFIG"; then
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_CHKCONFIG" >&5
4205 printf "%s\n" "$PATH_CHKCONFIG" >&6; }
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 printf "%s\n" "no" >&6; }
4214 # Extract the first word of "pkg-config", so it can be a program name with args.
4215 set dummy pkg-config; ac_word=$2
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 printf %s "checking for $ac_word... " >&6; }
4218 if test ${ac_cv_prog_PKG_CONFIG+y}
4220 printf %s "(cached) " >&6
4222 if test -n "$PKG_CONFIG"; then
4223 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 case $as_dir in #(((
4232 *) as_dir=$as_dir/ ;;
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4236 ac_cv_prog_PKG_CONFIG="pkg-config"
4237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4246 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4247 if test -n "$PKG_CONFIG"; then
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4249 printf "%s\n" "$PKG_CONFIG" >&6; }
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 printf "%s\n" "no" >&6; }
4256 # Extract the first word of "systemctl", so it can be a program name with args.
4257 set dummy systemctl; ac_word=$2
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 printf %s "checking for $ac_word... " >&6; }
4260 if test ${ac_cv_path_SYSTEMCTL+y}
4262 printf %s "(cached) " >&6
4266 ac_cv_path_SYSTEMCTL="$SYSTEMCTL" # Let the user override the test with a path.
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 case $as_dir in #(((
4276 *) as_dir=$as_dir/ ;;
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4280 ac_cv_path_SYSTEMCTL="$as_dir$ac_word$ac_exec_ext"
4281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4291 SYSTEMCTL=$ac_cv_path_SYSTEMCTL
4292 if test -n "$SYSTEMCTL"; then
4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMCTL" >&5
4294 printf "%s\n" "$SYSTEMCTL" >&6; }
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 printf "%s\n" "no" >&6; }
4302 # Check whether --with-systemdsystemunitdir was given.
4303 if test ${with_systemdsystemunitdir+y}
4305 withval=$with_systemdsystemunitdir;
4307 with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
4310 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
4311 SYSTEMD_UNIT_DIR=$with_systemdsystemunitdir
4315 # Check whether --with-systemdsleepdir was given.
4316 if test ${with_systemdsleepdir+y}
4318 withval=$with_systemdsleepdir;
4320 with_systemdsleepdir=$($PKG_CONFIG --variable=systemdsleepdir systemd)
4323 if test -n "$with_systemdsleepdir" -a "x$with_systemdsleepdir" != xno ; then
4324 SYSTEMD_SLEEP_DIR=$with_systemdsleepdir
4330 # Check header files
4332 echo Check header files:
4336 HAVE_SYS_SYSMACROS_H=
4338 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4339 if test "x$ac_cv_header_ctype_h" = xyes
4341 printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
4345 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4346 if test "x$ac_cv_header_errno_h" = xyes
4348 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
4352 for ac_header in libintl.h
4354 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
4355 if test "x$ac_cv_header_libintl_h" = xyes
4357 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
4362 for ac_header in locale.h
4364 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
4365 if test "x$ac_cv_header_locale_h" = xyes
4367 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
4372 for ac_header in linux/sched.h
4374 ac_fn_c_check_header_compile "$LINENO" "linux/sched.h" "ac_cv_header_linux_sched_h" "$ac_includes_default"
4375 if test "x$ac_cv_header_linux_sched_h" = xyes
4377 printf "%s\n" "#define HAVE_LINUX_SCHED_H 1" >>confdefs.h
4378 HAVE_LINUX_SCHED_H=1
4382 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
4383 if test "x$ac_cv_header_net_if_h" = xyes
4385 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
4389 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
4390 if test "x$ac_cv_header_regex_h" = xyes
4392 printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
4396 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
4397 if test "x$ac_cv_header_signal_h" = xyes
4399 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
4403 ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4404 if test "x$ac_cv_header_stdio_h" = xyes
4406 printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
4410 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4411 if test "x$ac_cv_header_stdint_h" = xyes
4413 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
4417 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4418 if test "x$ac_cv_header_fcntl_h" = xyes
4420 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
4424 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4425 if test "x$ac_cv_header_inttypes_h" = xyes
4427 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
4431 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
4432 if test "x$ac_cv_header_libgen_h" = xyes
4434 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
4438 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
4439 if test "x$ac_cv_header_pwd_h" = xyes
4441 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
4445 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
4446 if test "x$ac_cv_header_time_h" = xyes
4448 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
4452 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4453 if test "x$ac_cv_header_unistd_h" = xyes
4455 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
4459 for ac_header in pcp/pmapi.h
4461 ac_fn_c_check_header_compile "$LINENO" "pcp/pmapi.h" "ac_cv_header_pcp_pmapi_h" "$ac_includes_default"
4462 if test "x$ac_cv_header_pcp_pmapi_h" = xyes
4464 printf "%s\n" "#define HAVE_PCP_PMAPI_H 1" >>confdefs.h
4469 for ac_header in pcp/impl.h
4471 ac_fn_c_check_header_compile "$LINENO" "pcp/impl.h" "ac_cv_header_pcp_impl_h" "$ac_includes_default"
4472 if test "x$ac_cv_header_pcp_impl_h" = xyes
4474 printf "%s\n" "#define HAVE_PCP_IMPL_H 1" >>confdefs.h
4479 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4480 if test "x$ac_cv_header_sys_time_h" = xyes
4482 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
4486 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
4487 if test "x$ac_cv_header_sys_statvfs_h" = xyes
4489 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
4493 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4494 if test "x$ac_cv_header_sys_types_h" = xyes
4496 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
4500 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
4501 if test "x$ac_cv_header_sys_file_h" = xyes
4503 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
4507 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4508 if test "x$ac_cv_header_sys_ioctl_h" = xyes
4510 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
4514 for ac_header in sys/param.h
4516 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4517 if test "x$ac_cv_header_sys_param_h" = xyes
4519 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
4524 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
4525 if test "x$ac_cv_header_sys_stat_h" = xyes
4527 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
4531 for ac_header in sys/sysmacros.h
4533 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4534 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
4536 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
4537 HAVE_SYS_SYSMACROS_H=1
4541 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
4542 if test "x$ac_cv_header_sys_utsname_h" = xyes
4544 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
4548 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
4549 if test "x$ac_cv_header_sys_wait_h" = xyes
4551 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4557 echo Check typedefs, structures and compiler characteristics:
4560 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
4563 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4564 if test "x$ac_cv_type_size_t" = xyes
4569 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
4573 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4574 if test "x$ac_cv_type_off_t" = xyes
4579 printf "%s\n" "#define off_t long int" >>confdefs.h
4585 echo Check library functions:
4587 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
4588 if test "x$ac_cv_func_strchr" = xyes
4590 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
4594 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
4595 if test "x$ac_cv_func_strcspn" = xyes
4597 printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
4601 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
4602 if test "x$ac_cv_func_strspn" = xyes
4604 printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
4608 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
4609 if test "x$ac_cv_func_strstr" = xyes
4611 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
4616 # Should we check for PCP support?
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCP support" >&5
4618 printf %s "checking for PCP support... " >&6; }
4619 # Check whether --enable-pcp was given.
4620 if test ${enable_pcp+y}
4622 enableval=$enable_pcp; PCP=$enableval
4627 if test $PCP != "yes"; then
4633 if test ! $HAVE_PCP_PMAPI_H; then
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCP" >&5
4638 printf "%s\n" "$PCP" >&6; }
4640 # Check for PCP libraries
4643 if test $HAVE_PCP = "y"; then
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pmGetVersion in -lpcp" >&5
4646 printf %s "checking for pmGetVersion in -lpcp... " >&6; }
4647 if test ${ac_cv_lib_pcp_pmGetVersion+y}
4649 printf %s "(cached) " >&6
4651 ac_check_lib_save_LIBS=$LIBS
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4656 /* Override any GCC internal prototype to avoid an error.
4657 Use char because int might match the return type of a GCC
4658 builtin and then its argument prototype would still apply. */
4659 char pmGetVersion ();
4663 return pmGetVersion ();
4668 if ac_fn_c_try_link "$LINENO"
4670 ac_cv_lib_pcp_pmGetVersion=yes
4672 ac_cv_lib_pcp_pmGetVersion=no
4674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4675 conftest$ac_exeext conftest.$ac_ext
4676 LIBS=$ac_check_lib_save_LIBS
4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcp_pmGetVersion" >&5
4679 printf "%s\n" "$ac_cv_lib_pcp_pmGetVersion" >&6; }
4680 if test "x$ac_cv_lib_pcp_pmGetVersion" = xyes
4682 LFPCP="-lpcp -lpcp_import"
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCP libraries" >&5
4688 printf %s "checking for PCP libraries... " >&6; }
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4691 #include <pcp/pmapi.h>
4692 #include <pcp/import.h>
4701 if ac_fn_c_try_compile "$LINENO"
4703 PCP=yes; DFPCP="-DHAVE_PCP"
4705 HAVE_PCP="n"; PCP=no
4707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCP" >&5
4709 printf "%s\n" "$PCP" >&6; }
4715 if test $HAVE_PCP_IMPL_H; then
4722 # Should we check for lm_sensors?
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sensors support" >&5
4724 printf %s "checking for sensors support... " >&6; }
4725 # Check whether --enable-sensors was given.
4726 if test ${enable_sensors+y}
4728 enableval=$enable_sensors; SENSORS=$enableval
4733 if test $SENSORS != "yes"; then
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4739 printf "%s\n" "$SENSORS" >&6; }
4741 # Check for lm_sensors library
4745 if test $SENSORS_SUPPORT = "y"; then
4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sensors_get_detected_chips in -lsensors" >&5
4748 printf %s "checking for sensors_get_detected_chips in -lsensors... " >&6; }
4749 if test ${ac_cv_lib_sensors_sensors_get_detected_chips+y}
4751 printf %s "(cached) " >&6
4753 ac_check_lib_save_LIBS=$LIBS
4754 LIBS="-lsensors $LIBS"
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4758 /* Override any GCC internal prototype to avoid an error.
4759 Use char because int might match the return type of a GCC
4760 builtin and then its argument prototype would still apply. */
4761 char sensors_get_detected_chips ();
4765 return sensors_get_detected_chips ();
4770 if ac_fn_c_try_link "$LINENO"
4772 ac_cv_lib_sensors_sensors_get_detected_chips=yes
4774 ac_cv_lib_sensors_sensors_get_detected_chips=no
4776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4777 conftest$ac_exeext conftest.$ac_ext
4778 LIBS=$ac_check_lib_save_LIBS
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_get_detected_chips" >&5
4781 printf "%s\n" "$ac_cv_lib_sensors_sensors_get_detected_chips" >&6; }
4782 if test "x$ac_cv_lib_sensors_sensors_get_detected_chips" = xyes
4784 LFSENSORS="-lsensors"
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sensors library" >&5
4790 printf %s "checking for sensors library... " >&6; }
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4793 #include <sensors/sensors.h>
4794 #include <sensors/error.h>
4803 if ac_fn_c_try_compile "$LINENO"
4805 SENSORS=yes; HAVE_SENSORS="y"; DFSENSORS="-DHAVE_SENSORS"
4807 HAVE_SENSORS="n"; SENSORS=no
4809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4811 printf "%s\n" "$SENSORS" >&6; }
4817 # Check for 32-bit version of lm_sensors library
4821 if test $SENSORS_SUPPORT = "y"; then
4824 LDFLAGS_SAVE=$LDFLAGS
4825 LDFLAGS+=" -lsensors"
4827 # Check for another function to avoid using cached result
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sensors_cleanup in -lsensors" >&5
4829 printf %s "checking for sensors_cleanup in -lsensors... " >&6; }
4830 if test ${ac_cv_lib_sensors_sensors_cleanup+y}
4832 printf %s "(cached) " >&6
4834 ac_check_lib_save_LIBS=$LIBS
4835 LIBS="-lsensors $LIBS"
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4839 /* Override any GCC internal prototype to avoid an error.
4840 Use char because int might match the return type of a GCC
4841 builtin and then its argument prototype would still apply. */
4842 char sensors_cleanup ();
4846 return sensors_cleanup ();
4851 if ac_fn_c_try_link "$LINENO"
4853 ac_cv_lib_sensors_sensors_cleanup=yes
4855 ac_cv_lib_sensors_sensors_cleanup=no
4857 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4858 conftest$ac_exeext conftest.$ac_ext
4859 LIBS=$ac_check_lib_save_LIBS
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_cleanup" >&5
4862 printf "%s\n" "$ac_cv_lib_sensors_sensors_cleanup" >&6; }
4863 if test "x$ac_cv_lib_sensors_sensors_cleanup" = xyes
4865 LFSENSORS32="-lsensors"
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sensors 32-bit library" >&5
4871 printf %s "checking for sensors 32-bit library... " >&6; }
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4874 #include <sensors/sensors.h>
4875 #include <sensors/error.h>
4884 if ac_fn_c_try_link "$LINENO"
4886 SENSORS=yes; HAVE_SENSORS32="y"; DFSENSORS32="-DHAVE_SENSORS32"
4888 HAVE_SENSORS32="n"; SENSORS=no
4890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4891 conftest$ac_exeext conftest.$ac_ext
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4893 printf "%s\n" "$SENSORS" >&6; }
4895 LDFLAGS=$LDFLAGS_SAVE
4901 # Check for 32-bit system libraries
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 32-bit system libraries" >&5
4906 printf %s "checking for 32-bit system libraries... " >&6; }
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4913 printf("%d\n", sizeof(long));
4918 if ac_fn_c_try_compile "$LINENO"
4924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TGLIB32" >&5
4926 printf "%s\n" "$TGLIB32" >&6; }
4931 echo Check system services:
4933 # Check whether --enable-largefile was given.
4934 if test ${enable_largefile+y}
4936 enableval=$enable_largefile;
4939 if test "$enable_largefile" != no; then
4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4942 printf %s "checking for special C compiler options needed for large files... " >&6; }
4943 if test ${ac_cv_sys_largefile_CC+y}
4945 printf %s "(cached) " >&6
4947 ac_cv_sys_largefile_CC=no
4948 if test "$GCC" != yes; then
4951 # IRIX 6.2 and later do not support large files by default,
4952 # so use the C compiler's -n32 option if that helps.
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4955 #include <sys/types.h>
4956 /* Check that off_t can represent 2**63 - 1 correctly.
4957 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4958 since some C++ compilers masquerading as C compilers
4959 incorrectly reject 9223372036854775807. */
4960 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4961 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4962 && LARGE_OFF_T % 2147483647 == 1)
4972 if ac_fn_c_try_compile "$LINENO"
4976 rm -f core conftest.err conftest.$ac_objext conftest.beam
4978 if ac_fn_c_try_compile "$LINENO"
4980 ac_cv_sys_largefile_CC=' -n32'; break
4982 rm -f core conftest.err conftest.$ac_objext conftest.beam
4986 rm -f conftest.$ac_ext
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4990 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
4991 if test "$ac_cv_sys_largefile_CC" != no; then
4992 CC=$CC$ac_cv_sys_largefile_CC
4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4996 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4997 if test ${ac_cv_sys_file_offset_bits+y}
4999 printf %s "(cached) " >&6
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 #include <sys/types.h>
5005 /* Check that off_t can represent 2**63 - 1 correctly.
5006 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5007 since some C++ compilers masquerading as C compilers
5008 incorrectly reject 9223372036854775807. */
5009 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5011 && LARGE_OFF_T % 2147483647 == 1)
5021 if ac_fn_c_try_compile "$LINENO"
5023 ac_cv_sys_file_offset_bits=no; break
5025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5028 #define _FILE_OFFSET_BITS 64
5029 #include <sys/types.h>
5030 /* Check that off_t can represent 2**63 - 1 correctly.
5031 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5032 since some C++ compilers masquerading as C compilers
5033 incorrectly reject 9223372036854775807. */
5034 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5035 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5036 && LARGE_OFF_T % 2147483647 == 1)
5046 if ac_fn_c_try_compile "$LINENO"
5048 ac_cv_sys_file_offset_bits=64; break
5050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5051 ac_cv_sys_file_offset_bits=unknown
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5056 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
5057 case $ac_cv_sys_file_offset_bits in #(
5060 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
5064 if test $ac_cv_sys_file_offset_bits = unknown; then
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5066 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5067 if test ${ac_cv_sys_large_files+y}
5069 printf %s "(cached) " >&6
5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073 /* end confdefs.h. */
5074 #include <sys/types.h>
5075 /* Check that off_t can represent 2**63 - 1 correctly.
5076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5077 since some C++ compilers masquerading as C compilers
5078 incorrectly reject 9223372036854775807. */
5079 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5081 && LARGE_OFF_T % 2147483647 == 1)
5091 if ac_fn_c_try_compile "$LINENO"
5093 ac_cv_sys_large_files=no; break
5095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098 #define _LARGE_FILES 1
5099 #include <sys/types.h>
5100 /* Check that off_t can represent 2**63 - 1 correctly.
5101 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5102 since some C++ compilers masquerading as C compilers
5103 incorrectly reject 9223372036854775807. */
5104 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5105 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5106 && LARGE_OFF_T % 2147483647 == 1)
5116 if ac_fn_c_try_compile "$LINENO"
5118 ac_cv_sys_large_files=1; break
5120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5121 ac_cv_sys_large_files=unknown
5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5126 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
5127 case $ac_cv_sys_large_files in #(
5130 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
5139 echo Check configuration:
5141 # Check arguments used
5143 # Optional Features:
5144 # --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
5145 # --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5146 # --disable-largefile omit support for large files
5147 # --disable-nls disable National Language Support
5148 # --disable-file-attr don't set attributes on files being installed
5149 # --enable-install-cron tell sysstat to install cron scripts
5150 # --collect-all tell sadc to collect all possible data
5151 # --enable-clean-sa-dir clean system activity directory
5152 # --disable-compress-manpg do not compress manual pages when installed
5153 # --enable-debuginfo enable debug output (--debuginfo option)
5154 # --disable-documentation do not install documentation (man pages...)
5155 # --disable-sensors do not link against libsensors even if available
5156 # --disable-pcp do not link against PCP libraries even if available
5157 # --disable-stripping do not strip object files
5158 # --enable-copy-only only copy files when installing sysstat
5159 # --enable-use-crond use standard cron daemon
5160 # --enable-lto compile with Link Time Optimizations
5162 # Some influential environment variables:
5163 # rcdir directory where startup scripts are installed
5164 # sa_lib_dir sadc, sa1 and sa2 directory
5165 # sa_dir system activity daily datafiles directory
5166 # sar_dir sar binary location. Used only in sa2 shell script
5167 # conf_dir sysstat configuration directory (default is /etc/sysconfig)
5168 # conf_file sysstat configuration file (default is sysstat)
5169 # history number of daily datafiles to keep (default value is 7)
5170 # delay_range maximum delay (in seconds) to wait before sa2 script generates its reports
5171 # compressafter number of days after which datafiles are compressed
5172 # man_group group for man pages
5173 # cron_owner crontab owner
5174 # cron_interval crontab sampling interval
5175 # sadc_options options to be passed to sadc
5177 # Fine tuning the installation directories:
5178 # --mandir=DIR man documentation directory [PREFIX/man]
5179 # --docdir=DIR other documentation directory [PREFIX/share/doc]
5181 # Installation directories:
5182 # --prefix=PREFIX install architecture-independent files in PREFIX
5184 # --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5188 if test -d /etc/init.d && test ! -L /etc/init.d; then
5189 if test -d /etc/init.d/rc2.d; then
5196 INIT_DIR=/etc/init.d
5197 elif test -d /sbin/init.d; then
5199 INIT_DIR=/sbin/init.d
5203 INIT_DIR=/etc/rc.d/init.d
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-commands directory" >&5
5208 printf %s "checking run-commands directory... " >&6; }
5210 if test x$rcdir != x""; then
5211 # Override previous rc directories values
5213 INIT_DIR=$rcdir/init.d
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC_DIR" >&5
5217 printf "%s\n" "$RC_DIR" >&6; }
5218 if test ! -d $RC_DIR; then
5219 echo "INFO: Directory ${RC_DIR} doesn't exist."
5220 echo "INFO: Startup scripts won't be installed."
5227 if test $HAVE_SYS_SYSMACROS_H; then
5234 if test $HAVE_LINUX_SCHED_H; then
5241 if test $HAVE_SYS_PARAM_H; then
5248 # Set sadc directory
5249 if test $prefix != "NONE"; then
5252 AuxPrefix=/usr/local
5255 SADC_DIR=$AuxPrefix/lib
5256 if test -d $AuxPrefix/lib64; then
5257 # Verify that this OS is really 64 bit
5258 BITS=$(getconf LONG_BIT 2>/dev/null)
5259 if test $? = 0; then
5260 if test $BITS = 64; then
5261 SADC_DIR=$AuxPrefix/lib64
5264 # Fallback: look for lm (long mode) flag to know if CPU is 64 bit
5265 grep " lm " /proc/cpuinfo >/dev/null 2>&1
5266 if test $? = 0; then
5267 SADC_DIR=$AuxPrefix/lib64
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sadc directory" >&5
5273 printf %s "checking sadc directory... " >&6; }
5275 if test x$sa_lib_dir != x""; then
5276 SA_LIB_DIR=$sa_lib_dir
5278 SA_LIB_DIR=$SADC_DIR/sa
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SA_LIB_DIR" >&5
5281 printf "%s\n" "$SA_LIB_DIR" >&6; }
5282 if test ! -d $SA_LIB_DIR; then
5283 echo "INFO: Directory ${SA_LIB_DIR} will be created during installation stage."
5287 # Set system activity directory
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system activity directory" >&5
5289 printf %s "checking system activity directory... " >&6; }
5291 if test x$sa_dir != x""; then
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SA_DIR" >&5
5297 printf "%s\n" "$SA_DIR" >&6; }
5298 if test ! -d $SA_DIR; then
5299 echo "INFO: Directory ${SA_DIR} will be created during installation stage."
5303 # sar binary location. Used only in sa2 shell script
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sar directory" >&5
5305 printf %s "checking sar directory... " >&6; }
5307 if test x$sar_dir != x""; then
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SAR_DIR" >&5
5313 printf "%s\n" "$SAR_DIR" >&6; }
5316 # Set configuration directory
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysstat configuration directory" >&5
5318 printf %s "checking sysstat configuration directory... " >&6; }
5320 if test x$conf_dir != x""; then
5321 SYSCONFIG_DIR=$conf_dir
5323 SYSCONFIG_DIR=/etc/sysconfig
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSCONFIG_DIR" >&5
5326 printf "%s\n" "$SYSCONFIG_DIR" >&6; }
5327 if test ! -d $SYSCONFIG_DIR; then
5328 echo "INFO: Directory ${SYSCONFIG_DIR} will be created during installation stage."
5332 # Set configuration directory
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysstat configuration file" >&5
5334 printf %s "checking sysstat configuration file... " >&6; }
5336 if test x$conf_file != x""; then
5337 SYSCONFIG_FILE=$conf_file
5339 SYSCONFIG_FILE=sysstat
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSCONFIG_FILE" >&5
5342 printf "%s\n" "$SYSCONFIG_FILE" >&6; }
5345 # National Language Support
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking National Language Support" >&5
5347 printf %s "checking National Language Support... " >&6; }
5348 # Check whether --enable-nls was given.
5349 if test ${enable_nls+y}
5351 enableval=$enable_nls; AUX_NLS=$enableval
5356 if test $AUX_NLS != "no" && test $HAVE_LIBINTL_H && test $HAVE_LOCALE_H; then
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_NLS" >&5
5364 printf "%s\n" "$AUX_NLS" >&6; }
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
5366 printf %s "checking for gettext in -lintl... " >&6; }
5367 if test ${ac_cv_lib_intl_gettext+y}
5369 printf %s "(cached) " >&6
5371 ac_check_lib_save_LIBS=$LIBS
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5376 /* Override any GCC internal prototype to avoid an error.
5377 Use char because int might match the return type of a GCC
5378 builtin and then its argument prototype would still apply. */
5388 if ac_fn_c_try_link "$LINENO"
5390 ac_cv_lib_intl_gettext=yes
5392 ac_cv_lib_intl_gettext=no
5394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5395 conftest$ac_exeext conftest.$ac_ext
5396 LIBS=$ac_check_lib_save_LIBS
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
5399 printf "%s\n" "$ac_cv_lib_intl_gettext" >&6; }
5400 if test "x$ac_cv_lib_intl_gettext" = xyes
5407 if test $AUX_NLS = "yes" && test x$MSGFMT != x"msgfmt"; then
5408 echo "WARNING: msgfmt command not found!"
5411 if test $AUX_NLS = "yes" && test x$XGETTEXT != x"xgettext"; then
5412 echo "WARNING: xgettext command not found!"
5415 if test $AUX_NLS = "yes" && test x$MSGMERGE != x"msgmerge"; then
5416 echo "WARNING: msgmerge command not found!"
5419 if test $NLS = "y" && test $LACKING_GETTEXT = "y"; then
5420 echo "WARNING: Disabling NLS"
5425 # Link Time Optimization
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Link Time Optimization support" >&5
5427 printf %s "checking Link Time Optimization support... " >&6; }
5428 # Check whether --enable-lto was given.
5429 if test ${enable_lto+y}
5431 enableval=$enable_lto; AUX_LTO=$enableval
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_LTO" >&5
5437 printf "%s\n" "$AUX_LTO" >&6; }
5439 if test $AUX_LTO = "yes"; then
5440 # Extract the first word of "gcc-ar", so it can be a program name with args.
5441 set dummy gcc-ar; ac_word=$2
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 printf %s "checking for $ac_word... " >&6; }
5444 if test ${ac_cv_prog_GCC_AR+y}
5446 printf %s "(cached) " >&6
5448 if test -n "$GCC_AR"; then
5449 ac_cv_prog_GCC_AR="$GCC_AR" # Let the user override the test.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 case $as_dir in #(((
5458 *) as_dir=$as_dir/ ;;
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5462 ac_cv_prog_GCC_AR="gcc-ar"
5463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5472 GCC_AR=$ac_cv_prog_GCC_AR
5473 if test -n "$GCC_AR"; then
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCC_AR" >&5
5475 printf "%s\n" "$GCC_AR" >&6; }
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 printf "%s\n" "no" >&6; }
5482 if test x$GCC_AR != x"gcc-ar"; then
5483 echo "WARNING: gcc-ar command not found! Disabling LTO support"
5491 # Data history to keep by sa2
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of daily data files to keep" >&5
5493 printf %s "checking number of daily data files to keep... " >&6; }
5495 if test x$history = x""; then
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HISTORY" >&5
5501 printf "%s\n" "$HISTORY" >&6; }
5504 # Number of days after which datafiles are compressed
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of days after which data files are compressed" >&5
5506 printf %s "checking number of days after which data files are compressed... " >&6; }
5508 if test x$compressafter = x""; then
5511 COMPRESSAFTER=$compressafter
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COMPRESSAFTER" >&5
5514 printf "%s\n" "$COMPRESSAFTER" >&6; }
5517 # Random delay to wait before sa2 script runs
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking random delay to wait before sa2 script runs" >&5
5519 printf %s "checking random delay to wait before sa2 script runs... " >&6; }
5521 if test x$delay_range = x""; then
5524 DELAY_RANGE=$delay_range
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DELAY_RANGE" >&5
5527 printf "%s\n" "$DELAY_RANGE" >&6; }
5531 grep ^man: /etc/group >/dev/null 2>&1
5532 if test $? = 0; then
5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking group for manual pages" >&5
5539 printf %s "checking group for manual pages... " >&6; }
5541 if test x$man_group = x""; then
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5544 printf "%s\n" "$MAN_GROUP" >&6; }
5546 grep ^$man_group: /etc/group >/dev/null 2>&1
5547 if test $? = 1; then
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5550 printf "%s\n" "$MAN_GROUP" >&6; }
5551 echo "WARNING: Group ${man_group} not found: Using ${GRP} instead"
5553 MAN_GROUP=$man_group
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5555 printf "%s\n" "$MAN_GROUP" >&6; }
5560 # Don't set attributes on files being installed?
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether attributes should not be set on files being installed" >&5
5562 printf %s "checking whether attributes should not be set on files being installed... " >&6; }
5563 # Check whether --enable-file-attr was given.
5564 if test ${enable_file_attr+y}
5566 enableval=$enable_file_attr; AUX_IMG=$enableval
5571 if test $AUX_IMG != "no"; then
5572 IGNORE_FILE_ATTRIBUTES=n
5575 IGNORE_FILE_ATTRIBUTES=y
5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_IMG" >&5
5579 printf "%s\n" "$AUX_IMG" >&6; }
5582 # Compress manual pages?
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether manual pages should be compressed" >&5
5584 printf %s "checking whether manual pages should be compressed... " >&6; }
5585 # Check whether --enable-compress-manpg was given.
5586 if test ${enable_compress_manpg+y}
5588 enableval=$enable_compress_manpg; AUX_MPG=$enableval
5593 if test $AUX_MPG != "yes"; then
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_MPG" >&5
5599 printf "%s\n" "$AUX_MPG" >&6; }
5602 # Check whether sa directory should be cleaned
5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether system activity directory should be cleaned" >&5
5604 printf %s "checking whether system activity directory should be cleaned... " >&6; }
5605 # Check whether --enable-clean-sa-dir was given.
5606 if test ${enable_clean_sa_dir+y}
5608 enableval=$enable_clean_sa_dir; AUX_CSD=$enableval
5613 if test $AUX_CSD != "yes"; then
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_CSD" >&5
5620 printf "%s\n" "$AUX_CSD" >&6; }
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cron should start sar automatically" >&5
5625 printf %s "checking whether cron should start sar automatically... " >&6; }
5626 # Check whether --enable-install-cron was given.
5627 if test ${enable_install_cron+y}
5629 enableval=$enable_install_cron; INSTALL_CRON=$enableval
5634 if test $INSTALL_CRON != "yes"; then
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_CRON" >&5
5642 printf "%s\n" "$AUX_CRON" >&6; }
5647 if test $INSTALL_CRON = "y"; then
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking crontab owner" >&5
5649 printf %s "checking crontab owner... " >&6; }
5651 if test x$cron_owner = x""; then
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5654 printf "%s\n" "$CRON_OWNER" >&6; }
5656 grep ^$cron_owner: /etc/passwd >/dev/null 2>&1
5657 if test $? = 1; then
5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5660 printf "%s\n" "$CRON_OWNER" >&6; }
5661 echo "WARNING: User ${cron_owner} not found: Using ${CUSR} instead."
5663 CRON_OWNER=$cron_owner
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5665 printf "%s\n" "$CRON_OWNER" >&6; }
5668 echo "INFO: Crontab for ${CRON_OWNER} will be saved in current directory if necessary"
5669 if test $CRON_OWNER = "root"; then
5672 REM_CHOWN="# REM_CHOWN"
5674 SU_C_OWNER="su $CRON_OWNER -c "
5676 # " (ignore this line)
5680 # Check whether we should use the standard cron daemon
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we should use the standard cron daemon" >&5
5682 printf %s "checking whether we should use the standard cron daemon... " >&6; }
5683 # Check whether --enable-use-crond was given.
5684 if test ${enable_use_crond+y}
5686 enableval=$enable_use_crond; UCROND=$enableval
5691 if test $UCROND != "yes"; then
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UCROND" >&5
5698 printf "%s\n" "$UCROND" >&6; }
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking crontab interval" >&5
5703 printf %s "checking crontab interval... " >&6; }
5705 if test x$cron_interval = x""; then
5708 CRON_INTERVAL=$cron_interval
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CRON_INTERVAL" >&5
5711 printf "%s\n" "$CRON_INTERVAL" >&6; }
5712 CRON_INTERVAL_SEC=`expr ${CRON_INTERVAL} \* 60`
5713 CRON_COUNT=`expr 60 / ${CRON_INTERVAL}`
5715 # Check whether sadc should collect all possible activities
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sadc should collect all possible activities" >&5
5717 printf %s "checking whether sadc should collect all possible activities... " >&6; }
5718 # Check whether --enable-collect-all was given.
5719 if test ${enable_collect_all+y}
5721 enableval=$enable_collect_all; COLLECT_ALL=$enableval
5726 if test $COLLECT_ALL != "yes"; then
5730 COLLECT_ALL="-S XALL"
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_COLL" >&5
5734 printf "%s\n" "$AUX_COLL" >&6; }
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking options to be passed to sadc" >&5
5737 printf %s "checking options to be passed to sadc... " >&6; }
5739 if test x"$sadc_options" != x""; then
5740 SADC_OPT="$sadc_options"
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SADC_OPT" >&5
5745 printf "%s\n" "$SADC_OPT" >&6; }
5748 # Check whether files should only be copied
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether files should only be copied" >&5
5750 printf %s "checking whether files should only be copied... " >&6; }
5751 # Check whether --enable-copy-only was given.
5752 if test ${enable_copy_only+y}
5754 enableval=$enable_copy_only; OCOPY=$enableval
5759 if test $OCOPY != "yes"; then
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCOPY" >&5
5766 printf "%s\n" "$OCOPY" >&6; }
5773 REM_CHOWN="# REM_CHOWN"
5775 CRON_INTERVAL_SEC=600
5788 # Check whether documentation should be installed
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether documentation should be installed" >&5
5790 printf %s "checking whether documentation should be installed... " >&6; }
5791 # Check whether --enable-documentation was given.
5792 if test ${enable_documentation+y}
5794 enableval=$enable_documentation; AUX_DOC=$enableval
5799 if test $AUX_DOC != "no"; then
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_DOC" >&5
5807 printf "%s\n" "$AUX_DOC" >&6; }
5810 # Set directory for installing manual pages (see comment in Makefile)
5813 # Check whether debug mode should be activated
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether debug mode should be activated" >&5
5815 printf %s "checking whether debug mode should be activated... " >&6; }
5816 # Check whether --enable-debuginfo was given.
5817 if test ${enable_debuginfo+y}
5819 enableval=$enable_debuginfo; WITH_DEBUG=yes ; DFLAGS="$DFLAGS -DDEBUG"
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WITH_DEBUG" >&5
5825 printf "%s\n" "$WITH_DEBUG" >&6; }
5829 # Check whether object files should be stripped
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether object files should be stripped" >&5
5831 printf %s "checking whether object files should be stripped... " >&6; }
5832 # Check whether --enable-stripping was given.
5833 if test ${enable_stripping+y}
5835 enableval=$enable_stripping; AUX_STRIP=$enableval
5840 if test $AUX_STRIP != "no"; then
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_STRIP" >&5
5848 printf "%s\n" "$AUX_STRIP" >&6; }
5853 echo Now create files:
5855 ac_config_files="$ac_config_files sa1"
5856 # Permissions must be changed
5857 ac_config_files="$ac_config_files sa2"
5858 # Permissions must be changed
5859 ac_config_files="$ac_config_files cron/crontab:cron/crontab.sample"
5860 # File must be renamed
5861 ac_config_files="$ac_config_files sysstat.sysconfig"
5863 ac_config_files="$ac_config_files version.h:version.in"
5864 # File must be renamed
5865 ac_config_files="$ac_config_files sysconfig.h:sysconfig.in"
5866 # File must be renamed
5867 ac_config_files="$ac_config_files cron/sysstat.cron.daily"
5869 ac_config_files="$ac_config_files cron/sysstat.cron.hourly"
5871 ac_config_files="$ac_config_files cron/sysstat.crond"
5873 ac_config_files="$ac_config_files cron/sysstat.crond.sample.in:cron/sysstat.crond.in"
5875 ac_config_files="$ac_config_files sysstat"
5876 # Permissions must be changed
5877 ac_config_files="$ac_config_files sysstat.service"
5879 ac_config_files="$ac_config_files cron/sysstat-collect.service"
5881 ac_config_files="$ac_config_files cron/sysstat-collect.timer"
5883 ac_config_files="$ac_config_files cron/sysstat-summary.service"
5885 ac_config_files="$ac_config_files cron/sysstat-summary.timer"
5887 ac_config_files="$ac_config_files cron/sysstat.sleep"
5888 # Permissions must be changed
5889 ac_config_files="$ac_config_files man/sa1.8:man/sa1.in"
5890 # File must be renamed
5891 ac_config_files="$ac_config_files man/sa2.8:man/sa2.in"
5892 # File must be renamed
5893 ac_config_files="$ac_config_files man/sadc.8:man/sadc.in"
5894 # File must be renamed
5895 ac_config_files="$ac_config_files man/sadf.1:man/sadf.in"
5896 # File must be renamed
5897 ac_config_files="$ac_config_files man/sar.1:man/sar.in"
5898 # File must be renamed
5899 ac_config_files="$ac_config_files man/sysstat.5:man/sysstat.in"
5900 # File must be renamed
5901 ac_config_files="$ac_config_files man/iostat.1:man/iostat.in"
5902 # File must be renamed
5903 ac_config_files="$ac_config_files man/cifsiostat.1:man/cifsiostat.in"
5904 # File must be renamed
5905 ac_config_files="$ac_config_files tests/variables"
5908 ac_config_files="$ac_config_files Makefile"
5910 cat >confcache <<\_ACEOF
5911 # This file is a shell script that caches the results of configure
5912 # tests run on this system so they can be shared between configure
5913 # scripts and configure runs, see configure's option --config-cache.
5914 # It is not useful on other systems. If it contains results you don't
5915 # want to keep, you may remove or edit it.
5917 # config.status only pays attention to the cache file if you give it
5918 # the --recheck option to rerun configure.
5920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5926 # The following way of writing the cache mishandles newlines in values,
5927 # but we know of no workaround that is simple, portable, and efficient.
5928 # So, we kill variables containing newlines.
5929 # Ultrix sh set writes to stderr and can't be redirected directly,
5930 # and sets the high bit in the cache file unless we assign to the vars.
5932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5933 eval ac_val=\$$ac_var
5937 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5938 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5941 _ | IFS | as_nl) ;; #(
5942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5943 *) { eval $ac_var=; unset $ac_var;} ;;
5949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5950 *${as_nl}ac_space=\ *)
5951 # `set' does not quote correctly, so add quotes: double-quote
5952 # substitution turns \\\\ into \\, and sed turns \\ into \.
5955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5958 # `set' quotes correctly as required by POSIX, so do not add quotes.
5959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5968 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
5970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5973 if test -w "$cache_file"; then
5974 if test "x$cache_file" != "x/dev/null"; then
5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5976 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
5977 if test ! -f "$cache_file" || test -h "$cache_file"; then
5978 cat confcache >"$cache_file"
5980 case $cache_file in #(
5982 mv -f confcache "$cache_file"$$ &&
5983 mv -f "$cache_file"$$ "$cache_file" ;; #(
5985 mv -f confcache "$cache_file" ;;
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5991 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
5996 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5997 # Let make expand exec_prefix.
5998 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6000 # Transform confdefs.h into DEFS.
6001 # Protect against shell expansion while executing Makefile rules.
6002 # Protect against Makefile macro expansion.
6004 # If the first sed substitution is executed (which looks for macros that
6005 # take arguments), then branch to the quote section. Otherwise,
6006 # look for a macro that doesn't take arguments.
6016 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6018 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6022 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6035 DEFS=`sed -n "$ac_script" confdefs.h`
6041 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6042 # 1. Remove the extension, and $U if already installed.
6043 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6044 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6045 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6046 # will be set to the directory where LIBOBJS objects are built.
6047 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6048 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6052 LTLIBOBJS=$ac_ltlibobjs
6056 : "${CONFIG_STATUS=./config.status}"
6058 ac_clean_files_save=$ac_clean_files
6059 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6061 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6063 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6065 # Generated by $as_me.
6066 # Run this file to recreate the current configuration.
6067 # Compiler output produced by configure, useful for debugging
6068 # configure, is in config.log if it exists.
6074 SHELL=\${CONFIG_SHELL-$SHELL}
6077 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6078 ## -------------------- ##
6079 ## M4sh Initialization. ##
6080 ## -------------------- ##
6082 # Be more Bourne compatible
6083 DUALCASE=1; export DUALCASE # for MKS sh
6085 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6089 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6090 # is contrary to our usage. Disable this feature.
6091 alias -g '${1+"$@"}'='"$@"'
6092 setopt NO_GLOB_SUBST
6094 case `(set -o) 2>/dev/null` in #(
6104 # Reset variables that may have inherited troublesome values from
6107 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6108 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6109 # side effect of setting IFS to empty, thus disabling word splitting.)
6110 # Quoting is to prevent editors from complaining about space-tab.
6120 # Ensure predictable behavior from utilities with locale-dependent output.
6126 # We cannot yet rely on "unset" to work, but we need these variables
6127 # to be unset--not just set to an empty or harmless value--now, to
6128 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6129 # also avoids known problems related to "unset" and subshell syntax
6130 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6131 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6132 do eval test \${$as_var+y} \
6133 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6136 # Ensure that fds 0, 1, and 2 are open.
6137 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6138 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6139 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6141 # The user is always right.
6142 if ${PATH_SEPARATOR+false} :; then
6144 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6145 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6151 # Find who we are. Look in the path if we contain no directory separator.
6154 *[\\/]* ) as_myself=$0 ;;
6155 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 case $as_dir in #(((
6162 *) as_dir=$as_dir/ ;;
6164 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6170 # We did not find ourselves, most probably we were run as `sh COMMAND'
6171 # in which case we are not to be found in the path.
6172 if test "x$as_myself" = x; then
6175 if test ! -f "$as_myself"; then
6176 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6182 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6183 # ----------------------------------------
6184 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6185 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6186 # script with STATUS, using 1 if that was 0.
6189 as_status=$1; test $as_status -eq 0 && as_status=1
6191 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6194 printf "%s\n" "$as_me: error: $2" >&2
6195 as_fn_exit $as_status
6200 # as_fn_set_status STATUS
6201 # -----------------------
6202 # Set $? to STATUS, without forking.
6206 } # as_fn_set_status
6210 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6220 # Portably unset VAR.
6223 { eval $1=; unset $1;}
6225 as_unset=as_fn_unset
6227 # as_fn_append VAR VALUE
6228 # ----------------------
6229 # Append the text in VALUE to the end of the definition contained in VAR. Take
6230 # advantage of any shell optimizations that allow amortized linear growth over
6231 # repeated appends, instead of the typical quadratic growth present in naive
6233 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6235 eval 'as_fn_append ()
6246 # as_fn_arith ARG...
6247 # ------------------
6248 # Perform arithmetic evaluation on the ARGs, and store the result in the
6249 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6250 # must be portable across $(()) and expr.
6251 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6253 eval 'as_fn_arith ()
6260 as_val=`expr "$@" || test $? -eq 1`
6265 if expr a : '\(a\)' >/dev/null 2>&1 &&
6266 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6272 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6273 as_basename=basename
6278 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6284 as_me=`$as_basename -- "$0" ||
6285 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6286 X"$0" : 'X\(//\)$' \| \
6287 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6288 printf "%s\n" X/"$0" |
6289 sed '/^.*\/\([^/][^/]*\)\/*$/{
6303 # Avoid depending upon Character Ranges.
6304 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6305 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6306 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6307 as_cr_digits='0123456789'
6308 as_cr_alnum=$as_cr_Letters$as_cr_digits
6311 # Determine whether it's possible to make 'echo' print without a newline.
6312 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6313 # for compatibility with existing Makefiles.
6314 ECHO_C= ECHO_N= ECHO_T=
6315 case `echo -n x` in #(((((
6317 case `echo 'xy\c'` in
6318 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6320 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6327 # For backward compatibility with old third-party macros, we provide
6328 # the shell variables $as_echo and $as_echo_n. New code should use
6329 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6330 as_echo='printf %s\n'
6331 as_echo_n='printf %s'
6333 rm -f conf$$ conf$$.exe conf$$.file
6334 if test -d conf$$.dir; then
6335 rm -f conf$$.dir/conf$$.file
6338 mkdir conf$$.dir 2>/dev/null
6340 if (echo >conf$$.file) 2>/dev/null; then
6341 if ln -s conf$$.file conf$$ 2>/dev/null; then
6343 # ... but there are two gotchas:
6344 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6345 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6346 # In both cases, we have to default to `cp -pR'.
6347 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6349 elif ln conf$$.file conf$$ 2>/dev/null; then
6357 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6358 rmdir conf$$.dir 2>/dev/null
6363 # Create "$as_dir" as a directory, including parents if necessary.
6368 -*) as_dir=./$as_dir;;
6370 test -d "$as_dir" || eval $as_mkdir_p || {
6374 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6375 *) as_qdir=$as_dir;;
6377 as_dirs="'$as_qdir' $as_dirs"
6378 as_dir=`$as_dirname -- "$as_dir" ||
6379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6380 X"$as_dir" : 'X\(//\)[^/]' \| \
6381 X"$as_dir" : 'X\(//\)$' \| \
6382 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6383 printf "%s\n" X"$as_dir" |
6384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6401 test -d "$as_dir" && break
6403 test -z "$as_dirs" || eval "mkdir $as_dirs"
6404 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6408 if mkdir -p . 2>/dev/null; then
6409 as_mkdir_p='mkdir -p "$as_dir"'
6411 test -d ./-p && rmdir ./-p
6416 # as_fn_executable_p FILE
6417 # -----------------------
6418 # Test if FILE is an executable regular file.
6419 as_fn_executable_p ()
6421 test -f "$1" && test -x "$1"
6422 } # as_fn_executable_p
6424 as_executable_p=as_fn_executable_p
6426 # Sed expression to map a string onto a valid CPP name.
6427 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6429 # Sed expression to map a string onto a valid variable name.
6430 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6434 ## ----------------------------------- ##
6435 ## Main body of $CONFIG_STATUS script. ##
6436 ## ----------------------------------- ##
6438 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6441 # Save the log message, to keep $0 and so on meaningful, and to
6442 # report actual input values of CONFIG_FILES etc. instead of their
6443 # values after options handling.
6445 This file was extended by sysstat $as_me 12.7.1, which was
6446 generated by GNU Autoconf 2.71. Invocation command line was
6448 CONFIG_FILES = $CONFIG_FILES
6449 CONFIG_HEADERS = $CONFIG_HEADERS
6450 CONFIG_LINKS = $CONFIG_LINKS
6451 CONFIG_COMMANDS = $CONFIG_COMMANDS
6454 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6459 case $ac_config_files in *"
6460 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6466 # Files that config.status was made for.
6467 config_files="$ac_config_files"
6471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6473 \`$as_me' instantiates files and other configuration actions
6474 from templates according to the current configuration. Unless the files
6475 and actions are specified as TAGs, all are instantiated by default.
6477 Usage: $0 [OPTION]... [TAG]...
6479 -h, --help print this help, then exit
6480 -V, --version print version number and configuration settings, then exit
6481 --config print configuration, then exit
6482 -q, --quiet, --silent
6483 do not print progress messages
6484 -d, --debug don't remove temporary files
6485 --recheck update $as_me by reconfiguring in the same conditions
6486 --file=FILE[:TEMPLATE]
6487 instantiate the configuration file FILE
6489 Configuration files:
6492 Report bugs to the package provider."
6495 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6496 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6498 ac_cs_config='$ac_cs_config_escaped'
6500 sysstat config.status 12.7.1
6501 configured by $0, generated by GNU Autoconf 2.71,
6502 with options \\"\$ac_cs_config\\"
6504 Copyright (C) 2021 Free Software Foundation, Inc.
6505 This config.status script is free software; the Free Software Foundation
6506 gives unlimited permission to copy, distribute and modify it."
6510 test -n "\$AWK" || AWK=awk
6513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6514 # The default lists apply if the user does not specify any file.
6520 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6521 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6525 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6537 # Handling of the options.
6538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6540 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6541 printf "%s\n" "$ac_cs_version"; exit ;;
6542 --config | --confi | --conf | --con | --co | --c )
6543 printf "%s\n" "$ac_cs_config"; exit ;;
6544 --debug | --debu | --deb | --de | --d | -d )
6546 --file | --fil | --fi | --f )
6549 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6550 '') as_fn_error $? "missing file argument" ;;
6552 as_fn_append CONFIG_FILES " '$ac_optarg'"
6553 ac_need_defaults=false;;
6554 --he | --h | --help | --hel | -h )
6555 printf "%s\n" "$ac_cs_usage"; exit ;;
6556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6557 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6561 -*) as_fn_error $? "unrecognized option: \`$1'
6562 Try \`$0 --help' for more information." ;;
6564 *) as_fn_append ac_config_targets " $1"
6565 ac_need_defaults=false ;;
6571 ac_configure_extra_args=
6573 if $ac_cs_silent; then
6575 ac_configure_extra_args="$ac_configure_extra_args --silent"
6579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6580 if \$ac_cs_recheck; then
6581 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6583 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6584 CONFIG_SHELL='$SHELL'
6590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6594 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6595 ## Running $as_me. ##
6597 printf "%s\n" "$ac_log"
6601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6606 # Handling of arguments.
6607 for ac_config_target in $ac_config_targets
6609 case $ac_config_target in
6610 "sa1") CONFIG_FILES="$CONFIG_FILES sa1" ;;
6611 "sa2") CONFIG_FILES="$CONFIG_FILES sa2" ;;
6612 "cron/crontab") CONFIG_FILES="$CONFIG_FILES cron/crontab:cron/crontab.sample" ;;
6613 "sysstat.sysconfig") CONFIG_FILES="$CONFIG_FILES sysstat.sysconfig" ;;
6614 "version.h") CONFIG_FILES="$CONFIG_FILES version.h:version.in" ;;
6615 "sysconfig.h") CONFIG_FILES="$CONFIG_FILES sysconfig.h:sysconfig.in" ;;
6616 "cron/sysstat.cron.daily") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.daily" ;;
6617 "cron/sysstat.cron.hourly") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.hourly" ;;
6618 "cron/sysstat.crond") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond" ;;
6619 "cron/sysstat.crond.sample.in") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond.sample.in:cron/sysstat.crond.in" ;;
6620 "sysstat") CONFIG_FILES="$CONFIG_FILES sysstat" ;;
6621 "sysstat.service") CONFIG_FILES="$CONFIG_FILES sysstat.service" ;;
6622 "cron/sysstat-collect.service") CONFIG_FILES="$CONFIG_FILES cron/sysstat-collect.service" ;;
6623 "cron/sysstat-collect.timer") CONFIG_FILES="$CONFIG_FILES cron/sysstat-collect.timer" ;;
6624 "cron/sysstat-summary.service") CONFIG_FILES="$CONFIG_FILES cron/sysstat-summary.service" ;;
6625 "cron/sysstat-summary.timer") CONFIG_FILES="$CONFIG_FILES cron/sysstat-summary.timer" ;;
6626 "cron/sysstat.sleep") CONFIG_FILES="$CONFIG_FILES cron/sysstat.sleep" ;;
6627 "man/sa1.8") CONFIG_FILES="$CONFIG_FILES man/sa1.8:man/sa1.in" ;;
6628 "man/sa2.8") CONFIG_FILES="$CONFIG_FILES man/sa2.8:man/sa2.in" ;;
6629 "man/sadc.8") CONFIG_FILES="$CONFIG_FILES man/sadc.8:man/sadc.in" ;;
6630 "man/sadf.1") CONFIG_FILES="$CONFIG_FILES man/sadf.1:man/sadf.in" ;;
6631 "man/sar.1") CONFIG_FILES="$CONFIG_FILES man/sar.1:man/sar.in" ;;
6632 "man/sysstat.5") CONFIG_FILES="$CONFIG_FILES man/sysstat.5:man/sysstat.in" ;;
6633 "man/iostat.1") CONFIG_FILES="$CONFIG_FILES man/iostat.1:man/iostat.in" ;;
6634 "man/cifsiostat.1") CONFIG_FILES="$CONFIG_FILES man/cifsiostat.1:man/cifsiostat.in" ;;
6635 "tests/variables") CONFIG_FILES="$CONFIG_FILES tests/variables" ;;
6636 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6638 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6643 # If the user did not use the arguments to specify the items to instantiate,
6644 # then the envvar interface is used. Set only those that are not.
6645 # We use the long form for the default assignment because of an extremely
6646 # bizarre bug on SunOS 4.1.3.
6647 if $ac_need_defaults; then
6648 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6651 # Have a temporary directory for convenience. Make it in the build tree
6652 # simply because there is no reason against having it here, and in addition,
6653 # creating and moving files from /tmp can sometimes cause problems.
6654 # Hook for its removal unless debugging.
6655 # Note that there is a small window in which the directory will not be cleaned:
6656 # after its creation but before its name has been assigned to `$tmp'.
6660 trap 'exit_status=$?
6662 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6664 trap 'as_fn_exit 1' 1 2 13 15
6666 # Create a (secure) tmp directory for tmp files.
6669 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6673 tmp=./conf$$-$RANDOM
6674 (umask 077 && mkdir "$tmp")
6675 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6678 # Set up the scripts for CONFIG_FILES section.
6679 # No need to generate them if there are no CONFIG_FILES.
6680 # This happens for instance with `./config.status config.h'.
6681 if test -n "$CONFIG_FILES"; then
6684 ac_cr=`echo X | tr X '\015'`
6685 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6686 # But we know of no other shell where ac_cr would be empty at this
6687 # point, so we can use a bashism as a fallback.
6688 if test "x$ac_cr" = x; then
6689 eval ac_cr=\$\'\\r\'
6691 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6692 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6698 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6703 echo "cat >conf$$subs.awk <<_ACEOF" &&
6704 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6708 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6710 for ac_last_try in false false false false false :; do
6711 . ./conf$$subs.sh ||
6712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6714 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6715 if test $ac_delim_n = $ac_delim_num; then
6717 elif $ac_last_try; then
6718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6726 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6730 s/^/S["/; s/!.*/"]=/
6740 s/\(.\{148\}\)..*/\1/
6742 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6747 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6754 s/\(.\{148\}\)..*/\1/
6756 s/["\\]/\\&/g; s/^/"/; s/$/"/
6760 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6765 ' <conf$$subs.awk | sed '
6770 ' >>$CONFIG_STATUS || ac_write_fail=1
6771 rm -f conf$$subs.awk
6772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6774 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6775 for (key in S) S_is_set[key] = 1
6781 nfields = split(line, field, "@")
6783 len = length(field[1])
6784 for (i = 2; i < nfields; i++) {
6786 keylen = length(key)
6787 if (S_is_set[key]) {
6789 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6790 len += length(value) + length(field[++i])
6801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6802 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6803 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6806 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6807 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6810 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6811 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6812 # trailing colons and then remove the whole line if VPATH becomes empty
6813 # (actually we leave an empty line to preserve line numbers).
6814 if test "x$srcdir" = x.; then
6815 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6834 fi # test -n "$CONFIG_FILES"
6837 eval set X " :F $CONFIG_FILES "
6842 :[FHLC]) ac_mode=$ac_tag; continue;;
6844 case $ac_mode$ac_tag in
6846 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6847 :[FH]-) ac_tag=-:-;;
6848 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6865 -) ac_f="$ac_tmp/stdin";;
6866 *) # Look for the file first in the build tree, then in the source tree
6867 # (if the path is not absolute). The absolute path cannot be DOS-style,
6868 # because $ac_f cannot contain `:'.
6872 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6874 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6876 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6877 as_fn_append ac_file_inputs " '$ac_f'"
6880 # Let's still pretend it is `configure' which instantiates (i.e., don't
6881 # use $as_me), people would be surprised to read:
6882 # /* config.h. Generated by config.status. */
6883 configure_input='Generated from '`
6884 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6886 if test x"$ac_file" != x-; then
6887 configure_input="$ac_file. $configure_input"
6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6889 printf "%s\n" "$as_me: creating $ac_file" >&6;}
6891 # Neutralize special characters interpreted by sed in replacement strings.
6892 case $configure_input in #(
6893 *\&* | *\|* | *\\* )
6894 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
6895 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6896 *) ac_sed_conf_input=$configure_input;;
6900 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6906 ac_dir=`$as_dirname -- "$ac_file" ||
6907 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6908 X"$ac_file" : 'X\(//\)[^/]' \| \
6909 X"$ac_file" : 'X\(//\)$' \| \
6910 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6911 printf "%s\n" X"$ac_file" |
6912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6929 as_dir="$ac_dir"; as_fn_mkdir_p
6933 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6935 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
6936 # A ".." for each directory in $ac_dir_suffix.
6937 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6938 case $ac_top_builddir_sub in
6939 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6940 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6943 ac_abs_top_builddir=$ac_pwd
6944 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6945 # for backward compatibility:
6946 ac_top_builddir=$ac_top_build_prefix
6949 .) # We are building in place.
6951 ac_top_srcdir=$ac_top_builddir_sub
6952 ac_abs_top_srcdir=$ac_pwd ;;
6953 [\\/]* | ?:[\\/]* ) # Absolute name.
6954 ac_srcdir=$srcdir$ac_dir_suffix;
6955 ac_top_srcdir=$srcdir
6956 ac_abs_top_srcdir=$srcdir ;;
6958 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6959 ac_top_srcdir=$ac_top_build_prefix$srcdir
6960 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6962 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6974 # If the template does not know about datarootdir, expand it.
6975 # FIXME: This hack should be removed a few years after 2.60.
6976 ac_datarootdir_hack=; ac_datarootdir_seen=
6987 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6988 *datarootdir*) ac_datarootdir_seen=yes;;
6989 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6991 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6994 ac_datarootdir_hack='
6995 s&@datadir@&$datadir&g
6996 s&@docdir@&$docdir&g
6997 s&@infodir@&$infodir&g
6998 s&@localedir@&$localedir&g
6999 s&@mandir@&$mandir&g
7000 s&\\\${datarootdir}&$datarootdir&g' ;;
7004 # Neutralize VPATH when `$srcdir' = `.'.
7005 # Shell code in configure.ac might set extrasub.
7006 # FIXME: do we really want to maintain this feature?
7007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7008 ac_sed_extra="$ac_vpsub
7011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7014 s|@configure_input@|$ac_sed_conf_input|;t t
7015 s&@top_builddir@&$ac_top_builddir_sub&;t t
7016 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7017 s&@srcdir@&$ac_srcdir&;t t
7018 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7019 s&@top_srcdir@&$ac_top_srcdir&;t t
7020 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7021 s&@builddir@&$ac_builddir&;t t
7022 s&@abs_builddir@&$ac_abs_builddir&;t t
7023 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7024 $ac_datarootdir_hack
7026 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7027 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7029 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7030 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7031 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7032 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7034 which seems to be undefined. Please make sure it is defined" >&5
7035 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7036 which seems to be undefined. Please make sure it is defined" >&2;}
7038 rm -f "$ac_tmp/stdin"
7040 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7041 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7051 case $ac_file$ac_mode in
7052 "sa1":F) chmod +x sa1 ;;
7053 "sa2":F) chmod +x sa2 ;;
7054 "cron/sysstat.crond.sample.in":F) sed s/^/#/ cron/sysstat.crond.sample.in > cron/sysstat.crond.sample ;;
7055 "sysstat":F) chmod +x sysstat ;;
7056 "cron/sysstat.sleep":F) chmod +x cron/sysstat.sleep ;;
7064 ac_clean_files=$ac_clean_files_save
7066 test $ac_write_fail = 0 ||
7067 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7070 # configure is writing to config.log, and then calls config.status.
7071 # config.status does its own redirection, appending to config.log.
7072 # Unfortunately, on DOS this fails, as config.log is still kept open
7073 # by configure, so config.status won't be able to write to it; its
7074 # output is simply discarded. So we exec the FD to /dev/null,
7075 # effectively closing config.log, so it can be properly (re)opened and
7076 # appended to by config.status. When coming back to configure, we
7077 # need to make the FD available again.
7078 if test "$no_create" != yes; then
7080 ac_config_status_args=
7081 test "$silent" = yes &&
7082 ac_config_status_args="$ac_config_status_args --quiet"
7084 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7086 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7087 # would make configure fail if this is the last instruction.
7088 $ac_cs_success || as_fn_exit 1
7090 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7092 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7097 Sysstat version: $PACKAGE_VERSION
7098 Installation prefix: $prefix
7099 rc directory: ${RC_DIR}
7100 Init directory: ${INIT_DIR}"
7101 if test "$UCROND" != "yes"; then
7102 echo " Systemd unit dir: ${with_systemdsystemunitdir}"
7103 echo " Systemd sleep dir: ${with_systemdsleepdir}"
7105 echo " Use standard cron daemon"
7107 echo " Configuration file: ${SYSCONFIG_DIR}/${SYSCONFIG_FILE}
7108 Man pages directory: $mandir
7110 Compiler flags: $CFLAGS
7111 Linker flags: $LDFLAGS