check check.h automatically

This commit is contained in:
c9s 2014-05-24 15:49:47 +08:00
parent b737fbb130
commit 6f66cc4f7a

View file

@ -82,10 +82,8 @@ AC_SUBST(DEPS_CFLAGS)
AC_SUBST(DEPS_LIBS) AC_SUBST(DEPS_LIBS)
AC_ARG_ENABLE(check, AC_CHECK_HEADERS([check.h],[ enable_check=yes ],:)
AS_HELP_STRING([--enable-check],
[enable unit testing]),
, enable_check=unset)
if test "x$enable_check" != "xunset" ; then if test "x$enable_check" != "xunset" ; then
# AM_PATH_CHECK # AM_PATH_CHECK
PKG_CHECK_MODULES(CHECK,[check >= 0.9.4],:,[ PKG_CHECK_MODULES(CHECK,[check >= 0.9.4],:,[
@ -97,6 +95,7 @@ PKG_CHECK_MODULES(CHECK,[check >= 0.9.4],:,[
fi fi
AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes") AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
AC_CONFIG_FILES([ AC_CONFIG_FILES([
r3.pc r3.pc
Makefile Makefile