diff --git a/configure.sh b/configure.sh index 60f3ce1..3907507 100755 --- a/configure.sh +++ b/configure.sh @@ -64,15 +64,15 @@ int main(int argc, char **argv) EOF echo $cc echo -n "Checking test build...(" -echo -n $cc /tmp/sdl-test.c $ops `sdl-config --cflags` `sdl-config --libs` -lSDL_ttf -lSDL_mixer -lSDL_image -if ! $cc /tmp/sdl-test.c $ops `sdl-config --cflags` `sdl-config --libs` -lSDL_ttf -lSDL_mixer -lSDL_image; then +echo -n $cc /tmp/sdl-test.c $ops `sdl-config --cflags` `sdl-config --libs` -lSDL_ttf -lSDL_mixer -lSDL_image -o /tmp/sdl-test +if ! $cc /tmp/sdl-test.c $ops `sdl-config --cflags` `sdl-config --libs` -lSDL_ttf -lSDL_mixer -lSDL_image -o /tmp/sdl-test; then echo ") failed". echo "Please, check those dev packages installed: SDL_ttf SDL_mixer SDL_image." - rm /tmp/sdl-test.c + rm /tmp/sdl-test.c /tmp/sdl-test exit 1 fi echo ") ok" -rm /tmp/sdl-test.c +rm /tmp/sdl-test.c /tmp/sdl-test if ! make clean >/dev/null 2>&1; then echo " * Warning!!! Can not do make clean..." fi