summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/configure.in.in
blob: d5d61a5f9ec6ad7788d06ad9180984173b54a2a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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()])
        ])
    ],[]
    )