X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/762806f18406049fd7a3579087172b92171fdbc4..3dc3d7dbde4b666c7e829a27d5838e5ed49bdbe6:/configure.ac diff --git a/configure.ac b/configure.ac index f372639..99b2e97 100644 --- a/configure.ac +++ b/configure.ac @@ -125,17 +125,16 @@ subdirs="scripts lib clients doc examples debian" if test $want_server = yes; then subdirs="${subdirs} server plugins driver templates sounds images" fi -if test $want_python = yes; then - AM_PATH_PYTHON - subdirs="${subdirs} python" -fi if test $want_gtk = yes; then subdirs="${subdirs} disobedience" if test $want_server = no; then subdirs="${subdirs} images" fi fi -subdirs="${subdirs} tests" +if test $want_python = yes; then + AM_PATH_PYTHON([2.4]) + subdirs="${subdirs} python tests" +fi AC_SUBST([subdirs]) # libtool config @@ -498,3 +497,6 @@ AC_OUTPUT if test $GCC = yes && test "$gcc_werror" = ''; then AC_MSG_WARN([building without -Werror]) fi +if test $want_python = no; then + AC_MSG_WARN([cannot run the test suit without Python]) +fi