Mercurial > mxe-octave
comparison src/glib-3-optional-inotify.patch @ 2615:7e5aaa010a02
update package glib
author | Hans Petter Jansson <hpj@cl.no> |
---|---|
date | Mon, 04 Jun 2012 18:02:11 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2614:1f6e698fb89e | 2615:7e5aaa010a02 |
---|---|
1 This file is part of MXE. | |
2 See index.html for further information. | |
3 | |
4 Allow building without inotify support. | |
5 | |
6 diff --git a/configure.ac b/configure.ac | |
7 index 2d7ce80..e126ca8 100644 | |
8 --- a/configure.ac | |
9 +++ b/configure.ac | |
10 @@ -1700,11 +1700,18 @@ dnl ***************************** | |
11 dnl ** Check for inotify (GIO) ** | |
12 dnl ***************************** | |
13 inotify_support=no | |
14 -AC_CHECK_HEADERS([sys/inotify.h], | |
15 -[ | |
16 + | |
17 +AC_ARG_ENABLE(inotify, | |
18 + AC_HELP_STRING([--disable-inotify], | |
19 + [build without inotify support])) | |
20 + | |
21 +if test "x$enable_inotify" != "xno"; then | |
22 + AC_CHECK_HEADERS([sys/inotify.h], | |
23 + [ | |
24 inotify_support=yes | |
25 AC_CHECK_FUNCS(inotify_init1) | |
26 -]) | |
27 + ]) | |
28 +fi | |
29 | |
30 AM_CONDITIONAL(HAVE_INOTIFY, [test "$inotify_support" = "yes"]) | |
31 |