parent
0a8c06f17e
commit
aed2a56e0c
1 changed files with 21 additions and 10 deletions
23
configure
vendored
23
configure
vendored
|
@ -82,17 +82,28 @@ eval "$1 -o tmp_cxx_compiler tmp_cxx_compiler.cpp 2> /dev/null" && eval "./tmp_c
|
||||||
find_sdlconfig()
|
find_sdlconfig()
|
||||||
{
|
{
|
||||||
printf "Looking for sdl-config... "
|
printf "Looking for sdl-config... "
|
||||||
sdlconfigs="$_sdlconfig sdl-config sdl11-config sdl12-config"
|
sdlconfigs="$_sdlconfig:sdl-config:sdl11-config:sdl12-config"
|
||||||
for sdlconfig in $sdlconfigs; do
|
_sdlconfig=
|
||||||
if test "-e $sdlconfig" ; then
|
|
||||||
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
||||||
|
|
||||||
|
for path_dir in $PATH; do
|
||||||
|
for sdlconfig in $sdlconfigs; do
|
||||||
|
if test -e "$path_dir/$sdlconfig" ; then
|
||||||
_sdlconfig=$sdlconfig
|
_sdlconfig=$sdlconfig
|
||||||
echo $_sdlconfig
|
echo $_sdlconfig
|
||||||
break
|
break
|
||||||
else
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
IFS="$ac_save_ifs"
|
||||||
|
|
||||||
|
if test -z "$_sdlconfig"; then
|
||||||
echo "none found!"
|
echo "none found!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue