summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-10 13:03:03 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-10 13:03:03 -0600
commit899586da27ae7a85cea8637849a964a88f3df8b2 (patch)
treeed2ce938233aad12be11d1f7c423153bc6326ea0
parent30686633eb66ebcee88adad37352fef6f9e77a92 (diff)
downloadamarok-899586da.tar.gz
amarok-899586da.zip
Fix inotify detection
-rw-r--r--ConfigureChecks.cmake20
1 files changed, 19 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 0e143112..090c73b7 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -21,7 +21,25 @@ check_type_size( "long" SIZEOF_LONG BUILTIN_TYPES_ONLY )
check_include_file( stdint.h HAVE_STDINT_H )
check_include_file( systems.h HAVE_SYSTEMS_H )
-check_include_file( linux/inotify.h HAVE_INOTIFY )
+
+##### check for inotify ###########################
+
+# if( WITH_INOTIFY )
+ check_include_file( "inotify.h" INOTIFY_FOUND )
+ check_include_file( "sys/inotify.h" INOTIFY_SYS_FOUND )
+ if( NOT INOTIFY_FOUND )
+ if( NOT INOTIFY_SYS_FOUND )
+ message(FATAL_ERROR "\ninotify support was requested, but inotify was not found on your system" )
+ endif( NOT INOTIFY_SYS_FOUND )
+ endif( NOT INOTIFY_FOUND )
+ if( INOTIFY_FOUND )
+ set( HAVE_INOTIFY 1 )
+ endif( INOTIFY_FOUND )
+ if( INOTIFY_SYS_FOUND )
+ set( HAVE_INOTIFY 1 )
+ set( HAVE_SYS_INOTIFY 1 )
+ endif( INOTIFY_SYS_FOUND )
+# endif( )
check_function_exists( statvfs HAVE_STATVFS )