dnl Process this file with autoconf to produce a configure script.
AC_INIT(Makefile.am)
-AM_INIT_AUTOMAKE(freeglut,2.0.1)
+AM_INIT_AUTOMAKE(freeglut,2.2.0)
AM_CONFIG_HEADER(config.h)
dnl Checks for programs.
AC_SUBST(LIBRARY)
AC_SUBST(HEADER)
+AC_ARG_ENABLE(warnings,
+[ --enable-warnings Enable gcc compiler warnings],
+if test "x$GCC" == xyes
+then
+ CFLAGS="$CFLAGS -Wall -Wno-parentheses -Werror"
+fi)
+
AC_OUTPUT(\
Makefile \
doc/Makefile \