trying to fix #88412 by bypassing all the python subdir if python ain't

* Makefile.am configure.in: trying to fix #88412 by bypassing
  all the python subdir if python ain't detected
daniel
diff --git a/Makefile.am b/Makefile.am
index 7269a9e..a3edb29 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
 ## Process this file with automake to produce Makefile.in
 # AUTOMAKE_ OPTIONS=no-dependencies
 
-SUBDIRS = include . doc example python
+SUBDIRS = include . doc example @PYTHON_SUBDIR@
 
 INCLUDES = -I@srcdir@/include -I$(top_builddir)/include @THREAD_CFLAGS@ @Z_CFLAGS@ 
 
@@ -107,7 +107,7 @@
 testall : tests SVGtests SAXtests
 
 tests: XMLtests XMLenttests HTMLtests Validtests URItests XPathtests XPtrtests XIncludetests C14Ntests Scripttests Catatests @TEST_REGEXPS@ @TEST_SCHEMAS@ @TEST_THREADS@
-	@(cd python ; $(MAKE) tests)
+	@(if [ "@PYTHON_SUBDIR@" != "" ] ; then cd python ; $(MAKE) tests ; fi)
 
 valgrind:
 	@echo '## Running the regression tests under Valgrind'