PKG_CHECK_MODULES([libmicrohttpd], [libmicrohttpd])
+AM_PATH_LIBGCRYPT
AC_CHECK_LIB([yubikey], [yubikey_modhex_decode],[], AC_MSG_ERROR([libyubikey is not installed or not new enough]))
AM_CONFIG_HEADER(src/config.h)
AC_CONFIG_FILES([
yubikeyd_SOURCES = main.c util.c
-yubikeyd_CFLAGS = @libmicrohttpd_CFLAGS@ @POSTGRESQL_CFLAGS@
-yubikeyd_LDADD = @libmicrohttpd_LIBS@ @POSTGRESQL_LDFLAGS@
\ No newline at end of file
+yubikeyd_CFLAGS = @libmicrohttpd_CFLAGS@ @POSTGRESQL_CFLAGS@ @LIBGCRYPT_CFLAGS@
+yubikeyd_LDADD = @libmicrohttpd_LIBS@ @POSTGRESQL_LDFLAGS@ @LIBGCRYPT_LIBS@