summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2014-04-23 14:31:42 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2014-04-23 14:34:42 +0200
commit2b09def6068e69a920972211572235a827e7c474 (patch)
treeed0c72c3fd7b6be314a25743adbc010275c0ea1c /aclocal.m4
parent795944f178c233ac3f638574de704322f130078a (diff)
downloadlvm2-2b09def6068e69a920972211572235a827e7c474.tar.gz
man: minor fixes in lvmetad man page
- better add reference to lvm dumpconfig --type default than stating that lvmetad is not enabled by default - substitute #DEFAULT_PID_DIR# with concrete value
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index c9f8f52da..6f752f28b 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -212,4 +212,19 @@ m4_popdef([pkg_default])
m4_popdef([pkg_description])
]) dnl PKG_NOARCH_INSTALLDIR
+
+# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
+# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# -------------------------------------------
+# Retrieves the value of the pkg-config variable for the given module.
+AC_DEFUN([PKG_CHECK_VAR],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
+AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
+
+_PKG_CONFIG([$1], [variable="][$3]["], [$2])
+AS_VAR_COPY([$1], [pkg_cv_][$1])
+
+AS_VAR_IF([$1], [""], [$5], [$4])dnl
+])# PKG_CHECK_VAR
+
m4_include([acinclude.m4])