only enable support for freedreno on arm automatically
authorMaarten Lankhorst <maarten.lankhorst@ubuntu.com>
Wed, 21 Jan 2015 10:46:04 +0000 (11:46 +0100)
committerMaarten Lankhorst <maarten.lankhorst@ubuntu.com>
Wed, 21 Jan 2015 10:47:13 +0000 (11:47 +0100)
Users can still override this by explicitly passing --enable-freedreno
to configure.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@ubuntu.com>
configure.ac

index c0ab4302f36a5cf714767e8698f169f047ce373e..8422de942fe92e7e478a69a2456519ff8d37bccf 100644 (file)
@@ -95,8 +95,8 @@ AC_ARG_ENABLE(exynos-experimental-api,
 
 AC_ARG_ENABLE(freedreno,
              AS_HELP_STRING([--disable-freedreno],
-             [Enable support for freedreno's KMS API (default: enabled)]),
-             [FREEDRENO=$enableval], [FREEDRENO=yes])
+             [Enable support for freedreno's KMS API (default: enabled on arm)]),
+             [FREEDRENO=$enableval], [FREEDRENO=auto])
 
 AC_ARG_ENABLE(freedreno-kgsl,
              AS_HELP_STRING([--enable-freedreno-kgsl],
@@ -277,6 +277,13 @@ if test "x$LIBKMS" = xauto ; then
        esac
 fi
 
+if test "x$FREEDRENO" = xauto ; then
+       case $host_cpu in
+               arm*|aarch64)   FREEDRENO="yes" ;;
+               *)              FREEDRENO="no" ;;
+       esac
+fi
+
 AM_CONDITIONAL(HAVE_LIBKMS, [test "x$LIBKMS" = xyes])
 
 AM_CONDITIONAL(HAVE_INTEL, [test "x$INTEL" = xyes])