r6621: Warn when the user is trying to use socket wrapper
[bbaumbach/samba-autobuild/.git] / source4 / lib / socket_wrapper / config.m4
1 AC_ARG_ENABLE(socket-wrapper, 
2 [  --enable-socket-wrapper         Turn on socket wrapper library (default=no)])
3
4 DEFAULT_TEST_TARGET=test-noswrap
5 HAVE_SOCKET_WRAPPER=no
6
7 if eval "test x$developer = xyes"; then
8         enable_socket_wrapper=yes
9 fi
10     
11 if eval "test x$enable_socket_wrapper = xyes"; then
12         AC_DEFINE(SOCKET_WRAPPER,1,[Use socket wrapper library])
13         DEFAULT_TEST_TARGET=test-swrap
14         HAVE_SOCKET_WRAPPER=yes
15 fi
16
17 AC_SUBST(DEFAULT_TEST_TARGET)
18 AC_SUBST(HAVE_SOCKET_WRAPPER)