summaryrefslogtreecommitdiffstats
path: root/kopete/configure.in.in
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2016-11-13 01:52:56 +0100
committerSlávek Banko <[email protected]>2016-11-13 01:53:46 +0100
commit56484e2a730772015af966860f220867a2f0b580 (patch)
treedd2a34abb2445888d66480895d729396081bdcfa /kopete/configure.in.in
parent1f93335507d8bf855393527ff2a2802b47418075 (diff)
downloadtdenetwork-56484e2a730772015af966860f220867a2f0b580.tar.gz
tdenetwork-56484e2a730772015af966860f220867a2f0b580.zip
Kopete: Improve check for videodev header
This resolves bug 2725 Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit c7ed96db836509bfc933c2be08dcbd63dff54589)
Diffstat (limited to 'kopete/configure.in.in')
-rw-r--r--kopete/configure.in.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/kopete/configure.in.in b/kopete/configure.in.in
index 261f4f6f..989b410d 100644
--- a/kopete/configure.in.in
+++ b/kopete/configure.in.in
@@ -136,6 +136,19 @@ AC_SUBST(KOPETE_INCLUDES)
AC_SUBST(KOPETE_COMPAT_INCLUDES)
AC_SUBST(LIB_KOPETECOMPAT)
+
+KDE_CHECK_HEADERS(
+ [libv4l1-videodev.h],
+ [videodev_header="libv4l1-videodev.h"],
+ [
+ KDE_CHECK_HEADERS([linux/videodev.h],
+ [videodev_header="linux/videodev.h"],
+ [videodev_header="no"])
+ ])
+if test ! x$videodev_header = xno; then
+ AC_DEFINE_UNQUOTED(VIDEODEV_HEADER, ["$videodev_header"], [Define header name for videodev])
+fi
+
# -- Check for installed Valgrind headers --------------------
AC_MSG_CHECKING([for valgrind.h])