[gtkglarea/jjardon/epoxy: 3/3] configure.ac: Check correctly for shaders support
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkglarea/jjardon/epoxy: 3/3] configure.ac: Check correctly for shaders support
- Date: Mon, 7 Apr 2014 15:47:49 +0000 (UTC)
commit 28132670e066a42ccd20bf13b34a96c64d85cc1c
Author: Javier Jardón <jjardon gnome org>
Date: Mon Apr 7 13:36:34 2014 +0100
configure.ac: Check correctly for shaders support
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 63dbf4e..4e76ca2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,8 +85,8 @@ PKG_CHECK_MODULES([GL],[
saved_LIBS="$LIBS"
AC_MSG_CHECKING([OpenGL shaders])
LIBS="$saved_LIBS $GL_LIBS"
-AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],
- [[ char glCreateProgram(); glCreateProgram(); ]])],
+AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <epoxy/gl.h>]],
+ [[glCreateShader(GL_VERTEX_SHADER);]])],
[have_shaders=yes],[have_shaders=no])
AC_MSG_RESULT($have_shaders)
LIBS="$saved_LIBS"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]