summaryrefslogtreecommitdiff
path: root/ext/mcal/config.m4
blob: 914203e0ac69a4622d6d148762920d320abed113 (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
dnl $Id$

AC_MSG_CHECKING(for MCAL support)
AC_ARG_WITH(mcal,
[  --with-mcal[=DIR]       Include MCAL support.],
[
  if test "$withval" != "no"; then
    if test "$withval" = "yes"; then
      MCAL_DIR=/usr/local
    else
      MCAL_DIR=$withval
    fi
    
    AC_ADD_INCLUDE($MCAL_DIR)
    AC_ADD_LIBRARY_WITH_PATH(mcal, $MCAL_DIR)
    AC_DEFINE(HAVE_MCAL)
    PHP_EXTENSION(mcal)
    AC_MSG_RESULT(yes)
  else
    AC_MSG_ERROR(no)
  fi
],[
  AC_MSG_RESULT(no)
])