diff options
author | Russell King <rmk@armlinux.org.uk> | 2017-03-16 11:47:40 +0000 |
---|---|---|
committer | Russell King <rmk@armlinux.org.uk> | 2017-03-16 11:47:40 +0000 |
commit | 34357ebc0bee3554bb63e96819d2559606d1bec8 (patch) | |
tree | 56e3f5ce68efac515a5eab8944f73553911e8f14 | |
parent | 52e29ae4defe9ee0cae738f9a49539d1766c38fe (diff) |
build: avoid testing for libetnaviv library
Avoid testing for the libetnaviv library if we're not building for
the GALcore-compatible variant of etnaviv. This avoids a useless
test and associated noise in the configure log.
Signed-off-by: Russell King <rmk@armlinux.org.uk>
-rw-r--r-- | configure.ac | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 15495d6..43e1b18 100644 --- a/configure.ac +++ b/configure.ac @@ -188,12 +188,19 @@ AS_IF([test x$ACCEL_ETNAVIV != xno || test x$ACCEL_ETNADRM != xno], saved_CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS $ETNAVIV_LIBS" CFLAGS="$CFLAGS $ETNAVIV_CFLAGS" - AC_CHECK_LIB([etnaviv], [viv_open], - [AS_IF([test x$ACCEL_ETNAVIV = xauto], [ACCEL_ETNAVIV=yes])], - [ACCEL_ETNAVIV=no]) AS_IF([test x$ACCEL_ETNADRM = xauto], [ACCEL_ETNADRM=yes], [ACCEL_ETNADRM=no]) AS_IF([test x$ACCEL_ETNAVIV != xno], [ + AC_CHECK_LIB([etnaviv], [viv_open], + [AS_IF([test x$ACCEL_ETNAVIV = xauto], + [ACCEL_ETNAVIV=yes], + [ + AC_MSG_ERROR([etnaviv (GALcore kernel driver) support requires libetnaviv library]) + ])], + [ACCEL_ETNAVIV=no]) + ]) + AS_IF([test x$ACCEL_ETNAVIV != xno], + [ AC_CHECK_LIB([etnaviv], [etna_bo_from_dmabuf], [DUMMY=y], [AC_MSG_ERROR([etnaviv (GALcore kernel driver) support requires etna_bo_from_dmabuf()])]) |