X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=configure.ac;h=0affc1a37fb44f94cbf3c2c0ee1f3faf35e8420c;hb=57f4fff48ea56bc61f089c359d9ad739e85ab32b;hp=16767161e3de75189b4990c7e62c385397b6163d;hpb=23e997ae65e3dc48e49de87900bb1b5651ef7032;p=supertux.git diff --git a/configure.ac b/configure.ac index 16767161e..0affc1a37 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,15 @@ 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 +AX_CHECK_GLU +if test "$no_glu" = "yes"; then + AC_MSG_ERROR([Please install opengl utility libraries and headers]) +fi + dnl Checks for library functions. AC_CHECK_FUNCS(mkdir strdup strstr)