diff options
Diffstat (limited to 'kdesktop/lock/configure.in.in')
-rw-r--r-- | kdesktop/lock/configure.in.in | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/kdesktop/lock/configure.in.in b/kdesktop/lock/configure.in.in new file mode 100644 index 000000000..d5d61a5f9 --- /dev/null +++ b/kdesktop/lock/configure.in.in @@ -0,0 +1,37 @@ +xss_save_ldflags="$LDFLAGS" +LDFLAGS="$X_LDFLAGS" + +LIB_XF86MISC= + +KDE_CHECK_HEADER(X11/extensions/xf86misc.h, + [ + AC_CHECK_LIB(Xxf86misc,XF86MiscQueryVersion, + [ + AC_DEFINE(HAVE_XF86MISC, 1, [Define if you have the xf86misc extension]) + LIB_XF86MISC="-lXxf86misc" + ], + [], [ $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS ]) + ],[], + [ + #include <X11/Xlib.h> + ]) +AC_SUBST(LIB_XF86MISC) + +if test -n "$LIB_XF86MISC"; then + AC_CHECK_LIB(Xxf86misc,XF86MiscSetGrabKeysState, + [ + AC_DEFINE(HAVE_XF86MISCSETGRABKEYSSTATE, 1, [Define if you have XF86MiscSetGrabKeysState()]) + ], + [], [ $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS ]) +fi + +LDFLAGS="$xss_save_ldflags" + +AC_HAVE_GL( + [ + AC_CHECK_LIB(GL,glXChooseVisual, + [ + AC_DEFINE(HAVE_GLXCHOOSEVISUAL, 1, [Define if you have glXChooseVisual()]) + ]) + ],[] + ) |