# HG changeset patch # User Daniel Veillard <veillard@src.gnome.org> # Date 1145970849 0 # Tue Apr 25 13:14:09 2006 +0000 # Node ID 70905f1f1ad585aa6414e25ab32a9b51bdd0993c # Parent 8712f0cc865f1e47bddbaca373926fef620389c4 applied patch from Joseph Sacco changing slightly the python detection * configure.in: applied patch from Joseph Sacco changing slightly the python detection scheme should fix bug #338527 Daniel diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 25 15:02:42 CEST 2006 Daniel Veillard <daniel@veillard.com> + + * configure.in: applied patch from Joseph Sacco changing slightly + the python detection scheme should fix bug #338527 + Wed Apr 12 13:35:45 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net> * libxslt/attributes.c libxslt/preproc.c libxslt/transform.c diff --git a/configure.in b/configure.in --- a/configure.in +++ b/configure.in @@ -172,11 +172,12 @@ echo Found python in $with_python PYTHON="$with_python" else - if test -x "$PYTHON" - then - echo Found python in environment PYTHON=$PYTHON + if test -x "$PYTHON" + then + echo Found python in environment PYTHON=$PYTHON + with_python=`$PYTHON -c "import sys; print sys.exec_prefix"` else - AC_PATH_PROG(PYTHON, python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5) + AC_PATH_PROG(PYTHON, python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5) fi fi fi @@ -199,17 +200,17 @@ -d $with_python/lib/python$PYTHON_VERSION/site-packages then PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION - PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages + PYTHON_SITE_PACKAGES=$libdir/lib/python$PYTHON_VERSION/site-packages else if test -r $prefix/include/python$PYTHON_VERSION/Python.h then - PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)' - PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' + PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION + PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages else if test -r /usr/include/python$PYTHON_VERSION/Python.h then PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION - PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' + PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages else echo could not find python$PYTHON_VERSION/Python.h fi @@ -222,9 +223,9 @@ fi if test "$with_python" != "" then - pythondir='$(PYTHON_SITE_PACKAGES)' + pythondir=$PYTHON_SITE_PACKAGES else - pythondir='$(libdir)/python${PYTHON_VERSION}/site-packages' + pythondir=$libdir/python${PYTHON_VERSION}/site-packages fi fi AM_CONDITIONAL(WITH_PYTHON, test "$PYTHON_INCLUDES" != "")