Lines 1-6
Link Here
|
1 |
--- configure.orig |
1 |
--- configure.orig |
2 |
+++ configure |
2 |
+++ configure |
3 |
@@ -11645,7 +11645,7 @@ |
3 |
@@ -1002,6 +1002,7 @@ |
|
|
4 |
enable_xft |
5 |
enable_nvidia |
6 |
enable_alsa |
7 |
+enable_inotify |
8 |
enable_debug |
9 |
enable_testing |
10 |
enable_profiling |
11 |
@@ -1729,6 +1730,7 @@ |
12 |
--enable-nvidia enable if you want nvidia support [default=no] |
13 |
--disable-alsa disable if you do not want ALSA support |
14 |
[default=yes] |
15 |
+ --enable-inotify enable if you want inotify support [default=no] |
16 |
--enable-debug compile with debug symbols [default=no] |
17 |
--enable-testing use strict compiler flags for testing [default=no] |
18 |
--enable-profiling specify compiler flags for use with gprof and gcov |
19 |
@@ -11647,7 +11649,7 @@ |
4 |
|
20 |
|
5 |
|
21 |
|
6 |
if test x$want_apcupsd = xyes; then |
22 |
if test x$want_apcupsd = xyes; then |
Lines 18-20
Link Here
|
18 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: iostats not supported on $uname... disabling" >&5 |
34 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: iostats not supported on $uname... disabling" >&5 |
19 |
$as_echo "$as_me: iostats not supported on $uname... disabling" >&6;} |
35 |
$as_echo "$as_me: iostats not supported on $uname... disabling" >&6;} |
20 |
want_iostats="not supported on $uname" |
36 |
want_iostats="not supported on $uname" |
|
|
37 |
@@ -16071,20 +16073,65 @@ |
38 |
|
39 |
done |
40 |
|
41 |
-# check if we have inotify support |
42 |
-for ac_header in sys/inotify.h |
43 |
-do : |
44 |
- ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" |
45 |
-if test "x$ac_cv_header_sys_inotify_h" = x""yes; then : |
46 |
- cat >>confdefs.h <<_ACEOF |
47 |
-#define HAVE_SYS_INOTIFY_H 1 |
48 |
-_ACEOF |
49 |
|
50 |
+# Check whether --enable-inotify was given. |
51 |
+if test "${enable_inotify+set}" = set; then : |
52 |
+ enableval=$enable_inotify; want_inotify="$enableval" |
53 |
+else |
54 |
+ want_inotify=no |
55 |
fi |
56 |
|
57 |
-done |
58 |
+if test x$want_inotify = xyes; then |
59 |
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" |
60 |
+if test "x$ac_cv_header_sys_inotify_h" = xyes; then : |
61 |
+ |
62 |
+else |
63 |
+ want_inotify=no |
64 |
+fi |
65 |
|
66 |
|
67 |
+fi |
68 |
+if test x$want_inotify = xyes; then |
69 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inotify_init in -linotify" >&5 |
70 |
+$as_echo_n "checking for inotify_init in -linotify... " >&6; } |
71 |
+if ${ac_cv_lib_inotify_inotify_init+:} false; then : |
72 |
+ $as_echo_n "(cached) " >&6 |
73 |
+else |
74 |
+ ac_check_lib_save_LIBS=$LIBS |
75 |
+LIBS="-linotify $LIBS" |
76 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77 |
+/* end confdefs.h. */ |
78 |
+ |
79 |
+#include <sys/inotify.h> |
80 |
+ |
81 |
+char inotify_init (); |
82 |
+int |
83 |
+main () |
84 |
+{ |
85 |
+return inotify_init (); |
86 |
+ ; |
87 |
+ return 0; |
88 |
+} |
89 |
+_ACEOF |
90 |
+if ac_fn_c_try_link "$LINENO"; then : |
91 |
+ ac_cv_lib_inotify_inotify_init=yes |
92 |
+else |
93 |
+ ac_cv_lib_inotify_inotify_init=no |
94 |
+fi |
95 |
+rm -f core conftest.err conftest.$ac_objext \ |
96 |
+ conftest$ac_exeext conftest.$ac_ext |
97 |
+LIBS=$ac_check_lib_save_LIBS |
98 |
+fi |
99 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inotify_inotify_init" >&5 |
100 |
+$as_echo "$ac_cv_lib_inotify_inotify_init" >&6; } |
101 |
+if test "x$ac_cv_lib_inotify_inotify_init" = xyes; then : |
102 |
+ conky_LIBS="$conky_LIBS -linotify" |
103 |
+else |
104 |
+ want_inotify=yes |
105 |
+fi |
106 |
+ |
107 |
+fi |
108 |
+ |
109 |
|
110 |
|
111 |
$as_echo "#define DEFAULTNETDEV \"eth0\"" >>confdefs.h |
112 |
@@ -16102,7 +16153,7 @@ |
113 |
$as_echo "#define DEFAULT_TEXT_BUFFER_SIZE 256" >>confdefs.h |
114 |
|
115 |
|
116 |
-$as_echo "#define MAX_NET_INTERFACES 16" >>confdefs.h |
117 |
+$as_echo "#define MAX_NET_INTERFACES 64" >>confdefs.h |
118 |
|
119 |
|
120 |
|