--- configure.orig	2008-02-25 23:25:35.000000000 -0600
+++ configure	2010-05-21 07:52:39.000000000 -0500
@@ -99,8 +99,7 @@
 gmesapix=
 if test $skip_gl != yes; then
   gllist=" \
-    /usr/X11R6/include \
-    /usr/local/include"
+    @PREFIX@/include"
 
   cat >cfg.c <<EOF
 #include <GL/glx.h>
