[gedit/gnome-3-8] Only check for python when python is enabled



commit 0bd520f66ab48802df82cdad549345de90fc9e65
Author: Garrett Regier <garrettregier gmail com>
Date:   Wed Jun 12 13:53:00 2013 -0700

    Only check for python when python is enabled

 configure.ac |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ab2dc4c..29342e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,8 +34,6 @@ PKG_PROG_PKG_CONFIG
 # needed on osx
 AC_PROG_OBJC
 
-AM_PATH_PYTHON(3.2.3)
-
 # Initialize libtool
 LT_PREREQ([2.2.6])
 LT_INIT(disable-static)
@@ -308,6 +306,7 @@ if test "x$enable_python" = "xauto"; then
 fi
 
 if test "x$enable_python" = "xyes"; then
+       AM_PATH_PYTHON(3.2.3)
        PKG_CHECK_MODULES(PYTHON, [pygobject-3.0 >= $PYGOBJECT_REQUIRED])
 
        pyoverridesdir=`$PYTHON -c "import gi; print(gi._overridesdir)"`


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]