From 053cc5956081066c9254803bdf8c511f70b7578f Mon Sep 17 00:00:00 2001 From: Laurent Carlier Date: Tue, 5 Jul 2011 11:06:08 +0000 Subject: [PATCH] [GB.SDL] * BUG: SDL_ttf prior to 2.0.10 doesn't provide pkg-config file, so add manual checking of files. git-svn-id: svn://localhost/gambas/trunk@3927 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.sdl/configure.ac | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gb.sdl/configure.ac b/gb.sdl/configure.ac index ca7543dac..b9dcbe4ca 100644 --- a/gb.sdl/configure.ac +++ b/gb.sdl/configure.ac @@ -29,12 +29,17 @@ dnl [GB_FIND(libSDL_ttf.$SHLIBEXT libGLEW.$SHLIBEXT, /usr /usr/X11R6 /usr/loca dnl [$X_LIBS -lSDL_ttf -lGLEW], dnl [$SDL_CFLAGS]) -GB_COMPONENT_PKG_CONFIG( +GB_COMPONENT_SEARCH( sdl, SDL, [SDL], [src], - sdl "> 1.2.8" SDL_ttf glew xcursor) + sdl "> 1.2.8" SDL_ttf glew xcursor, + [GB_FIND(GL/glew.h SDL_ttf.h X11/Xcursor/Xcursor.h, /usr /usr/local `sdl-config --prefix`, include include/SDL)], + [GB_FIND(libSDL_ttf.$SHLIBEXT libGLEW.$SHLIBEXT libXcursor.$SHLIBEXT, /usr /usr/local `sdl-config --prefix`, lib)], + [$X_LIBS -lSDL_ttf -lGLEW], + [$SDL_CFLAGS] +) AC_OUTPUT( \ Makefile \