2007-12-30 17:41:49 +01:00
|
|
|
dnl ---- configure.ac for gb.sdl
|
|
|
|
|
|
|
|
AC_INIT(configure.ac)
|
2009-08-17 00:07:48 +02:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2007-12-30 17:41:49 +01:00
|
|
|
GB_INIT(gb.sdl)
|
|
|
|
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
GB_CHECK_XWINDOW
|
|
|
|
|
|
|
|
dnl TODO: add a version test in GB_COMPONENT!
|
2009-08-18 11:10:49 +02:00
|
|
|
GB_PATH_SDL([1.2.8], [], [touch DISABLED])
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
dnl check Xcursor support
|
|
|
|
AC_CHECK_LIB(Xcursor, XcursorLibraryLoadCursor,
|
|
|
|
[echo -n
|
|
|
|
LDFLAGS="$LDFLAGS -lXcursor"],
|
|
|
|
[AC_MSG_WARN([libXcursor not found. Check 'config.log' for more details.])
|
|
|
|
touch DISABLED],
|
|
|
|
$X_LIBS)
|
|
|
|
|
|
|
|
dnl check Xft support
|
|
|
|
AC_CHECK_LIB(Xft, XftListFonts,
|
|
|
|
[echo -n
|
|
|
|
LDFLAGS="$LDFLAGS -lXft" SDL_CFLAGS="$SDL_CFLAGS `freetype-config --cflags`"],
|
|
|
|
[AC_MSG_WARN([libXft not found. Check 'config.log' for more details.])
|
|
|
|
touch DISABLED],
|
|
|
|
$X_LIBS)
|
|
|
|
|
|
|
|
dnl check for SDL libs
|
|
|
|
GB_COMPONENT(
|
|
|
|
sdl,
|
|
|
|
SDL,
|
|
|
|
[SDL],
|
|
|
|
[src],
|
2009-08-17 20:08:56 +02:00
|
|
|
[GB_FIND(SDL_opengl.h SDL.h SDL_image.h SDL_ttf.h, `sdl-config --prefix`, include/SDL)],
|
2010-06-16 15:05:35 +02:00
|
|
|
[GB_FIND(libSDL_ttf.$SHLIBEXT libGLEW.$SHLIBEXT, /usr /usr/X11R6 /usr/local `sdl-config --prefix`, lib)],
|
|
|
|
[$X_LIBS -lSDL_ttf -lGLU -lGLEW],
|
2007-12-30 17:41:49 +01:00
|
|
|
[$SDL_CFLAGS])
|
|
|
|
|
|
|
|
AC_OUTPUT( \
|
|
|
|
Makefile \
|
|
|
|
src/Makefile \
|
|
|
|
)
|
2010-07-14 03:50:18 +02:00
|
|
|
|
|
|
|
GB_PRINT_MESSAGES
|