summaryrefslogtreecommitdiff
path: root/ext/aspell/config.m4
blob: a82ad6ca0212a7c726462af7ccd461cbbf5fd6de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
dnl
dnl $Id$
dnl

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

    PHP_ADD_INCLUDE($ASPELL_DIR/include)
    PHP_ADD_LIBRARY_WITH_PATH(aspell, $ASPELL_DIR/lib)

    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
    AC_DEFINE(HAVE_ASPELL,1,[Whether you have aspell])
    AC_MSG_RESULT(yes)
    PHP_NEW_EXTENSION(aspell, aspell.c)
  else
    AC_MSG_RESULT(no)
  fi
],[
  AC_MSG_RESULT(no)
])