2007-12-30 17:41:49 +01:00
|
|
|
dnl ---- configure.ac for gb.opengl
|
|
|
|
|
|
|
|
AC_INIT(configure.ac)
|
|
|
|
GB_INIT(gb.opengl)
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
|
|
|
dnl x/glx is currently needed, will be optional when moved to other platform
|
|
|
|
AC_PATH_X
|
|
|
|
AC_PATH_XTRA
|
|
|
|
AC_CHECK_HEADER(GL/glx.h,
|
|
|
|
AC_DEFINE(HAVE_X11_GLX, 1, [Target system is X11/glx]),
|
|
|
|
[ AC_MSG_WARN([glx.h not found. Check 'config.log' for more details.])
|
|
|
|
touch DISABLED])
|
|
|
|
|
2009-06-13 20:13:51 +02:00
|
|
|
GB_COMPONENT_SEARCH(
|
2007-12-30 17:41:49 +01:00
|
|
|
opengl,
|
|
|
|
OPENGL,
|
2009-06-02 23:19:45 +02:00
|
|
|
[OpenGL support component],
|
2007-12-30 17:41:49 +01:00
|
|
|
[src],
|
2009-06-13 20:13:51 +02:00
|
|
|
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])
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
AC_OUTPUT( \
|
|
|
|
Makefile \
|
|
|
|
src/Makefile \
|
|
|
|
)
|