summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/configure b/tools/configure
index ff05747853..4c742f500f 100755
--- a/tools/configure
+++ b/tools/configure
@@ -339,13 +339,18 @@ simcc () {
echo "don't have SDL (properly) installed. Please correct and"
echo "re-run configure!"
exit 2
- else
+ else
# generic sdl-config checker
GCCOPTS="$GCCOPTS `$sdl --cflags`"
- LDOPTS="$LDOPTS `$sdl --static-libs`"
+ if sdl-config --static-libs > /dev/null 2>&1 ; then
+ LDOPTS="$LDOPTS `$sdl --static-libs`"
+ else
+ echo "Your sdl-config does not know about static libs, falling back to shared library"
+ LDOPTS="$LDOPTS `$sdl --libs`"
+ fi
fi
fi
-
+
GCCOPTS="$GCCOPTS -I\$(SIMDIR)"
# x86_64 supports MMX by default