mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
Define GL_GLEXT_PROTOTYPES in CFLAGS not in random places in the source
This commit is contained in:
parent
eccbe9bb1a
commit
0230541af5
@ -15,8 +15,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
|
||||
#include "common.h"
|
||||
#include "canvas.h"
|
||||
#include "red_pixmap.h"
|
||||
|
||||
@ -15,7 +15,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
#include "common.h"
|
||||
#include "../common/gl_canvas.c"
|
||||
|
||||
|
||||
@ -15,7 +15,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
#include "common.h"
|
||||
#include "../common/glc.c"
|
||||
|
||||
|
||||
@ -18,7 +18,6 @@
|
||||
#ifndef _H_PIXELE_SOURSR_P
|
||||
#define _H_PIXELE_SOURSR_P
|
||||
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
#include <X11/X.h>
|
||||
#include <GL/glu.h>
|
||||
#include <X11/extensions/XShm.h>
|
||||
|
||||
@ -15,7 +15,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
#include "common.h"
|
||||
#include "red_drawable.h"
|
||||
#include "pixels_source_p.h"
|
||||
|
||||
@ -15,8 +15,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
#include <GL/glext.h>
|
||||
|
||||
@ -15,7 +15,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
#include "common.h"
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xresource.h>
|
||||
|
||||
@ -18,8 +18,6 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@ -164,11 +164,13 @@ SPICE_REQUIRES+=" openssl"
|
||||
have_gl=yes
|
||||
AC_CHECK_LIB(GL, glBlendFunc, GL_LIBS="$GL_LIBS -lGL", have_gl=no)
|
||||
AC_CHECK_LIB(GLU, gluSphere, GL_LIBS="$GL_LIBS -lGLU", have_gl=no)
|
||||
GL_CFLAGS="-DGL_GLEXT_PROTOTYPES"
|
||||
|
||||
if test "x$have_gl" = "xno"; then
|
||||
AC_MSG_ERROR([GL libraries not available])
|
||||
fi
|
||||
|
||||
AC_SUBST(GL_CFLAGS)
|
||||
AC_SUBST(GL_LIBS)
|
||||
SPICE_NONPKGCONFIG_LIBS+=" $GL_LIBS"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user