AUDIT: r22297 - gnucash/trunk - Configure won't accept python on Debian Wheezy
John Ralls
jralls at code.gnucash.org
Thu Aug 9 18:44:54 EDT 2012
Author: jralls
Date: 2012-08-09 18:44:53 -0400 (Thu, 09 Aug 2012)
New Revision: 22297
Trac: http://svn.gnucash.org/trac/changeset/22297
Modified:
gnucash/trunk/configure.ac
Log:
Configure won't accept python on Debian Wheezy
Debian Wheezy uses python2.pc instead of python.pc. Check both.
BP
Modified: gnucash/trunk/configure.ac
===================================================================
--- gnucash/trunk/configure.ac 2012-08-08 16:25:21 UTC (rev 22296)
+++ gnucash/trunk/configure.ac 2012-08-09 22:44:53 UTC (rev 22297)
@@ -1072,11 +1072,14 @@
)
if test x${enable_python} = "xtrue"
then
- # Check for Python
- # We require python-2.4 because our implementation doesn't run
- # with earlier version anymore.
+ # Check for Python. We require python-2.4 because our implementation
+ # doesn't run with earlier version anymore. Building Python from
+ # source creates python.pc, Debian installs python2.pc, and Fedora
+ # 17 makes both.
PKG_CHECK_MODULES(PYTHON, python >= 2.4 , , [
- AC_MSG_ERROR([Could not find python >= 2.4. If you use --enable-python, you MUST have python installed!])
+ PKG_CHECK_MODULES(PYTHON, python2 >= 2.4 , , [
+ AC_MSG_ERROR([Could not find python >= 2.4. If you use --enable-python, you MUST have python installed!])
+ ])
])
AM_PATH_PYTHON(2.4)
AC_PYTHON_DEVEL(>= '2.4')
More information about the gnucash-changes
mailing list