Skip to content

Commit b79ea06

Browse files
committed
configure.ac: set sdl_version after sdl checked
For actual sdl check, the emptiness of sdl_version is evaluated. But later it is useful to have it =0 for numeric comparisons (2c577ac) so set it in after sdl check. The depending modules can use $sdl variable later.
1 parent af29817 commit b79ea06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ fi
12421242
# SDL1/2/3 Stuff
12431243
# ------------------------------------------------------------------------------
12441244
sdl=no
1245-
sdl_version=0
1245+
sdl_version=
12461246
sdl_version_str=
12471247
sdl_ver_suffix=
12481248
AC_ARG_ENABLE(sdl,
@@ -1308,6 +1308,8 @@ if test "$sdl_req" != no; then
13081308
fi
13091309
fi
13101310

1311+
sdl_version=${sdl_version:-0}
1312+
13111313
ENSURE_FEATURE_PRESENT([$sdl_req], [$sdl], [SDL requested but found any version])
13121314

13131315
# ------------------------------------------------------------------------------

0 commit comments

Comments
 (0)