Merge "core-boot-agl: add tzdata zoneinfo files"
[AGL/meta-agl.git] / meta-security / recipes-security / audit / audit / audit-python-configure.patch
1 From cace630b0eb42418dea4f3d98c69d0d777bfc1be Mon Sep 17 00:00:00 2001
2 From: Xin Ouyang <Xin.Ouyang@windriver.com>
3 Date: Wed, 20 Jun 2012 16:34:19 +0800
4 Subject: [PATCH] audit: python cross-compile
5
6 Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
7 ---
8  configure.ac |    3 ++-
9  1 files changed, 2 insertions(+), 1 deletions(-)
10
11 diff --git a/configure.ac b/configure.ac
12 index 3db7d45..9a07db6 100644
13 --- a/configure.ac
14 +++ b/configure.ac
15 @@ -90,7 +90,8 @@ if test x$use_python = xno ; then
16  else
17  AC_MSG_RESULT(testing)
18  AM_PATH_PYTHON
19 -if test -f /usr/include/python${am_cv_python_version}/Python.h ; then
20 +PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
21 +if test -f $PY_PREFIX/include/python${am_cv_python_version}/Python.h ; then
22         python_found="yes"
23         AC_MSG_NOTICE(Python bindings will be built)
24  else
25 -- 
26 1.7.7
27