comparison configure.in @ 226:bfc35fd55254 stable-0-6-41

fix python autoconf macros
author Carl Byington <carl@five-ten-sg.com>
date Tue, 23 Jun 2009 20:22:42 -0700
parents 9859474779da
children be1009c92ac2
comparison
equal deleted inserted replaced
225:9859474779da 226:bfc35fd55254
281 ]) 281 ])
282 AC_MSG_RESULT([$enable_python]) 282 AC_MSG_RESULT([$enable_python])
283 AM_CONDITIONAL(PYTHON_INTERFACE, [test "$enable_python" = "yes"]) 283 AM_CONDITIONAL(PYTHON_INTERFACE, [test "$enable_python" = "yes"])
284 if test "$enable_python" = "yes"; then 284 if test "$enable_python" = "yes"; then
285 enable_shared="yes" 285 enable_shared="yes"
286 # check for boost 286 # get the version of installed python
287 AX_PYTHON 287 AX_PYTHON
288 if test "$ax_python_bin" = "no"; then 288 if test "$ax_python_bin" = "no"; then
289 AC_MSG_ERROR(python binary not found) 289 AC_MSG_ERROR(python binary not found)
290 fi 290 fi
291 py_ver=`echo $ax_python_bin | cut -c7-`
292 # find the flags for that version
293 AC_PYTHON_DEVEL([$py_ver])
294 PYTHON_INCLUDE_DIR=`echo $python_path | cut -c3-`
295 AC_SUBST([PYTHON_INCLUDE_DIR])
296 # do we have boost python
291 AX_BOOST_PYTHON 297 AX_BOOST_PYTHON
292 if test "$ac_cv_boost_python" = "no"; then 298 if test "$ac_cv_boost_python" = "no"; then
293 AC_MSG_ERROR(boost python not found) 299 AC_MSG_ERROR(boost python not found)
294 fi 300 fi
295 AC_SUBST(PYTHON_VERSION, [$ax_python_bin]) 301 AC_SUBST(PYTHON_VERSION, [$ax_python_bin])