php-src/ext/ming/config.m4
foobar 8a26918ed1 Renamed the AC_ prefixed macros defined in acinclude.m4 to PHP_* prefixes.
# Heads up people! I tested this before committing but you never know..
2001-03-27 20:35:04 +00:00

31 lines
724 B
Plaintext

dnl $Id$
dnl config.m4 for extension libming
PHP_ARG_WITH(ming, whether to include ming support,
[ --with-ming[=DIR] Include ming support])
if test "$PHP_MING" != "no"; then
for i in $PHP_MING /usr/local /usr; do
if test -r $i/lib/libming.so; then
MING_DIR=$i
fi
done
if test -z "$MING_DIR"; then
AC_MSG_ERROR(Please reinstall libming.so - I cannot find libming.so)
fi
PHP_ADD_INCLUDE($MING_DIR/include)
PHP_SUBST(MING_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH(ming, $MING_DIR/lib, MING_SHARED_LIBADD)
AC_CHECK_LIB(ming, Ming_setScale, [
AC_DEFINE(HAVE_MING,1,[ ])
],[
AC_MSG_ERROR(Ming library 0.1.0 or greater required.)
])
PHP_EXTENSION(ming, $ext_shared)
fi