Mercurial > hg > octave-jordi
diff configure.ac @ 11208:a44ba1cdfbb5
handle --without-opengl configure option
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 08 Nov 2010 22:28:06 -0500 |
parents | d3eaaa7c6762 |
children | 94d9d412a2a0 |
line wrap: on
line diff
--- a/configure.ac +++ b/configure.ac @@ -826,7 +826,21 @@ warn_freetype="" -OCTAVE_OPENGL +check_opengl=false +AC_ARG_WITH([opengl], + [AS_HELP_STRING([--with-opengl=yes], [use opengl library for graphics])], + [if test "x$withval" = xno; then + warn_opengl="--without-opengl specified. Native graphics will be disabled." + AC_MSG_WARN([$warn_opengl]) + else + check_opengl=true + fi], + [check_opengl=true]) + +if $check_opengl; then + OCTAVE_OPENGL +fi + GRAPHICS_LIBS= GRAPHICS_CFLAGS= @@ -2377,6 +2391,12 @@ fi native_graphics=true +if test -n "warn_opengl"; then + AC_MSG_WARN([$warn_opengl]) + native_graphics=false + warn_msg_printed=true +fi + if test -n "$warn_freetype"; then AC_MSG_WARN([$warn_freetype]) native_graphics=false