Removed redundant files from EXTRA_DIST.
[freeglut] / configure.ac
index e114c64..d652cbe 100644 (file)
@@ -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