1 # Process this file with autoconf to produce a configure script.
3 AC_INIT([freeglut library], [2.2.0], [freeglut-bugs@lists.sourceforge.net], [freeglut])
6 AC_CONFIG_SRCDIR([AUTHORS])
7 AC_CONFIG_HEADERS([config.h])
15 AC_SUBST([LIBTOOL_DEPS])
17 # Checks for libraries.
19 AC_CHECK_LIB([Xxf86vm], [XF86VidModeSwitchToMode],
20 [LIBXXF86VM=-lXxf86vm], [LIBXXF86VM=],
21 [$X_LIBS -lXext -lX11])
22 AC_SUBST([LIBXXF86VM])
24 # Checks for header files.
26 AC_CHECK_HEADERS([GL/gl.h GL/glu.h GL/glx.h fcntl.h limits.h sys/ioctl.h sys/param.h sys/time.h])
30 CFLAGS="$CFLAGS $X_CFLAGS"
31 AC_CHECK_HEADERS([X11/extensions/xf86vmode.h], [], [], [#include <X11/Xlib.h>])
34 # Checks for library functions.
35 AC_PROG_GCC_TRADITIONAL
39 # Build time configuration.
40 AC_ARG_ENABLE([replace-glut],
41 [AS_HELP_STRING([--enable-replace-glut],
42 [be a replacement for GLUT @<:@default=yes@:>@])])
43 if test "x$enable_replace_glut" != xno; then
53 AC_ARG_ENABLE([warnings],
54 [AS_HELP_STRING([--enable-warnings],
55 [use all gcc compiler warnings @<:@default=yes@:>@])])
56 if test "x$enable_warnings" != xno -a "x$GCC" = xyes; then
57 CFLAGS="$CFLAGS -Wall -pedantic -Werror"
61 AC_CONFIG_FILES([Makefile
66 progs/demos/CallbackMaker/Makefile
67 progs/demos/Fractals/Makefile
68 progs/demos/Fractals_random/Makefile
69 progs/demos/Lorenz/Makefile
71 progs/demos/One/Makefile
72 progs/demos/shapes/Makefile