Mercurial > hg > octave-terminal
changeset 9804:6fcc4179c178
configure.ac: remove check for ftgl
author | Shai Ayal <shaiay@users.sourceforge.net> |
---|---|
date | Wed, 11 Nov 2009 13:17:34 -0500 |
parents | f5126ea721e2 |
children | bb70d16cca3b |
files | ChangeLog configure.ac |
diffstat | 2 files changed, 5 insertions(+), 50 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-11-11 Shai Ayal <shaiay@users.sourceforge.net> + + * configure.ac: Remove tests for ftgl. + 2009-11-11 Benjamin Lindner <lindnerb@users.sourceforge.net> * configure.ac: Remove -mwindows from FLTK_LDFLAGS.
--- a/configure.ac +++ b/configure.ac @@ -741,13 +741,12 @@ ## libraries needed for graphics warn_freetype="" -warn_ftgl="" OCTAVE_OPENGL if test -n "$OPENGL_LIBS"; then AC_DEFINE(HAVE_OPENGL, 1, [Define if OpenGL is available]) -## ftgl (needs freetype 2) +## freetype 2 AC_CHECK_FT2([9.0.3],[AC_DEFINE(HAVE_FREETYPE, 1, [Define to 1 if you have Freetype library.])], [warn_freetype="FreeType library not found. Native renderer will not have on-screen text"]) if test -z "$warn_freetype"; then @@ -758,48 +757,6 @@ LIBS="$LIBS $FT2_LIBS $OPENGL_LIBS" CXXFLAGS="$CXXFLAGS $FT2_CFLAGS" CPPFLAGS="$CPPFLAGS $FT2_CFLAGS" - has_ftgl_h=yes - AC_CHECK_HEADERS([FTGL/ftgl.h ftgl.h], break, [ - AC_CHECK_HEADERS([FTGL/FTGL.h FTGL.h], [ - AC_DEFINE(HAVE_FTGL_UPPERCASE, 1, [Define to 1 if you have FTGL.h or FTGL/FTGL.h]) - break - ], has_ftgl_h=no)]) - if test "$has_ftgl_h" = yes; then - AC_MSG_CHECKING([for FTGLTextureFont in -lftgl]) - LIBS="$save_LIBS -lftgl $FT2_LIBS $OPENGL_LIBS" - AC_TRY_LINK([ -#ifdef HAVE_FTGL_FTGL_H -#ifdef HAVE_FTGL_UPPERCASE -#include <FTGL/FTGL.h> -#else -#include <FTGL/ftgl.h> -#endif -#include <FTGL/FTGLTextureFont.h> -#elif HAVE_FTGL_H -#ifdef HAVE_FTGL_UPPERCASE -#include <FTGL.h> -#else -#include <ftgl.h> -#endif -#include <FTGLTextureFont.h> -#endif], [ -FTGLTextureFont font("");], [ - OPENGL_LIBS="-lftgl $FT2_LIBS $OPENGL_LIBS" - LIBS="$save_LIBS" - CPPFLAGS="$save_CPPFLAGS" - AC_DEFINE(HAVE_FTGL, 1, [Define to 1 if FTGL is present]) - AC_MSG_RESULT(yes) - XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FT2_CFLAGS"], [ - AC_MSG_RESULT(no) - warn_ftgl="FTGL library not found. Native renderer will not have on-screen text" - ]) - LIBS="$save_LIBS" - CXXFLAGS="$save_CXXFLAGS" - CPPFLAGS="$save_CPPFLAGS" - else - warn_ftgl="FTGL headers not found. Native renderer will not have on-screen text" - fi - AC_LANG_POP(C++) fi fi @@ -2500,12 +2457,6 @@ warn_msg_printed=true fi -if test -n "$warn_ftgl"; then - AC_MSG_WARN("$warn_ftgl") - native_graphics=false - warn_msg_printed=true -fi - if test -n "$warn_fltk_config"; then AC_MSG_WARN("$warn_fltk_config") native_graphics=false