Include appropriate CFLAGS to find X headers, needed to build libdrm.

main
Eric Anholt 2005-08-25 02:59:21 +00:00
parent 5a52e533e1
commit 7d5130d8fb
2 changed files with 5 additions and 1 deletions

View File

@ -27,10 +27,14 @@ AM_CONFIG_HEADER([libdrm/config.h])
AC_PROG_LIBTOOL
AC_PROG_CC
AC_PATH_X
AC_HEADER_STDC
pkgconfigdir=${libdir}/pkgconfig
AC_SUBST(pkgconfigdir)
X11_CFLAGS=-I${x_includes}
AC_SUBST(X11_CFLAGS)
AC_OUTPUT([Makefile libdrm/Makefile shared-core/Makefile libdrm.pc])

View File

@ -22,7 +22,7 @@ libdrm_la_LTLIBRARIES = libdrm.la
libdrm_ladir = $(libdir)
libdrm_la_LDFLAGS = -version-number 1:0:0 -no-undefined
AM_CFLAGS = -I$(top_srcdir)/shared-core
AM_CFLAGS = -I$(top_srcdir)/shared-core $(X11_CFLAGS)
libdrm_la_SOURCES = xf86drm.c xf86drmHash.c xf86drmRandom.c xf86drmSL.c
libdrmincludedir = ${includedir}