-I$(srcdir)/includes \
-I$(builddir)/includes \
-I$(srcdir)/x509 \
+ $(LIBTASN1_CFLAGS) \
$(P11_KIT_CFLAGS)
if ENABLE_OPENPGP
if ENABLE_MINITASN1
libgnutls_la_LIBADD += minitasn1/libminitasn1.la
else
-libgnutls_la_LDFLAGS += $(LTLIBTASN1)
+libgnutls_la_LDFLAGS += $(LIBTASN1_LIBS)
endif
if ENABLE_NETTLE
included_libtasn1=$withval,
included_libtasn1=no)
if test "$included_libtasn1" = "no"; then
- AC_LIB_HAVE_LINKFLAGS(tasn1,, [#include <libtasn1.h>],
- [asn1_check_version (NULL)])
- if test "$ac_cv_libtasn1" != yes; then
- included_libtasn1=yes
+ PKG_CHECK_MODULES(LIBTASN1, [libtasn1 >= 2.14], [], [included_libtasn1=yes])
+ if test "$included_libtasn1" = yes; then
AC_MSG_WARN([[
***
*** Libtasn1 was not found. Will use the included one.