X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=configure.ac;h=fc90f5470048c617adb7c935613ca6548ce7d659;hb=aa51f2a733292a31345da9aa5167558496ef1915;hp=ea77a1a06d62a0a9c657f96047a8bedda2fa9b40;hpb=72699d0d18477767db086a5eb9963d89391a754e;p=freeglut diff --git a/configure.ac b/configure.ac index ea77a1a..fc90f54 100644 --- a/configure.ac +++ b/configure.ac @@ -11,6 +11,7 @@ m4_ifdef([AS_HELP_STRING], [], [AC_DEFUN([AS_HELP_STRING], [AC_HELP_STRING($][@) # Checks for programs. AC_PROG_CC +AM_PROG_CC_C_O AC_C_CONST AC_EXEEXT AC_LIBTOOL_DLOPEN @@ -21,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= @@ -32,7 +33,7 @@ else [LIBXXF86VM=-lXxf86vm], [LIBXXF86VM=], [$X_LIBS -lXext -lX11]) LIBXI=-lXi - VERSION_INFO="-version-info 11:0:8" + VERSION_INFO="-version-info 12:0:9" EXPORT_FLAGS= fi AC_SUBST([GL_LIBS]) @@ -56,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], @@ -75,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], @@ -86,17 +95,5 @@ if test "x$enable_debug" = xyes; then fi # Generate output. -AC_CONFIG_FILES([Makefile - doc/Makefile - include/GL/Makefile - include/Makefile - progs/Makefile - progs/demos/CallbackMaker/Makefile - progs/demos/Fractals/Makefile - progs/demos/Fractals_random/Makefile - progs/demos/Lorenz/Makefile - progs/demos/Makefile - progs/demos/One/Makefile - progs/demos/shapes/Makefile - src/Makefile]) +AC_CONFIG_FILES([Makefile doc/Makefile include/GL/Makefile include/Makefile progs/Makefile progs/demos/CallbackMaker/Makefile progs/demos/Fractals/Makefile progs/demos/Fractals_random/Makefile progs/demos/Lorenz/Makefile progs/demos/Makefile progs/demos/One/Makefile progs/demos/shapes/Makefile progs/demos/smooth_opengl3/Makefile src/Makefile]) AC_OUTPUT