X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=configure.ac;h=3285c89a3856a6580683509657070d065cf89595;hb=4e3ee000422e096868ac7a764ca63e36f768a62d;hp=69c15ec4a60f827a1fa39db10362e11f486abf6d;hpb=acec5f4851b1930cafb6ddc044131204a017401e;p=deb_libcec.git diff --git a/configure.ac b/configure.ac index 69c15ec..3285c89 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([libcec], 0:7:0) +AC_INIT([libcec], 0:8:0) AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) AC_PROG_CXX @@ -6,7 +6,7 @@ AC_PROG_LIBTOOL case "${host}" in *-*-linux*) - AC_CHECK_LIB([udev], [main],, AC_MSG_ERROR("required library 'udev' is missing")) + AC_SEARCH_LIBS([udev_new], [udev],, AC_MSG_ERROR("required library 'udev' is missing")) REQUIRES="udev" ;; *-apple-darwin*) @@ -14,8 +14,21 @@ case "${host}" in ;; esac -AC_CHECK_LIB([pthread], [main],, AC_MSG_ERROR("required library 'pthread' is missing")) -AC_CHECK_LIB([dl], [main],, AC_MSG_ERROR("required library 'dl' is missing")) +AC_SEARCH_LIBS([pthread_create],[pthread],, AC_MSG_ERROR("required library 'pthread' is missing")) + +libs_pre_dl=$LIBS + AC_SEARCH_LIBS(dlopen, [dl], + [test "$ac_cv_search_dlopen" = "none required" || LIBS_DL=$ac_cv_search_dlopen], + AC_MSG_ERROR("required library 'dl' is missing")) + AC_SUBST([LIBS_DL]) +LIBS=$libs_pre_dl + +AC_LANG_PUSH([C++]) +AC_CHECK_HEADERS([boost/shared_ptr.hpp], [], + [AC_MSG_ERROR(You need the Boost libraries.)]) +AC_CHECK_HEADERS([boost/enable_shared_from_this.hpp], [], + [AC_MSG_ERROR(You need the Boost libraries.)]) +AC_LANG_POP([C++]) CXXFLAGS="-fPIC -Wall -Wextra $CXXFLAGS"