X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=017ceb2141e8104a4790d14ccc0e4d2cd86b4303;hb=c655415dc051b84d6178399e5f7cb76ff7af06c0;hp=130db51cdf49a15007a728dcb812383019c80b31;hpb=41a7a68cf33a174ba950aa29951a07c391a16b4d;p=libguestfs.git diff --git a/configure.ac b/configure.ac index 130db51..017ceb2 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ # freeform string. m4_define([libguestfs_major], [1]) m4_define([libguestfs_minor], [15]) -m4_define([libguestfs_release], [10]) +m4_define([libguestfs_release], [14]) AC_INIT([libguestfs],libguestfs_major.libguestfs_minor.libguestfs_release) AC_CONFIG_AUX_DIR([build-aux]) @@ -738,19 +738,20 @@ AS_IF([test "x$enable_python" != "xno"], AC_MSG_RESULT([$PYTHON_INSTALLDIR]) fi - dnl Look for libpython and some optional symbols in it. + dnl Look for some optional symbols in libpython. old_LIBS="$LIBS" - if test "x$PYTHON_VERSION_MAJOR" = "x3"; then - dnl libpython3 is called "libpython3.Xmu.so" - LIBPYTHON="python${PYTHON_VERSION}mu" - else - LIBPYTHON="python$PYTHON_VERSION" - fi - AC_CHECK_LIB([$LIBPYTHON], [PyList_Size], [], - [AC_MSG_FAILURE([$LIBPYTHON is not installed])]) - AC_CHECK_FUNCS([PyCapsule_New \ - PyString_AsString]) + PYTHON_BLDLIBRARY=`$PYTHON -c "import distutils.sysconfig; \ + print (distutils.sysconfig.get_config_var('BLDLIBRARY'))"` + AC_CHECK_LIB([c],[PyCapsule_New], + [AC_DEFINE([HAVE_PYCAPSULE_NEW],1, + [Found PyCapsule_New in libpython])], + [],[$PYTHON_BLDLIBRARY]) + AC_CHECK_LIB([c],[PyString_AsString], + [AC_DEFINE([HAVE_PYSTRING_ASSTRING],1, + [Found PyString_AsString in libpython])], + [],[$PYTHON_BLDLIBRARY]) + LIBS="$old_LIBS" fi @@ -1006,9 +1007,7 @@ AC_CONFIG_FILES([run], AC_CONFIG_FILES([Makefile align/Makefile appliance/Makefile - capitests/Makefile cat/Makefile - caution/Makefile clone/Makefile csharp/Makefile daemon/Makefile @@ -1018,14 +1017,12 @@ AC_CONFIG_FILES([Makefile erlang/Makefile erlang/examples/Makefile examples/Makefile - extratests/Makefile fish/Makefile fuse/Makefile generator/Makefile gnulib/lib/Makefile gnulib/tests/Makefile haskell/Makefile - images/Makefile inspector/Makefile java/Makefile java/examples/Makefile @@ -1043,7 +1040,6 @@ AC_CONFIG_FILES([Makefile po/Makefile.in python/Makefile python/examples/Makefile - regressions/Makefile rescue/Makefile resize/Makefile ruby/Makefile @@ -1052,6 +1048,16 @@ AC_CONFIG_FILES([Makefile sparsify/Makefile src/Makefile test-tool/Makefile + tests/c-api/Makefile + tests/data/Makefile + tests/extra/Makefile + tests/guests/Makefile + tests/luks/Makefile + tests/lvm/Makefile + tests/md/Makefile + tests/protocol/Makefile + tests/qemu/Makefile + tests/regressions/Makefile tools/Makefile]) AC_OUTPUT