Mercurial > hg > octave-nkf
changeset 19785:722ff3e45bea gui-release
build: Don't build GUI when OpenGL is disabled or not found (bug #44017)
* configure.ac: Disable building the GUI when OpenGL libraries are not found
or are intentionally disabled.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Sun, 18 Jan 2015 17:53:41 -0500 |
parents | 7bb80c927af5 |
children | 4fe86a372f10 |
files | configure.ac |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac +++ b/configure.ac @@ -2720,6 +2720,16 @@ [AS_HELP_STRING([--disable-gui], [don't build the GUI])], [if test "$enableval" = no; then build_gui=no; fi], []) +if test -z "$OPENGL_LIBS"; then + build_gui=no + if test $check_opengl = yes; then + warn_gui="OpenGL libs (GL and GLU) not found -- disabling GUI" + else + warn_gui="--without-opengl was specified -- disabling GUI" + fi + OCTAVE_CONFIGURE_WARNING([warn_gui]) +fi + if test $build_gui = yes; then warn_gui=""