summaryrefslogtreecommitdiff
path: root/ext/mcrypt/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mcrypt/config.m4')
-rw-r--r--ext/mcrypt/config.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/mcrypt/config.m4 b/ext/mcrypt/config.m4
index 78dd7fb497..b1ff3d465a 100644
--- a/ext/mcrypt/config.m4
+++ b/ext/mcrypt/config.m4
@@ -9,10 +9,14 @@ AC_ARG_WITH(mcrypt,
[
if test "$withval" != "no"; then
for i in /usr/local /usr $withval; do
- if test -f $i/include/lcrypt.h; then
+ if test -f $i/include/mcrypt.h; then
MCRYPT_DIR=$i
fi
done
+ if test "$MCRYPT_DIR" = ""; then
+ AC_MSG_ERROR(Please install mcrypt.h and libmcrypt.a accordingly to the do
+cumentation - I cannot find mcrypt.h)
+ fi
INCLUDES="$INCLUDES -I$MCRYPT_DIR/include"
EXTRA_LIBS="$EXTRA_LIBS -L$MCRYPT_DIR/lib -lmcrypt"