summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--legacy/ephysics/configure.ac21
1 files changed, 12 insertions, 9 deletions
diff --git a/legacy/ephysics/configure.ac b/legacy/ephysics/configure.ac
index f1e716a02f..a4af83ccd5 100644
--- a/legacy/ephysics/configure.ac
+++ b/legacy/ephysics/configure.ac
@@ -188,18 +188,21 @@ case "$host_os" in
188esac 188esac
189AC_SUBST(lt_enable_auto_import) 189AC_SUBST(lt_enable_auto_import)
190 190
191## Tests 191## Tests - disable by default. With edje requiring ephysics and tests requiring
192## edje we are in circular dependency hell here.
193build_tests="no"
192if test "x${build_docs_only}" = "xno" ; then 194if test "x${build_docs_only}" = "xno" ; then
193PKG_CHECK_MODULES([ELEMENTARY], [elementary >= 1.7.99], [build_tests="yes"], [build_tests="no"]) 195PKG_CHECK_MODULES([ELEMENTARY], [elementary >= 1.7.99], [req_tests="yes"], [req_tests="no"])
194AC_ARG_ENABLE([build-tests], 196AC_ARG_ENABLE([build-tests],
195 AC_HELP_STRING([--disable-build-tests], 197 AC_HELP_STRING([--enable-build-tests],
196 [Disable building tests. It is enabled by default unless 198 [Enable building tests. It is not built if the
197 required dependencies are not present. @<:@default==enabled@:>@]), 199 required dependencies are not present. @<:@default==disabled@:>@]),
198 [ 200 [
199 if test "x${enableval}" = "xno" ; then 201 if test "x${enableval}" = "xyes" ; then
200 build_tests="no" 202 if test "x${req_tests}" = "xyes" ; then
201 else 203 build_tests="yes"
202 requirement_ephysics="elementary >= 1.7.99 ${requirement_ephysics}" 204 requirement_ephysics="elementary >= 1.7.99 ${requirement_ephysics}"
205 fi
203 fi 206 fi
204 ], 207 ],
205 []) 208 [])