]> granicus.if.org Git - sysstat/blobdiff - configure
A_IRQ: sadf: Update PCP interface for interrupts statistics
[sysstat] / configure
index 73dc27bdbe32bc11777cb1775ce24025b3f1c38b..745b66ac0f0e1123325f065f11ca021f01e406f7 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for sysstat 11.1.5.
+# Generated by GNU Autoconf 2.69 for sysstat 12.5.6.
 #
 #
 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -577,8 +577,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='sysstat'
 PACKAGE_TARNAME='sysstat'
-PACKAGE_VERSION='11.1.5'
-PACKAGE_STRING='sysstat 11.1.5'
+PACKAGE_VERSION='12.5.6'
+PACKAGE_STRING='sysstat 12.5.6'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -622,8 +622,8 @@ ac_includes_default="\
 ac_subst_vars='LTLIBOBJS
 LIBOBJS
 STRIP
-DFLAGS
 WITH_DEBUG
+DFLAGS
 INSTALL_DOC
 COLLECT_ALL
 REM_CHOWN
@@ -637,34 +637,53 @@ COPY_ONLY
 SADC_OPT
 sadc_options
 cron_interval
+USE_CROND
 cron_owner
 INSTALL_CRON
 CLEAN_SA_DIR
-INSTALL_ISAG
 COMPRESS_MANPG
 IGNORE_FILE_ATTRIBUTES
 MAN_GROUP
 man_group
-PREALLOC_FACTOR
-prealloc
+DELAY_RANGE
+delay_range
 COMPRESSAFTER
 compressafter
 HISTORY
 history
+LTO
+GCC_AR
 NLS
+LFINTL
+SYSCONFIG_FILE
+conf_file
 SYSCONFIG_DIR
 conf_dir
+SAR_DIR
+sar_dir
 SA_DIR
 sa_dir
 SA_LIB_DIR
 sa_lib_dir
+SYSPARAM
+LINUX_SCHED
+SYSMACROS
 INITD_DIR
 INIT_DIR
 RC_DIR
 rcdir
+TGLIB32
+DFSENSORS32
+LFSENSORS32
+HAVE_SENSORS32
 DFSENSORS
 LFSENSORS
 HAVE_SENSORS
+PCP_IMPL
+DFPCP
+LFPCP
+HAVE_PCP
+SYSTEMD_SLEEP_DIR
 SYSTEMD_UNIT_DIR
 SYSTEMCTL
 PKG_CONFIG
@@ -673,6 +692,8 @@ PATH_CP
 INSTALL_BIN
 INSTALL_DATA
 ZIP
+VER_JSON
+VER_XML
 MSGMERGE
 XGETTEXT
 MSGFMT
@@ -733,14 +754,17 @@ ac_subst_files=''
 ac_user_opts='
 enable_option_checking
 with_systemdsystemunitdir
+with_systemdsleepdir
+enable_pcp
 enable_sensors
 enable_largefile
 enable_nls
+enable_lto
 enable_file_attr
 enable_compress_manpg
-enable_install_isag
 enable_clean_sa_dir
 enable_install_cron
+enable_use_crond
 enable_collect_all
 enable_copy_only
 enable_documentation
@@ -759,10 +783,12 @@ CPP
 rcdir
 sa_lib_dir
 sa_dir
+sar_dir
 conf_dir
+conf_file
 history
 compressafter
-prealloc
+delay_range
 man_group
 cron_owner
 cron_interval
@@ -1307,7 +1333,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures sysstat 11.1.5 to adapt to many kinds of systems.
+\`configure' configures sysstat 12.5.6 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1368,7 +1394,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of sysstat 11.1.5:";;
+     short | recursive ) echo "Configuration of sysstat 12.5.6:";;
    esac
   cat <<\_ACEOF
 
@@ -1376,14 +1402,17 @@ Optional Features:
   --disable-option-checking  ignore unrecognized --enable/--with options
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+  --disable-pcp           disable PCP support
   --disable-sensors       disable sensors support
   --disable-largefile     omit support for large files
   --disable-nls           disable National Language Support
+  --enable-lto            enable Link Time Optimization
   --disable-file-attr     do not set attributes on files being installed
-  --enable-compress-manpg compress sysstat manual pages
-  --enable-install-isag   install isag script
+  --disable-compress-manpg
+                          do not compress sysstat manual pages
   --enable-clean-sa-dir   clean system activity directory
   --enable-install-cron   install a crontab to start sar
+  --enable-use-crond      use standard cron daemon
   --enable-collect-all    collect all possible activities
   --enable-copy-only      only copy files when installing
   --disable-documentation do not install documentation
@@ -1395,6 +1424,8 @@ Optional Packages:
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   --with-systemdsystemunitdir=DIR
                           Directory for systemd service files
+  --with-systemdsleepdir=DIR
+                          Directory for systemd suspend/resume scripts
 
 Some influential environment variables:
   CC          C compiler command
@@ -1408,13 +1439,15 @@ Some influential environment variables:
   rcdir       run-commands directory
   sa_lib_dir  sadc directory
   sa_dir      system activity directory
+  sar_dir     sar directory
   conf_dir    sysstat configuration directory
+  conf_file   sysstat configuration file
   history     number of daily data files to keep (default value is 7)
   compressafter
               number of days after which data files are compressed (default
               value is 10)
-  prealloc    preallocation factor that will determine data files size
-              (default value is 1)
+  delay_range maximum delay (in seconds) to wait before sa2 script generates
+              its reports
   man_group   group for manual pages
   cron_owner  crontab owner
   cron_interval
@@ -1488,7 +1521,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-sysstat configure 11.1.5
+sysstat configure 12.5.6
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1737,52 +1770,6 @@ $as_echo "$ac_res" >&6; }
 
 } # ac_fn_c_check_header_compile
 
-# ac_fn_c_try_link LINENO
-# -----------------------
-# Try to link conftest.$ac_ext, and return whether this succeeded.
-ac_fn_c_try_link ()
-{
-  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-  rm -f conftest.$ac_objext conftest$ac_exeext
-  if { { ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_link") 2>conftest.err
-  ac_status=$?
-  if test -s conftest.err; then
-    grep -v '^ *+' conftest.err >conftest.er1
-    cat conftest.er1 >&5
-    mv -f conftest.er1 conftest.err
-  fi
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext && {
-        test "$cross_compiling" = yes ||
-        test -x conftest$ac_exeext
-       }; then :
-  ac_retval=0
-else
-  $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_retval=1
-fi
-  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
-  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
-  # interfere with the next link command; also delete a directory that is
-  # left behind by Apple's compiler.  We do this before executing the actions.
-  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
-  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-  as_fn_set_status $ac_retval
-
-} # ac_fn_c_try_link
-
 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 # -------------------------------------------
 # Tests whether TYPE exists after having included INCLUDES, setting cache
@@ -1837,6 +1824,52 @@ $as_echo "$ac_res" >&6; }
 
 } # ac_fn_c_check_type
 
+# ac_fn_c_try_link LINENO
+# -----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_link ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  rm -f conftest.$ac_objext conftest$ac_exeext
+  if { { ac_try="$ac_link"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_link") 2>conftest.err
+  ac_status=$?
+  if test -s conftest.err; then
+    grep -v '^ *+' conftest.err >conftest.er1
+    cat conftest.er1 >&5
+    mv -f conftest.er1 conftest.err
+  fi
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } && {
+        test -z "$ac_c_werror_flag" ||
+        test ! -s conftest.err
+       } && test -s conftest$ac_exeext && {
+        test "$cross_compiling" = yes ||
+        test -x conftest$ac_exeext
+       }; then :
+  ac_retval=0
+else
+  $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+       ac_retval=1
+fi
+  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
+  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
+  # interfere with the next link command; also delete a directory that is
+  # left behind by Apple's compiler.  We do this before executing the actions.
+  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+  as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_link
+
 # ac_fn_c_check_func LINENO FUNC VAR
 # ----------------------------------
 # Tests whether FUNC exists, setting the cache variable VAR accordingly
@@ -1907,7 +1940,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by sysstat $as_me 11.1.5, which was
+It was created by sysstat $as_me 12.5.6, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -3789,6 +3822,86 @@ $as_echo "no" >&6; }
 fi
 
 
+# Extract the first word of "xmllint", so it can be a program name with args.
+set dummy xmllint; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_VER_XML+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$VER_XML"; then
+  ac_cv_prog_VER_XML="$VER_XML" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_VER_XML="xmllint"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+VER_XML=$ac_cv_prog_VER_XML
+if test -n "$VER_XML"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VER_XML" >&5
+$as_echo "$VER_XML" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+for ac_prog in json_verify json_pp
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_VER_JSON+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$VER_JSON"; then
+  ac_cv_prog_VER_JSON="$VER_JSON" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_VER_JSON="$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+VER_JSON=$ac_cv_prog_VER_JSON
+if test -n "$VER_JSON"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VER_JSON" >&5
+$as_echo "$VER_JSON" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  test -n "$VER_JSON" && break
+done
+test -n "$VER_JSON" || VER_JSON="true"
+
 for ac_prog in xz bzip2 gzip
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -3837,6 +3950,9 @@ INSTALL_DATA="\${INSTALL} -m 644"
 INSTALL_BIN="\${INSTALL} -m 755"
 
 
+
+
+
 # Extract the first word of "cp", so it can be a program name with args.
 set dummy cp; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -4009,6 +4125,18 @@ if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno
 
 fi
 
+# Check whether --with-systemdsleepdir was given.
+if test "${with_systemdsleepdir+set}" = set; then :
+  withval=$with_systemdsleepdir;
+else
+  with_systemdsleepdir=$($PKG_CONFIG --variable=systemdsleepdir systemd)
+fi
+
+if test -n "$with_systemdsleepdir" -a "x$with_systemdsleepdir" != xno ; then
+    SYSTEMD_SLEEP_DIR=$with_systemdsleepdir
+
+fi
+
 # Check libraries
 
 # Check header files
@@ -4017,366 +4145,254 @@ echo Check header files:
 echo .
 HAVE_LIBINTL_H=
 HAVE_LOCALE_H=
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
-$as_echo_n "checking for ANSI C header files... " >&6; }
-if ${ac_cv_header_stdc+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
+HAVE_SYS_SYSMACROS_H=
+HAVE_SYS_PARAM_H=
+for ac_header in ctype.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
+if test "x$ac_cv_header_ctype_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_CTYPE_H 1
+_ACEOF
 
-int
-main ()
-{
+fi
 
-  ;
-  return 0;
-}
+done
+
+for ac_header in errno.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
+if test "x$ac_cv_header_errno_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_ERRNO_H 1
 _ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_header_stdc=yes
-else
-  ac_cv_header_stdc=no
+
 fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
-if test $ac_cv_header_stdc = yes; then
-  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <string.h>
+done
 
+for ac_header in libintl.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
+if test "x$ac_cv_header_libintl_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBINTL_H 1
 _ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "memchr" >/dev/null 2>&1; then :
+ HAVE_LIBINTL_H=1
+fi
 
-else
-  ac_cv_header_stdc=no
+done
+
+for ac_header in locale.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
+if test "x$ac_cv_header_locale_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LOCALE_H 1
+_ACEOF
+ HAVE_LOCALE_H=1
 fi
-rm -f conftest*
 
+done
+
+for ac_header in linux/sched.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "linux/sched.h" "ac_cv_header_linux_sched_h" "$ac_includes_default"
+if test "x$ac_cv_header_linux_sched_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LINUX_SCHED_H 1
+_ACEOF
+ HAVE_LINUX_SCHED_H=1
 fi
 
-if test $ac_cv_header_stdc = yes; then
-  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdlib.h>
+done
 
+for ac_header in net/if.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
+if test "x$ac_cv_header_net_if_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_NET_IF_H 1
 _ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "free" >/dev/null 2>&1; then :
 
-else
-  ac_cv_header_stdc=no
 fi
-rm -f conftest*
 
-fi
+done
 
-if test $ac_cv_header_stdc = yes; then
-  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
-  if test "$cross_compiling" = yes; then :
-  :
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <ctype.h>
-#include <stdlib.h>
-#if ((' ' & 0x0FF) == 0x020)
-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#else
-# define ISLOWER(c) \
-                  (('a' <= (c) && (c) <= 'i') \
-                    || ('j' <= (c) && (c) <= 'r') \
-                    || ('s' <= (c) && (c) <= 'z'))
-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
-#endif
-
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
-int
-main ()
-{
-  int i;
-  for (i = 0; i < 256; i++)
-    if (XOR (islower (i), ISLOWER (i))
-       || toupper (i) != TOUPPER (i))
-      return 2;
-  return 0;
-}
+for ac_header in regex.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
+if test "x$ac_cv_header_regex_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_REGEX_H 1
 _ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
 
-else
-  ac_cv_header_stdc=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
 fi
 
-fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
-$as_echo "$ac_cv_header_stdc" >&6; }
-if test $ac_cv_header_stdc = yes; then
+done
 
-$as_echo "#define STDC_HEADERS 1" >>confdefs.h
+for ac_header in signal.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
+if test "x$ac_cv_header_signal_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_SIGNAL_H 1
+_ACEOF
 
 fi
 
-ac_header_dirent=no
-for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
-  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
-$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
-if eval \${$as_ac_Header+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <sys/types.h>
-#include <$ac_hdr>
+done
 
-int
-main ()
-{
-if ((DIR *) 0)
-return 0;
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  eval "$as_ac_Header=yes"
-else
-  eval "$as_ac_Header=no"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-eval ac_res=\$$as_ac_Header
-              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+for ac_header in stdio.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
+if test "x$ac_cv_header_stdio_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
+#define HAVE_STDIO_H 1
 _ACEOF
 
-ac_header_dirent=$ac_hdr; break
 fi
 
 done
-# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
-if test $ac_header_dirent = dirent.h; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
-$as_echo_n "checking for library containing opendir... " >&6; }
-if ${ac_cv_search_opendir+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_func_search_save_LIBS=$LIBS
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
 
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char opendir ();
-int
-main ()
-{
-return opendir ();
-  ;
-  return 0;
-}
+for ac_header in stdint.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
+if test "x$ac_cv_header_stdint_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_STDINT_H 1
 _ACEOF
-for ac_lib in '' dir; do
-  if test -z "$ac_lib"; then
-    ac_res="none required"
-  else
-    ac_res=-l$ac_lib
-    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
-  fi
-  if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_search_opendir=$ac_res
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext
-  if ${ac_cv_search_opendir+:} false; then :
-  break
+
 fi
+
 done
-if ${ac_cv_search_opendir+:} false; then :
 
-else
-  ac_cv_search_opendir=no
-fi
-rm conftest.$ac_ext
-LIBS=$ac_func_search_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
-$as_echo "$ac_cv_search_opendir" >&6; }
-ac_res=$ac_cv_search_opendir
-if test "$ac_res" != no; then :
-  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+for ac_header in fcntl.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
+if test "x$ac_cv_header_fcntl_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_FCNTL_H 1
+_ACEOF
 
 fi
 
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
-$as_echo_n "checking for library containing opendir... " >&6; }
-if ${ac_cv_search_opendir+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_func_search_save_LIBS=$LIBS
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
+done
 
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char opendir ();
-int
-main ()
-{
-return opendir ();
-  ;
-  return 0;
-}
+for ac_header in inttypes.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
+if test "x$ac_cv_header_inttypes_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_INTTYPES_H 1
 _ACEOF
-for ac_lib in '' x; do
-  if test -z "$ac_lib"; then
-    ac_res="none required"
-  else
-    ac_res=-l$ac_lib
-    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
-  fi
-  if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_search_opendir=$ac_res
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext
-  if ${ac_cv_search_opendir+:} false; then :
-  break
+
 fi
+
 done
-if ${ac_cv_search_opendir+:} false; then :
 
-else
-  ac_cv_search_opendir=no
-fi
-rm conftest.$ac_ext
-LIBS=$ac_func_search_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
-$as_echo "$ac_cv_search_opendir" >&6; }
-ac_res=$ac_cv_search_opendir
-if test "$ac_res" != no; then :
-  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+for ac_header in libgen.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
+if test "x$ac_cv_header_libgen_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBGEN_H 1
+_ACEOF
 
 fi
 
-fi
+done
 
-for ac_header in ctype.h
+for ac_header in pwd.h
 do :
-  ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
-if test "x$ac_cv_header_ctype_h" = xyes; then :
+  ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
+if test "x$ac_cv_header_pwd_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
-#define HAVE_CTYPE_H 1
+#define HAVE_PWD_H 1
 _ACEOF
 
 fi
 
 done
 
-for ac_header in errno.h
+for ac_header in time.h
 do :
-  ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
-if test "x$ac_cv_header_errno_h" = xyes; then :
+  ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
+if test "x$ac_cv_header_time_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
-#define HAVE_ERRNO_H 1
+#define HAVE_TIME_H 1
 _ACEOF
 
 fi
 
 done
 
-for ac_header in libintl.h
+for ac_header in unistd.h
 do :
-  ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
-if test "x$ac_cv_header_libintl_h" = xyes; then :
+  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
+if test "x$ac_cv_header_unistd_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBINTL_H 1
+#define HAVE_UNISTD_H 1
 _ACEOF
- HAVE_LIBINTL_H=1
+
 fi
 
 done
 
-for ac_header in locale.h
+for ac_header in pcp/pmapi.h
 do :
-  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
-if test "x$ac_cv_header_locale_h" = xyes; then :
+  ac_fn_c_check_header_mongrel "$LINENO" "pcp/pmapi.h" "ac_cv_header_pcp_pmapi_h" "$ac_includes_default"
+if test "x$ac_cv_header_pcp_pmapi_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
-#define HAVE_LOCALE_H 1
+#define HAVE_PCP_PMAPI_H 1
 _ACEOF
- HAVE_LOCALE_H=1
+ HAVE_PCP_PMAPI_H=1
 fi
 
 done
 
-for ac_header in net/if.h
+for ac_header in pcp/impl.h
 do :
-  ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
-if test "x$ac_cv_header_net_if_h" = xyes; then :
+  ac_fn_c_check_header_mongrel "$LINENO" "pcp/impl.h" "ac_cv_header_pcp_impl_h" "$ac_includes_default"
+if test "x$ac_cv_header_pcp_impl_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
-#define HAVE_NET_IF_H 1
+#define HAVE_PCP_IMPL_H 1
 _ACEOF
-
+ HAVE_PCP_IMPL_H=1
 fi
 
 done
 
-for ac_header in regex.h
+for ac_header in sys/time.h
 do :
-  ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
-if test "x$ac_cv_header_regex_h" = xyes; then :
+  ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
+if test "x$ac_cv_header_sys_time_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
-#define HAVE_REGEX_H 1
+#define HAVE_SYS_TIME_H 1
 _ACEOF
 
 fi
 
 done
 
-for ac_header in signal.h
+for ac_header in sys/statvfs.h
 do :
-  ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
-if test "x$ac_cv_header_signal_h" = xyes; then :
+  ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
+if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
-#define HAVE_SIGNAL_H 1
+#define HAVE_SYS_STATVFS_H 1
 _ACEOF
 
 fi
 
 done
 
-for ac_header in stdio.h
+for ac_header in sys/types.h
 do :
-  ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
-if test "x$ac_cv_header_stdio_h" = xyes; then :
+  ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
+if test "x$ac_cv_header_sys_types_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
-#define HAVE_STDIO_H 1
+#define HAVE_SYS_TYPES_H 1
 _ACEOF
 
 fi
@@ -4407,6 +4423,18 @@ fi
 
 done
 
+for ac_header in sys/param.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
+if test "x$ac_cv_header_sys_param_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_SYS_PARAM_H 1
+_ACEOF
+ HAVE_SYS_PARAM_H=1
+fi
+
+done
+
 for ac_header in sys/stat.h
 do :
   ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
@@ -4419,6 +4447,30 @@ fi
 
 done
 
+for ac_header in sys/sysmacros.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
+if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_SYS_SYSMACROS_H 1
+_ACEOF
+ HAVE_SYS_SYSMACROS_H=1
+fi
+
+done
+
+for ac_header in sys/utsname.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
+if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_SYS_UTSNAME_H 1
+_ACEOF
+
+fi
+
+done
+
 
 echo .
 echo Check typedefs, structures and compiler characteristics:
@@ -4527,6 +4579,110 @@ fi
 done
 
 
+# Should we check for PCP support?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCP support" >&5
+$as_echo_n "checking for PCP support... " >&6; }
+# Check whether --enable-pcp was given.
+if test "${enable_pcp+set}" = set; then :
+  enableval=$enable_pcp; PCP=$enableval
+else
+  PCP=yes
+fi
+
+if test $PCP != "yes"; then
+       HAVE_PCP="n"
+else
+       HAVE_PCP="y"
+fi
+
+if test ! $HAVE_PCP_PMAPI_H; then
+       HAVE_PCP="n"
+       PCP=no
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCP" >&5
+$as_echo "$PCP" >&6; }
+
+# Check for PCP libraries
+LFPCP=""
+DFPCP=""
+if test $HAVE_PCP = "y"; then
+       PCP=no
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmGetVersion in -lpcp" >&5
+$as_echo_n "checking for pmGetVersion in -lpcp... " >&6; }
+if ${ac_cv_lib_pcp_pmGetVersion+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpcp  $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char pmGetVersion ();
+int
+main ()
+{
+return pmGetVersion ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_pcp_pmGetVersion=yes
+else
+  ac_cv_lib_pcp_pmGetVersion=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcp_pmGetVersion" >&5
+$as_echo "$ac_cv_lib_pcp_pmGetVersion" >&6; }
+if test "x$ac_cv_lib_pcp_pmGetVersion" = xyes; then :
+  LFPCP="-lpcp -lpcp_import"
+else
+  HAVE_PCP="n"
+fi
+
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCP libraries" >&5
+$as_echo_n "checking for PCP libraries... " >&6; }
+       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <pcp/pmapi.h>
+                                            #include <pcp/import.h>
+int
+main ()
+{
+pmiEnd();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  PCP=yes; DFPCP="-DHAVE_PCP"
+else
+  HAVE_PCP="n"; PCP=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCP" >&5
+$as_echo "$PCP" >&6; }
+fi
+
+
+
+
+if test $HAVE_PCP_IMPL_H; then
+   PCP_IMPL="y"
+else
+   PCP_IMPL="n"
+fi
+
+
 # Should we check for lm_sensors?
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors support" >&5
 $as_echo_n "checking for sensors support... " >&6; }
@@ -4538,18 +4694,20 @@ else
 fi
 
 if test $SENSORS != "yes"; then
-   HAVE_SENSORS="n"
+       SENSORS_SUPPORT="n"
 else
-   HAVE_SENSORS="y"
+       SENSORS_SUPPORT="y"
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
 $as_echo "$SENSORS" >&6; }
 
-# Check for lm_sensors
-SENSORS=no
+# Check for lm_sensors library
 LFSENSORS=""
 DFSENSORS=""
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_get_detected_chips in -lsensors" >&5
+HAVE_SENSORS="n"
+if test $SENSORS_SUPPORT = "y"; then
+       SENSORS=no
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_get_detected_chips in -lsensors" >&5
 $as_echo_n "checking for sensors_get_detected_chips in -lsensors... " >&6; }
 if ${ac_cv_lib_sensors_sensors_get_detected_chips+:} false; then :
   $as_echo_n "(cached) " >&6
@@ -4591,13 +4749,12 @@ else
   HAVE_SENSORS="n"
 fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors lib" >&5
-$as_echo_n "checking for sensors lib... " >&6; }
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors library" >&5
+$as_echo_n "checking for sensors library... " >&6; }
+       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 #include <sensors/sensors.h>
-#include <sensors/error.h>
-
+                                            #include <sensors/error.h>
 int
 main ()
 {
@@ -4607,16 +4764,126 @@ sensors_cleanup();
 }
 _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
-  SENSORS=yes; DFSENSORS="-DHAVE_SENSORS"
+  SENSORS=yes; HAVE_SENSORS="y"; DFSENSORS="-DHAVE_SENSORS"
 else
   HAVE_SENSORS="n"; SENSORS=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
 $as_echo "$SENSORS" >&6; }
+fi
+
 
 
 
+# Check for 32-bit version of lm_sensors library
+LFSENSORS32=""
+DFSENSORS32=""
+HAVE_SENSORS32="n"
+if test $SENSORS_SUPPORT = "y"; then
+       CFLAGS_SAVE=$CFLAGS
+       CFLAGS+=" -m32"
+       LDFLAGS=" -lsensors"
+       SENSORS=no
+#      Check for another function to avoid using cached result
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_cleanup in -lsensors" >&5
+$as_echo_n "checking for sensors_cleanup in -lsensors... " >&6; }
+if ${ac_cv_lib_sensors_sensors_cleanup+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsensors  $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char sensors_cleanup ();
+int
+main ()
+{
+return sensors_cleanup ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_sensors_sensors_cleanup=yes
+else
+  ac_cv_lib_sensors_sensors_cleanup=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_cleanup" >&5
+$as_echo "$ac_cv_lib_sensors_sensors_cleanup" >&6; }
+if test "x$ac_cv_lib_sensors_sensors_cleanup" = xyes; then :
+  LFSENSORS32="-lsensors"
+else
+  HAVE_SENSORS32="n"
+fi
+
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors 32-bit library" >&5
+$as_echo_n "checking for sensors 32-bit library... " >&6; }
+       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <sensors/sensors.h>
+                                         #include <sensors/error.h>
+int
+main ()
+{
+sensors_cleanup();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  SENSORS=yes; HAVE_SENSORS32="y"; DFSENSORS32="-DHAVE_SENSORS32"
+else
+  HAVE_SENSORS32="n"; SENSORS=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
+$as_echo "$SENSORS" >&6; }
+       CFLAGS=$CFLAGS_SAVE
+fi
+
+
+
+
+# Check for 32-bit system libraries
+TGLIB32=no
+CFLAGS_SAVE=$CFLAGS
+CFLAGS+=" -m32"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit system libraries" >&5
+$as_echo_n "checking for 32-bit system libraries... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <stdio.h>
+int
+main ()
+{
+printf("%d\n", sizeof(long));
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  TGLIB32=yes
+else
+  TGLIB32=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TGLIB32" >&5
+$as_echo "$TGLIB32" >&6; }
+CFLAGS=$CFLAGS_SAVE
+
 
 echo .
 echo Check system services:
@@ -4828,28 +5095,33 @@ echo .
 # Check arguments used
 #
 # Optional Features:
-#  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
-#  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
-#  --disable-largefile     omit support for large files
-#  --disable-nls           disable National Language Support
-#  --disable-file-attr     don't set attributes on files being installed
-#  --enable-install-cron   tell sysstat to install cron scripts
-#  --collect-all           tell sadc to collect all possible data
-#  --enable-clean-sa-dir   clean system activity directory
-#  --enable-compress-manpg compress manual pages
-#  --enable-install-isag   install isag script
-#  --enable-debuginfo      enable debug output (--debuginfo option)
-#  --disable-documentation do not install documentation (man pages...)
-#  --disable-sensors      do not link against libsensors even if available
-#  --disable-stripping     do not strip object files
-#  --enablle-copy-only     only copy files when installing sysstat
+#  --disable-FEATURE        do not include FEATURE (same as --enable-FEATURE=no)
+#  --enable-FEATURE[=ARG]   include FEATURE [ARG=yes]
+#  --disable-largefile      omit support for large files
+#  --disable-nls            disable National Language Support
+#  --disable-file-attr      don't set attributes on files being installed
+#  --enable-install-cron    tell sysstat to install cron scripts
+#  --collect-all            tell sadc to collect all possible data
+#  --enable-clean-sa-dir    clean system activity directory
+#  --disable-compress-manpg do not compress manual pages when installed
+#  --enable-debuginfo       enable debug output (--debuginfo option)
+#  --disable-documentation  do not install documentation (man pages...)
+#  --disable-sensors        do not link against libsensors even if available
+#  --disable-pcp            do not link against PCP libraries even if available
+#  --disable-stripping      do not strip object files
+#  --enable-copy-only       only copy files when installing sysstat
+#  --enable-use-crond       use standard cron daemon
+#  --enable-lto                    compile with Link Time Optimizations
 #
 # Some influential environment variables:
-#  rcdir        directory where startup scripts are installed
+#  rcdir         directory where startup scripts are installed
 #  sa_lib_dir    sadc, sa1 and sa2 directory
 #  sa_dir        system activity daily datafiles directory
-#  conf_dir     sysstat configuration directory (default is /etc/sysconfig)
+#  sar_dir       sar binary location. Used only in sa2 shell script
+#  conf_dir      sysstat configuration directory (default is /etc/sysconfig)
+#  conf_file     sysstat configuration file (default is sysstat)
 #  history       number of daily datafiles to keep (default value is 7)
+#  delay_range   maximum delay (in seconds) to wait before sa2 script generates its reports
 #  compressafter number of days after which datafiles are compressed
 #  man_group     group for man pages
 #  cron_owner    crontab owner
@@ -4858,7 +5130,7 @@ echo .
 #
 # Fine tuning the installation directories:
 #  --mandir=DIR           man documentation directory [PREFIX/man]
-#  --docdir=DIR                  other documentation directory [PREFIX/share/doc]
+#  --docdir=DIR           other documentation directory [PREFIX/share/doc]
 #
 # Installation directories:
 #  --prefix=PREFIX         install architecture-independent files in PREFIX
@@ -4906,6 +5178,27 @@ fi
 
 
 
+if test $HAVE_SYS_SYSMACROS_H; then
+   SYSMACROS="y"
+else
+   SYSMACROS="n"
+fi
+
+
+if test $HAVE_LINUX_SCHED_H; then
+   LINUX_SCHED="y"
+else
+   LINUX_SCHED="n"
+fi
+
+
+if test $HAVE_SYS_PARAM_H; then
+   SYSPARAM="y"
+else
+   SYSPARAM="n"
+fi
+
+
 # Set sadc directory
 if test $prefix != "NONE"; then
    AuxPrefix=$prefix
@@ -4961,6 +5254,19 @@ if test ! -d $SA_DIR; then
 fi
 
 
+# sar binary location. Used only in sa2 shell script
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sar directory" >&5
+$as_echo_n "checking sar directory... " >&6; }
+
+if test x$sar_dir != x""; then
+   SAR_DIR=$sar_dir
+else
+   SAR_DIR=
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAR_DIR" >&5
+$as_echo "$SAR_DIR" >&6; }
+
+
 # Set configuration directory
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysstat configuration directory" >&5
 $as_echo_n "checking sysstat configuration directory... " >&6; }
@@ -4977,6 +5283,19 @@ if test ! -d $SYSCONFIG_DIR; then
 fi
 
 
+# Set configuration directory
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sysstat configuration file" >&5
+$as_echo_n "checking sysstat configuration file... " >&6; }
+
+if test x$conf_file != x""; then
+   SYSCONFIG_FILE=$conf_file
+else
+   SYSCONFIG_FILE=sysstat
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFIG_FILE" >&5
+$as_echo "$SYSCONFIG_FILE" >&6; }
+
+
 # National Language Support
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking National Language Support" >&5
 $as_echo_n "checking National Language Support... " >&6; }
@@ -4996,16 +5315,125 @@ else
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_NLS" >&5
 $as_echo "$AUX_NLS" >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
+$as_echo_n "checking for gettext in -lintl... " >&6; }
+if ${ac_cv_lib_intl_gettext+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lintl  $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char gettext ();
+int
+main ()
+{
+return gettext ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_intl_gettext=yes
+else
+  ac_cv_lib_intl_gettext=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
+$as_echo "$ac_cv_lib_intl_gettext" >&6; }
+if test "x$ac_cv_lib_intl_gettext" = xyes; then :
+  LFINTL="-lintl"
+fi
 
+
+LACKING_GETTEXT="n"
 if test $AUX_NLS = "yes" &&  test x$MSGFMT != x"msgfmt"; then
    echo "WARNING: msgfmt command not found!"
+   LACKING_GETTEXT="y"
 fi
 if test $AUX_NLS = "yes" &&  test x$XGETTEXT != x"xgettext"; then
    echo "WARNING: xgettext command not found!"
+   LACKING_GETTEXT="y"
 fi
 if test $AUX_NLS = "yes" &&  test x$MSGMERGE != x"msgmerge"; then
    echo "WARNING: msgmerge command not found!"
+   LACKING_GETTEXT="y"
 fi
+if test $NLS = "y" && test $LACKING_GETTEXT = "y"; then
+   echo "WARNING: Disabling NLS"
+   NLS="n"
+fi
+
+
+# Link Time Optimization
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Link Time Optimization support" >&5
+$as_echo_n "checking Link Time Optimization support... " >&6; }
+# Check whether --enable-lto was given.
+if test "${enable_lto+set}" = set; then :
+  enableval=$enable_lto; AUX_LTO=$enableval
+else
+  AUX_LTO=no
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_LTO" >&5
+$as_echo "$AUX_LTO" >&6; }
+LTO="n"
+if test $AUX_LTO = "yes"; then
+       # Extract the first word of "gcc-ar", so it can be a program name with args.
+set dummy gcc-ar; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_GCC_AR+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$GCC_AR"; then
+  ac_cv_prog_GCC_AR="$GCC_AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_GCC_AR="gcc-ar"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+GCC_AR=$ac_cv_prog_GCC_AR
+if test -n "$GCC_AR"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_AR" >&5
+$as_echo "$GCC_AR" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+       if test x$GCC_AR != x"gcc-ar"; then
+               echo "WARNING: gcc-ar command not found! Disabling LTO support"
+               AUX_LTO="no"
+       else
+               LTO="y"
+       fi
+fi
+
 
 # Data history to keep by sa2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of daily data files to keep" >&5
@@ -5033,17 +5461,17 @@ fi
 $as_echo "$COMPRESSAFTER" >&6; }
 
 
-# Preallocation factor
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking preallocation factor value" >&5
-$as_echo_n "checking preallocation factor value... " >&6; }
+# Random delay to wait before sa2 script runs
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking random delay to wait before sa2 script runs" >&5
+$as_echo_n "checking random delay to wait before sa2 script runs... " >&6; }
 
-if test x$prealloc = x""; then
-   PREALLOC_FACTOR=1
+if test x$delay_range = x""; then
+   DELAY_RANGE=0
 else
-   PREALLOC_FACTOR=$prealloc
+   DELAY_RANGE=$delay_range
 fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PREALLOC_FACTOR" >&5
-$as_echo "$PREALLOC_FACTOR" >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DELAY_RANGE" >&5
+$as_echo "$DELAY_RANGE" >&6; }
 
 
 # Manual page group
@@ -5104,12 +5532,11 @@ $as_echo_n "checking whether manual pages should be compressed... " >&6; }
 if test "${enable_compress_manpg+set}" = set; then :
   enableval=$enable_compress_manpg; AUX_MPG=$enableval
 else
-  AUX_MPG=no
+  AUX_MPG=yes
 fi
 
 if test $AUX_MPG != "yes"; then
    COMPRESS_MANPG=n
-   AUX_MPG=no
 else
    COMPRESS_MANPG=y
 fi
@@ -5117,26 +5544,6 @@ fi
 $as_echo "$AUX_MPG" >&6; }
 
 
-# Check whether isag should be installed
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isag script should be installed" >&5
-$as_echo_n "checking whether isag script should be installed... " >&6; }
-# Check whether --enable-install-isag was given.
-if test "${enable_install_isag+set}" = set; then :
-  enableval=$enable_install_isag; AUX_IIS=$enableval
-else
-  AUX_IIS=no
-fi
-
-if test $AUX_IIS != "yes"; then
-   INSTALL_ISAG=n
-   AUX_IIS=no
-else
-   INSTALL_ISAG=y
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_IIS" >&5
-$as_echo "$AUX_IIS" >&6; }
-
-
 # Check whether sa directory should be cleaned
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system activity directory should be cleaned" >&5
 $as_echo_n "checking whether system activity directory should be cleaned... " >&6; }
@@ -5213,6 +5620,26 @@ $as_echo "$CRON_OWNER" >&6; }
       REM_CHOWN=$CHOWN
    fi
 
+#  Check whether we should use the standard cron daemon
+   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should use the standard cron daemon" >&5
+$as_echo_n "checking whether we should use the standard cron daemon... " >&6; }
+   # Check whether --enable-use-crond was given.
+if test "${enable_use_crond+set}" = set; then :
+  enableval=$enable_use_crond; UCROND=$enableval
+else
+  UCROND=no
+fi
+
+   if test $UCROND != "yes"; then
+      USE_CROND=n
+      UCROND=no
+   else
+      USE_CROND=y
+   fi
+   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCROND" >&5
+$as_echo "$UCROND" >&6; }
+
+
 #  Crontab interval
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking crontab interval" >&5
 $as_echo_n "checking crontab interval... " >&6; }
@@ -5308,7 +5735,7 @@ else
   AUX_DOC=yes
 fi
 
-if  test  $AUX_DOC !=  "no"; then
+if test $AUX_DOC != "no"; then
    AUX_DOC="yes"
    INSTALL_DOC="y"
 else
@@ -5322,7 +5749,9 @@ $as_echo "$AUX_DOC" >&6; }
 # Set directory for installing manual pages (see comment in Makefile)
 
 
-# Check whether --debuginfo options should be allowed
+# Check whether debug mode should be activated
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debug mode should be activated" >&5
+$as_echo_n "checking whether debug mode should be activated... " >&6; }
 # Check whether --enable-debuginfo was given.
 if test "${enable_debuginfo+set}" = set; then :
   enableval=$enable_debuginfo; WITH_DEBUG=yes ; DFLAGS="$DFLAGS -DDEBUG"
@@ -5330,6 +5759,8 @@ else
   WITH_DEBUG=no
 fi
 
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_DEBUG" >&5
+$as_echo "$WITH_DEBUG" >&6; }
 
 
 
@@ -5370,8 +5801,6 @@ ac_config_files="$ac_config_files version.h:version.in"
                # File must be renamed
 ac_config_files="$ac_config_files sysconfig.h:sysconfig.in"
        # File must be renamed
-ac_config_files="$ac_config_files prealloc.h:prealloc.in"
-       # File must be renamed
 ac_config_files="$ac_config_files cron/sysstat.cron.daily"
 
 ac_config_files="$ac_config_files cron/sysstat.cron.hourly"
@@ -5392,6 +5821,8 @@ ac_config_files="$ac_config_files cron/sysstat-summary.service"
 
 ac_config_files="$ac_config_files cron/sysstat-summary.timer"
 
+ac_config_files="$ac_config_files cron/sysstat.sleep"
+       # Permissions must be changed
 ac_config_files="$ac_config_files man/sa1.8:man/sa1.in"
                # File must be renamed
 ac_config_files="$ac_config_files man/sa2.8:man/sa2.in"
@@ -5408,10 +5839,8 @@ ac_config_files="$ac_config_files man/iostat.1:man/iostat.in"
        # File must be renamed
 ac_config_files="$ac_config_files man/cifsiostat.1:man/cifsiostat.in"
        # File must be renamed
-ac_config_files="$ac_config_files man/nfsiostat-sysstat.1:man/nfsiostat-sysstat.in"
-       # File must be renamed
-ac_config_files="$ac_config_files contrib/isag/isag"
- # Permissions must be changed
+ac_config_files="$ac_config_files tests/variables"
+
 
 ac_config_files="$ac_config_files Makefile"
 
@@ -5957,7 +6386,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by sysstat $as_me 11.1.5, which was
+This file was extended by sysstat $as_me 12.5.6, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -6010,7 +6439,7 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-sysstat config.status 11.1.5
+sysstat config.status 12.5.6
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
@@ -6126,7 +6555,6 @@ do
     "sysstat.sysconfig") CONFIG_FILES="$CONFIG_FILES sysstat.sysconfig" ;;
     "version.h") CONFIG_FILES="$CONFIG_FILES version.h:version.in" ;;
     "sysconfig.h") CONFIG_FILES="$CONFIG_FILES sysconfig.h:sysconfig.in" ;;
-    "prealloc.h") CONFIG_FILES="$CONFIG_FILES prealloc.h:prealloc.in" ;;
     "cron/sysstat.cron.daily") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.daily" ;;
     "cron/sysstat.cron.hourly") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.hourly" ;;
     "cron/sysstat.crond") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond" ;;
@@ -6137,6 +6565,7 @@ do
     "cron/sysstat-collect.timer") CONFIG_FILES="$CONFIG_FILES cron/sysstat-collect.timer" ;;
     "cron/sysstat-summary.service") CONFIG_FILES="$CONFIG_FILES cron/sysstat-summary.service" ;;
     "cron/sysstat-summary.timer") CONFIG_FILES="$CONFIG_FILES cron/sysstat-summary.timer" ;;
+    "cron/sysstat.sleep") CONFIG_FILES="$CONFIG_FILES cron/sysstat.sleep" ;;
     "man/sa1.8") CONFIG_FILES="$CONFIG_FILES man/sa1.8:man/sa1.in" ;;
     "man/sa2.8") CONFIG_FILES="$CONFIG_FILES man/sa2.8:man/sa2.in" ;;
     "man/sadc.8") CONFIG_FILES="$CONFIG_FILES man/sadc.8:man/sadc.in" ;;
@@ -6145,8 +6574,7 @@ do
     "man/sysstat.5") CONFIG_FILES="$CONFIG_FILES man/sysstat.5:man/sysstat.in" ;;
     "man/iostat.1") CONFIG_FILES="$CONFIG_FILES man/iostat.1:man/iostat.in" ;;
     "man/cifsiostat.1") CONFIG_FILES="$CONFIG_FILES man/cifsiostat.1:man/cifsiostat.in" ;;
-    "man/nfsiostat-sysstat.1") CONFIG_FILES="$CONFIG_FILES man/nfsiostat-sysstat.1:man/nfsiostat-sysstat.in" ;;
-    "contrib/isag/isag") CONFIG_FILES="$CONFIG_FILES contrib/isag/isag" ;;
+    "tests/variables") CONFIG_FILES="$CONFIG_FILES tests/variables" ;;
     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
@@ -6567,7 +6995,7 @@ which seems to be undefined.  Please make sure it is defined" >&2;}
     "sa2":F) chmod +x sa2 ;;
     "cron/sysstat.crond.sample.in":F) sed s/^/#/ cron/sysstat.crond.sample.in > cron/sysstat.crond.sample ;;
     "sysstat":F) chmod +x sysstat ;;
-    "contrib/isag/isag":F) chmod +x contrib/isag/isag ;;
+    "cron/sysstat.sleep":F) chmod +x cron/sysstat.sleep ;;
 
   esac
 done # for ac_tag
@@ -6611,11 +7039,15 @@ echo "
    Sysstat version:            $PACKAGE_VERSION
    Installation prefix:                $prefix
    rc directory:               ${RC_DIR}
-   Init directory:             ${INIT_DIR}
-   Systemd unit dir:           ${with_systemdsystemunitdir}
-   Configuration directory:    ${SYSCONFIG_DIR}
+   Init directory:             ${INIT_DIR}"
+if test "$UCROND" != "yes"; then
+   echo "   Systemd unit dir:          ${with_systemdsystemunitdir}"
+   echo "   Systemd sleep dir:         ${with_systemdsleepdir}"
+else
+   echo "   Use standard cron daemon"
+fi
+echo "   Configuration file:           ${SYSCONFIG_DIR}/${SYSCONFIG_FILE}
    Man pages directory:                $mandir
    Compiler:                   $CC
    Compiler flags:             $CFLAGS
 "
-