AC_CHECK_LIBM
AC_SUBST(LIBM)
+dnl Build time configuration
+
+AC_ARG_ENABLE(replace-glut,
+[ --disable-replace-glut Coexist with existing glut library])
+if test "x$enable_replace_glut" != xno
+then
+ LIBRARY=glut
+ HEADER=glut.h
+else
+ LIBRARY=freeglut
+ HEADER=
+fi
+AC_SUBST(LIBRARY)
+AC_SUBST(HEADER)
+
AC_OUTPUT(\
Makefile \
doc/Makefile \