summaryrefslogtreecommitdiff
path: root/header_checks
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-04-18 09:31:51 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-04-18 12:30:22 -0400
commitecce595b241763dd3029a1bc39f10f4f664b3c9a (patch)
tree6b8cf50e27d676911a1d99900997f4b20431e725 /header_checks
parente65c49b4224d4c4d27f67bbc1c91e8d2bc8450e8 (diff)
Windows: remove fnmatch and regex in Evil and use the ones in regex DLL installed by ewpi
Test Plan: compilation with autotools and meson (at least as far as it can go) Reviewers: zmike, raster Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8646
Diffstat (limited to 'header_checks')
-rw-r--r--header_checks/meson.build19
1 files changed, 18 insertions, 1 deletions
diff --git a/header_checks/meson.build b/header_checks/meson.build
index 42d638f..af5ef11 100644
--- a/header_checks/meson.build
+++ b/header_checks/meson.build
@@ -189,12 +189,29 @@ if (cc.has_header('sys/mman.h'))
189 config_h.set10('HAVE_MMAN_H', true) 189 config_h.set10('HAVE_MMAN_H', true)
190endif 190endif
191 191
192regexp = []
193if sys_windows == true
194 regexp = cc.find_library('regex',
195 has_headers: ['regex.h', 'fnmatch.h'],
196 required: true)
197 if regexp.found() == false
198 error('regex can not be found')
199 endif
200else
201 if cc.has_header_symbol('fnmatch.h', 'fnmatch') == false
202 error('fnmatch can not be found')
203 endif
204 if cc.has_header_symbol('regex.h', 'regcomp') == false
205 error('regcomp can not be found')
206 endif
207endif
208
192config_h.set('VMAJ', version_major) 209config_h.set('VMAJ', version_major)
193config_h.set('VMIN', version_minor) 210config_h.set('VMIN', version_minor)
194config_h.set('VMIC', version_micro) 211config_h.set('VMIC', version_micro)
195config_h.set('VREV', '0') 212config_h.set('VREV', '0')
196 213
197#jpeg detection ... life is a bit more complex there 214#jpeg detection ... life is a bit more complex there
198 215
199jpeg = dependency('libjpeg', required: false) 216jpeg = dependency('libjpeg', required: false)
200if jpeg.found() == false 217if jpeg.found() == false