-# Check for the GNU Multi Precision Library
-libgmp=none
-AC_CHECK_LIB(gmp, mpz_powm, [
- libgmp=gmp
-])
-AC_CHECK_LIB(gmp2, mpz_powm, [
- libgmp=gmp2
-])
-AC_CHECK_LIB(gmp3, __gmpz_powm, [
- libgmp=gmp3
-])
-AC_CHECK_LIB(gmp, __gmpz_powm, [
- libgmp=gmp
-])
-
-if test $libgmp = none; then
- AC_MSG_ERROR(libgmp is not installed. Please grab it from your
- nearest GNU mirror and install it (see README))
-else
- LIBS="$LIBS -l$libgmp"
-fi
-
-AC_CHECK_LIB(dl, dlopen, [
- LIBS="$LIBS -ldl"
-])
-
-
-dnl Crypto stuff
-
-libcrypto=none
-AC_CHECK_LIB(crypto, SHA1_version, [
- libcrypto=yes
-])
-
-if test $libcrypto = none; then
- AC_MSG_ERROR(It seems like OpenSSL is not installed on this system.)
-else
- LIBS="$LIBS -lcrypto"
-fi
-