]> granicus.if.org Git - sysstat/blobdiff - configure
sar/sadc: Add stable identifier support for disks statistics
[sysstat] / configure
index e59092fdde7c3da47a7f352bf2528140deaeed4c..9c75a787aa563b114b910d3cfd401de5f2bfb46a 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 12.1.2.
+# Generated by GNU Autoconf 2.69 for sysstat 12.1.7.
 #
 #
 # 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='12.1.2'
-PACKAGE_STRING='sysstat 12.1.2'
+PACKAGE_VERSION='12.1.7'
+PACKAGE_STRING='sysstat 12.1.7'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -661,6 +661,9 @@ INITD_DIR
 INIT_DIR
 RC_DIR
 rcdir
+DFPCP
+LFPCP
+HAVE_PCP
 DFSENSORS
 LFSENSORS
 HAVE_SENSORS
@@ -735,6 +738,7 @@ ac_user_opts='
 enable_option_checking
 with_systemdsystemunitdir
 enable_sensors
+enable_pcp
 enable_largefile
 enable_nls
 enable_file_attr
@@ -1306,7 +1310,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 12.1.2 to adapt to many kinds of systems.
+\`configure' configures sysstat 12.1.7 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1367,7 +1371,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of sysstat 12.1.2:";;
+     short | recursive ) echo "Configuration of sysstat 12.1.7:";;
    esac
   cat <<\_ACEOF
 
@@ -1376,6 +1380,7 @@ Optional Features:
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   --disable-sensors       disable sensors support
+  --disable-pcp           disable PCP support
   --disable-largefile     omit support for large files
   --disable-nls           disable National Language Support
   --disable-file-attr     do not set attributes on files being installed
@@ -1484,7 +1489,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-sysstat configure 12.1.2
+sysstat configure 12.1.7
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1903,7 +1908,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 12.1.2, which was
+It was created by sysstat $as_me 12.1.7, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -4643,18 +4648,19 @@ else
 fi
 
 if test $SENSORS != "yes"; then
-   HAVE_SENSORS="n"
+       HAVE_SENSORS="n"
 else
-   HAVE_SENSORS="y"
+       HAVE_SENSORS="y"
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
 $as_echo "$SENSORS" >&6; }
 
 # Check for lm_sensors
-SENSORS=no
 LFSENSORS=""
 DFSENSORS=""
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_get_detected_chips in -lsensors" >&5
+if test $HAVE_SENSORS = "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
@@ -4696,12 +4702,12 @@ else
   HAVE_SENSORS="n"
 fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors lib" >&5
+       { $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
+       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 #include <sensors/sensors.h>
-#include <sensors/error.h>
+                      #include <sensors/error.h>
 
 int
 main ()
@@ -4717,8 +4723,102 @@ 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
+
+
+
+
+# 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
+{ $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
 
 
 
@@ -4944,15 +5044,16 @@ echo .
 #  --enable-compress-manpg compress manual pages
 #  --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-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
 #
 # 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)
+#  conf_dir      sysstat configuration directory (default is /etc/sysconfig)
 #  history       number of daily datafiles to keep (default value is 7)
 #  compressafter number of days after which datafiles are compressed
 #  man_group     group for man pages
@@ -4962,7 +5063,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
@@ -5499,15 +5600,7 @@ 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 tests/0230"
-
-ac_config_files="$ac_config_files tests/0231"
-
-ac_config_files="$ac_config_files tests/0232"
-
-ac_config_files="$ac_config_files tests/0240"
-
-ac_config_files="$ac_config_files tests/0250"
+ac_config_files="$ac_config_files tests/variables"
 
 
 ac_config_files="$ac_config_files Makefile"
@@ -6054,7 +6147,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 12.1.2, which was
+This file was extended by sysstat $as_me 12.1.7, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -6107,7 +6200,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 12.1.2
+sysstat config.status 12.1.7
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
@@ -6241,11 +6334,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" ;;
-    "tests/0230") CONFIG_FILES="$CONFIG_FILES tests/0230" ;;
-    "tests/0231") CONFIG_FILES="$CONFIG_FILES tests/0231" ;;
-    "tests/0232") CONFIG_FILES="$CONFIG_FILES tests/0232" ;;
-    "tests/0240") CONFIG_FILES="$CONFIG_FILES tests/0240" ;;
-    "tests/0250") CONFIG_FILES="$CONFIG_FILES tests/0250" ;;
+    "tests/variables") CONFIG_FILES="$CONFIG_FILES tests/variables" ;;
     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;