From 2e3c5766e8f939260b1bd74d80d3ec0f15dcf443 Mon Sep 17 00:00:00 2001 From: atatat Date: Sun, 5 Oct 2003 21:52:42 +0000 Subject: If ${_GL_GLEXT_H} doesn't exist, just set everything to NO. Otherwise egrep emits error messages. --- graphics/Mesa/version.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'graphics/Mesa') diff --git a/graphics/Mesa/version.mk b/graphics/Mesa/version.mk index 857989c0a78..e58baa0662a 100644 --- a/graphics/Mesa/version.mk +++ b/graphics/Mesa/version.mk @@ -1,4 +1,4 @@ -# $NetBSD: version.mk,v 1.2 2003/09/29 21:30:28 jschauma Exp $ +# $NetBSD: version.mk,v 1.3 2003/10/05 21:52:42 atatat Exp $ # # This file computes the version number of the Mesa distributed with # XFree86 and stores it in ${_MESA_VERSION}. @@ -15,12 +15,16 @@ MESA_VERSION= 5.0.2 _GL_GLEXT_H= ${X11BASE}/include/GL/glext.h _MESA_GL_VERSIONS= 1.2 1.3 1.4 .for _glvers_ in ${_MESA_GL_VERSIONS} +.if !exists(${_GL_GLEXT_H}) +_MESA_GL_VERSION_${_glvers_}= NO +.else _MESA_GL_VERSION_${_glvers_}!= \ if ${EGREP} -q "\#define[ ]*GL_VERSION_${_glvers_:S/./_/}[ ]*1" ${_GL_GLEXT_H}; then \ ${ECHO} YES; \ else \ ${ECHO} NO; \ fi +.endif .endfor # # According to the Mesa documentation, for stable releases: -- cgit v1.2.3