Description: using pkg-config to grasp cppunit in the Makefile.am
Author: Rene Engelhard <rene@debian.org>
Forwarded: not-needed
Last-Update: 2022-06-27

--- a/zookeeper-recipes/zookeeper-recipes-lock/src/main/c/configure.ac
+++ b/zookeeper-recipes/zookeeper-recipes-lock/src/main/c/configure.ac
@@ -72,7 +72,7 @@
 AC_PROG_CC
 AC_PROG_LIBTOOL
 #check for cppunit 
-AM_PATH_CPPUNIT(1.10.2)
+PKG_CHECK_MODULES(CPPUNIT, cppunit >= 1.10.2)
 # Checks for library functions.
 AC_FUNC_UTIME_NULL
 AC_CHECK_FUNCS([gettimeofday memset mkdir rmdir strdup strerror strstr strtol strtoul strtoull utime])
--- a/zookeeper-recipes/zookeeper-recipes-queue/src/main/c/configure.ac
+++ b/zookeeper-recipes/zookeeper-recipes-queue/src/main/c/configure.ac
@@ -72,7 +72,7 @@
 AC_PROG_CC
 AC_PROG_LIBTOOL
 #check for cppunit 
-AM_PATH_CPPUNIT(1.10.2)
+PKG_CHECK_MODULES(CPPUNIT, cppunit >= 1.10.2)
 # Checks for library functions.
 AC_FUNC_UTIME_NULL
 AC_CHECK_FUNCS([gettimeofday memset mkdir rmdir strdup strerror strstr strtol strtoul strtoull utime])
