Merge pull request #34 from mattn/am_path_check
AM_PATH_CHECK is deprecated
This commit is contained in:
commit
a80c9378f8
1 changed files with 5 additions and 2 deletions
|
@ -8,9 +8,12 @@ AC_PROG_CC
|
||||||
AC_PROG_CC_STDC
|
AC_PROG_CC_STDC
|
||||||
|
|
||||||
# AM_PATH_CHECK()
|
# 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!])
|
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")
|
AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
|
||||||
|
|
||||||
AC_CHECK_HEADERS([stdlib.h string.h sys/time.h])
|
AC_CHECK_HEADERS([stdlib.h string.h sys/time.h])
|
||||||
|
|
Loading…
Reference in a new issue