diff options
author | Ruediger Meier | 2018-06-12 14:04:06 +0200 |
---|---|---|
committer | Ruediger Meier | 2018-11-12 19:40:33 +0100 |
commit | 04ae85a7e57691983c25f0917cfb8ae4dcb462d5 (patch) | |
tree | 405468de229916a7395aa521941907caf3adc699 /configure.ac | |
parent | Merge branch 'hardlink-import' into hardlink (diff) | |
download | kernel-qcow2-util-linux-04ae85a7e57691983c25f0917cfb8ae4dcb462d5.tar.gz kernel-qcow2-util-linux-04ae85a7e57691983c25f0917cfb8ae4dcb462d5.tar.xz kernel-qcow2-util-linux-04ae85a7e57691983c25f0917cfb8ae4dcb462d5.zip |
hardlink: enable build with and without pcre2
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b3430dac4..260283cf2 100644 --- a/configure.ac +++ b/configure.ac @@ -1372,6 +1372,18 @@ UL_REQUIRES_HAVE([setpriv], [linux_securebits_h], [securebits.h header file]) UL_REQUIRES_HAVE([setpriv], [cap_ng], [libcap-ng library]) AM_CONDITIONAL([BUILD_SETPRIV], [test "x$build_setpriv" = xyes]) +PKG_CHECK_MODULES([PCRE], [libpcre2-8], [have_pcre=yes], [have_pcre=no]) +AS_IF([test "x$have_pcre" = xyes ], [ + AC_DEFINE([HAVE_PCRE], [1], [Define if libpcre2 is available]) +]) +AM_CONDITIONAL([HAVE_PCRE], [test "x$have_pcre" = xyes]) + +AC_ARG_ENABLE([hardlink], + AS_HELP_STRING([--disable-hardlink], [do not build hardlink]), + [], [UL_DEFAULT_ENABLE([hardlink], [check])] +) +UL_BUILD_INIT([hardlink]) +AM_CONDITIONAL([BUILD_HARDLINK], [test "x$build_hardlink" = xyes]) AC_ARG_ENABLE([eject], AS_HELP_STRING([--disable-eject], [do not build eject]), |