Commit ddfd21a6784f533bdd04b7e0dd61a0f400eee96e

Ozkan Sezer 2021-09-05T05:37:20

configure: fix vulkan enablement for windows after commit 13ec545936cfd

diff --git a/configure b/configure
index 98c0eb5..0ec7123 100755
--- a/configure
+++ b/configure
@@ -25191,6 +25191,9 @@ $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
                 ac_default_prefix=$BUILD_PREFIX
             fi
         fi
+        if test x$enable_loadso = xyes; then
+            have_loadso=yes
+        fi
         CheckDeclarationAfterStatement
         CheckDummyVideo
         CheckDiskAudio
@@ -25366,7 +25369,6 @@ $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
 $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
 
             SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
-            have_loadso=yes
         fi
         # Set up the system libraries we need
         if test -f /lib/w32api/libuuid.a; then
diff --git a/configure.ac b/configure.ac
index 3a13605..3d9b0e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3799,6 +3799,9 @@ case "$host" in
                 ac_default_prefix=$BUILD_PREFIX
             fi
         fi
+        if test x$enable_loadso = xyes; then
+            have_loadso=yes
+        fi
         CheckDeclarationAfterStatement
         CheckDummyVideo
         CheckDiskAudio
@@ -3923,7 +3926,6 @@ case "$host" in
         if test x$enable_loadso = xyes; then
             AC_DEFINE(SDL_LOADSO_WINDOWS, 1, [ ])
             SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
-            have_loadso=yes
         fi
         # Set up the system libraries we need
         if test -f /lib/w32api/libuuid.a; then