X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=37172f28dc1b69ec0b5329db24f413cffde3896b;hb=6d2897e394950bb661a27fd33dbcd14d8c56c61f;hp=0380534ae3282462d4e76c0e8df35553a4d336b5;hpb=896fc9c7231c7567cda84404eb0fcdd889b556a2;p=libsigrok.git diff --git a/configure.ac b/configure.ac index 0380534a..37172f28 100644 --- a/configure.ac +++ b/configure.ac @@ -223,7 +223,7 @@ SR_DRIVER([Brymen BM86x], [brymen-bm86x], [libusb]) SR_DRIVER([Brymen DMM], [brymen-dmm], [libserialport]) SR_DRIVER([CEM DT-885x], [cem-dt-885x], [libserialport]) SR_DRIVER([Center 3xx], [center-3xx], [libserialport]) -SR_DRIVER([ChronoVu LA], [chronovu-la], [libftdi]) +SR_DRIVER([ChronoVu LA], [chronovu-la], [libusb libftdi]) SR_DRIVER([Colead SLM], [colead-slm], [libserialport]) SR_DRIVER([Conrad DIGI 35 CPU], [conrad-digi-35-cpu], [libserialport]) SR_DRIVER([DER EE DE-5000], [deree-de5000], [libserialport]) @@ -239,8 +239,9 @@ SR_DRIVER([Ikalogic Scanalogic-2], [ikalogic-scanalogic2], [libusb]) SR_DRIVER([Ikalogic Scanaplus], [ikalogic-scanaplus], [libftdi]) SR_DRIVER([Kecheng KC-330B], [kecheng-kc-330b], [libusb]) SR_DRIVER([KERN scale], [kern-scale], [libserialport]) -SR_DRIVER([Korad KDxxxxP], [korad-kdxxxxp], [libserialport]) +SR_DRIVER([Korad KAxxxxP], [korad-kaxxxxp], [libserialport]) SR_DRIVER([Lascar EL-USB], [lascar-el-usb], [libusb]) +SR_DRIVER([LeCroy LogicStudio], [lecroy-logicstudio], [libusb]) SR_DRIVER([Manson HCS-3xxx], [manson-hcs-3xxx], [libserialport]) SR_DRIVER([maynuo-m97], [maynuo-m97]) SR_DRIVER([MIC 985xx], [mic-985xx], [libserialport]) @@ -335,9 +336,18 @@ AS_IF([test "x$BINDINGS_CXX" = xyes], [sr_python_missing=], [sr_python_missing='C++ bindings']) -# The Python bindings need Python development files. +# Extract major and minor version number of the Python interpreter. +sr_pymajor=${PYTHON_VERSION%%.*} +sr_pyminor=${PYTHON_VERSION#*.} + +# The Python bindings need Python development files. Check for either +# Python 3 or Python 2 headers depending on the interpreter version. SR_PKG_CHECK([python_dev], [SR_PKGLIBS_PYTHON], - [python >= 2.7], [python2 >= 2.7], [python27 >= 2.7]) + [python = $PYTHON_VERSION], + [python$sr_pymajor = $PYTHON_VERSION], + [python$sr_pymajor$sr_pyminor = $PYTHON_VERSION], + [python-$PYTHON_VERSION = $PYTHON_VERSION]) + AS_IF([test "x$sr_have_python_dev" != xyes], [SR_APPEND([sr_python_missing], [', '], [Headers])]) @@ -431,7 +441,7 @@ AM_CONDITIONAL([BINDINGS_JAVA], [test "x$BINDINGS_JAVA" = xyes]) ############################## # Add mandatory dependencies to module list. -SR_APPEND([SR_PKGLIBS], ['libzip >= 0.11']) +SR_APPEND([SR_PKGLIBS], ['libzip >= 0.10']) AC_SUBST([SR_PKGLIBS]) # Retrieve the compile and link flags for all modules combined. @@ -449,11 +459,16 @@ AM_COND_IF([BINDINGS_CXX], [ # Check for specific libusb features, now that we know the CFLAGS. AC_LANG([C]) sr_save_cflags=$CFLAGS +sr_save_libs=$LIBS CFLAGS="$LIBSIGROK_CFLAGS $CFLAGS" +LIBS="$LIBSIGROK_LIBS $LIBS" AC_CHECK_TYPES([libusb_os_handle], [sr_have_libusb_os_handle=yes], [sr_have_libusb_os_handle=no], [[#include ]]) +AC_CHECK_FUNCS([zip_discard]) +LIBS=$sr_save_libs CFLAGS=$sr_save_cflags + AM_COND_IF([NEED_USB], [AS_CASE([$sr_have_libusb_os_handle:$host_os], [no:mingw*], [AC_MSG_ERROR([Windows builds require the event-abstraction branch of libusb])])]) @@ -499,7 +514,7 @@ Compile configuration: Detected libraries (required): - glib-2.0 >= 2.32.0.............. $sr_glib_version - - libzip >= 0.11.................. $sr_libzip_version + - libzip >= 0.10.................. $sr_libzip_version Detected libraries (optional): $sr_pkglibs_summary