|
a/src/configure.ac |
|
b/src/configure.ac |
|
... |
|
... |
89 |
else
|
89 |
else
|
90 |
AC_MSG_ERROR([fam library not found])
|
90 |
AC_MSG_ERROR([fam library not found])
|
91 |
fi
|
91 |
fi
|
92 |
fi
|
92 |
fi
|
93 |
|
93 |
|
|
|
94 |
if test -f /usr/include/sys/inotify.h -a X$withFam = Xno ; then
|
|
|
95 |
inot_default=yes
|
|
|
96 |
else
|
|
|
97 |
inot_default=no
|
|
|
98 |
fi
|
|
|
99 |
|
94 |
# Real time monitoring with inotify
|
100 |
# Real time monitoring with inotify
|
95 |
AC_ARG_WITH(inotify,
|
101 |
AC_ARG_WITH(inotify,
|
96 |
AC_HELP_STRING([--with-inotify],
|
102 |
AC_HELP_STRING([--with-inotify],
|
97 |
[Use inotify for almost real time indexing of modified files.]),
|
103 |
[Use inotify for almost real time indexing of modified files.]),
|
98 |
withInotify=$withval, withInotify=no)
|
104 |
withInotify=$withval, withInotify=$inot_default)
|
99 |
|
105 |
|
100 |
if test X$withInotify != Xno ; then
|
106 |
if test X$withInotify != Xno ; then
|
|
|
107 |
AC_MSG_NOTICE([enabled support for inotify monitoring])
|
101 |
AC_DEFINE(RCL_MONITOR, 1, [Real time monitoring option])
|
108 |
AC_DEFINE(RCL_MONITOR, 1, [Real time monitoring option])
|
102 |
AC_DEFINE(RCL_USE_INOTIFY, 1, [Compile the inotify interface])
|
109 |
AC_DEFINE(RCL_USE_INOTIFY, 1, [Compile the inotify interface])
|
|
|
110 |
else
|
|
|
111 |
AC_MSG_NOTICE([inotify monitoring disabled])
|
103 |
fi
|
112 |
fi
|
104 |
|
113 |
|
105 |
##### Look for iconv. We first look for libiconv in /usr/local/lib:/usr/lib
|
114 |
##### Look for iconv. We first look for libiconv in /usr/local/lib:/usr/lib
|
106 |
## then in libc (Linux, solaris)
|
115 |
## then in libc (Linux, solaris)
|
107 |
AC_LANG(C)
|
116 |
AC_LANG(C)
|