# HG changeset patch # User Mike Miller # Date 1458600893 25200 # Node ID 79aa496c6d47d8ad14a69f96ae695146ee32b397 # Parent e1c5aca1c7981b3664a8ae6d91ac445b2b4b6631 maint: Fix configure warning messages on missing OpenGL graphics support * configure.ac (build_fltk_graphics): New variable, set when FLTK OpenGL support is present and working. (opengl_graphics): Set based on values of build_fltk_graphics and build_qt_graphics shell variables. diff -r e1c5aca1c798 -r 79aa496c6d47 configure.ac --- a/configure.ac Mon Mar 21 15:01:12 2016 -0700 +++ b/configure.ac Mon Mar 21 15:54:53 2016 -0700 @@ -1552,6 +1552,8 @@ ## Check for FLTK (www.fltk.org) library check_fltk=yes +build_fltk_graphics=no + AC_ARG_WITH([fltk], [AS_HELP_STRING([--without-fltk], [don't use FLTK libraries, disable OpenGL graphics with FLTK widgets])], @@ -1626,6 +1628,7 @@ if test $octave_cv_fltk_opengl_support = no; then warn_fltk_opengl="FLTK does not have OpenGL support. OpenGL graphics with FLTK widgets will be disabled." else + build_fltk_graphics=yes AC_DEFINE(HAVE_FLTK, 1, [Define to 1 if FLTK is available.]) fi @@ -1639,7 +1642,7 @@ AC_SUBST(FLTK_LDFLAGS) AC_SUBST(FLTK_LIBS) -if test -n "$warn_qt_opengl" && test -n "$warn_fltk_opengl"; then +if test $build_qt_graphics = no && test $build_fltk_graphics = no; then opengl_graphics=no else opengl_graphics=yes