repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: close the connection when a comm error was detected, and notify the client via...
[deb_libcec.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index b350c827cd30ad64b6b2d8483de40d5301788a87..f8b8701be858a9fa009e3698083232941e0fdfed 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-1,19
+1,30
@@
-AC_INIT([libcec],
0:8
:0)
+AC_INIT([libcec],
1:6
:0)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AC_PROG_CXX
AC_PROG_LIBTOOL
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AC_PROG_CXX
AC_PROG_LIBTOOL
+has_libudev="yes"
case "${host}" in
*-*-linux*)
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
"))
+
LIBS+=" -lrt
"
;;
*-apple-darwin*)
;;
*-apple-darwin*)
+ has_libudev="no";
LIBS+="-framework CoreVideo -framework IOKit"
;;
LIBS+="-framework CoreVideo -framework IOKit"
;;
+ *-freebsd*)
+ has_libudev="no"
+ ;;
esac
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
AC_SEARCH_LIBS([pthread_create],[pthread],, AC_MSG_ERROR("required library 'pthread' is missing"))
libs_pre_dl=$LIBS
@@
-23,8
+34,8
@@
libs_pre_dl=$LIBS
AC_SUBST([LIBS_DL])
LIBS=$libs_pre_dl
AC_SUBST([LIBS_DL])
LIBS=$libs_pre_dl
-CXXFLAGS="-fPIC -Wall -Wextra $CXXFLAGS"
+CXXFLAGS="-fPIC -Wall -Wextra
-Wno-missing-field-initializers
$CXXFLAGS"
AC_SUBST(REQUIRES)
AC_CONFIG_FILES([src/lib/libcec.pc])
AC_SUBST(REQUIRES)
AC_CONFIG_FILES([src/lib/libcec.pc])
-AC_OUTPUT([Makefile src/lib/Makefile src/testclient/Makefile])
+AC_OUTPUT([Makefile src/lib/Makefile src/testclient/Makefile
src/cec-config/Makefile
])