[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-dev] [patch] Only automatically enable the OpenGL rendrer when it
From: |
Petter Reinholdtsen |
Subject: |
[Gnash-dev] [patch] Only automatically enable the OpenGL rendrer when it is present |
Date: |
Fri, 03 Dec 2010 11:55:41 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
The following patch try to make sure the default build (./configure)
do not fail to build if OpenGL isn't available, by only enabling the
OpenGL rendrer if it is detected in the default case.
diff --git a/configure.ac b/configure.ac
index 1c10634..82c6e04 100644
--- a/configure.ac
+++ b/configure.ac
@@ -907,10 +907,10 @@ input_events=
dnl By default, we want to to build all renderers
build_ovg=no
build_gles=no
-build_ogl=yes
+build_ogl=auto
build_agg=yes
build_cairo=yes
-renderer_list="OpenGL AGG Cairo"
+renderer_list="AGG Cairo"
nrender=3
AC_ARG_ENABLE(renderer,
AC_HELP_STRING([--enable-renderer=], [Enable support for the specified
renderers (ogl|gles|cairo|agg|all, default=all)]),
@@ -1060,6 +1060,16 @@ if test x$pixelformat = xall; then
fi
fi
+if test x"${build_ogl}" = xyes || test x"${build_ogl}" = xauto; then
+ GNASH_PATH_OPENGL
+ if test xyes = x"${has_opengl}" && test x"${build_ogl}" = xauto; then
+ build_ogl=yes
+ renderer_list="${renderer_list} OpenGL"
+ else
+ build_ogl=no
+ fi
+fi
+
AM_CONDITIONAL(BUILD_OVG_RENDERER, [ test x$build_ovg = xyes ])
AM_CONDITIONAL(BUILD_GLES_RENDERER, [ test x$build_gles = xyes ])
AM_CONDITIONAL(BUILD_OGL_RENDERER, [ test x$build_ogl = xyes])
@@ -2413,10 +2423,6 @@ if test x"${build_ogv}" = xyes; then
GNASH_PKG_FIND(OpenVG, [vg/openvg.h], [OpenVG library], vgDrawImage)
fi
-if test x"${build_ogl}" = xyes; then
- GNASH_PATH_OPENGL
-fi
-
if test x"${build_gtk}" = xyes; then
AC_ARG_ENABLE(ghelp,
AC_HELP_STRING([--enable-ghelp], [Enable support for the GNOME help
system]),
Happy hacking,
--
Petter Reinholdtsen
- [Gnash-dev] [patch] Only automatically enable the OpenGL rendrer when it is present,
Petter Reinholdtsen <=