X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=d652cbe562b2005fd385f320b99652e36001b11d;hb=0251d50c1ef8ad0d71922da5e0db495986766d87;hp=72d0f53fd062c36b41f82338191021f2df1b10a0;hpb=4ac966888180f459c9d04f55cc7e9e96fcef9fd1;p=freeglut diff --git a/configure.ac b/configure.ac index 72d0f53..d652cbe 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ # 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]) @@ -61,6 +61,14 @@ if test "x$enable_warnings" != xno -a "x$GCC" = xyes; then 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