18 sdl_exec_prefix="$withval", sdl_exec_prefix="") |
18 sdl_exec_prefix="$withval", sdl_exec_prefix="") |
19 AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program], |
19 AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program], |
20 , enable_sdltest=yes) |
20 , enable_sdltest=yes) |
21 |
21 |
22 if test x$sdl_exec_prefix != x ; then |
22 if test x$sdl_exec_prefix != x ; then |
23 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" |
23 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" |
24 if test x${SDL_CONFIG+set} != xset ; then |
24 if test x${SDL_CONFIG+set} != xset ; then |
25 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config |
25 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config |
26 fi |
26 fi |
27 fi |
27 fi |
28 if test x$sdl_prefix != x ; then |
28 if test x$sdl_prefix != x ; then |
29 sdl_args="$sdl_args --prefix=$sdl_prefix" |
29 sdl_args="$sdl_args --prefix=$sdl_prefix" |
30 if test x${SDL_CONFIG+set} != xset ; then |
30 if test x${SDL_CONFIG+set} != xset ; then |
31 SDL_CONFIG=$sdl_prefix/bin/sdl-config |
31 SDL_CONFIG=$sdl_prefix/bin/sdl-config |
32 fi |
32 fi |
33 fi |
33 fi |
34 |
34 |
35 PATH="$prefix/bin:$prefix/usr/bin:$PATH" |
35 if test "x$prefix" != xNONE; then |
|
36 PATH="$prefix/bin:$prefix/usr/bin:$PATH" |
|
37 fi |
36 AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH]) |
38 AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH]) |
37 min_sdl_version=ifelse([$1], ,0.11.0,$1) |
39 min_sdl_version=ifelse([$1], ,0.11.0,$1) |
38 AC_MSG_CHECKING(for SDL - version >= $min_sdl_version) |
40 AC_MSG_CHECKING(for SDL - version >= $min_sdl_version) |
39 no_sdl="" |
41 no_sdl="" |
40 if test "$SDL_CONFIG" = "no" ; then |
42 if test "$SDL_CONFIG" = "no" ; then |