Ignore config.lt, too. It seems to be generated by recent autotools.
[freeglut] / configure.ac
index 39b58aa..d0b1f17 100644 (file)
@@ -22,7 +22,7 @@ AC_SUBST([LIBTOOL_DEPS])
 AC_PATH_XTRA
 
 if test x"$no_x" = xyes; then
-  GL_LIBS="-lopengl32 -lglu32 -lgdi32"
+  GL_LIBS="-lopengl32 -lglu32 -lgdi32 -lwinmm"
   LIBXXF86VM=
   LIBXI=
   VERSION_INFO=
@@ -57,6 +57,7 @@ AC_PROG_GCC_TRADITIONAL
 AC_FUNC_VPRINTF
 AC_CHECK_LIBM
 AC_SUBST([LIBM])
+AC_CHECK_FUNCS([gettimeofday])
 
 # Build time configuration.
 AC_ARG_ENABLE([replace-glut],
@@ -76,7 +77,14 @@ AC_ARG_ENABLE([warnings],
 [AS_HELP_STRING([--enable-warnings],
                 [use all gcc compiler warnings @<:@default=yes@:>@])])
 if test "x$enable_warnings" != xno -a "x$GCC" = xyes; then
-  CFLAGS="$CFLAGS -Wall -pedantic -Werror"
+  CFLAGS="$CFLAGS -Wall -pedantic"
+fi
+
+AC_ARG_ENABLE([warnings-as-errors],
+[AS_HELP_STRING([--enable-warnings-as-errors],
+                [make all warnings into errors @<:@default=no@:>@])])
+if test "x$enable_warnings_as_errors" = xyes -a "x$GCC" = xyes; then
+  CFLAGS="$CFLAGS -Werror"
 fi
 
 AC_ARG_ENABLE([debug],