SDL: test/versioning.sh also tests configure

From cbc0d9facccca7f041146728421becb6ae83c251 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Porto?= <[EMAIL REDACTED]>
Date: Sat, 3 Sep 2022 21:22:26 -0300
Subject: [PATCH] test/versioning.sh also tests configure

---
 test/versioning.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/test/versioning.sh b/test/versioning.sh
index c82d9572b63..893727cf806 100755
--- a/test/versioning.sh
+++ b/test/versioning.sh
@@ -34,6 +34,17 @@ else
     not_ok "configure.ac $version disagrees with SDL_version.h $ref_version"
 fi
 
+major=$(sed -ne 's/^SDL_MAJOR_VERSION=//p' configure)
+minor=$(sed -ne 's/^SDL_MINOR_VERSION=//p' configure)
+micro=$(sed -ne 's/^SDL_MICRO_VERSION=//p' configure)
+version="${major}.${minor}.${micro}"
+
+if [ "$ref_version" = "$version" ]; then
+    ok "configure $version"
+else
+    not_ok "configure $version disagrees with SDL_version.h $ref_version"
+fi
+
 major=$(sed -ne 's/^set(SDL_MAJOR_VERSION \([0-9]*\))$/\1/p' CMakeLists.txt)
 minor=$(sed -ne 's/^set(SDL_MINOR_VERSION \([0-9]*\))$/\1/p' CMakeLists.txt)
 micro=$(sed -ne 's/^set(SDL_MICRO_VERSION \([0-9]*\))$/\1/p' CMakeLists.txt)