summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-01-12 05:47:17 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-01-12 14:44:45 +0100
commitc4c978a07fede2d2be3c401c4b64b6a12091f34f (patch)
tree8d6ee0f79f3bb112b87ce098b1b57a1d4c16eb1b /meson.build
parentd8dab75789ec1ffd53fc06f5f370220ae7b31d9d (diff)
downloadsystemd-c4c978a07fede2d2be3c401c4b64b6a12091f34f.tar.gz
systemd-c4c978a07fede2d2be3c401c4b64b6a12091f34f.tar.bz2
systemd-c4c978a07fede2d2be3c401c4b64b6a12091f34f.zip
meson: detect pcre2 dep
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build12
1 files changed, 12 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 924274de63..686ec6ab84 100644
--- a/meson.build
+++ b/meson.build
@@ -1064,6 +1064,17 @@ else
endif
conf.set10('HAVE_XKBCOMMON', have)
+want_pcre2 = get_option('pcre2')
+if want_pcre2 != 'false'
+ libpcre2 = dependency('libpcre2-8',
+ required : want_pcre2 == 'true')
+ have = libpcre2.found()
+else
+ have = false
+ libpcre2 = []
+endif
+conf.set10('HAVE_PCRE2', have)
+
want_glib = get_option('glib')
if want_glib != 'false'
libglib = dependency('glib-2.0',
@@ -2693,6 +2704,7 @@ foreach tuple : [
['gnu-efi', have_gnu_efi],
['kmod'],
['xkbcommon'],
+ ['pcre2'],
['blkid'],
['dbus'],
['glib'],