Fixed a configure bug.

Should check the enable-glamor-gles2 before use the variable.
And should include the config.h as the GLAMOR_GLES2 macro is
defined there.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
Zhigang Gong 2012-01-05 14:26:01 +08:00 committed by Eric Anholt
parent a65e1c736a
commit 2511a00cdd
2 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,10 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif

View File

@ -27,6 +27,10 @@
#ifndef GLAMOR_PRIV_H
#define GLAMOR_PRIV_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#include <xorg-config.h>