mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
3992182fec
Older systems don't provide a pkg-config file for popt. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 20 15:13:32 CET 2012 on sn-devel-104
19 lines
529 B
Python
19 lines
529 B
Python
#!/usr/bin/env python
|
|
|
|
import Options
|
|
|
|
def configure(conf):
|
|
conf.CHECK_HEADERS('float.h')
|
|
|
|
if conf.CHECK_BUNDLED_SYSTEM('popt', checkfunctions='poptGetContext', headers='popt.h'):
|
|
conf.define('USING_SYSTEM_POPT', 1)
|
|
|
|
def build(bld):
|
|
if bld.CONFIG_SET('USING_SYSTEM_POPT'):
|
|
return
|
|
|
|
bld.SAMBA_LIBRARY('popt',
|
|
source='findme.c popt.c poptconfig.c popthelp.c poptparse.c',
|
|
cflags='-DDBL_EPSILON=__DBL_EPSILON__',
|
|
private_library=True)
|