Skip to content

Commit db2fc78

Browse files
committed
Make sasl disablable.
./configure --disable-memcached-sasl
1 parent 4e42d44 commit db2fc78

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Diff for: config.m4

+9-4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ PHP_ARG_ENABLE(memcached-igbinary, whether to enable memcached igbinary serializ
1717
PHP_ARG_ENABLE(memcached-json, whether to enable memcached json serializer support,
1818
[ --enable-memcached-json Enable memcached json serializer support], no, no)
1919

20+
PHP_ARG_ENABLE(memcached-sasl, whether to disable memcached sasl support,
21+
[ --disable-memcached-sasl Disable memcached sasl support], no, no)
22+
2023
if test -z "$PHP_ZLIB_DIR"; then
2124
PHP_ARG_WITH(zlib-dir, for ZLIB,
2225
[ --with-zlib-dir[=DIR] Set the path to ZLIB install prefix.], no)
@@ -226,10 +229,12 @@ if test "$PHP_MEMCACHED" != "no"; then
226229
fi
227230
done
228231
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
233238

234239
AC_MSG_CHECKING([for libmemcached location])
235240
if test "$PHP_LIBMEMCACHED_DIR" = "no"; then

0 commit comments

Comments
 (0)