X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=efa1653d042b4b7d721351b37a92efd96b4b10f0;hb=a542b284b4fc53b6d8c5b090e311c02fbae2f550;hp=39b58aa163ce6db930f179032e39ba05d40e9c8b;hpb=510075672e299377501820351b0ec4a55cb76905;p=freeglut diff --git a/configure.ac b/configure.ac index 39b58aa..efa1653 100644 --- a/configure.ac +++ b/configure.ac @@ -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= @@ -76,7 +76,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],