summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-03-18 10:52:40 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2015-03-18 13:42:24 +0100
commit17583f1b591bc4f84acf1e6be76083ddd84020ac (patch)
tree86889df692d3408884ab494e9034ee95b4fa266f /acinclude.m4
parenta10a11bd54d9f33842eee8c168dc3c47aebec05b (diff)
downloadlvm2-17583f1b591bc4f84acf1e6be76083ddd84020ac.tar.gz
configure: detect st_ctim
Check stat has nanosecond precision for ctim.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 601ae9dea..b6c9b181c 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -37,6 +37,10 @@ AC_DEFUN([AC_TRY_CCFLAG],
fi
])
+dnl AC_IF_YES([TEST-FOR-YES], [ACTION-IF-TRUE], [ACTION-IF-FALSE])
+dnl AS_IF() abstraction, checks shell variable for 'yes'
+AC_DEFUN([AC_IF_YES], [AS_IF([test $$1 = yes], [$2], [$3])])
+
dnl AC_TRY_LDFLAGS([LDFLAGS], [VAR], [ACTION-IF-WORKS], [ACTION-IF-FAILS])
dnl check if $CC supports given ld flags