56 |
AC_MSG_RESULT($try_dev_random) |
AC_MSG_RESULT($try_dev_random) |
57 |
|
|
58 |
AC_CHECK_LIB(mhash, mhash_keygen, LIBS="${LIBS} -lmhash", |
AC_CHECK_LIB(mhash, mhash_keygen, LIBS="${LIBS} -lmhash", |
59 |
AC_MSG_ERROR("You need at least libmhash 0.8.0 to compile this program. http://mhash.sf.net/")) |
AC_MSG_ERROR("You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/")) |
60 |
|
|
61 |
|
AC_MSG_CHECKING([whether mhash >= 0.8.15...]) |
62 |
|
AC_TRY_RUN( int main() { |
63 |
|
#include <mhash.h> |
64 |
|
|
65 |
|
if (MHASH_API_VERSION >= 20020524) |
66 |
|
exit(0); |
67 |
|
else |
68 |
|
exit(-1); |
69 |
|
}, |
70 |
|
dnl ************ CASE >= 0.8.15 |
71 |
|
AC_MSG_RESULT(yes) |
72 |
|
, |
73 |
|
dnl ************ CASE < 0.8.15 |
74 |
|
AC_MSG_RESULT(no) |
75 |
|
AC_MSG_ERROR("You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/") |
76 |
|
) |
77 |
|
|
78 |
AC_MSG_CHECKING([whether fcntl-locking is requested]) |
AC_MSG_CHECKING([whether fcntl-locking is requested]) |
79 |
AC_ARG_ENABLE(fcntl-locking, |
AC_ARG_ENABLE(fcntl-locking, |