Mercurial > hg > octave-nkf
diff configure.in @ 7915:d74e515cb535
configure.in: check for ftgl.h instead of FTGL.h
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 10 Jul 2008 10:01:18 -0400 |
parents | e998e81224b5 |
children | fcc70f30fe31 |
line wrap: on
line diff
--- a/configure.in +++ b/configure.in @@ -654,14 +654,18 @@ [warn_graphics="FreeType library not found. Native renderer will not have on-screen text"]) if test "x$warn_graphics" = "x" ; then AC_LANG_PUSH(C++) - AC_CHECK_HEADERS([FTGL/FTGL.h], [ + AC_CHECK_HEADERS([FTGL/ftgl.h ftgl.h], [ AC_MSG_CHECKING([for FTGLTextureFont in -lftgl]) save_LIBS="$LIBS" save_CXXFLAGS="$CXXFLAGS" LIBS="$LIBS $OPENGL_LIBS $FT2_LIBS -lftgl" CXXFLAGS="$CXXFLAGS $FT2_CFLAGS" AC_TRY_LINK([ -#include <FTGL/FTGLTextureFont.h>], [ +#ifdef HAVE_FTGL_FTGL_H +#include <FTGL/ftgl.h> +#elif HAVE_FTGL_H +#include <ftgl.h> +#fi], [ FTGLTextureFont font("");], [ OPENGL_LIBS="$OPENGL_LIBS $FT2_LIBS -lftgl" LIBS="$save_LIBS"