[xiph-commits] r8231 - in trunk/theora: . doc/python

j at motherfish-iii.xiph.org j at motherfish-iii.xiph.org
Thu Nov 18 23:51:23 PST 2004


Author: j
Date: 2004-11-18 23:51:22 -0800 (Thu, 18 Nov 2004)
New Revision: 8231

Modified:
   trunk/theora/configure.ac
   trunk/theora/doc/python/Makefile.am
Log:
only build python spec if there is python installed.

Modified: trunk/theora/configure.ac
===================================================================
--- trunk/theora/configure.ac	2004-11-19 00:03:17 UTC (rev 8230)
+++ trunk/theora/configure.ac	2004-11-19 07:51:22 UTC (rev 8231)
@@ -43,6 +43,10 @@
         AC_MSG_WARN([*** doxygen not found, API documentation will not be built])
 fi
 
+dnl Check for python
+AC_CHECK_PROG(HAVE_PYTHON, python, true, false)
+AM_CONDITIONAL(HAVE_PYTHON,$HAVE_PYTHON)
+
 dnl --------------------------------------------------
 dnl Set build flags based on environment
 dnl --------------------------------------------------

Modified: trunk/theora/doc/python/Makefile.am
===================================================================
--- trunk/theora/doc/python/Makefile.am	2004-11-19 00:03:17 UTC (rev 8230)
+++ trunk/theora/doc/python/Makefile.am	2004-11-19 07:51:22 UTC (rev 8231)
@@ -1,8 +1,9 @@
 ## Process this file with automake to produce Makefile.in
-
 docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
 
+if HAVE_PYTHON
 built_docs = spec.py spec.html
+endif
 
 static_docs = 
 #		testspec.ogg testspec.raw \
@@ -20,4 +21,3 @@
 
 spec.html : spec.txt txt2html.py
 	python $(srcdir)/txt2html.py $(srcdir)/spec.txt spec.html
-



More information about the commits mailing list