- Added proper destructors for resources and custom types
[lwes-php.git] / config.m4
blobe126ba15e6ee03fa13c796a934978e54180ae220
1 dnl $Id: php4.cxx,v 1.10 2004/12/01 00:50:06 marcelomatus Exp $
2 dnl ***********************************************************************
3 dnl ** THIS config.m4 is provided for PHPIZE and PHP's consumption NOT
4 dnl ** for any part of the rest of the lwes build system
5 dnl ***********************************************************************
7 if test -z "$PKG_CONFIG"; then
8   AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
9 fi
11 if test "$PKG_CONFIG" = "no" ; then
12   echo "pkg-config not found."
15 PHP_ARG_ENABLE(lwes, whether to enable lwes support,
16 [  --enable-lwes             Enable lwes support])
18 if test "$PHP_LWES" != "no"; then
20   PHP_SUBST(LWES_SHARED_LIBADD)
22   AC_DEFINE(HAVE_LWES, 1, [ ])
23 dnl  AC_DEFINE_UNQUOTED(PHP_LWES_DIR, "$LWES_DIR", [ ])
24 dnl  PHP_EXTENSION(lwes, $ext_shared)
26   CFLAGS=`$PKG_CONFIG --cflags lwes-0`
27   LDFLAGS=`$PKG_CONFIG --libs lwes-0`
29   PHP_NEW_EXTENSION(lwes, lwes_wrap.c, $ext_shared)