glapi: Make xserver location error more helpful
authorNathan Kidd <nkidd@opentext.com>
Wed, 1 Jun 2011 14:29:26 +0000 (08:29 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 1 Jun 2011 14:30:59 +0000 (08:30 -0600)
glx code hasn't lived under xserver/GL for a long time now.

Signed-off-by: Nathan Kidd <nkidd@opentext.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mapi/glapi/gen/Makefile

index 87b928ccfbef1e4e1bbbeff5e0a1b971e02c6883..c3829dc005eb7d9e42876d041d48eefa018fc3ee 100644 (file)
@@ -128,7 +128,10 @@ xorg: check-xorg-source $(XORG_OUTPUTS)
 
 check-xorg-source:
        @if ! test -d $(XORG_GLX_DIR); then \
-               echo "ERROR: Must specify path to xserver/GL/ checkout; set XORG_BASE env var."; \
+               echo "ERROR: Must specify path to xserver/ checkout. Set XORG_BASE env var."; \
+               if test x$(XORG_BASE) != x; then \
+                       echo "'$(XORG_GLX_DIR)' does not exist."; \
+               fi; \
                exit 1; \
        fi