AM_PATH_CHECK is deprecated, so check it defined
This commit is contained in:
parent
e7aaaac63f
commit
7e13b0be9c
1 changed files with 5 additions and 2 deletions
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue