configure.ac: check require_basic_egl only if egl enabled
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 16 Apr 2017 00:46:59 +0000 (01:46 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 19 Apr 2017 11:19:24 +0000 (12:19 +0100)
Fixes: 1ac40173c2a ("configure.ac: simplify EGL requirements for drivers dependent on EGL")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
configure.ac

index e1c60d842b57ab95282c07e378521f2d40174afd..957d15df8caae167fcda398c490d46f8458d95c7 100644 (file)
@@ -2466,7 +2466,9 @@ if test -n "$with_gallium_drivers"; then
         xvirgl)
             HAVE_GALLIUM_VIRGL=yes
             require_libdrm "virgl"
-            require_basic_egl "virgl"
+            if test "x$enable_egl" = xyes; then
+                require_basic_egl "virgl"
+            fi
             ;;
         *)
             AC_MSG_ERROR([Unknown Gallium driver: $driver])