From 2cd20dfc3eb63b6a70fb5e40d8f68d2f61d4c442 Mon Sep 17 00:00:00 2001 From: Laurent Carlier Date: Sat, 13 Jun 2009 18:13:51 +0000 Subject: [PATCH] [GB.OPENGL] * BUG: Add generic search for libglu, should fix building on Ubuntu Jaunty. git-svn-id: svn://localhost/gambas/trunk@2016 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.opengl/configure.ac | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gb.opengl/configure.ac b/gb.opengl/configure.ac index 4672b9ced..f72ba03ed 100644 --- a/gb.opengl/configure.ac +++ b/gb.opengl/configure.ac @@ -12,13 +12,15 @@ AC_CHECK_HEADER(GL/glx.h, [ AC_MSG_WARN([glx.h not found. Check 'config.log' for more details.]) touch DISABLED]) -GB_COMPONENT_PKG_CONFIG( +GB_COMPONENT_SEARCH( opengl, OPENGL, [OpenGL support component], [src], - gl glu - ) + gl glu, + [GB_FIND(gl.h glu.h, /usr /usr/X11R6 /usr/local, include include/GL)], + [GB_FIND(libGL.$SHLIBEXT libGLU.$SHLIBEXT, /usr /usr/X11R6 /usr/local, lib)], + [-lGL -lGLU]) AC_OUTPUT( \ Makefile \