aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2018-05-25 17:52:16 +0300
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2019-02-12 19:47:15 +0200
commite65a2919e4cf4008f73cfeccab511077e671c079 (patch)
treef28903a781a753d5266f0e80ebd2039821bcf8d1
parentExactness: integration with Autotools (diff)
downloadefl-e65a2919e4cf4008f73cfeccab511077e671c079.tar.gz
Exactness: add --enable-exactness-check configure flag
It is needed to enable Exactness checking in EFL
-rw-r--r--configure.ac31
1 files changed, 25 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index ca1047e0f2..b80eac58f9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5719,6 +5719,22 @@ EFL_LIB_START([Exactness])
### Default values
### Checks for programs
+want_exactness_check="no"
+AC_ARG_ENABLE([exactness-check],
+ [AS_HELP_STRING([--enable-exactness-check],[Enable Exactness check. @<:@default=disabled@:>@])],
+ [
+ if test "x${enableval}" = "xyes" ; then
+ want_exactness_check="yes"
+ else
+ want_exactness_check="no"
+ fi
+ ],
+ [want_exactness_check="no"])
+
+AM_CONDITIONAL([HAVE_EXACTNESS_CHECK], [test "x${want_exactness_check}" = "xyes"])
+AC_DEFINE_IF([HAVE_EXACTNESS_CHECK], [test "x${want_exactness_check}" = "xyes"],
+ [1], [Enable Exactness check])
+AC_SUBST([want_exactness_check])
## Compatibility layers
EFL_PLATFORM_DEPEND([EXACTNESS], [evil])
@@ -6055,12 +6071,15 @@ echo
if test "${build_tests}" = "none"; then
echo "Tests...........: no"
-elif test "${build_tests}" = "auto"; then
-echo "Tests...........: make check (inexplicitly enabled)"
-elif test "${build_tests}" = "regular"; then
-echo "Tests...........: make check"
-elif test "${build_tests}" = "coverage"; then
-echo "Tests...........: make lcov-check"
+else
+ if test "${build_tests}" = "auto"; then
+ echo "Tests...........: make check (inexplicitly enabled)"
+ elif test "${build_tests}" = "regular"; then
+ echo "Tests...........: make check"
+ elif test "${build_tests}" = "coverage"; then
+ echo "Tests...........: make lcov-check"
+ fi
+ echo " Exactness Tests: $want_exactness_check"
fi
echo "Examples........: make examples (make install-examples)"
if test "x${build_doc}" = "xyes"; then