--- configure.in.orig	2008-11-18 23:10:19.000000000 +1100
+++ configure.in	2008-11-18 23:12:10.000000000 +1100
@@ -381,13 +381,9 @@
 
 GKR_LIBTASN1_VERSION=0.3.4
 
-AM_PATH_LIBTASN1($GKR_LIBTASN1_VERSION,,
-	AC_MSG_ERROR([[
-*** 
-*** LibtASN1 ${GKR_LIBTASN1_VERSION} was not found. 
-]]))
+PKG_CHECK_MODULES(LIBTASN1, libtasn1 >= $GKR_LIBTASN1_VERSION)
 libtasn=yes
-AC_DEFINE_UNQUOTED(GKR_LIBGCRYPT_VERSION, "$GKR_LIBTASN1_VERSION", [Version of libtasn1 we expect])
+AC_DEFINE_UNQUOTED(GKR_LIBTASN1_VERSION, "$GKR_LIBTASN1_VERSION", [Version of libtasn1 we expect])
 
 DAEMON_CFLAGS="$DAEMON_CFLAGS $LIBTASN1_CFLAGS"
 DAEMON_LIBS="$DAEMON_LIBS $LIBTASN1_LIBS"
