summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-09-07 13:57:38 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2015-09-07 17:43:11 +0200
commitfc4f0d3fce05a601e768dbfb315b0c7e6d6c0030 (patch)
treeef112aabeb1e0df2f20a8c301f05e3ec410669b0 /configure.in
parent9403edbb93a2c337df790408e9ff3d26566b7443 (diff)
downloadlvm2-fc4f0d3fce05a601e768dbfb315b0c7e6d6c0030.tar.gz
configure: support --disable-dependency-tracking
One-time build may enjoy little speedup of build when dependencies are not calculated.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 3b58527ec..484367838 100644
--- a/configure.in
+++ b/configure.in
@@ -156,6 +156,15 @@ AC_FUNC_STRTOD
AC_FUNC_VPRINTF
################################################################################
+dnl -- Disable dependency tracking
+AC_MSG_CHECKING(whether to disable dependency tracking)
+AC_ARG_ENABLE(dependency-tracking,
+ AC_HELP_STRING([--disable-dependency-tracking],
+ [speeds up one-time build.]),
+ USE_TRACKING=$enableval, USE_TRACKING=yes)
+AC_MSG_RESULT($USE_TRACKING)
+
+################################################################################
dnl -- Enables statically-linked tools
AC_MSG_CHECKING(whether to use static linking)
AC_ARG_ENABLE(static_link,
@@ -2023,6 +2032,7 @@ AC_SUBST(UDEV_SYNC)
AC_SUBST(UDEV_SYSTEMD_BACKGROUND_JOBS)
AC_SUBST(UDEV_RULE_EXEC_DETECTION)
AC_SUBST(UDEV_HAS_BUILTIN_BLKID)
+AC_SUBST(USE_TRACKING)
AC_SUBST(VALGRIND_POOL)
AC_SUBST(WRITE_INSTALL)
AC_SUBST(DMEVENTD_PIDFILE)