~ubuntu-branches/ubuntu/utopic/gimp/utopic

« back to all changes in this revision

Viewing changes to m4macros/pythondev.m4

  • Committer: Package Import Robot
  • Author(s): Chris J Arges
  • Date: 2013-01-14 15:06:30 UTC
  • Revision ID: package-import@ubuntu.com-20130114150630-l2otu0hjqhnwb6qm
Tags: 2.8.2-1ubuntu3
Fix multi-arch python includes issues. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
dnl deduce PYTHON_INCLUDES
17
17
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
18
18
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
19
 
PYTHON_INCLUDES="-I${py_prefix}/include${py_versiondir}"
20
 
if test "$py_prefix" != "$py_exec_prefix"; then
21
 
  PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include${py_versiondir}"
22
 
fi
 
19
PYTHON_INCLUDES="`$PYTHON-config --includes`"
23
20
AC_SUBST(PYTHON_INCLUDES)
24
21
dnl check if the headers exist:
25
22
save_CPPFLAGS="$CPPFLAGS"