Message ID | 1440420170-13337-2-git-send-email-patrik.jakobsson@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 24 Aug 2015 14:42, Patrik Jakobsson wrote: > +PKG_CHECK_MODULES([LIBDRM], [libdrm], > + [CPPFLAGS="$CPPFLAGS $LIBDRM_CFLAGS" > + AC_CHECK_HEADERS([drm.h i915_drm.h])], > + [AC_CHECK_HEADERS([drm/drm.h drm/i915_drm.h])]) i would make the drm/xxx headers unconditional -- add them to the big block that does: AC_CHECK_HEADERS(m4_normalize([ ... ])) otherwise seems fine -mike
diff --git a/configure.ac b/configure.ac index 0819f83..ef43278 100644 --- a/configure.ac +++ b/configure.ac @@ -870,6 +870,11 @@ fi AM_CONDITIONAL([USE_LIBUNWIND], [test "x$use_libunwind" = xyes]) AC_MSG_RESULT([$use_libunwind]) +PKG_CHECK_MODULES([LIBDRM], [libdrm], + [CPPFLAGS="$CPPFLAGS $LIBDRM_CFLAGS" + AC_CHECK_HEADERS([drm.h i915_drm.h])], + [AC_CHECK_HEADERS([drm/drm.h drm/i915_drm.h])]) + if test "$arch" = mips && test "$no_create" != yes; then mkdir -p linux/mips if $srcdir/linux/mips/genstub.sh linux/mips; then
Use pkg-config to try to find libdrm headers. If that fails look for the kernel headers. If no headers are found, drm support will not be compiled. * configure.ac: Use pkg-config to find libdrm Signed-off-by: Patrik Jakobsson <patrik.jakobsson@linux.intel.com> --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+)