dri/swrast: automake: add LIBDRM_CFLAGS
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Jul 2015 15:22:44 +0000 (16:22 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Jul 2015 15:33:11 +0000 (16:33 +0100)
commit816e4c1b5e2887c45ffa69d41c8106e7b31977fb
tree11cb3cf652e238953728cf09dac621731f571375
parent16f6d432de07dcb537dafd0c9f3ef7614891ed6b
dri/swrast: automake: add LIBDRM_CFLAGS

With the follow up commit we'll remove the __NOT_HAVE_DRM_H macro. As
requested by Ian HAVE_LIBDRM will be used instead, which will lead to
swrast including drm.h when libdrm package is available, even though we
don't need/make use of the header.

As the define is added after the AM_CFLAGS we cannnot use -UHAVE_LIBDRM,
but instead let's just add LIBDRM_CFLAGS. The latter of which will
expand to NULL when the libdrm package is not around.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/mesa/drivers/dri/swrast/Makefile.am