22 |
AC_MSG_ERROR([[*** libmcrypt was not found]]) |
AC_MSG_ERROR([[*** libmcrypt was not found]]) |
23 |
) |
) |
24 |
|
|
25 |
|
AC_CHECK_LIB(mhash, mhash_keygen, LIBS="${LIBS} -lmhash", |
26 |
|
AC_MSG_ERROR("You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/")) |
27 |
|
|
28 |
|
AC_MSG_CHECKING([whether mhash >= 0.8.15]) |
29 |
|
AC_TRY_RUN( |
30 |
|
#include <mhash.h> |
31 |
|
|
32 |
|
int main() { |
33 |
|
|
34 |
|
if (MHASH_API_VERSION >= 20020524) |
35 |
|
exit(0); |
36 |
|
else |
37 |
|
exit(-1); |
38 |
|
}, |
39 |
|
dnl ************ CASE >= 0.8.15 |
40 |
|
AC_MSG_RESULT(yes) |
41 |
|
, |
42 |
|
dnl ************ CASE < 0.8.15 |
43 |
|
AC_MSG_RESULT(no) |
44 |
|
AC_MSG_ERROR("You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/") |
45 |
|
) |
46 |
|
|
47 |
|
|
48 |
dnl For GNU gettext |
dnl For GNU gettext |
49 |
ALL_LINGUAS="el cs pl de" |
ALL_LINGUAS="el cs pl de" |
50 |
AM_GNU_GETTEXT |
AM_GNU_GETTEXT |
78 |
try_dev_random=$enableval, try_dev_random=yes) |
try_dev_random=$enableval, try_dev_random=yes) |
79 |
AC_MSG_RESULT($try_dev_random) |
AC_MSG_RESULT($try_dev_random) |
80 |
|
|
|
AC_CHECK_LIB(mhash, mhash_keygen, LIBS="${LIBS} -lmhash", |
|
|
AC_MSG_ERROR("You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/")) |
|
|
|
|
|
AC_MSG_CHECKING([whether mhash >= 0.8.15...]) |
|
|
AC_TRY_RUN( int main() { |
|
|
#include <mhash.h> |
|
|
|
|
|
if (MHASH_API_VERSION >= 20020524) |
|
|
exit(0); |
|
|
else |
|
|
exit(-1); |
|
|
}, |
|
|
dnl ************ CASE >= 0.8.15 |
|
|
AC_MSG_RESULT(yes) |
|
|
, |
|
|
dnl ************ CASE < 0.8.15 |
|
|
AC_MSG_RESULT(no) |
|
|
AC_MSG_ERROR("You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/") |
|
|
) |
|
81 |
|
|
82 |
opt_static_link=no |
opt_static_link=no |
83 |
AC_MSG_CHECKING([whether static link is requested]) |
AC_MSG_CHECKING([whether static link is requested]) |