KDE_CHECK_HEADER(X11/extensions/xf86vmode.h, [
	AC_DEFINE(HAVE_VIDMODE_EXTENSION, 1, [defined if XFree86's VidMode extension is supported])
	LIBXF86VIDMODE="-lXext -lXxf86vm"
], ,
[
#include <X11/Xlib.h>
])
AC_SUBST(LIBXF86VIDMODE)
