summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-11 12:43:27 +0200
committerinfirit <[email protected]>2014-07-11 12:43:27 +0200
commit6ed4ebcf1af8eaead423de1aefe2642f2d75a979 (patch)
tree86ee5d6c7f91066f967b19baf3e94a5ec09e1b65 /configure.ac
parentb78ab50d774e22af4e422e8bc6d94f27f0447fce (diff)
downloadpython-caja-6ed4ebcf1af8eaead423de1aefe2642f2d75a979.tar.bz2
python-caja-6ed4ebcf1af8eaead423de1aefe2642f2d75a979.tar.xz
Use pkg-config for python detection and variables
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index f4059e3..a8345ae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,8 +30,12 @@ GTK_DOC_CHECK(1.9)
dnl **************************************************
dnl * Check for Python
dnl **************************************************
-AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR([could not find Python headers])])
-AM_CHECK_PYTHON_LIBS(,[AC_MSG_ERROR([could not find Python lib])])
+AM_PATH_PYTHON([2.6])
+PKG_CHECK_MODULES([PYTHON], [python-${PYTHON_VERSION}])
+PYTHON_LIB_LOC="`pkg-config python-${PYTHON_VERSION} --variable=libdir`"
+AC_SUBST(PYTHON_LIBS)
+AC_SUBST(PYTHON_CFLAGS)
+AC_SUBST(PYTHON_LIB_LOC)
if test "`pkg-config --variable=datadir pygobject-3.0`" != "" ; then
PYGOBJECT_VERSION=pygobject-3.0