diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-10-31 08:32:23 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-10-31 08:35:12 -0400 |
commit | 825e4069655065ffd49bcc9ec64b53f1225e8186 (patch) | |
tree | c45edbe34c68fb1d45b99e8213de1216852c5363 /tools/configure | |
parent | 65241f5a327878668be55e184ab685c6fe2c1cbd (diff) | |
download | rockbox-825e4069655065ffd49bcc9ec64b53f1225e8186.tar.gz rockbox-825e4069655065ffd49bcc9ec64b53f1225e8186.zip |
configure: Parameterize the neame of the "sdl config" executable
We moved to SDL2 but still had the SDL1 'sdl-config' executable
used in one place. Additionally, all comments and the help text
referenced the wrong executable name.
Change-Id: Ie2efa80d27be5f6391fc84e49e207aa2aac26e72
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/configure b/tools/configure index 4bdb358957..263a9c6a9a 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -26,7 +26,7 @@ rbdir="/.rockbox" | |||
26 | bindir= | 26 | bindir= |
27 | libdir= | 27 | libdir= |
28 | sharedir= | 28 | sharedir= |
29 | 29 | sdl_config=sdl2-config | |
30 | arm_thumb_boot= | 30 | arm_thumb_boot= |
31 | thread_support="ASSEMBLER_THREADS" | 31 | thread_support="ASSEMBLER_THREADS" |
32 | sysfont="08-Schumacher-Clean" | 32 | sysfont="08-Schumacher-Clean" |
@@ -159,13 +159,13 @@ findtool(){ | |||
159 | fi | 159 | fi |
160 | } | 160 | } |
161 | 161 | ||
162 | # scan the $PATH for sdl-config - check whether for a (cross-)win32 | 162 | # scan the $PATH for ${sdl_config} - check whether for a (cross-)win32 |
163 | # sdl as requested | 163 | # sdl as requested |
164 | findsdl(){ | 164 | findsdl(){ |
165 | files=sdl2-config | 165 | files=${sdl_config} |
166 | if [ -n "$CROSS_COMPILE" ]; then | 166 | if [ -n "$CROSS_COMPILE" ]; then |
167 | # sdl-config might (not) be prefixed for cross compiles so try both. | 167 | # ${sdl_config} might (not) be prefixed for cross compiles so try both. |
168 | files="${CROSS_COMPILE}sdl-config:${files}" | 168 | files="${CROSS_COMPILE}${sdl_config}:${files}" |
169 | fi | 169 | fi |
170 | winbuild="$1" | 170 | winbuild="$1" |
171 | 171 | ||
@@ -191,7 +191,7 @@ findsdl(){ | |||
191 | fi | 191 | fi |
192 | fi | 192 | fi |
193 | 193 | ||
194 | # search for the correct sdl-config | 194 | # search for the correct ${sdl_config} |
195 | IFS=":" | 195 | IFS=":" |
196 | for path in $paths2check | 196 | for path in $paths2check |
197 | do | 197 | do |
@@ -421,19 +421,19 @@ simcc () { | |||
421 | 421 | ||
422 | if [ -n `echo $app_type | grep "sdl"` ]; then | 422 | if [ -n `echo $app_type | grep "sdl"` ]; then |
423 | if [ -z "$sdl" ]; then | 423 | if [ -z "$sdl" ]; then |
424 | echo "configure didn't find sdl-config, which indicates that you" | 424 | echo "configure didn't find ${sdl_config}, which indicates that you" |
425 | echo "don't have SDL (properly) installed. Please correct and" | 425 | echo "don't have SDL (properly) installed. Please correct and" |
426 | echo "re-run configure!" | 426 | echo "re-run configure!" |
427 | exit 2 | 427 | exit 2 |
428 | else | 428 | else |
429 | echo Using $sdl | 429 | echo Using $sdl |
430 | 430 | ||
431 | # generic sdl-config checker | 431 | # generic ${sdl_config} checker |
432 | sdlccopts=$($sdl --cflags) | 432 | sdlccopts=$($sdl --cflags) |
433 | if $sdl --static-libs > /dev/null 2>&1 ; then | 433 | if $sdl --static-libs > /dev/null 2>&1 ; then |
434 | sdlldopts=$($sdl --static-libs) | 434 | sdlldopts=$($sdl --static-libs) |
435 | else | 435 | else |
436 | echo "Your sdl-config does not know about static libs, falling back to shared library" | 436 | echo "Your ${sdl_config} does not know about static libs, falling back to shared library" |
437 | sdlldopts=$($sdl --libs) | 437 | sdlldopts=$($sdl --libs) |
438 | # if [ "$win32crosscompile" = "yes" ] ; then | 438 | # if [ "$win32crosscompile" = "yes" ] ; then |
439 | LDOPTS=`echo $LDOPTS | sed -e s/-static//` | 439 | LDOPTS=`echo $LDOPTS | sed -e s/-static//` |
@@ -661,8 +661,8 @@ maemocc () { | |||
661 | GCCOPTS="$GCCOPTS `pkg-config --cflags sdl`" | 661 | GCCOPTS="$GCCOPTS `pkg-config --cflags sdl`" |
662 | LDOPTS="$LDOPTS `pkg-config --libs sdl`" | 662 | LDOPTS="$LDOPTS `pkg-config --libs sdl`" |
663 | else | 663 | else |
664 | GCCOPTS="$GCCOPTS `sdl-config --cflags`" | 664 | GCCOPTS="$GCCOPTS `${sdl_config} --cflags`" |
665 | LDOPTS="$LDOPTS `sdl-config --libs`" | 665 | LDOPTS="$LDOPTS `${sdl_config} --libs`" |
666 | fi | 666 | fi |
667 | 667 | ||
668 | # glib and libosso support | 668 | # glib and libosso support |
@@ -737,8 +737,8 @@ pandoracc () { | |||
737 | prefixtools "$PNDSDK/bin/arm-angstrom-linux-gnueabi-" | 737 | prefixtools "$PNDSDK/bin/arm-angstrom-linux-gnueabi-" |
738 | 738 | ||
739 | # Detect SDL | 739 | # Detect SDL |
740 | GCCOPTS="$GCCOPTS `$PNDSDK/bin/sdl-config --cflags`" | 740 | GCCOPTS="$GCCOPTS `$PNDSDK/bin/${sdl_config} --cflags`" |
741 | LDOPTS="$LDOPTS `$PNDSDK/bin/sdl-config --libs`" | 741 | LDOPTS="$LDOPTS `$PNDSDK/bin/${sdl_config} --libs`" |
742 | 742 | ||
743 | # Compiler options | 743 | # Compiler options |
744 | GCCOPTS="$GCCOPTS -O2 -fno-strict-aliasing" | 744 | GCCOPTS="$GCCOPTS -O2 -fno-strict-aliasing" |