configure: allow to override SDL_CONFIG
authornotaz <notasas@gmail.com>
Sun, 6 Aug 2017 18:21:35 +0000 (21:21 +0300)
committernotaz <notasas@gmail.com>
Sun, 6 Aug 2017 18:21:35 +0000 (21:21 +0300)
configure

index 35130cb..1310ab2 100755 (executable)
--- a/configure
+++ b/configure
@@ -54,7 +54,7 @@ CC="${CC-${CROSS_COMPILE}gcc}"
 CXX="${CXX-${CROSS_COMPILE}g++}"
 AS="${AS-${CROSS_COMPILE}as}"
 STRIP="${STRIP-${CROSS_COMPILE}strip}"
-SDL_CONFIG="`$CC --print-sysroot 2> /dev/null || true`/usr/bin/sdl-config"
+test -n "$SDL_CONFIG" || SDL_CONFIG="`$CC --print-sysroot 2> /dev/null || true`/usr/bin/sdl-config"
 MAIN_LDLIBS="$LDLIBS -lm"
 config_mak="config.mak"