summaryrefslogtreecommitdiffstats
path: root/kopete/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/ConfigureChecks.cmake')
-rw-r--r--kopete/ConfigureChecks.cmake27
1 files changed, 15 insertions, 12 deletions
diff --git a/kopete/ConfigureChecks.cmake b/kopete/ConfigureChecks.cmake
index ef0a250f..44939818 100644
--- a/kopete/ConfigureChecks.cmake
+++ b/kopete/ConfigureChecks.cmake
@@ -19,19 +19,22 @@ if( BUILD_KOPETE_PROTOCOL_JABBER AND WITH_JINGLE )
endif( )
endif( )
-# -- Check for libv4l1-videodev.h presence --------------------
-CHECK_INCLUDE_FILE ( "libv4l1-videodev.h" HAVE_LIBV4L1_VIDEODEV_H )
-if ( HAVE_LIBV4L1_VIDEODEV_H )
- add_definitions( -DHAVE_LIBV4L1_VIDEODEV_H )
-endif ( )
-# -- End libv4l1-videodev.h ----------------------------------------------
-# -- Check for linux/videodev.h presence --------------------
-CHECK_INCLUDE_FILE ( "linux/videodev.h" HAVE_LINUX_VIDEODEV_H )
-if ( HAVE_LINUX_VIDEODEV_H )
- add_definitions( -DHAVE_LINUX_VIDEODEV_H )
-endif ( )
-# -- End linux-videodev.h ----------------------------------------------
+### Check for videodev header
+check_include_file( "libv4l1-videodev.h" HAVE_LIBV4L1_VIDEODEV_H )
+if( HAVE_LIBV4L1_VIDEODEV_H )
+ set( VIDEODEV_HEADER "libv4l1-videodev.h" CACHE INTERNAL "" )
+else( )
+ check_include_file( "linux/videodev.h" HAVE_VIDEODEV_H )
+ if( HAVE_VIDEODEV_H )
+ set( VIDEODEV_HEADER "linux/videodev.h" CACHE INTERNAL "" )
+ else( )
+ if( BUILD_KOPETE_PLUGIN_MOTIONAUTOAWAY )
+ tde_message_fatal( "libv4l1-videodev.h or linux/videodev.h is required, but not found on your system" )
+ endif( BUILD_KOPETE_PLUGIN_MOTIONAUTOAWAY )
+ endif( )
+endif( )
+
### Check for tm_gmtoff in tm struct
check_struct_has_member( "struct tm" tm_gmtoff time.h HAVE_TM_GMTOFF )