@@ -17,6 +17,9 @@ PHP_ARG_ENABLE(memcached-igbinary, whether to enable memcached igbinary serializ
17
17
PHP_ARG_ENABLE(memcached-json, whether to enable memcached json serializer support,
18
18
[ --enable-memcached-json Enable memcached json serializer support] , no, no)
19
19
20
+ PHP_ARG_ENABLE(memcached-sasl, whether to disable memcached sasl support,
21
+ [ --disable-memcached-sasl Disable memcached sasl support] , no, no)
22
+
20
23
if test -z "$PHP_ZLIB_DIR"; then
21
24
PHP_ARG_WITH(zlib-dir, for ZLIB,
22
25
[ --with-zlib-dir[ =DIR] Set the path to ZLIB install prefix.] , no)
@@ -226,10 +229,12 @@ if test "$PHP_MEMCACHED" != "no"; then
226
229
fi
227
230
done
228
231
fi
229
-
230
- AC_CHECK_HEADERS ( [ sasl/sasl.h] , [ memcached_enable_sasl="yes"] , [ memcached_enable_sasl="no"] )
231
- AC_MSG_CHECKING ( [ whether to enable sasl support] )
232
- AC_MSG_RESULT ( [ $memcached_enable_sasl] )
232
+
233
+ if test "$PHP_MEMCACHED_SASL" != "no"; then
234
+ AC_CHECK_HEADERS ( [ sasl/sasl.h] , [ memcached_enable_sasl="yes"] , [ memcached_enable_sasl="no"] )
235
+ AC_MSG_CHECKING ( [ whether to enable sasl support] )
236
+ AC_MSG_RESULT ( [ $memcached_enable_sasl] )
237
+ fi
233
238
234
239
AC_MSG_CHECKING ( [ for libmemcached location] )
235
240
if test "$PHP_LIBMEMCACHED_DIR" = "no"; then
0 commit comments