summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-03-04 14:59:58 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-03-04 15:10:59 +0100
commit67e28a7b18f5363c6d1ad45fbb23f3d5bc1d5a50 (patch)
tree0072fdad168230cc1cc54347302d24ae5f8f73c9 /m4
parente4e43b88970a56bf5ac43ef2f6143c520c24925e (diff)
downloadgnutls-67e28a7b18f5363c6d1ad45fbb23f3d5bc1d5a50.tar.gz
use asn1_decode_simple_ber if available
Diffstat (limited to 'm4')
-rw-r--r--m4/hooks.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/m4/hooks.m4 b/m4/hooks.m4
index b347616f68..ce756eeca8 100644
--- a/m4/hooks.m4
+++ b/m4/hooks.m4
@@ -124,6 +124,13 @@ AC_MSG_ERROR([[
GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libtasn1"
fi
+ oldlibs="$LIBS"
+ LIBS="$LIBS $LIBTASN1_LIBS"
+ oldcflags="$CFLAGS"
+ CFLAGS="$CFLAGS $LIBTASN1_CFLAGS"
+ AC_CHECK_FUNC(asn1_decode_simple_ber,
+ [AC_DEFINE(HAVE_ASN1_DECODE_SIMPLE_BER, 1, [Have this function])], [])
+
AC_MSG_CHECKING([whether C99 macros are supported])
AC_TRY_COMPILE(,
[