@@ -911,6 +911,7 @@ infodir
docdir
oldincludedir
includedir
+runstatedir
localstatedir
sharedstatedir
sysconfdir
@@ -1048,6 +1049,7 @@ datadir='${datarootdir}'
sysconfdir=' ${prefix}/etc'
sharedstatedir=' ${prefix}/com'
localstatedir=' ${prefix}/var'
+runstatedir=' ${localstatedir}/run'
includedir=' ${prefix}/include'
oldincludedir=' /usr/include'
docdir=' ${datarootdir}/doc/${PACKAGE}'
@@ -1300,6 +1302,15 @@ do
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
+ -runstatedir | --runstatedir | --runstatedi | --runstated \
+ | --runstate | --runstat | --runsta | --runst | --runs \
+ | --run | --ru | --r)
+ ac_prev=runstatedir ;;
+ -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+ | --run=* | --ru=* | --r=* )
+ runstatedir=$ac_optarg ;;
+
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1437,7 +1448,7 @@ fi
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
- libdir localedir mandir
+ libdir localedir mandir runstatedir
do
eval ac_val=\$ $ac_var
# Remove trailing slashes.
@@ -1590,6 +1601,7 @@ Fine tuning of the installation directories:
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
+ --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -10060,6 +10072,82 @@ else
$as_echo " yes" >&6 ; }
pmda_systemd=true
fi
+if $pmda_systemd
+then
+ :
+else
+
+pkg_failed=no
+{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for SYSTEMD" >&5
+$as_echo_n " checking for SYSTEMD... " >&6 ; }
+
+if test -n " $SYSTEMD_CFLAGS " ; then
+ pkg_cv_SYSTEMD_CFLAGS=" $SYSTEMD_CFLAGS "
+ elif test -n " $PKG_CONFIG " ; then
+ if test -n " $PKG_CONFIG " && \
+ { { $as_echo " $as_me :${as_lineno-$LINENO } : \$ PKG_CONFIG --exists --print-errors \" libsystemd-journal\" " ; } >&5
+ ($PKG_CONFIG --exists --print-errors " libsystemd-journal" ) 2>&5
+ ac_status=$?
+ $as_echo " $as_me :${as_lineno-$LINENO } : \$ ? = $ac_status " >&5
+ test $ac_status = 0; }; then
+ pkg_cv_SYSTEMD_CFLAGS=` $PKG_CONFIG --cflags " libsystemd-journal" 2> /dev/null`
+ test " x$? " ! = " x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n " $SYSTEMD_LIBS " ; then
+ pkg_cv_SYSTEMD_LIBS=" $SYSTEMD_LIBS "
+ elif test -n " $PKG_CONFIG " ; then
+ if test -n " $PKG_CONFIG " && \
+ { { $as_echo " $as_me :${as_lineno-$LINENO } : \$ PKG_CONFIG --exists --print-errors \" libsystemd-journal\" " ; } >&5
+ ($PKG_CONFIG --exists --print-errors " libsystemd-journal" ) 2>&5
+ ac_status=$?
+ $as_echo " $as_me :${as_lineno-$LINENO } : \$ ? = $ac_status " >&5
+ test $ac_status = 0; }; then
+ pkg_cv_SYSTEMD_LIBS=` $PKG_CONFIG --libs " libsystemd-journal" 2> /dev/null`
+ test " x$? " ! = " x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
+$as_echo " no" >&6 ; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ SYSTEMD_PKG_ERRORS=` $PKG_CONFIG --short-errors --print-errors --cflags --libs " libsystemd-journal" 2>&1 `
+ else
+ SYSTEMD_PKG_ERRORS=` $PKG_CONFIG --print-errors --cflags --libs " libsystemd-journal" 2>&1 `
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo " $SYSTEMD_PKG_ERRORS " >&5
+
+ pmda_systemd=false
+elif test $pkg_failed = untried; then
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
+$as_echo " no" >&6 ; }
+ pmda_systemd=false
+else
+ SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
+ SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: yes" >&5
+$as_echo " yes" >&6 ; }
+ pmda_systemd=true
+fi
+fi
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking if the systemd PMDA should be included" >&5
$as_echo_n " checking if the systemd PMDA should be included... " >&6 ; }
PMDA_SYSTEMD=$pmda_systemd
0 comments on commit
2fed192