]> Dogcows Code - chaz/openbox/blobdiff - configure.ac
only pass thru events when the menu is open, don't for other stuff
[chaz/openbox] / configure.ac
index 1dd2669fa0a9f567061d3c54300cc36d6d212ae8..579a5dd1777fb004e574b00b3a4783f24682b3a9 100644 (file)
@@ -84,8 +84,8 @@ AC_SUBST(XML_LIBS)
 
 AC_ARG_ENABLE(startup-notification,
   AC_HELP_STRING(
-    [--enable-startup-notification],
-    [enable the startup notification library. [[default=enabled]]]
+    [--disable-startup-notification],
+    [disable the startup notification library. [[default=enabled]]]
   ),
   [enable_sn=$enableval],
   [enable_sn=yes]
@@ -107,6 +107,31 @@ else
   sn_found=no
 fi
 
+AC_ARG_ENABLE(xcursor,
+  AC_HELP_STRING(
+    [--disable-xcursor],
+    [disable use of the X Cursor library. [[default=enabled]]]
+  ),
+  [enable_xcursor=$enableval],
+  [enable_xcursor=yes]
+)
+
+if test "$enable_xcursor" = yes; then
+PKG_CHECK_MODULES(XCURSOR, [xcursor],
+  [
+    AC_DEFINE(USE_XCURSOR, [1], [Use X Cursor library])
+    AC_SUBST(XCURSOR_CFLAGS)
+    AC_SUBST(XCURSOR_LIBS)
+    xcursor_found=yes
+  ],
+  [
+    xcursor_found=no
+  ]
+)
+else
+  xcursor_found=no
+fi
+
 dnl Check for session management
 X11_SM
 
@@ -133,6 +158,7 @@ AC_OUTPUT
 AC_MSG_RESULT
 AC_MSG_RESULT([Compiling with these options:
                Startup Notification... $sn_found
+               X Cursor Library... $xcursor_found
                Session Management... $SM
                ])
 AC_MSG_RESULT([configure complete, now type "make"])
This page took 0.020558 seconds and 4 git commands to generate.