--- Makefile.config.orig	Fri Aug  2 20:48:31 2002
+++ Makefile.config	Fri Aug  2 20:52:28 2002
@@ -7,28 +7,28 @@
 ##### Adjust these always
 
 # Where to put the lablgl script
-BINDIR = /usr/local/bin
+BINDIR = ${PREFIX}/bin
 
 # Where to find X headers
-XINCLUDES = -I/usr/X11R6/include
+XINCLUDES = -I${X11BASE}/include
 # X libs (for broken RTLD_GLOBAL: e.g. FreeBSD 4.0)
 #XLIBS = -L/usr/X11R6/lib -lXext -lXmu -lX11
 
 # Where to find Tcl/Tk headers
 # This must the same version as for LablTk
-TKINCLUDES = -I/usr/local/include
+TKINCLUDES = -I${LOCALBASE}/include/tcl8.3 -I${LOCALBASE}/include/tk8.3
 # Tcl/Tk libs (for broken RTLD_GLOBAL: e.g. FreeBSD 4.0)
-#TKLIBS = -L/usr/local/lib -ltk83 -ltcl83
+TKLIBS = -L${LOCALBASE}/lib -ltk83 -ltcl83
 
 # Where to find OpenGL/Mesa headers and libraries
 GLINCLUDES =
-GLLIBS = -lGL -lGLU
+GLLIBS = -L${X11BASE}/lib -R${X11BASE}/lib -lGL -lGLU -lXmu -lXext
 # The following libraries may be required (try to add them one at a time)
 #GLLIBS = -lGL -lGLU -lXmu -lXext -lpthread
 
 # How to index a library after installing (required on MacOSX)
-RANLIB = :
-#RANLIB = ranlib
+#RANLIB = :
+RANLIB = ranlib
 
 ##### Uncomment these for windows
 #TKLIBS = tk83.lib tcl83.lib gdi32.lib user32.lib
@@ -55,4 +55,4 @@
 #TOGLDIR = Togl
 
 # C Compiler options
-#COPTS = -c -O
+COPTS = -c ${CFLAGS}
