gambas-source-code/gb.sdl/configure.ac
Laurent Carlier 75cbb9774e [GB.SDL]
* BUG: Use pkg-config to properly detect dependencies.



git-svn-id: svn://localhost/gambas/trunk@3892 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-18 14:55:14 +00:00

44 lines
979 B
Text

dnl ---- configure.ac for gb.sdl
AC_INIT(configure.ac)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.sdl)
AC_PROG_LIBTOOL
GB_CHECK_XWINDOW
dnl TODO: add a version test in GB_COMPONENT!
dnl GB_PATH_SDL([1.2.8], [], [touch DISABLED])
dnl check Xcursor support
dnl AC_CHECK_LIB(Xcursor, XcursorLibraryLoadCursor,
dnl [echo -n
dnl LDFLAGS="$LDFLAGS -lXcursor"],
dnl [AC_MSG_WARN([libXcursor not found. Check 'config.log' for more details.])
dnl touch DISABLED],
dnl $X_LIBS)
dnl check for SDL libs
dnl GB_COMPONENT(
dnl sdl,
dnl SDL,
dnl [SDL],
dnl [src],
dnl [GB_FIND(SDL_opengl.h SDL.h SDL_ttf.h, `sdl-config --prefix`, include/SDL)],
dnl [GB_FIND(libSDL_ttf.$SHLIBEXT libGLEW.$SHLIBEXT, /usr /usr/X11R6 /usr/local `sdl-config --prefix`, lib)],
dnl [$X_LIBS -lSDL_ttf -lGLEW],
dnl [$SDL_CFLAGS])
GB_COMPONENT_PKG_CONFIG(
sdl,
SDL,
[SDL],
[src],
sdl "> 1.2.8" SDL_ttf glew xcursor)
AC_OUTPUT( \
Makefile \
src/Makefile \
)
GB_PRINT_MESSAGES