Search
lxdream.org :: lxdream/configure.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure.in
changeset 653:3202ff01d48e
prev643:653b0a70f173
next656:031d23fa6d0b
author nkeynes
date Fri Mar 28 12:32:25 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Merge lxdream-render branch (643:670) to trunk
file annotate diff log raw
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.3 @@ -22,6 +22,18 @@
1.4 [if test "$enableval" == "yes"; then
1.5 AC_DEFINE(ENABLE_WATCH, 1, [Enable watchpoints])
1.6 fi] )
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.10 +
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.16 + ])
1.17 +AM_CONDITIONAL(OSMESA_DRIVER, [test "x$with_osmesa" != xno])
1.18 +
1.19 dnl ----------- Check for mandatory dependencies --------------
1.20 dnl Building on MAC?
1.21 AC_CHECK_HEADER([Carbon/Carbon.h], [
1.22 @@ -41,6 +53,7 @@
1.23 exit 1])
1.24
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.29 exit 1])
1.30 @@ -48,6 +61,7 @@
1.31 echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
1.32 exit 1])
1.33 fi
1.34 +fi
1.35
1.36 dnl Check for GTK (required for unix systems)
1.37 PKG_CHECK_MODULES(GTK, gtk+-2.0, [
.