On Tue, 26 Jun 2012, Alexandre Julliard wrote:
A FreeBSD user ran into this when sys/inotify.h was present via an extra package and Wine went ahead using that, only to fail at link- time.
We'd want to use kqueue instead on FreeBSD.
Yes, but _if_ inotify is present, we can (should?) use that until someone implements that alternate approach, can't we?
Right now the build simply fails in that case, since we pick up the headers, but not the library.
Can I talk you into accepting the patch below? :-)
Gerald
--- configure.ac | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac index 1753e14..7d0fa44 100644 --- a/configure.ac +++ b/configure.ac @@ -383,6 +383,8 @@ dnl Check for -li386 for NetBSD and OpenBSD AC_CHECK_LIB(i386,i386_set_ldt) dnl Check for -lossaudio for NetBSD AC_CHECK_LIB(ossaudio,_oss_ioctl) +dnl Check for -linotify for non-Linux platforms +AC_CHECK_LIB(inotify,inotify_init)
AC_SUBST(XLIB,"") AC_SUBST(OPENGL_LIBS,"")