~libbls/libbls/0.3

« back to all changes in this revision

Viewing changes to wscript

  • Committer: Alexandros Frantzis
  • Date: 2011-09-30 23:52:39 UTC
  • Revision ID: alf82@freemail.gr-20110930235239-2dirm7obdbzf80tj
Provide GNU compatible configuration options for directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
def options(opt):
19
19
        opt.tool_options('compiler_cc')
 
20
        opt.tool_options('gnu_dirs')
20
21
 
21
22
        opt.add_option('--no-debug', action='store_false', dest = 'debug', default = True, help='disable compiler debug information')
22
23
        opt.add_option('--no-opt', action='store_false', dest = 'opt', default = True, help='disable compiler optimizations')
31
32
def configure(conf):
32
33
        conf.check_tool('compiler_cc')
33
34
        conf.check_tool('python')
 
35
        conf.check_tool('gnu_dirs')
34
36
 
35
37
        # Check required headers
36
38
        req_headers = ['stdint.h', 'stdlib.h', 'string.h', 'unistd.h',
142
144
                source = 'bls.pc.in',
143
145
                target = 'bls-%s.pc' % bld.env.LIBBLS_VERSION_NO_PATCH,
144
146
                dct = flat_env,
145
 
                install_path = '${PREFIX}/lib/pkgconfig'
 
147
                install_path = '${LIBDIR}/pkgconfig'
146
148
        )
147
149
 
148
150
def dist(ctx):