diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-06-02 19:10:52 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-06-02 19:22:46 +0200 |
commit | 02eb70d6d96f624ed6cc55dfa62734495dffbb44 (patch) | |
tree | 64ec2d2612f55a31c0ab74d5579fe4a7dd92a00a /m4 | |
parent | 35dd36c2fb529ecde48147ee6b04fe879917f574 (diff) | |
download | gnutls-02eb70d6d96f624ed6cc55dfa62734495dffbb44.tar.gz |
Directly link to gmp library. Based on original patch by Alon Bar-Lev <alon.barlev@gmail.com>.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/hooks.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/m4/hooks.m4 b/m4/hooks.m4 index 3439edb2a8..cd9ef5ce97 100644 --- a/m4/hooks.m4 +++ b/m4/hooks.m4 @@ -82,6 +82,17 @@ AC_MSG_ERROR([[ GNUTLS_REQUIRES_PRIVATE="Requires.private: nettle, hogweed" + AC_ARG_VAR(GMP_CFLAGS, [C compiler flags for gmp]) + AC_ARG_VAR(GMP_LIBS, [linker flags for gmp]) + if test x$GMP_LIBS = x; then + AC_CHECK_LIB(gmp, __gmpz_cmp, [GMP_LIBS="-lgmp"], [AC_MSG_ERROR([[ +*** +*** gmp was not found. +]])]) + fi + AC_SUBST(GMP_CFLAGS) + AC_SUBST(GMP_LIBS) + AC_ARG_WITH(included-libtasn1, AS_HELP_STRING([--with-included-libtasn1], [use the included libtasn1]), included_libtasn1=$withval, |