aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-05-13 22:24:10 +0200
committerThomas White <taw@physics.org>2019-05-16 15:15:49 +0200
commit208f6dc608959dcdeb55afc69daf547e7a1e2c3e (patch)
tree24a98a241346a4626a2bc022b58344347eec50e1 /meson.build
parent001110d2174a38754ac6c52cce47fb63feb1b505 (diff)
Check for regex.h and regcomp()
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 2cab6cd9..6509af70 100644
--- a/meson.build
+++ b/meson.build
@@ -101,6 +101,14 @@ if compiler.has_header('sys/utsname.h')
conf_data.set('HAVE_SYS_UTSNAME_H', 1)
endif
+if compiler.has_header('regex.h')
+ conf_data.set('HAVE_REGEX_H', 1)
+endif
+
+if compiler.has_function('regcomp', prefix : '#include <regex.h>')
+ conf_data.set('HAVE_REGCOMP', 1)
+endif
+
configure_file(output : 'config.h',
configuration : conf_data)