Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / phpCairo / config.m4
blob2fb79657e818a5a55d82731e113567b3a30b2319
1 dnl
2 dnl $ Id: $
3 dnl
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
16 #endif
18 [AC_MSG_RESULT(ok)],
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)