Allow to check dlfcn when cross-compiling
This commit is contained in:
parent
bd961c4da2
commit
28ff0be6b9
1 changed files with 4 additions and 5 deletions
|
@ -1549,11 +1549,10 @@ if not preconfigured:
|
||||||
else:
|
else:
|
||||||
env['MISSING_DEPS'].append('libxml2')
|
env['MISSING_DEPS'].append('libxml2')
|
||||||
|
|
||||||
if not env['HOST']:
|
if conf.CheckHasDlfcn():
|
||||||
if conf.CheckHasDlfcn():
|
env.Append(CPPDEFINES = '-DMAPNIK_HAS_DLCFN')
|
||||||
env.Append(CPPDEFINES = '-DMAPNIK_HAS_DLCFN')
|
else:
|
||||||
else:
|
env['SKIPPED_DEPS'].append('dlfcn')
|
||||||
env['SKIPPED_DEPS'].append('dlfcn')
|
|
||||||
|
|
||||||
if env['JPEG']:
|
if env['JPEG']:
|
||||||
OPTIONAL_LIBSHEADERS.append(['jpeg', ['stdio.h', 'jpeglib.h'], False,'C','-DHAVE_JPEG'])
|
OPTIONAL_LIBSHEADERS.append(['jpeg', ['stdio.h', 'jpeglib.h'], False,'C','-DHAVE_JPEG'])
|
||||||
|
|
Loading…
Reference in a new issue