Added --disable-replace-glut option to autoconf configure.
[freeglut] / configure.in
index f525baf..b9e8577 100644 (file)
@@ -35,6 +35,21 @@ dnl Checks for library functions.
 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 \