AC_DEFINE(HAVE_SWFVIDEOSTREAM_SEEK, 1, [Have SWFVideoStream_seek(SWFVideoStream, int frame, int whence)])
dnl $Id: config.m4,v 1.15 2009/09/08 08:17:54 strk Exp $
PHP_ARG_WITH(ming, for MING support,
[ --with-ming[=DIR] Include MING support])
if test "$PHP_MING" != "no"; then
for i in $PHP_MING ../../src /usr/local /usr; do
if test -f $i/$PHP_LIBDIR/libming.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libming.a; then
if test -z "$MING_DIR"; then
AC_MSG_ERROR(Please reinstall ming distribution. libming.(a|so) not found.)
for i in ../../src $MING_DIR/include $MING_DIR/include/ming $MING_DIR/ming/include; do
if test -f $i/ming.h; then
if test -z "$MING_INC_DIR"; then
AC_MSG_ERROR(Please reinstall ming distribution. ming.h not found.)
PHP_CHECK_LIBRARY(ming, Ming_useSWFVersion, [
AC_DEFINE(HAVE_MING,1,[ ])
AC_MSG_ERROR([Ming library 0.2a or greater required.])
PHP_ADD_INCLUDE($MING_INC_DIR)
PHP_ADD_LIBRARY_WITH_PATH(ming, $MING_DIR/$PHP_LIBDIR, MING_SHARED_LIBADD)
AC_MSG_CHECKING([for destroySWFBlock])
int destroySWFBlock(int a, int b) {
return destroySWFBlock(-1,1); /* returns 0 only if function is not yet defined */
AC_DEFINE(HAVE_DESTROY_SWF_BLOCK,1,[ ])