138 |
if test "x$enable_perl" = "xyes" ; then |
if test "x$enable_perl" = "xyes" ; then |
139 |
enable_plugins="yes" |
enable_plugins="yes" |
140 |
|
|
141 |
AC_PATH_PROG(PERL, perl) |
AC_PATH_PROG(PERL, perl perl5) |
142 |
if test -z $PERL ; then |
if test -z $PERL ; then |
143 |
AC_MSG_ERROR([ |
AC_MSG_ERROR([ |
144 |
*** Perl must be installed on your system |
*** Perl must be installed on your system |
181 |
if test "x$enable_python" = "xyes" ; then |
if test "x$enable_python" = "xyes" ; then |
182 |
enable_plugins="yes" |
enable_plugins="yes" |
183 |
|
|
184 |
AC_PATH_PROG(PYTHON, python) |
AC_PATH_PROG(PYTHON, python python2.4 python2.3 python2.2) |
185 |
if test -z $PYTHON ; then |
if test -z $PYTHON ; then |
186 |
AC_MSG_ERROR([ |
AC_MSG_ERROR([ |
187 |
*** Python must be installed on your system |
*** Python must be installed on your system |
191 |
*** it with your software package manager.]) |
*** it with your software package manager.]) |
192 |
fi |
fi |
193 |
|
|
194 |
PYTHON_INCLUDE=`$PYTHON -c 'import sys ; print "%s/include/python%s" % (sys.prefix, sys.version[[:3]])'` |
PYTHON_SYSPREFIX=`$PYTHON -c 'import sys; print "%s" % sys.prefix'` |
195 |
|
PYTHON_VERSION=`$PYTHON -c 'import sys ; print sys.version[[:3]]'` |
196 |
|
PYTHON_INCLUDE="$PYTHON_SYSPREFIX/include/python$PYTHON_VERSION" |
197 |
|
|
198 |
AC_MSG_CHECKING(for Python header files) |
AC_MSG_CHECKING(for Python header files) |
199 |
if test -r "$PYTHON_INCLUDE/Python.h"; then |
if test -r "$PYTHON_INCLUDE/Python.h"; then |
200 |
PYTHON_CFLAGS=`$PYTHON -c "import distutils.sysconfig,string; print ' -I' + distutils.sysconfig.get_config_var('CONFINCLUDEPY')"` |
PYTHON_CFLAGS=-I`$PYTHON -c "import distutils.sysconfig,string; print distutils.sysconfig.get_config_var('CONFINCLUDEPY')"` |
201 |
else |
else |
202 |
AC_MSG_ERROR([ |
AC_MSG_ERROR([ |
203 |
*** Python header files couldn't be found in your system. |
*** Python header files couldn't be found in your system. |
205 |
fi |
fi |
206 |
AC_MSG_RESULT(found) |
AC_MSG_RESULT(found) |
207 |
|
|
208 |
PYTHON_SYSPREFIX=`$PYTHON -c 'import sys; print "%s" % sys.prefix'` |
PYTHON_LIB="$PYTHON_SYSPREFIX/lib/python$PYTHON_VERSION/config" |
|
PYTHON_LIB=`$PYTHON -c 'import sys; print "%s/lib/python%s/config" % (sys.prefix, sys.version[[:3]])'` |
|
|
PYTHON_VERSION=`$PYTHON -c 'import sys ; print sys.version[[0:3]]'` |
|
209 |
|
|
210 |
AC_MSG_CHECKING(for Python library) |
AC_MSG_CHECKING(for Python library) |
211 |
if test -r "$PYTHON_LIB/libpython$PYTHON_VERSION.so" -o -r "$PYTHON_SYSPREFIX/lib/libpython$PYTHON_VERSION.so"; then |
if test -r "$PYTHON_LIB/libpython$PYTHON_VERSION.so" -o -r "$PYTHON_SYSPREFIX/lib/libpython$PYTHON_VERSION.so"; then |
212 |
PYTHON_LFLAGS=`$PYTHON -c "import distutils.sysconfig,string; print string.join(distutils.sysconfig.get_config_vars('LINKFORSHARED', 'BLDLIBRARY', 'SHLIBS'))"` |
PYTHON_LFLAGS="-lpython$PYTHON_VERSION -lpthread -lutil" |
213 |
else |
else |
214 |
AC_MSG_ERROR([ |
AC_MSG_ERROR([ |
215 |
*** Python library couldn't be found in your system. |
*** Python library couldn't be found in your system. |