vc4: Only build in simulator mode if we find pkg-config for it.
authorEric Anholt <eric@anholt.net>
Wed, 16 Sep 2015 19:51:00 +0000 (15:51 -0400)
committerEric Anholt <eric@anholt.net>
Wed, 16 Sep 2015 19:54:00 +0000 (15:54 -0400)
This will let other developers build it x86 for build-testing purposes.

configure.ac

index 71c9b6c97fa7f7a2e67e0062bc26dfe5925837b8..1ef5fbc9c08bbca2aade9398f69ad5fc02292b7c 100644 (file)
@@ -2161,11 +2161,8 @@ if test -n "$with_gallium_drivers"; then
             gallium_require_drm "vc4"
             gallium_require_drm_loader
 
-            case "$host_cpu" in
-                i?86 | x86_64 | amd64)
-                USE_VC4_SIMULATOR=yes
-                ;;
-            esac
+            PKG_CHECK_MODULES([SIMPENROSE], [simpenrose],
+                              [USE_VC4_SIMULATOR=yes], [USE_VC4_SIMULATOR=no])
             ;;
         *)
             AC_MSG_ERROR([Unknown Gallium driver: $driver])