SDL: configure: Disable Vulkan support if loadso subsystem is disabled.

From 13ec545936cfd19dd3bf3e59d978f1a9c7d2200f Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Mon, 23 Aug 2021 00:54:13 -0400
Subject: [PATCH] configure: Disable Vulkan support if loadso subsystem is
 disabled.

Fixes #4373.
---
 configure    | 5 +++++
 configure.ac | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/configure b/configure
index 7b9f300424..98c0eb5c45 100755
--- a/configure
+++ b/configure
@@ -22901,6 +22901,11 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
         fi
     fi
+    if test x$have_loadso != xyes; then
+        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
+$as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
+        enable_video_vulkan=no
+    fi
     if test x$enable_video_vulkan = xyes; then
 
 $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
diff --git a/configure.ac b/configure.ac
index 21b0733dee..3a13605b9b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2598,6 +2598,10 @@ CheckVulkan()
             AC_MSG_WARN([Vulkan does not work on this configuration.])
         fi
     fi
+    if test x$have_loadso != xyes; then
+        AC_MSG_WARN([Vulkan support is available, but disabled because there's no loadso.])
+        enable_video_vulkan=no
+    fi
     if test x$enable_video_vulkan = xyes; then
         AC_DEFINE(SDL_VIDEO_VULKAN, 1, [ ])
         SUMMARY_video="${SUMMARY_video} vulkan"