From 7e13b0be9c2f99b301de7cad1d9215f389aee2ba Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 22 May 2014 01:14:37 +0900 Subject: [PATCH] AM_PATH_CHECK is deprecated, so check it defined --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index b6fd07b..224c326 100644 --- a/configure.ac +++ b/configure.ac @@ -8,9 +8,12 @@ AC_PROG_CC AC_PROG_CC_STDC # AM_PATH_CHECK() -AM_PATH_CHECK(,[have_check="yes"], +PKG_CHECK_MODULES(CHECK,[check >= 0.9.4],:,[ + ifdef([AM_PATH_CHECK], + [AM_PATH_CHECK(,[have_check="yes"])], AC_MSG_WARN([Check not found; cannot run unit tests!]) - [have_check="no"]) + [have_check="no"])] +]) AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes") AC_CHECK_HEADERS([stdlib.h string.h sys/time.h])