Commit 95512220 authored by Emmanuele Bassi's avatar Emmanuele Bassi

build: Add missing configuration symbols

We're not testing for bind_textdomain_codeset() and setrlimit().
parent 6865a69a
......@@ -85,16 +85,24 @@ if cc.has_function('lrint', dependencies: mathlib_dep)
gdk_pixbuf_conf.set('HAVE_LRINT', 1)
endif
if cc.has_function('bind_textdomain_codeset', prefix: '#include <libintl.h>')
gdk_pixbuf_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', 1)
endif
if cc.has_function('setrlimit', prefix: '#include <sys/time.h>\n#include <sys/resource.h>')
gdk_pixbuf_conf.set('HAVE_SETRLIMIT', 1)
endif
# We use links() because sigsetjmp() is often a macro hidden behind other macros
gdk_pixbuf_conf.set('HAVE_SIGSETJMP',
cc.links('''#define _POSIX_SOURCE
#include <setjmp.h>
int main (void) {
sigjmp_buf env;
sigsetjmp (env, 0);
return 0;
}''', name: 'sigsetjmp'))
gdk_pixbuf_conf.set10('HAVE_SIGSETJMP',
cc.links('''#define _POSIX_SOURCE
#include <setjmp.h>
int main (void) {
sigjmp_buf env;
sigsetjmp (env, 0);
return 0;
}''', name: 'sigsetjmp'),
)
# Common compiler and linker flags
common_cflags = []
......@@ -294,8 +302,9 @@ if get_option('jpeg') and not native_windows_loaders
enabled_loaders += 'jpeg'
loaders_deps += jpeg_dep
gdk_pixbuf_conf.set('HAVE_PROGRESSIVE_JPEG',
cc.has_function('jpeg_simple_progression', dependencies: jpeg_dep))
gdk_pixbuf_conf.set10('HAVE_PROGRESSIVE_JPEG',
cc.has_function('jpeg_simple_progression',
dependencies: jpeg_dep))
endif
endif
endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment