X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=configure.ac;h=6c8c7fda33a0c5ae35968149defae2b53c73ef48;hb=8bc5358b7ca3f810728fef3108962bd435a0585a;hp=f8cc05be1d6c5a97ebe36e3ff65a6cf10d24f5ca;hpb=00c87b5616b7473ce893ff6d230b2d117f0216b5;p=deb_libcec.git diff --git a/configure.ac b/configure.ac index f8cc05b..6c8c7fd 100644 --- a/configure.ac +++ b/configure.ac @@ -1,19 +1,26 @@ -AC_INIT([libcec], 1:1:0) +AC_INIT([libcec], 1:3:0) AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) AC_PROG_CXX AC_PROG_LIBTOOL +has_libudev="yes" case "${host}" in *-*-linux*) - AC_SEARCH_LIBS([udev_new], [udev],, AC_MSG_ERROR("required library 'udev' is missing")) - REQUIRES="udev" + PKG_CHECK_MODULES([UDEV],[libudev],,[has_libudev="no";AC_MSG_WARN("library 'udev' is missing - adapter detection will not be available")]) ;; *-apple-darwin*) + has_libudev="no"; LIBS+="-framework CoreVideo -framework IOKit" ;; esac +if test "x$has_libudev" != "xno"; then + INCLUDES="$INCLUDES $UDEV_CFLAGS";LIBS="$LIBS $UDEV_LIBS" + AC_DEFINE([HAVE_LIBUDEV],[1],["Define to 1 if libudev is installed"]) + REQUIRES="udev" +fi + AC_SEARCH_LIBS([pthread_create],[pthread],, AC_MSG_ERROR("required library 'pthread' is missing")) libs_pre_dl=$LIBS