configure php with mcrypt support

output of uname -a:
Linux XXXXX 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux

i'm trying to configure php with mcrypt support.

output is below:

./configure --with-apxs2=/usr/local/apache/bin/apxs \
--with-mysql=/usr/lib/mysql3/mysql/mysql_config \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/usr/local/apache/php \
--with-mcrypt=/opt/mcrypt-2.5.8

...

checking whether to check multibyte regex backtrack... yes
checking for external libmbfl... no
checking for mcrypt support... yes
checking for libmcrypt version... >= 2.5.6
checking for mcrypt_module_open in -lmcrypt... no
checking for mcrypt_module_open in -lmcrypt... no
configure: error: Sorry, I was not able to diagnose which libmcrypt version you have installed.

has anyone seen this type of error... i've tried rebuilding configure file but no luck.

-pupp

Hrm. Check configure.log and see if the command used to compile included something like -L/opt/mcrypt-.../lib. If not, override the LDFLAGS or LDLIBS on the configure line.

./configure ... LDFLAGS=/opt/mcrypt-.../lib

Of course, this is assuming you did install mcrypt inside /opt.