1999-07-09 14:56:33 +00:00
|
|
|
dnl $Id$
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for ASPELL support)
|
|
|
|
AC_ARG_WITH(aspell,
|
|
|
|
[ --with-aspell[=DIR] Include ASPELL support.],
|
|
|
|
[
|
|
|
|
if test "$withval" != "no"; then
|
|
|
|
if test "$withval" = "yes"; then
|
|
|
|
ASPELL_DIR=/usr/local
|
|
|
|
else
|
|
|
|
ASPELL_DIR=$withval
|
|
|
|
fi
|
|
|
|
|
2001-03-27 20:35:04 +00:00
|
|
|
PHP_ADD_INCLUDE($ASPELL_DIR/include)
|
|
|
|
PHP_ADD_LIBRARY_WITH_PATH(aspell, $ASPELL_DIR/lib)
|
1999-07-09 14:56:33 +00:00
|
|
|
|
|
|
|
if test ! -f "$ASPELL_DIR/include/aspell-c.h"; then
|
|
|
|
AC_MSG_ERROR(Could not find aspell-c.h in $ASPELL_DIR/include - please copy it manually from the aspell sources to $ASPELL_DIR/include)
|
|
|
|
fi
|
1999-12-30 04:07:46 +00:00
|
|
|
AC_DEFINE(HAVE_ASPELL,1,[Whether you have aspell])
|
1999-07-09 14:56:33 +00:00
|
|
|
AC_MSG_RESULT(yes)
|
2001-04-02 09:06:33 +00:00
|
|
|
PHP_EXTENSION(aspell)
|
1999-07-09 14:56:33 +00:00
|
|
|
else
|
2001-04-02 09:06:33 +00:00
|
|
|
AC_MSG_RESULT(no)
|
1999-07-09 14:56:33 +00:00
|
|
|
fi
|
|
|
|
],[
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
])
|