- Update ac_python_devel to check and complain about Python < 2.1.0
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@275 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
fc84d1ec9d
commit
8d5645d9d6
38
ChangeLog
38
ChangeLog
|
@ -1,3 +1,41 @@
|
|||
2006-01-29 17:33 tchernobog
|
||||
|
||||
* trunk/m4/ac_python_devel.m4: - Fix macro documentation header
|
||||
|
||||
2006-01-29 15:34 tchernobog
|
||||
|
||||
* trunk/doc/Makefile.am: - Make ``make distclean'' to complete
|
||||
cleanly when directory doc/API doesn't exists.
|
||||
|
||||
2006-01-29 15:33 tchernobog
|
||||
|
||||
* trunk/m4/ac_python_devel.m4: - Overhaul ac_python_devel.m4 using
|
||||
extensively informations provided by the interpreter. Will try to
|
||||
send upstream if told to do so.
|
||||
|
||||
2006-01-28 20:42 tchernobog
|
||||
|
||||
* trunk/doc/sgpem2dman.texi: - Change non-existant English word with
|
||||
something understandable :-)
|
||||
|
||||
2006-01-28 20:39 tchernobog
|
||||
|
||||
* trunk/configure.ac, trunk/distro/gentoo,
|
||||
trunk/distro/gentoo/sgpemv2-0.00.ebuild,
|
||||
trunk/src/backend/Makefile.am, trunk/src/backend/schedulable.cc,
|
||||
trunk/src/backend/schedulable.hh, trunk/src/main.hh,
|
||||
trunk/src/startgui.cc: - Get DSO visibility check right in
|
||||
configure.ac. Now it should work correctly with GCC >= 4.0, while
|
||||
doing nothing for GCC < 4.0 - Add class sgpem::schedulable to test
|
||||
for DSO visibility export. Methods may need to be reordered to
|
||||
conform to coding style guidelines
|
||||
|
||||
2006-01-27 19:26 tchernobog
|
||||
|
||||
* trunk/ChangeLog, trunk/configure.ac, trunk/src/Makefile.am: -
|
||||
Added the possibility to pass LT_LDFLAGS to configure in order to
|
||||
obtain a completely static build
|
||||
|
||||
2006-01-27 17:57 tchernobog
|
||||
|
||||
* trunk/ChangeLog, trunk/configure.ac, trunk/src/Makefile.am,
|
||||
|
|
|
@ -7,6 +7,9 @@ dnl Also exports $(PYTHON_EXTRA_LIBS) and $(PYTHON_EXTRA_LDFLAGS)
|
|||
dnl for embedding Python in your code.
|
||||
dnl If the user wants to employ a particular version of Python, she can
|
||||
dnl now pass to configure the PYTHON_VERSION environment variable.
|
||||
dnl Should work for all versions of Python >= 2.1.0. You can disable the
|
||||
dnl check for the python version by setting the PYTHON_NOVERSIONCHECK
|
||||
dnl environment variable.
|
||||
dnl
|
||||
dnl @category InstalledPackages
|
||||
dnl @author Sebastian Huber <sebastian-huber@web.de>
|
||||
|
@ -28,6 +31,31 @@ AC_DEFUN([AC_PYTHON_DEVEL],[
|
|||
if test -z "$PYTHON"; then
|
||||
AC_MSG_ERROR([Cannot find python$PYTHON_VERSION in your system path])
|
||||
fi
|
||||
|
||||
#
|
||||
# Check for a version of Python >= 2.1.0
|
||||
#
|
||||
AC_MSG_CHECKING([for a version of Python >= 2.1.0])
|
||||
ac_supports_python_ver=`$PYTHON -c "import sys, string; \
|
||||
print string.split(sys.version)[[0]] >= '2.5.0'"`
|
||||
if test "$ac_supports_python_ver" != "True"; then
|
||||
if test -z "$PYTHON_NOVERSIONCHECK"; then
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_FAILURE([
|
||||
This version of the AC@&t@_PYTHON_DEVEL macro
|
||||
doesn't work properly with versions of Python before
|
||||
2.1.0. You may need to re-run configure, setting the
|
||||
variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
|
||||
PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
|
||||
Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
|
||||
to something else than an empty string.
|
||||
])dnl
|
||||
else
|
||||
AC_MSG_RESULT([skip at user request])
|
||||
fi
|
||||
else
|
||||
AC_MSG_RESULT([yes])
|
||||
fi
|
||||
|
||||
#
|
||||
# Check for Python include path
|
||||
|
@ -36,7 +64,12 @@ AC_DEFUN([AC_PYTHON_DEVEL],[
|
|||
python_path=`$PYTHON -c "import distutils.sysconfig; \
|
||||
print distutils.sysconfig.get_python_inc();"`
|
||||
AC_MSG_RESULT([$python_path])
|
||||
AC_SUBST([PYTHON_CPPFLAGS],[-I$python_path])
|
||||
if test -z "${python_path}"; then
|
||||
AC_MSG_WARN([cannot get include path. Please set it by hand.])
|
||||
else
|
||||
python_path="-I$python_path"
|
||||
fi
|
||||
AC_SUBST([PYTHON_CPPFLAGS],[$python_path])
|
||||
|
||||
#
|
||||
# Check for Python library path
|
||||
|
|
Loading…
Reference in New Issue