diff --git a/legacy/ecore/configure.in b/legacy/ecore/configure.in index 59fef4e2d5..185f3a96f3 100644 --- a/legacy/ecore/configure.in +++ b/legacy/ecore/configure.in @@ -497,15 +497,10 @@ if test "x$have_ecore_file" = "xyes"; then dnl so with this check you need a very new kernel and kernel-headers! if test "x$use_inotify" = "xyes"; then AC_CHECK_LIB(c, inotify_init, [ - AC_TRY_COMPILE( - [ - #include - ], - [ 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 @@ -517,12 +512,9 @@ if test "x$have_ecore_file" = "xyes"; then ], [ use_inotify="no" ] - ) + ) ] ) - ],[ - use_inotify="no" - ]) fi #AC_MSG_CHECKING(whether FAM is to be used for filemonitoring)