mirror of
https://github.com/php/php-src.git
synced 2024-10-15 05:22:48 +00:00
2c99bef442
what the respective define does into the AC_DEFINE macro. I.e. AC_DEFINE(HAVE_FOO, 1, [Whether you have FOO])
30 lines
894 B
Plaintext
30 lines
894 B
Plaintext
dnl $Id$
|
|
dnl config.m4 for extension dav
|
|
dnl don't forget to call PHP_EXTENSION(dav)
|
|
|
|
AC_MSG_CHECKING(whether to enable DAV support through mod_dav)
|
|
AC_ARG_WITH(mod-dav,
|
|
[ --with-mod-dav=DIR Include DAV support through Apache's mod_dav,
|
|
DIR is mod_dav's installation directory (Apache
|
|
module version only!)],
|
|
[
|
|
if test "$withval" = "yes"; then
|
|
AC_MSG_ERROR(Must give parameter to --with-mod-dav!)
|
|
else
|
|
if test "$withval" != "no"; then
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_MOD_DAV, 1, [Whether you have mod_dav])
|
|
CFLAGS="$CFLAGS -DHAVE_MOD_DAV -I$withval"
|
|
INCLUDES="$INCLUDES -I$withval"
|
|
PHP_EXTENSION(dav)
|
|
else
|
|
AC_MSG_RESULT(no)
|
|
AC_DEFINE(HAVE_MOD_DAV, 0, [Whether you have mod_dav])
|
|
fi
|
|
fi
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
AC_DEFINE(HAVE_MOD_DAV, 0, [Whether you have mod_dav])
|
|
])
|
|
|