diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-21 00:24:28 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:33 +1000 |
commit | 5c103b484f6c6dc9ba544d501e9f701076381655 (patch) | |
tree | e181d3822bcfd1dfc72eac4dbd8a3b0509bbf48b /lib/replace/autoconf.py | |
parent | 34b77a15d36e21c67d5493e45955358589f7b9c5 (diff) | |
download | samba-5c103b484f6c6dc9ba544d501e9f701076381655.tar.gz samba-5c103b484f6c6dc9ba544d501e9f701076381655.tar.bz2 samba-5c103b484f6c6dc9ba544d501e9f701076381655.zip |
build: renamed autoconf.py to wafsamba.py and added SAMBA_*() functions
Diffstat (limited to 'lib/replace/autoconf.py')
-rw-r--r-- | lib/replace/autoconf.py | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/lib/replace/autoconf.py b/lib/replace/autoconf.py deleted file mode 100644 index 1b16ea35c3..0000000000 --- a/lib/replace/autoconf.py +++ /dev/null @@ -1,53 +0,0 @@ -# a waf tool to add autoconf-like macros to the configure section - -from Configure import conf - -@conf -def DEFUN(conf, d, v): - conf.define(d, v, quote=False) - conf.env.append_value('CCDEFINES', d + '=' + str(v)) - -@conf -def CHECK_HEADERS(conf, list): - for hdr in list.rsplit(' '): - if conf.check(header_name=hdr): - conf.env.hlist.append(hdr) - -@conf -def CHECK_TYPES(conf, list): - for t in list.rsplit(' '): - conf.check(type_name=t, header_name=conf.env.hlist) - -@conf -def CHECK_TYPE_IN(conf, t, hdr): - if conf.check(header_name=hdr): - conf.check(type_name=t, header_name=hdr) - -@conf -def CHECK_TYPE(conf, t, alternate): - if not conf.check(type_name=t, header_name=conf.env.hlist): - conf.DEFUN(t, alternate) - -@conf -def CHECK_FUNCS(conf, list): - for f in list.rsplit(' '): - conf.check(function_name=f, header_name=conf.env.hlist) - -@conf -def CHECK_FUNCS_IN(conf, list, library): - if conf.check(lib=library, uselib_store=library): - for f in list.rsplit(' '): - conf.check(function_name=f, lib=library, header_name=conf.env.hlist) - -# we want a different rpath when installing and when building -# this should really check if rpath is available on this platform -# and it should also honor an --enable-rpath option -def set_rpath(bld): - import Options - if Options.is_install: - bld.env['RPATH'] = ['-Wl,-rpath=' + bld.env.PREFIX + '/lib'] - else: - bld.env.append_value('RPATH', '-Wl,-rpath=build/default') - -import Build -Build.BuildContext.set_rpath = set_rpath |