php-src/ext/muscat/config.m4
Sam Liddicott 04d7c9815f First checkin of muscat/empower module; been using it here for some time
Developing using aegis and just checking in baseline from time to time

See samjam@php.net for questions
2001-01-18 13:21:34 +00:00

36 lines
995 B
Plaintext

dnl $Id$
PHP_ARG_WITH(muscat, for Muscat support,
[ --with-muscat[=DIR] Include muscat support.])
if test "$PHP_MUSCAT" != "no"; then
PHP_EXTENSION(muscat, $ext_shared)
for i in $PHP_MUSCAT /usr/local /usr /usr/local/empower /usr/local/empower/developer; do
if test -f $i/include/Muscat.h; then
MUSCAT_INCDIR=$i/include
MUSCAT_DIR=$i
fi
if test -f $i/libs/libhdmuscat3.6.a; then
MUSCAT_LIBDIR=$i/libs
MUSCAT_DIR=$i
elif test -f $i/lib/libhdmuscat3.6.a; then
MUSCAT_LIBDIR=$i/lib
MUSCAT_DIR=$i
fi
done
if test -z "$MUSCAT_INCDIR"; then
AC_MSG_ERROR(Cannot find Muscat include dir)
fi
if test -z "$MUSCAT_LIBDIR"; then
AC_MSG_ERROR(Cannot find Muscat lib dir)
fi
AC_DEFINE(HAVE_MUSCAT, 1, [ ])
PHP_SUBST(MUSCAT_SHARED_LIBADD)
AC_DEFINE_UNQUOTED(PHP_MUSCAT_DIR, "$MUSCAT_DIR", [ ])
AC_ADD_LIBRARY_WITH_PATH(hdmuscat3.6, $MUSCAT_LIBDIR, MUSCAT_SHARED_LIBADD)
AC_ADD_INCLUDE($MUSCAT_INCDIR)
fi