configure: allow to override SDL_CONFIG
authornotaz <notasas@gmail.com>
Sun, 6 Aug 2017 18:21:35 +0000 (21:21 +0300)
committertwinaphex <libretro@gmail.com>
Fri, 18 Aug 2017 03:11:54 +0000 (05:11 +0200)
configure

index 96cea7e..9ccd2da 100755 (executable)
--- a/configure
+++ b/configure
@@ -52,7 +52,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"