comparison configure.ac @ 29567:170a3bcc11b9

Make Python compile check look a little nicer.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 08 Mar 2010 05:11:06 +0000
parents 013192509944
children 6eaee00ab0fb
comparison
equal deleted inserted replaced
29566:013192509944 29567:170a3bcc11b9
1474 changequote(<<, >>)dnl 1474 changequote(<<, >>)dnl
1475 PY_VERSION=`$pythonpath -c 'import sys ; print sys.version[0:3]'` 1475 PY_VERSION=`$pythonpath -c 'import sys ; print sys.version[0:3]'`
1476 PY_MAJOR=`$pythonpath -c 'import sys ; print sys.version[0:2]'` 1476 PY_MAJOR=`$pythonpath -c 'import sys ; print sys.version[0:2]'`
1477 changequote([, ])dnl 1477 changequote([, ])dnl
1478 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h -a "$PY_MAJOR" = "2."; then 1478 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h -a "$PY_MAJOR" = "2."; then
1479 AC_MSG_RESULT()
1479 AC_CHECK_LIB(pthread, pthread_create, ) 1480 AC_CHECK_LIB(pthread, pthread_create, )
1480 AC_CHECK_LIB(util, openpty, ) 1481 AC_CHECK_LIB(util, openpty, )
1481 AC_CHECK_LIB(db, dbopen, ) 1482 AC_CHECK_LIB(db, dbopen, )
1482 PY_LIBS="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config -lpython$PY_VERSION" 1483 PY_LIBS="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config -lpython$PY_VERSION"
1483 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION" 1484 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
1484 AC_DEFINE(USE_PYTHON, [1], [Define if python headers are available.]) 1485 AC_DEFINE(USE_PYTHON, [1], [Define if python headers are available.])
1486 dnl Because the above AC_CHECK_LIB get in the way...
1487 AC_MSG_CHECKING(for Python compile flags)
1485 AC_MSG_RESULT(ok) 1488 AC_MSG_RESULT(ok)
1486 else 1489 else
1487 AC_MSG_RESULT([Can't find Python.h]) 1490 AC_MSG_RESULT([Can't find Python.h])
1488 PY_LIBS="" 1491 PY_LIBS=""
1489 PY_CFLAGS="" 1492 PY_CFLAGS=""