1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

r6617: Let --enable-developer imply --enable-socket-wrapper

Add socket-wrapper-enabled test target and use that by
default when the socket wrapper was included
(This used to be commit d3b0ad8b4b)
This commit is contained in:
Jelmer Vernooij 2005-05-05 11:13:16 +00:00 committed by Gerald (Jerry) Carter
parent 7285111162
commit aed008c989
2 changed files with 20 additions and 4 deletions

View File

@ -150,7 +150,13 @@ pch_clean:
basics: idl proto_exists basics: idl proto_exists
test: all test: @DEFAULT_TEST_TARGET@
test-swrap: all
export SOCKET_WRAPPER_DIR=.
./script/tests/selftest.sh `pwd`/prefix-test
test-noswrap: all
./script/tests/selftest.sh `pwd`/prefix-test ./script/tests/selftest.sh `pwd`/prefix-test
__EOD__ __EOD__

View File

@ -1,5 +1,15 @@
AC_ARG_ENABLE(socket-wrapper, AC_ARG_ENABLE(socket-wrapper,
[ --enable-socket-wrapper Turn on socket wrapper library (default=no)], [ --enable-socket-wrapper Turn on socket wrapper library (default=no)])
[if eval "test x$enable_socket_wrapper = xyes"; then
DEFAULT_TEST_TARGET=test-noswrap
if eval "test x$developer = xyes"; then
enable_socket_wrapper=yes
fi
if eval "test x$enable_socket_wrapper = xyes"; then
AC_DEFINE(SOCKET_WRAPPER,1,[Use socket wrapper library]) AC_DEFINE(SOCKET_WRAPPER,1,[Use socket wrapper library])
fi]) DEFAULT_TEST_TARGET=test-swrap
fi
AC_SUBST(DEFAULT_TEST_TARGET)