Mercurial > hg > mxe
view src/octave-1-fixes.patch @ 3080:b4e625571bf6 stable
Include fontconfig and freetype as a dependencies of Octave.
Allow configuring with opengl.
Patch Octave configure script to use pkg-config to check for freetype
libraries.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 04 Dec 2012 13:44:38 -0500 |
parents | 8d7005cff4a4 |
children | 2784771bed32 |
line wrap: on
line source
--- a/libgnu/unistd.in.h 2012-05-31 11:24:06.000000000 -0400 +++ a/libgnu/unistd.in.h 2012-12-03 21:16:42.442531641 -0500 @@ -22,23 +22,7 @@ #endif @PRAGMA_COLUMNS@ -/* Special invocation convention: - - On mingw, several headers, including <winsock2.h>, include <unistd.h>, - but we need to ensure that both the system <unistd.h> and <winsock2.h> - are completely included before we replace gethostname. */ -#if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \ - && !defined _GL_WINSOCK2_H_WITNESS && defined _WINSOCK2_H -/* <unistd.h> is being indirectly included for the first time from - <winsock2.h>; avoid declaring any overrides. */ -# if @HAVE_UNISTD_H@ -# @INCLUDE_NEXT@ @NEXT_UNISTD_H@ -# else -# error unexpected; report this to bug-gnulib@gnu.org -# endif -# define _GL_WINSOCK2_H_WITNESS - -/* Normal invocation. */ -#elif !defined _@GUARD_PREFIX@_UNISTD_H +#if !defined _@GUARD_PREFIX@_UNISTD_H /* The include_next requires a split double-inclusion guard. */ #if @HAVE_UNISTD_H@ --- a/configure.ac 2012-05-31 11:20:35.000000000 -0400 +++ b/configure.ac 2012-12-04 12:50:58.666092831 -0500 @@ -857,9 +857,19 @@ ## freetype 2 - AC_CHECK_FT2([9.0.3], [AC_DEFINE(HAVE_FREETYPE, 1, [Define to 1 if you have Freetype library.]) - XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FT2_CFLAGS"], - [warn_freetype="FreeType library not found. Native graphics will be disabled."]) + PKG_CHECK_MODULES([FT2], [freetype2], [ + min_ft2_version=9.03 + AC_MSG_CHECKING([for FreeType -- version >= $min_ft2_version]) + $PKG_CONFIG freetype2 --atleast-version=$min_ft2_version + ac_status=$? + if test $ac_status = 0; then + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_FREETYPE, 1, [Define to 1 if you have Freetype library.]) + XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FT2_CFLAGS" + else + AC_MSG_RESULT(no) + warn_freetype="FreeType library not found. Native graphics will be disabled." + fi]) ## fontconfig library