1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-11-24 04:14:29 +00:00

configure: acknowledge --disable-tests

Fixes #44
This commit is contained in:
Daniel Stenberg
2016-02-19 11:51:32 +01:00
parent fab050fe94
commit 10a1b7d509

View File

@ -877,8 +877,28 @@ squeeze CARES_PRIVATE_LIBS
XC_CHECK_BUILD_FLAGS
if test "x$cross_compiling" = "xno"; then
AC_CONFIG_SUBDIRS([test])
BUILDTESTS="yes"
AC_MSG_CHECKING([whether to build the tests])
AC_ARG_ENABLE(tests,
AC_HELP_STRING([--disable-tests],[skip building the tests]),
[ case "$enableval" in
no)
BUILDTESTS="no"
AC_MSG_RESULT(no)
;;
yes)
AC_MSG_RESULT(yes)
;;
*) AC_MSG_RESULT(yes)
;;
esac ],
AC_MSG_RESULT(yes)
)
if test "$BUILDTESTS" = "yes"; then
if test "x$cross_compiling" = "xno"; then
AC_CONFIG_SUBDIRS([test])
fi
fi
AC_CONFIG_FILES([Makefile libcares.pc])