Newer
Older
project('stdlib', 'c',
default_options: ['c_std=gnu99'])
glib_dep = dependency('glib-2.0', version: '>= 2.16', required: false)
openmp_dep = dependency('openmp', required: false)
thread_dep = dependency('threads', required: false)
conf_data = configuration_data()
cc = meson.get_compiler('c')
has_reallocarray = cc.has_function('reallocarray')
if cc.has_function('reallocarray')
conf_data.set('HAVE_REALLOCARRAY', 1)
endif
configure_file(configuration: conf_data, output: 'config.h')
config_dep = declare_dependency(include_directories: '.')