From 4463d4e7d8da10a29eb6d070a976ebf92f883e35 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Tue, 1 Jun 2021 20:29:16 +0200 Subject: [PATCH] [-] Fix build with old libgcrypt versions (eg Buster's) with no pkg-config --- src/inputs/librespot-c/configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/inputs/librespot-c/configure.ac b/src/inputs/librespot-c/configure.ac index 96d82f03..4c0cd39e 100644 --- a/src/inputs/librespot-c/configure.ac +++ b/src/inputs/librespot-c/configure.ac @@ -14,7 +14,9 @@ AC_SEARCH_LIBS([pthread_exit], [pthread], [], [AC_MSG_ERROR([[pthreads library i PKG_CHECK_MODULES([LIBEVENT], [libevent]) PKG_CHECK_MODULES([JSON_C], [json-c]) -PKG_CHECK_MODULES([LIBGCRYPT], [libgcrypt]) +PKG_CHECK_MODULES([LIBGCRYPT], [libgcrypt], [], [ + AM_PATH_LIBGCRYPT([], [], [AC_MSG_ERROR([[libgcrypt is required]])]) +]) PKG_CHECK_MODULES([LIBCURL], [libcurl]) PKG_CHECK_MODULES([LIBPROTOBUF_C], [libprotobuf-c])