X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=configure.ac;h=e961c1b2e6e1837a92d929d74749a8d04b91dd2b;hb=fdd91966a0d9d32b3e68cd91b6612840b80b227d;hp=c3a5a08d7f4efdc239c5dfd9fd039a4a095ae9a5;hpb=3e703e8e17c390223c8818536180951b4c4f9b2b;p=deb_libcec.git diff --git a/configure.ac b/configure.ac index c3a5a08..e961c1b 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([libcec], 0:5:0) +AC_INIT([libcec], 1:2:0) AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) AC_PROG_CXX @@ -6,8 +6,7 @@ AC_PROG_LIBTOOL case "${host}" in *-*-linux*) - AC_CHECK_LIB([rt], [main],, AC_MSG_ERROR("required library 'rt' is missing")) - 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*) @@ -15,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"