Only require libdrm if direct rendering is actually enabled.
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 14 Mar 2011 22:08:21 +0000 (22:08 +0000)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Fri, 8 Apr 2011 19:37:36 +0000 (20:37 +0100)
commit758561786c3a34303e6c85dfdb996b94a4eed678
treef5a39bfbb009f0315df850e5fd2d62fb7e670a53
parentaac4bae98651c928ce298aecf158b0aa1a7fabce
Only require libdrm if direct rendering is actually enabled.

Fix build when configured --with-driver=dri --disable-driglx-direct on targets
without drm e.g. GNU/Hurd and Cygwin

Based on the Debian patch file '05_hurd-ftbfs.diff' by Samuel Thibault.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Reviewed-By: Jakob Bornecrantz <wallbraker@gmail.com>
configure.ac