X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=configure.ac;h=d27a79ce522690512c1f435e5d7f7e375d1ba6b6;hb=d3596a0112a17a4b1bfa600a7b18febfdfacf87d;hp=16767161e3de75189b4990c7e62c385397b6163d;hpb=23e997ae65e3dc48e49de87900bb1b5651ef7032;p=supertux.git diff --git a/configure.ac b/configure.ac index 16767161e..d27a79ce5 100644 --- a/configure.ac +++ b/configure.ac @@ -89,12 +89,6 @@ AM_ICONV AC_SUBST([ICONV_LIBS], [$LIBICONV]) dnl =========================================================================== -dnl Check for OpenGL -AX_CHECK_GL -if test "$no_gl" = "yes"; then - AC_MSG_ERROR([Please install opengl libraries and headers]) -fi - dnl Check for SDL SDL_VERSION=1.2.4 AM_PATH_SDL($SDL_VERSION, @@ -112,7 +106,9 @@ NP_FINDLIB([SDLIMAGE], [SDL_image], [SDL_image >= 1.2], [$SDL_CFLAGS], [$SDL_LIBS]) NP_FINDLIB([PHYSFS], [physfs], [physfs >= 1.0.0], - NP_LANG_PROGRAM([#include + NP_LANG_PROGRAM([ +#include +#include #if PHYSFS_VER_MAJOR < 1 # error PHYSFS is too old #endif]), @@ -128,6 +124,11 @@ NP_FINDLIB([OPENAL], [OpenAL], [OpenAL], [AC_MSG_ERROR([Please intall OpenAL])], [], []) +AX_CHECK_GL +if test "$no_gl" = "yes"; then + AC_MSG_ERROR([Please install opengl libraries and headers]) +fi + dnl Checks for library functions. AC_CHECK_FUNCS(mkdir strdup strstr)