gambas-source-code/gb.opengl/configure.ac
Benoît Minisini ba19f3c1dd * Copy https://gambas.svn.sourceforge.net/svnroot/gambas/2.0 to https://gambas.svn.sourceforge.net/svnroot/gambas/gambas
git-svn-id: svn://localhost/gambas/trunk@893 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-30 16:41:49 +00:00

27 lines
644 B
Text

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])
GB_COMPONENT(
opengl,
OPENGL,
[openGL],
[src],
[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 \
src/Makefile \
)