1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
dnl
dnl $Id$
dnl
PHP_ARG_WITH(mcrypt, for mcrypt support,
[ --with-mcrypt[=DIR] Include mcrypt support. DIR is the mcrypt install
directory.])
if test "$PHP_MCRYPT" != "no"; then
for i in /usr/local /usr $PHP_MCRYPT; do
if test -f $i/include/mcrypt.h; then
MCRYPT_DIR=$i
fi
done
if test -z "$MCRYPT_DIR"; then
AC_MSG_ERROR(mcrypt.h not found. Please reinstall libmcrypt.)
fi
PHP_CHECK_LIBRARY(mcrypt, mcrypt_module_open,
[
PHP_ADD_LIBRARY(ltdl,, MCRYPT_SHARED_LIBADD)
AC_DEFINE(HAVE_LIBMCRYPT24,1,[ ])
],[
PHP_CHECK_LIBRARY(mcrypt, init_mcrypt,
[
AC_DEFINE(HAVE_LIBMCRYPT22,1,[ ])
],[
AC_MSG_ERROR(Sorry, I was not able to diagnose which libmcrypt version you have installed.)
],[
-L$MCRYPT_DIR/lib
])
],[
-L$MCRYPT_DIR/lib -lltdl
])
PHP_ADD_LIBRARY_WITH_PATH(mcrypt, $MCRYPT_DIR/lib, MCRYPT_SHARED_LIBADD)
PHP_ADD_INCLUDE($MCRYPT_DIR/include)
AC_DEFINE(HAVE_LIBMCRYPT,1,[ ])
PHP_SUBST(MCRYPT_SHARED_LIBADD)
PHP_EXTENSION(mcrypt, $ext_shared)
fi
|