aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)