5 PHP_ARG_ENABLE(phpCairo, whether to enable phpCairo functions,
6 [ --enable-phpCairo Enable phpCairo support])
8 if test "$PHP_PHPCAIRO" != "no"; then
9 export OLD_CPPFLAGS="$CPPFLAGS"
10 export CPPFLAGS="$CPPFLAGS $INCLUDES -DHAVE_PHPCAIRO"
12 AC_MSG_CHECKING(PHP version)
13 AC_TRY_COMPILE([#include <php_version.h>], [
14 #if PHP_VERSION_ID < 50000
15 #error this extension requires at least PHP version 5.0.0
19 [AC_MSG_ERROR([need at least PHP 5.0.0])])
21 export CPPFLAGS="$OLD_CPPFLAGS"
24 PHP_SUBST(PHPCAIRO_SHARED_LIBADD)
25 AC_DEFINE(HAVE_PHPCAIRO, 1, [ ])
27 PHP_NEW_EXTENSION(phpCairo, phpCairo.c , $ext_shared)