build: unify and fix endian tests
commit5ac317e2b6a7a45c024490e3e1e2bd00debf150f
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Mon, 21 Apr 2014 13:18:15 +0000 (21 10:18 -0300)
committerDavid Disseldorp <ddiss@samba.org>
Tue, 6 May 2014 16:14:13 +0000 (6 18:14 +0200)
treeb79574cf950f2bd842848aae4706efc35e3dd6a9
parent5bf6ed5ebd0dc5ecdc5bcfb1d4720e9251849adc
build: unify and fix endian tests

Unify the endian tests out of lib/ccan/wscript into wafsamba since
they're almost cross-compile friendly.
While at it fix them to be so by moving the preprocessor directives out
of main scope since that will fail.
And keep the WORDS_BIGENDIAN, HAVE_LITTLE_ENDIAN and HAVE_BIG_ENDIAN
defines separate because of different codebases.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
buildtools/wafsamba/wscript
lib/ccan/wscript