2 AC_MSG_CHECKING(for SDL)
4 AM_PATH_SDL($SDL_VERSION,
6 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found. Try http://www.libsdl.org/])
9 dnl checking for SDL_net
10 AC_MSG_CHECKING(for SDL_net lib)
12 if test "x$enable_sdltest" = "xyes" ; then
14 ac_save_CFLAGS="$CFLAGS"
16 CFLAGS="$CFLAGS $SDL_CFLAGS"
17 LIBS="$SDL_LIBS $LIBS"
22 #include <SDL_net/SDL_net.h>
24 #include <SDL/SDL_net.h>
27 int main(int argc, char *argv[])
30 #define main K_and_R_C_main
38 CFLAGS="$ac_save_CFLAGS"
42 AC_MSG_RESULT($have_SDLnet)
43 if test x$have_SDLnet != xyes; then
44 AC_MSG_ERROR([*** Can't find the SDL_net library Try: http://www.libsdl.org/projects/SDL_net])
47 if test `uname` == Darwin; then
48 SDL_LIBS="$SDL_LIBS -framework SDL_net"
50 SDL_LIBS="$SDL_LIBS -lSDL_net"