diff --git a/meson.build b/meson.build index e40ced6c..f5b67c3c 100644 --- a/meson.build +++ b/meson.build @@ -1096,10 +1096,16 @@ if compiler.has_function('strtoul', prefix: '#include ') conf_data.set('HAVE_STRTOUL', 1) endif -if compiler.compiles('int a; typeof(a) b;') +if compiler.compiles('int a; typeof(a) b;', name: 'typeof') conf_data.set('HAVE_TYPEOF', 1) endif +if compiler.compiles('''#include +int func(void) { return sysconf(_SC_PAGE_SIZE); } +''', name: '_SC_PAGE_SIZE') + conf_data.set('HAVE_SC_PAGE_SIZE', 1) +endif + conf_data.set('ICONV_CONST', true) sysconfdir = get_option('prefix') / get_option('sysconfdir')/'elinks'