git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Python: Use new PyCapsule API where supported.
[libguestfs.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index
a14dfd9
..
1922773
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-551,6
+551,11
@@
if test "x$PYTHON" != "xno"; then
fi
AC_MSG_RESULT([not found])
done
+
+ old_LIBS="$LIBS"
+ LIBS="$LIBS -lpython$PYTHON_VERSION"
+ AC_CHECK_FUNCS([PyCapsule_New])
+ LIBS="$old_LIBS"
fi
AC_SUBST(PYTHON_PREFIX)