Include imx specific libdrm headers

Change-Id: I7bd78787391b8c903bf2bcd2f015cc113ecaba4c
diff --git a/configure.ac b/configure.ac
index da3b962..421360b 100755
--- a/configure.ac
+++ b/configure.ac
@@ -408,6 +408,10 @@
 AC_SUBST(GSTMXLIBS_VERSION)
 GSTMXLIBS_VERSION=0:1:0
 
+PKG_CHECK_MODULES(LIBDRM, libdrm)
+AC_SUBST(LIBDRM_LIBS)
+AC_SUBST(LIBDRM_CFLAGS)
+
 AC_OUTPUT(
 Makefile
 gstreamer-fsl.pc
diff --git a/plugins/vpu/Makefile.am b/plugins/vpu/Makefile.am
index edf111a..286086f 100755
--- a/plugins/vpu/Makefile.am
+++ b/plugins/vpu/Makefile.am
@@ -15,7 +15,7 @@
 	gstvpuallocator.c \
 	gstvpuenc.c
 
-libgstvpu_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
+libgstvpu_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(LIBDRM_CFLAGS)
 libgstvpu_la_CFLAGS += -I$(top_srcdir)/libs -I$(top_srcdir)/ext-includes
 libgstvpu_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) -lgstvideo-$(GST_API_VERSION) \
 	$(VPU_LIBS) $(LIBM)
diff --git a/plugins/vpu/gstvpudec.c b/plugins/vpu/gstvpudec.c
index 04de3ee..600a5f9 100755
--- a/plugins/vpu/gstvpudec.c
+++ b/plugins/vpu/gstvpudec.c
@@ -44,7 +44,7 @@
 #ifdef USE_ION
 #include <gst/allocators/gstionmemory.h>
 #endif
-#include <libdrm/drm_fourcc_imx.h>
+#include <drm_fourcc_imx.h>
 #include "gstimxcommon.h"
 #include "gstvpuallocator.h"
 #include "gstvpudec.h"
diff --git a/plugins/vpu/gstvpudecobject.c b/plugins/vpu/gstvpudecobject.c
index 5628fa4..a2d71eb 100644
--- a/plugins/vpu/gstvpudecobject.c
+++ b/plugins/vpu/gstvpudecobject.c
@@ -19,7 +19,7 @@
  */
 
 #include <string.h>
-#include <libdrm/drm_fourcc_imx.h>
+#include <drm_fourcc_imx.h>
 #include <gst/video/gstvideometa.h>
 #include <gst/video/gstvideohdr10meta.h>
 #include "gstimxcommon.h"