|
Lines 1-303
Link Here
|
| 1 |
--- configure.orig 2012-05-03 21:47:40 UTC |
|
|
| 2 |
+++ configure |
| 3 |
@@ -895,6 +895,7 @@ enable_xdamage |
| 4 |
enable_xft |
| 5 |
enable_nvidia |
| 6 |
enable_alsa |
| 7 |
+enable_inotify |
| 8 |
enable_debug |
| 9 |
enable_testing |
| 10 |
enable_profiling |
| 11 |
@@ -1620,6 +1621,7 @@ Optional Features: |
| 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 |
@@ -11930,7 +11932,11 @@ case $uname in |
| 20 |
Linux*) |
| 21 |
WANT_SYSINFO=yes |
| 22 |
;; |
| 23 |
- FreeBSD*|GNU/kFreeBSD*) |
| 24 |
+ FreeBSD*) |
| 25 |
+ WANT_KVM=yes |
| 26 |
+ WANT_DEVSTAT=yes |
| 27 |
+ ;; |
| 28 |
+ GNU/kFreeBSD*) |
| 29 |
WANT_KVM=yes |
| 30 |
WANT_DEVSTAT=yes |
| 31 |
WANT_OPTRESET=yes |
| 32 |
@@ -14046,12 +14052,12 @@ if test -n "$PKG_CONFIG"; then |
| 33 |
pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS" |
| 34 |
else |
| 35 |
if test -n "$PKG_CONFIG" && \ |
| 36 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5 |
| 37 |
- ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5 |
| 38 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 |
| 39 |
+ ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 |
| 40 |
ac_status=$? |
| 41 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 42 |
test $ac_status = 0; }; then |
| 43 |
- pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null` |
| 44 |
+ pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null` |
| 45 |
else |
| 46 |
pkg_failed=yes |
| 47 |
fi |
| 48 |
@@ -14064,12 +14070,12 @@ if test -n "$PKG_CONFIG"; then |
| 49 |
pkg_cv_LUA51_LIBS="$LUA51_LIBS" |
| 50 |
else |
| 51 |
if test -n "$PKG_CONFIG" && \ |
| 52 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5 |
| 53 |
- ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5 |
| 54 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 |
| 55 |
+ ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 |
| 56 |
ac_status=$? |
| 57 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 58 |
test $ac_status = 0; }; then |
| 59 |
- pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null` |
| 60 |
+ pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null` |
| 61 |
else |
| 62 |
pkg_failed=yes |
| 63 |
fi |
| 64 |
@@ -14088,14 +14094,14 @@ else |
| 65 |
_pkg_short_errors_supported=no |
| 66 |
fi |
| 67 |
if test $_pkg_short_errors_supported = yes; then |
| 68 |
- LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"` |
| 69 |
+ LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"` |
| 70 |
else |
| 71 |
- LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"` |
| 72 |
+ LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"` |
| 73 |
fi |
| 74 |
# Put the nasty error message in config.log where it belongs |
| 75 |
echo "$LUA51_PKG_ERRORS" >&5 |
| 76 |
|
| 77 |
- as_fn_error $? "Package requirements (lua5.1 >= 5.1) were not met: |
| 78 |
+ as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met: |
| 79 |
|
| 80 |
$LUA51_PKG_ERRORS |
| 81 |
|
| 82 |
@@ -14139,12 +14145,12 @@ if test -n "$PKG_CONFIG"; then |
| 83 |
pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS" |
| 84 |
else |
| 85 |
if test -n "$PKG_CONFIG" && \ |
| 86 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5 |
| 87 |
- ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5 |
| 88 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 |
| 89 |
+ ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 |
| 90 |
ac_status=$? |
| 91 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 92 |
test $ac_status = 0; }; then |
| 93 |
- pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null` |
| 94 |
+ pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null` |
| 95 |
else |
| 96 |
pkg_failed=yes |
| 97 |
fi |
| 98 |
@@ -14157,12 +14163,12 @@ if test -n "$PKG_CONFIG"; then |
| 99 |
pkg_cv_LUA51_LIBS="$LUA51_LIBS" |
| 100 |
else |
| 101 |
if test -n "$PKG_CONFIG" && \ |
| 102 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5 |
| 103 |
- ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5 |
| 104 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 |
| 105 |
+ ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 |
| 106 |
ac_status=$? |
| 107 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 108 |
test $ac_status = 0; }; then |
| 109 |
- pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null` |
| 110 |
+ pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null` |
| 111 |
else |
| 112 |
pkg_failed=yes |
| 113 |
fi |
| 114 |
@@ -14181,14 +14187,14 @@ else |
| 115 |
_pkg_short_errors_supported=no |
| 116 |
fi |
| 117 |
if test $_pkg_short_errors_supported = yes; then |
| 118 |
- LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"` |
| 119 |
+ LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"` |
| 120 |
else |
| 121 |
- LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"` |
| 122 |
+ LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"` |
| 123 |
fi |
| 124 |
# Put the nasty error message in config.log where it belongs |
| 125 |
echo "$LUA51_PKG_ERRORS" >&5 |
| 126 |
|
| 127 |
- as_fn_error $? "Package requirements (lua5.1 >= 5.1) were not met: |
| 128 |
+ as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met: |
| 129 |
|
| 130 |
$LUA51_PKG_ERRORS |
| 131 |
|
| 132 |
@@ -14302,12 +14308,12 @@ if test -n "$PKG_CONFIG"; then |
| 133 |
pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS" |
| 134 |
else |
| 135 |
if test -n "$PKG_CONFIG" && \ |
| 136 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5 |
| 137 |
- ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5 |
| 138 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 |
| 139 |
+ ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 |
| 140 |
ac_status=$? |
| 141 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 142 |
test $ac_status = 0; }; then |
| 143 |
- pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null` |
| 144 |
+ pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null` |
| 145 |
else |
| 146 |
pkg_failed=yes |
| 147 |
fi |
| 148 |
@@ -14320,12 +14326,12 @@ if test -n "$PKG_CONFIG"; then |
| 149 |
pkg_cv_LUA51_LIBS="$LUA51_LIBS" |
| 150 |
else |
| 151 |
if test -n "$PKG_CONFIG" && \ |
| 152 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5 |
| 153 |
- ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5 |
| 154 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 |
| 155 |
+ ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 |
| 156 |
ac_status=$? |
| 157 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 158 |
test $ac_status = 0; }; then |
| 159 |
- pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null` |
| 160 |
+ pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null` |
| 161 |
else |
| 162 |
pkg_failed=yes |
| 163 |
fi |
| 164 |
@@ -14344,14 +14350,14 @@ else |
| 165 |
_pkg_short_errors_supported=no |
| 166 |
fi |
| 167 |
if test $_pkg_short_errors_supported = yes; then |
| 168 |
- LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"` |
| 169 |
+ LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"` |
| 170 |
else |
| 171 |
- LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"` |
| 172 |
+ LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"` |
| 173 |
fi |
| 174 |
# Put the nasty error message in config.log where it belongs |
| 175 |
echo "$LUA51_PKG_ERRORS" >&5 |
| 176 |
|
| 177 |
- as_fn_error $? "Package requirements (lua5.1 >= 5.1) were not met: |
| 178 |
+ as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met: |
| 179 |
|
| 180 |
$LUA51_PKG_ERRORS |
| 181 |
|
| 182 |
@@ -14395,12 +14401,12 @@ if test -n "$PKG_CONFIG"; then |
| 183 |
pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS" |
| 184 |
else |
| 185 |
if test -n "$PKG_CONFIG" && \ |
| 186 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5 |
| 187 |
- ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5 |
| 188 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 |
| 189 |
+ ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 |
| 190 |
ac_status=$? |
| 191 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 192 |
test $ac_status = 0; }; then |
| 193 |
- pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null` |
| 194 |
+ pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null` |
| 195 |
else |
| 196 |
pkg_failed=yes |
| 197 |
fi |
| 198 |
@@ -14413,12 +14419,12 @@ if test -n "$PKG_CONFIG"; then |
| 199 |
pkg_cv_LUA51_LIBS="$LUA51_LIBS" |
| 200 |
else |
| 201 |
if test -n "$PKG_CONFIG" && \ |
| 202 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5 |
| 203 |
- ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5 |
| 204 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 |
| 205 |
+ ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 |
| 206 |
ac_status=$? |
| 207 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 208 |
test $ac_status = 0; }; then |
| 209 |
- pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null` |
| 210 |
+ pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null` |
| 211 |
else |
| 212 |
pkg_failed=yes |
| 213 |
fi |
| 214 |
@@ -14437,14 +14443,14 @@ else |
| 215 |
_pkg_short_errors_supported=no |
| 216 |
fi |
| 217 |
if test $_pkg_short_errors_supported = yes; then |
| 218 |
- LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"` |
| 219 |
+ LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"` |
| 220 |
else |
| 221 |
- LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"` |
| 222 |
+ LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"` |
| 223 |
fi |
| 224 |
# Put the nasty error message in config.log where it belongs |
| 225 |
echo "$LUA51_PKG_ERRORS" >&5 |
| 226 |
|
| 227 |
- as_fn_error $? "Package requirements (lua5.1 >= 5.1) were not met: |
| 228 |
+ as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met: |
| 229 |
|
| 230 |
$LUA51_PKG_ERRORS |
| 231 |
|
| 232 |
@@ -16998,18 +17004,63 @@ fi |
| 233 |
|
| 234 |
done |
| 235 |
|
| 236 |
-# check if we have inotify support |
| 237 |
-for ac_header in sys/inotify.h |
| 238 |
-do : |
| 239 |
- ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" |
| 240 |
+ |
| 241 |
+# Check whether --enable-inotify was given. |
| 242 |
+if test "${enable_inotify+set}" = set; then : |
| 243 |
+ enableval=$enable_inotify; want_inotify="$enableval" |
| 244 |
+else |
| 245 |
+ want_inotify=no |
| 246 |
+fi |
| 247 |
+ |
| 248 |
+if test x$want_inotify = xyes; then |
| 249 |
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" |
| 250 |
if test "x$ac_cv_header_sys_inotify_h" = xyes; then : |
| 251 |
- cat >>confdefs.h <<_ACEOF |
| 252 |
-#define HAVE_SYS_INOTIFY_H 1 |
| 253 |
-_ACEOF |
| 254 |
+ |
| 255 |
+else |
| 256 |
+ want_inotify=no |
| 257 |
+fi |
| 258 |
+ |
| 259 |
+fi |
| 260 |
+if test x$want_inotify = xyes; then |
| 261 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inotify_init in -linotify" >&5 |
| 262 |
+$as_echo_n "checking for inotify_init in -linotify... " >&6; } |
| 263 |
+if ${ac_cv_lib_inotify_inotify_init+:} false; then : |
| 264 |
+ $as_echo_n "(cached) " >&6 |
| 265 |
+else |
| 266 |
+ ac_check_lib_save_LIBS=$LIBS |
| 267 |
+LIBS="-linotify $LIBS" |
| 268 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 269 |
+/* end confdefs.h. */ |
| 270 |
+ |
| 271 |
+#include <sys/inotify.h> |
| 272 |
|
| 273 |
+char inotify_init (); |
| 274 |
+int |
| 275 |
+main () |
| 276 |
+{ |
| 277 |
+return inotify_init (); |
| 278 |
+ ; |
| 279 |
+ return 0; |
| 280 |
+} |
| 281 |
+_ACEOF |
| 282 |
+if ac_fn_c_try_link "$LINENO"; then : |
| 283 |
+ ac_cv_lib_inotify_inotify_init=yes |
| 284 |
+else |
| 285 |
+ ac_cv_lib_inotify_inotify_init=no |
| 286 |
+fi |
| 287 |
+rm -f core conftest.err conftest.$ac_objext \ |
| 288 |
+ conftest$ac_exeext conftest.$ac_ext |
| 289 |
+LIBS=$ac_check_lib_save_LIBS |
| 290 |
+fi |
| 291 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inotify_inotify_init" >&5 |
| 292 |
+$as_echo "$ac_cv_lib_inotify_inotify_init" >&6; } |
| 293 |
+if test "x$ac_cv_lib_inotify_inotify_init" = xyes; then : |
| 294 |
+ conky_LIBS="$conky_LIBS -linotify" |
| 295 |
+else |
| 296 |
+ want_inotify=yes |
| 297 |
fi |
| 298 |
|
| 299 |
-done |
| 300 |
+fi |
| 301 |
|
| 302 |
|
| 303 |
|