1.1 --- a/configure.in Tue Feb 26 01:10:48 2008 +0000
1.2 +++ b/configure.in Fri Mar 28 12:32:25 2008 +0000
1.4 [if test "$enableval" == "yes"; then
1.5 AC_DEFINE(ENABLE_WATCH, 1, [Enable watchpoints])
1.7 +AC_ARG_WITH( osmesa,
1.8 + AS_HELP_STRING( [--with-osmesa], [Build with the osmesa GL library (software rendering)]),
1.9 + [], [with_osmesa=no])
1.11 +AS_IF([test "x$with_osmesa" != xno], [
1.12 + AC_CHECK_LIB([OSMesa], [OSMesaCreateContext], [],
1.13 + [AC_MSG_FAILURE( [--with-osmesa was given, but OSMesa library could not be found])])
1.14 + AC_CHECK_HEADER([GL/osmesa.h], [],
1.15 + [AC_MSG_FAILURE( [--with-osmesa was given, but osmesa.h could not be found])])
1.17 +AM_CONDITIONAL(OSMESA_DRIVER, [test "x$with_osmesa" != xno])
1.19 dnl ----------- Check for mandatory dependencies --------------
1.20 dnl Building on MAC?
1.21 AC_CHECK_HEADER([Carbon/Carbon.h], [
1.25 if test "$APPLE_BUILD" != 'yes'; then
1.26 +if test "x$with_osmesa" == "xno"; then
1.27 AC_CHECK_LIB(GL, glXQueryVersion, [], [
1.28 echo "The OpenGL library (libGL.so) could not be found, but is required."
1.31 echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
1.36 dnl Check for GTK (required for unix systems)
1.37 PKG_CHECK_MODULES(GTK, gtk+-2.0, [