Newer
Older
# SPDX-FileCopyrightText: 2018, 2019 Bruce Cowan
#
# SPDX-License-Identifier: CC0-1.0
default_options: ['warning_level=3', 'c_std=gnu99'])
glib_dep = dependency('glib-2.0', version: '>= 2.16', required: false)
openmp_dep = dependency('openmp', required: false)
pthreads_dep = dependency('pthreads', required: false)
if cc.has_function('reallocarray', prefix: '#define _GNU_SOURCE\n#include <stdlib.h>')
conf_data.set('HAVE_REALLOCARRAY', 1)
endif
configure_file(configuration: conf_data, output: 'config.h')
config_dep = declare_dependency(include_directories: '.')