2001-12-01 03:00:13 +08:00
|
|
|
dnl
|
1999-05-16 20:01:25 +08:00
|
|
|
dnl $Id$
|
2001-12-01 03:00:13 +08:00
|
|
|
dnl
|
1999-05-16 20:01:25 +08:00
|
|
|
|
2000-03-28 07:43:00 +08:00
|
|
|
PHP_ARG_WITH(mhash, for mhash support,
|
2005-05-30 07:17:16 +08:00
|
|
|
[ --with-mhash[=DIR] Include mhash support])
|
1999-05-16 20:01:25 +08:00
|
|
|
|
2000-03-28 07:43:00 +08:00
|
|
|
if test "$PHP_MHASH" != "no"; then
|
2003-10-01 06:36:43 +08:00
|
|
|
for i in $PHP_MHASH /usr/local /usr /opt/mhash; do
|
2003-10-01 10:53:23 +08:00
|
|
|
test -f $i/include/mhash.h && MHASH_DIR=$i && break
|
2000-03-28 07:43:00 +08:00
|
|
|
done
|
1999-05-16 20:01:25 +08:00
|
|
|
|
2000-03-28 07:43:00 +08:00
|
|
|
if test -z "$MHASH_DIR"; then
|
|
|
|
AC_MSG_ERROR(Please reinstall libmhash - I cannot find mhash.h)
|
1999-05-16 20:01:25 +08:00
|
|
|
fi
|
2003-10-01 10:53:23 +08:00
|
|
|
|
2001-03-28 04:35:04 +08:00
|
|
|
PHP_ADD_INCLUDE($MHASH_DIR/include)
|
|
|
|
PHP_ADD_LIBRARY_WITH_PATH(mhash, $MHASH_DIR/lib, MHASH_SHARED_LIBADD)
|
2000-03-28 07:43:00 +08:00
|
|
|
|
2002-03-13 00:44:00 +08:00
|
|
|
PHP_NEW_EXTENSION(mhash, mhash.c, $ext_shared)
|
2003-10-01 10:53:23 +08:00
|
|
|
PHP_SUBST(MHASH_SHARED_LIBADD)
|
|
|
|
AC_DEFINE(HAVE_LIBMHASH,1,[ ])
|
2000-03-28 07:43:00 +08:00
|
|
|
fi
|