~ubuntu-branches/debian/jessie/ldb/jessie

« back to all changes in this revision

Viewing changes to buildtools/wafsamba/samba_third_party.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2014-07-05 23:32:23 UTC
  • mfrom: (1.3.16)
  • Revision ID: package-import@ubuntu.com-20140705233223-dss2i2wmfksxbivh
Tags: 1:1.1.18-1
* New upstream release.
 + Depend on tdb >= 1.3.2.
 + Fixes __attribute__((visibility)) check to not use nested functions.
   Closes: #749987
* Use canonical URL in Vcs-Git field.
* Specify branch in Vcs-Git field.
* Add 02_hurd: link against pthread on the Hurd, to fix ldb module
  loading. Closes: #749095

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# functions to support third party libraries
 
2
 
 
3
from Configure import conf
 
4
import sys, Logs, os
 
5
from samba_bundled import *
 
6
 
 
7
@conf
 
8
def CHECK_FOR_THIRD_PARTY(conf):
 
9
    return os.path.exists(os.path.join(Utils.g_module.srcdir, 'third_party'))
 
10
 
 
11
Build.BuildContext.CHECK_FOR_THIRD_PARTY = CHECK_FOR_THIRD_PARTY
 
12
 
 
13
@conf
 
14
def CHECK_ZLIB(conf):
 
15
    version_check='''
 
16
    #if (ZLIB_VERNUM >= 0x1230)
 
17
    #else
 
18
    #error "ZLIB_VERNUM < 0x1230"
 
19
    #endif
 
20
    z_stream *z;
 
21
    inflateInit2(z, -15);
 
22
    '''
 
23
    return conf.CHECK_BUNDLED_SYSTEM('z', minversion='1.2.3', pkg='zlib',
 
24
                                     checkfunctions='zlibVersion',
 
25
                                     headers='zlib.h',
 
26
                                     checkcode=version_check,
 
27
                                     implied_deps='replace')
 
28
 
 
29
Build.BuildContext.CHECK_ZLIB = CHECK_ZLIB
 
30
 
 
31
@conf
 
32
def CHECK_POPT(conf):
 
33
    return conf.CHECK_BUNDLED_SYSTEM('popt', checkfunctions='poptGetContext', headers='popt.h')
 
34
 
 
35
Build.BuildContext.CHECK_POPT = CHECK_POPT