summaryrefslogtreecommitdiff
path: root/test/acinclude.m4
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2006-05-01 07:23:46 +0000
committerSam Lantinga <slouken@libsdl.org>2006-05-01 07:23:46 +0000
commitd8aace2ce7069d0c20eb53636d2193b5df54921c (patch)
tree8d4c1935ad6df854a377922041ff085ec24bc876 /test/acinclude.m4
parent1a4e90b8566d15e041d949af4a95b6f9eec58bec (diff)
Don't add NONE/bin to the path - inexplicably fixes building on mingw+msys, apparently
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401714
Diffstat (limited to 'test/acinclude.m4')
-rw-r--r--test/acinclude.m420
1 files changed, 11 insertions, 9 deletions
diff --git a/test/acinclude.m4 b/test/acinclude.m4
index a5db82d3..b6df43f0 100644
--- a/test/acinclude.m4
+++ b/test/acinclude.m4
@@ -20,19 +20,21 @@ AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run
, enable_sdltest=yes)
if test x$sdl_exec_prefix != x ; then
- sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
- if test x${SDL_CONFIG+set} != xset ; then
- SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
- fi
+ sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
+ if test x${SDL_CONFIG+set} != xset ; then
+ SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
+ fi
fi
if test x$sdl_prefix != x ; then
- sdl_args="$sdl_args --prefix=$sdl_prefix"
- if test x${SDL_CONFIG+set} != xset ; then
- SDL_CONFIG=$sdl_prefix/bin/sdl-config
- fi
+ sdl_args="$sdl_args --prefix=$sdl_prefix"
+ if test x${SDL_CONFIG+set} != xset ; then
+ SDL_CONFIG=$sdl_prefix/bin/sdl-config
+ fi
fi
- PATH="$prefix/bin:$prefix/usr/bin:$PATH"
+ if test "x$prefix" != xNONE; then
+ PATH="$prefix/bin:$prefix/usr/bin:$PATH"
+ fi
AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH])
min_sdl_version=ifelse([$1], ,0.11.0,$1)
AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)