RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Ralf S. Engelschall
Root: /v/rpm/cvs Email: rse@rpm5.org
Module: rpm Date: 19-Jan-2008 15:07:35
Branch: HEAD Handle: 2008011914073401
Modified files:
rpm CHANGES configure.ac
Log:
Fix Autoconf procedure by running python(1) based checks only under
--with-python
Summary:
Revision Changes Path
1.2081 +1 -0 rpm/CHANGES
2.277 +6 -5 rpm/configure.ac
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/CHANGES
============================================================================
$ cvs diff -u -r1.2080 -r1.2081 CHANGES
--- rpm/CHANGES 19 Jan 2008 13:55:14 -0000 1.2080
+++ rpm/CHANGES 19 Jan 2008 14:07:34 -0000 1.2081
@@ -1,4 +1,5 @@
5.0.0 -> 5.1a1:
+ - rse: fix Autoconf procedure by running python(1) based checks only under --with-python
- rse: provide RPM Lua function rpm.realpath(<path>) to complement RPM macro %{realpath:<path>}
- rse: unconditionally provide RPM Lua functions posix.{setenv,unsetenv}
- jbj: proof-of-concept rpmbuild --lsb implementation. ptooey!
@@ .
patch -p0 <<'@@ .'
Index: rpm/configure.ac
============================================================================
$ cvs diff -u -r2.276 -r2.277 configure.ac
--- rpm/configure.ac 17 Jan 2008 13:17:26 -0000 2.276
+++ rpm/configure.ac 19 Jan 2008 14:07:35 -0000 2.277
@@ -801,6 +801,8 @@
WITH_PYTHON_SUBDIR=""
WITH_PYTHON_SUBPACKAGE=0
WITH_PYTHON_VERSION=""
+WITH_PYTHON_INCDIR=""
+WITH_PYTHON_LIBDIR=""
WITH_PYTHON_PREFIX="\${prefix}"
AC_ARG_WITH(python, AS_HELP_STRING([--with-python], [build with RPM Python language bindings]), [
if test ".$withval" != .no; then
@@ -889,15 +891,14 @@
fi
done
fi
+ AC_ARG_WITH(python-inc-dir, AS_HELP_STRING([--with-python-inc-dir=DIR], [directory with Python include files]),
+ [WITH_PYTHON_INCDIR="$withval"], [WITH_PYTHON_INCDIR="`python -c 'from distutils.sysconfig import get_python_inc; print get_python_inc()'`"])
+ AC_ARG_WITH(python-lib-dir, AS_HELP_STRING([--with-python-lib-dir=DIR], [directory with Python library]),
+ [WITH_PYTHON_LIBDIR="$withval"], [WITH_PYTHON_LIBDIR="`python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)'`"])
])
AC_SUBST(WITH_PYTHON_SUBDIR)
AC_SUBST(WITH_PYTHON_SUBPACKAGE)
AC_SUBST(WITH_PYTHON_VERSION)
-
-AC_ARG_WITH(python-inc-dir, AS_HELP_STRING([--with-python-inc-dir=DIR], [directory with Python include files]),
- [WITH_PYTHON_INCDIR="$withval"], [WITH_PYTHON_INCDIR="`python -c 'from distutils.sysconfig import get_python_inc; print get_python_inc()'`"])
-AC_ARG_WITH(python-lib-dir, AS_HELP_STRING([--with-python-lib-dir=DIR], [directory with Python library]),
- [WITH_PYTHON_LIBDIR="$withval"], [WITH_PYTHON_LIBDIR="`python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)'`"])
AC_SUBST(WITH_PYTHON_INCDIR)
AC_SUBST(WITH_PYTHON_LIBDIR)
@@ .
Received on Sat Jan 19 15:07:35 2008