summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_autoconf.py
AgeCommit message (Collapse)AuthorFilesLines
2013-05-17More generic check for OpenBSD platformVadim Zhukov1-2/+2
OpenBSD versioning is different from many other projects, and, say, 5.0 does not differ from 4.9 more than from 5.1. So the right approach will be to check that platform name starts with "openbsd" instead. This is also the thing OpenBSD developers do when patching other software, so this patch is consistent with already existing practicies. BUG: https://bugzilla.samba.org/show_bug.cgi?id=9888 Reviewed-by: Lars Müller <lars@samba.org> Reviewed-by: Björn Jacke <bj@sernet.de> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Fri May 17 17:58:16 CEST 2013 on sn-devel-104
2013-03-01wafsamba: add CHECK_VALUEOF() helperStefan Metzmacher1-1/+19
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2012-10-19buildtools/wafsamba: only display 'ok' if the result is TrueStefan Metzmacher1-2/+2
Otherwise we print the raw value. metze Signed-off-by: Michael Adam <obnox@samba.org>
2012-09-27s4-python: Various formatting fixes.Jelmer Vernooij1-5/+5
* Trailing whitespace * use of "==" where "is" should be used * double spaces
2012-08-17build: Ensure -Werror=format works with -Wformat=2 on NULL format stringsAndrew Bartlett1-1/+1
This should fix the build on some gcc versions, (noticed on FreeBSD by Volker). We want the protection of -Werror=format without the errors extending to the format string itself being NULL, because that is valid for ldb_search(). Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Aug 17 14:50:16 CEST 2012 on sn-devel-104
2012-08-06build: Make -Werror=format check only run where NULL is still acceptedAndrew Bartlett1-3/+18
This is needed because ldb_search() allows a NULL parameter for the format string and this needs to be permitted by the format string checker before we want to make this error fatal. Andrew Bartlett
2012-07-30build: Add more -Werror flags now the tree is clean of these errorsAndrew Bartlett1-1/+1
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Jul 30 08:23:24 CEST 2012 on sn-devel-104
2012-07-24build: Add -Werror=address to the developer buildAndrew Bartlett1-1/+1
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-06-10wafsamba: try to fix the build on AIX with xlc_rStefan Metzmacher1-1/+10
bld.env['CPP'] can be 'None' or '[]', bld.CONFIG_SET("CPP") should return False File "./buildtools/wafsamba/samba_pidl.py", line 131, in SAMBA_PIDL_LIST bld.SAMBA_PIDL(name, p, options=options, output_dir=output_dir, symlink=symlink, generate_tables=generate_tables) File "./buildtools/wafsamba/samba_pidl.py", line 65, in SAMBA_PIDL cpp = 'CPP="%s"' % bld.CONFIG_GET("CPP")[0] IndexError: list index out of range metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sun Jun 10 20:18:49 CEST 2012 on sn-devel-104
2012-04-11build: use include paths for pkg-config found librariesAndrew Bartlett1-4/+12
2012-04-11buildtools: Add --enable-debug optionAndrew Bartlett1-0/+4
2012-03-16build: Fix build issue on OpenBSD 5.xAmitay Isaacs1-2/+2
Do not use -Wl,-no-undefined flag on OpenBSD 5.x (tested on 5.0) Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Mar 16 05:14:03 CET 2012 on sn-devel-104
2012-02-19waf: Use libraries when building.Jelmer Vernooij1-2/+4
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Feb 19 06:27:55 CET 2012 on sn-devel-104
2012-02-19Use uselib in CHECK_HEADER.Jelmer Vernooij1-0/+3
2012-02-19library_flags: Leave setting of CPPPATH to waf too.Jelmer Vernooij1-4/+1
2012-02-02build: fixed a link order problemAndrew Tridgell1-1/+3
this fixes a problem found by obnox where the -L path for CUPS was put before the path to internal libraries. The install path for CUPS happened to be the same as for a old system libtevent, which meant we linked against the old tevent instead of the correct one from our private library paths. The problem was that we were adding the -L paths directly to the ldflags. The waf core code (in ccroot.py) only adds more paths if they are not there already. So by adding it in ldflags it was not added at the end of the list. The fix is just to not do the -L processing in wafsamba and let the waf core do it in the right order Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Feb 2 06:54:42 CET 2012 on sn-devel-104
2011-11-13waf: Factor checking for undefined symbol flags out into separate method.Jelmer Vernooij1-0/+12
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 13 19:38:38 CET 2011 on sn-devel-104
2011-10-07build: Reduce build systems to just top level waf and autoconfAndrew Bartlett1-2/+1
The s3-waf build system is a key component of the top level build, but with this commit is is no longer available directly. This reduces the number of build system combinations in master as we prepare for the Samba 4.0 release. Andrew Bartlett
2011-05-10Add -fno-common where supported (WAF only)Rusty Russell1-1/+1
Normally under UNIX, uninitialized non-static global variables get placed in the "common" section, where they are merged at link time. This means if two C files define "int debug", they will end up referring to the same variable. Or if one does "float level" and the other does "int level" you'll get an accidental union. Such bugs can be hard to track down; fortunately GCC offers -fno-common to disable this feature. It didn't reveal any places which need fixing, however). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-03-19wafsamba: add -Wcast-qual only to the toplevel (s4) build.Günther Deschner1-1/+3
In samba3 there are a lot of warnings generated that make it a bit hard to track and monitor other build warnings. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Sat Mar 19 00:58:25 CET 2011 on sn-devel-104
2011-02-18build: make ADD_LDFLAGS() returns the flags that were addedAndrew Tridgell1-1/+3
this will be used by the s3 top level build to work out how to undo the effects of -Wl,-no-undefined Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18waf: library_flags() doesn't only operate on conf objectsAndrew Tridgell1-7/+8
use a better name for the first argument Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-01-25s4-waf: Skip header-not-found cache if a library is specified, as it may provideJelmer Vernooij1-1/+1
additional C flags. Tridge, please check. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Jan 25 03:59:32 CET 2011 on sn-devel-104
2011-01-05buildtools/wafsamba: import 'sys' and 'Logs' if we use themStefan Metzmacher1-1/+1
We should avoid generating a backtrace in a normal error case, just because sys.exit(1) isn't known. metze
2010-12-10build: use CPP and CC values when calling pidlMatthieu Patou1-0/+9
2010-12-08waf: added -Wmissing-prototypes to buildAndrew Tridgell1-1/+1
This ensures that we always have a prototype for any function we declare Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Dec 8 06:12:07 CET 2010 on sn-devel-104
2010-11-21waf: fixed the build with a space in the source directoryAndrew Tridgell1-2/+3
2010-10-31build: check that if we provide -liconv we can build shared libsMatthieu Patou1-2/+13
On Solaris with sun studio compiling an executable with -liconv even if there is no libiconv.so or libiconv.a will work but not for a shared lib. This problem leads to build problem as the linker won't be able to find libiconv when building shared lib as liconv is wrongly specified
2010-10-30waf: added env.DEVELOPER_MODE flagAndrew Tridgell1-0/+1
this makes it easier to add project rules that are only run in developer mode Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-25waf: moved the -Wl,-no-undefined flags to source4 and ldbAndrew Tridgell1-2/+0
moved it out of the general waf build as the s3 waf build cannot yet handle linking with -Wl,-no-undefined Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Oct 25 01:12:15 UTC 2010 on sn-devel-104
2010-10-21waf: check the linker accepts a set of ldflags before using themAndrew Tridgell1-1/+10
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Oct 21 08:45:49 UTC 2010 on sn-devel-104
2010-10-21waf: fixed the handling of -Wl,-no-undefinedAndrew Tridgell1-8/+4
this flag was not being propogated to our link rules, so we were not in fact enforcing no undefined symbols in libraries.
2010-10-19waf: put -Wl,-no-undefined only in the linker flags, not when compiling CAndrew Tridgell1-1/+26
2010-10-13wafsamba/developer: Forbid shared objects with unresolved symbols, ifJelmer Vernooij1-1/+1
the linker supports such a flag. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Oct 13 12:52:22 UTC 2010 on sn-devel-104
2010-10-06waf: fixed the problem with com_err on Ubuntu 9.04Andrew Tridgell1-16/+18
this changes CHECK_BUNDLED_SYSTEM() to honor the checkfunctions and headers options even for libraries found with pkgconfig. Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Oct 6 05:06:42 UTC 2010 on sn-devel-104
2010-06-19wafsamba: Allow manually specifying cflags/ldflags for system libraries.Jelmer Vernooij1-5/+6
2010-05-30build: Also replace '-' by '_' when creating header definesKai Blin1-0/+1
Tridge, please check
2010-04-24buildtools/wafsamba: inline defines during configure into the testsStefan Metzmacher1-7/+4
There 2 reasons for this change: - This is how autoconf tests work and it makes config.log much more useful - The waf c preprocessor ignored changes in bin/default/__confdefs.h when using waf configure -C, because is outside of the configure tests project path and handled like a system header. Many thanks to ita for pointing out the fix. metze
2010-04-21build: fixed uname output to be on target machine when cross compilingAndrew Tridgell1-3/+13
this also makes the output of define_ret configure tests show up in the configure output
2010-04-19build: added --cross-answers supportAndrew Tridgell1-1/+2
This allows you to easily cross-compile even without a --cross-execute emulator See http://wiki.samba.org/index.php/Waf#cross-compiling for details
2010-04-18build: added ABI checking to the WAF buildAndrew Tridgell1-1/+3
See http://wiki.samba.org/index.php/Waf#ABI_Checking for details
2010-04-13buildtools/wafsamba: make sure CHECK_FUNC() and CHECK_VARIABLE() work with ↵Stefan Metzmacher1-2/+6
-O3 in the CFLAGS 'CFLAGS="-O3" waf configure' was not detecting dlopen() needs -ldl. metze
2010-04-13tdb-waf: added build of manpages and config options for RPM buildAndrew Tridgell1-0/+1
Building a RPM from the fedora spec file now works with minimal changes Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-12build: added cross-compilation configure optionsAndrew Tridgell1-0/+4
this enables use of a cross-compilation emulator, so configure tests run on an emulator of the target platform
2010-04-12build: Add an always parameter to CHECK_DECLSKai Blin1-2/+3
2010-04-12build: allow target upgrades from EMPTY to SYSLIBAndrew Tridgell1-1/+1
A library may be initially set as empty if it wasn't needed for a list of functions in CHECK_FUNCS_IN(). A later check may require the library. Pair-Programmed-With: Kai Blin <kai@samba.org>
2010-04-09build: use Logs.error() and Logs.info() instead of print()Andrew Tridgell1-3/+3
this gives appropriate colors on output, and ensures it works with compiler output
2010-04-09build: added --picky-developer and --fatal-errorsAndrew Tridgell1-1/+7
Added configure options for --fatal-errors and --picky-developer. This removes -Wfatal-errors from the --enable-developer flags.
2010-04-08build: allow the waf build to work with python 3.0 and 3.1Thomas Nagy1-1/+1
Python 3.x is a bit fussier about print statements and indentation. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-04-06build: don't define vars in config.h for CONFIG_PATH()Andrew Tridgell1-2/+0
we don't want paths in config.h, as that just causes full rebuilds when you change --prefix. Better to use cflags= on the right subsystem