Kaydet (Commit) 69c6ba95 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Update the Python checks for cross-compiling.

Change-Id: I1066c9108fd31682bd238df50bdf1cab0a05d3ec
üst 332bd429
...@@ -7389,8 +7389,8 @@ if test $enable_python = system; then ...@@ -7389,8 +7389,8 @@ if test $enable_python = system; then
# 2.6.2 currently on OpenSUSE 12.1? # 2.6.2 currently on OpenSUSE 12.1?
# rpm -q mingw32-python => mingw32-python-2.6.2-17.17.noarch # rpm -q mingw32-python => mingw32-python-2.6.2-17.17.noarch
PYTHON_VERSION=$python_version.2 PYTHON_VERSION=$python_version.2
PYTHON_MAJOR=${python_version%.*} PYTHON_VERSION_MAJOR=${python_version%.*}
PYTHON_MINOR=${python_version#*.} PYTHON_VERSION_MINOR=${python_version#*.}
break break
fi fi
done done
...@@ -7403,6 +7403,7 @@ case $enable_python in ...@@ -7403,6 +7403,7 @@ case $enable_python in
system) system)
SYSTEM_PYTHON=YES SYSTEM_PYTHON=YES
if test "$CROSS_COMPILING" != YES; then
dnl Check if the headers really work dnl Check if the headers really work
save_CPPFLAGS="$CPPFLAGS" save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS" CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS"
...@@ -7427,6 +7428,7 @@ int main(int argc, char **argv) { ...@@ -7427,6 +7428,7 @@ int main(int argc, char **argv) {
AC_LANG_POP(C) AC_LANG_POP(C)
dnl FIXME Check if the Python library can be linked with, too? dnl FIXME Check if the Python library can be linked with, too?
fi
;; ;;
internal) internal)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment