summaryrefslogtreecommitdiff
path: root/ext/mcal/config.m4
blob: 79be84b821c0c7a56e24f5b6ed4828fd0d98393f (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,1,[ ])
    PHP_EXTENSION(mcal)
    AC_MSG_RESULT(yes)
  else
    AC_MSG_ERROR(no)
  fi
],[
  AC_MSG_RESULT(no)
])