diff options
author | Eric Engestrom | 2018-03-16 12:10:26 -0500 |
---|---|---|
committer | Eric Engestrom | 2018-03-20 09:31:18 -0500 |
commit | 431f1a147e33b3fae7ea78a47d40a6014b682ebd (patch) | |
tree | d019de4c84babee1b44b831e25b5a966a4039887 /meson.build | |
parent | 07585200e937a528bd9fad3d5850de68823f27fa (diff) | |
download | external-libgbm-431f1a147e33b3fae7ea78a47d40a6014b682ebd.tar.gz external-libgbm-431f1a147e33b3fae7ea78a47d40a6014b682ebd.tar.xz external-libgbm-431f1a147e33b3fae7ea78a47d40a6014b682ebd.zip |
meson: replace `if(compiles) have=true` with `have=compiles`
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/meson.build b/meson.build index b90127aa..100a59fa 100644 --- a/meson.build +++ b/meson.build | |||
@@ -187,9 +187,8 @@ else | |||
187 | endif | 187 | endif |
188 | dep_m = cc.find_library('m', required : false) | 188 | dep_m = cc.find_library('m', required : false) |
189 | foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h'] | 189 | foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h'] |
190 | if cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.format(header)) | 190 | config.set('HAVE_' + header.underscorify().to_upper(), |
191 | config.set10('HAVE_' + header.underscorify().to_upper(), true) | 191 | cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.format(header))) |
192 | endif | ||
193 | endforeach | 192 | endforeach |
194 | if cc.has_header_symbol('sys/sysmacros.h', 'major') | 193 | if cc.has_header_symbol('sys/sysmacros.h', 'major') |
195 | config.set10('MAJOR_IN_SYSMACROS', true) | 194 | config.set10('MAJOR_IN_SYSMACROS', true) |