Check for sys/inotify.h first. This will become standard and wont be found
authorSebastian Dransfeld <sd@tango.flipp.net>
Tue, 3 Apr 2007 19:20:04 +0000 (19:20 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Tue, 3 Apr 2007 19:20:04 +0000 (19:20 +0000)
if the test is the other way around.

SVN revision: 29325

legacy/ecore/configure.in

index 9b1d17b..ddb33ea 100644 (file)
@@ -499,21 +499,21 @@ if test "x$have_ecore_file" = "xyes"; then
     AC_CHECK_LIB(c, inotify_init, [
     AC_TRY_COMPILE(
       [
-        #include <asm/unistd.h>
-        #include <linux/inotify.h>
+        #include <sys/inotify.h>
       ],
       [ int a = IN_MOVE_SELF; void *f = inotify_init(); ],
       [
         AC_DEFINE(HAVE_INOTIFY, 1, [ File monitoring with Inotify ])
+        AC_DEFINE(HAVE_SYS_INOTIFY, 1, [ File monitoring with Inotify - sys/inotify.h ])
       ], [
         AC_TRY_COMPILE(
           [
-            #include <sys/inotify.h>
+            #include <asm/unistd.h>
+            #include <linux/inotify.h>
           ],
-          [ int a = IN_MOVE_SELF; void *f = inotify_nit(); ],
+          [ int a = IN_MOVE_SELF; void *f = inotify_init(); ],
           [
             AC_DEFINE(HAVE_INOTIFY, 1, [ File monitoring with Inotify ])
-            AC_DEFINE(HAVE_SYS_INOTIFY, 1, [ File monitoring with Inotify - sys/inotify.h ])
           ], [
             use_inotify="no"
           ]