# Process this file with autoconf to produce a configure script.
-AC_INIT([freeglut library], [2.4.0-rc4], [freeglut-bugs@lists.sourceforge.net], [freeglut])
+AC_INIT([freeglut library], [2.4.0], [freeglut-bugs@lists.sourceforge.net], [freeglut])
AM_INIT_AUTOMAKE
AC_PREREQ([2.56])
AC_CONFIG_SRCDIR([AUTHORS])
CFLAGS="$CFLAGS -Wall -pedantic -Werror"
fi
+AC_ARG_ENABLE([debug],
+[AS_HELP_STRING([--enable-debug],
+ [enable debug (for developers) @<:@default=no@:>@])])
+
+if test "x$enable_debug" = xyes; then
+ AC_DEFINE([_DEBUG], [1], [Define to 1 if you want to include debugging code.])
+fi
+
# Generate output.
AC_CONFIG_FILES([Makefile
doc/Makefile