X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=configure.ac;h=b350c827cd30ad64b6b2d8483de40d5301788a87;hb=0677510792d7ad89652ea636d0f3dbf868ead04f;hp=873956a12bc1a8a3f103b6f8295a9a82268bfc1f;hpb=ddb76c470aa282f59064c8e2ffe20a0785463167;p=deb_libcec.git diff --git a/configure.ac b/configure.ac index 873956a..b350c82 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([libcec], 0:6: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,7 +14,14 @@ case "${host}" in ;; esac -AC_CHECK_LIB([pthread], [main],, AC_MSG_ERROR("required library 'pthread' 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 CXXFLAGS="-fPIC -Wall -Wextra $CXXFLAGS"