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
40 # Build time configuration.
41 AC_ARG_ENABLE([replace-glut],
42 [AS_HELP_STRING([--enable-replace-glut],
43 [be a replacement for GLUT @<:@default=yes@:>@])])
44 if test "x$enable_replace_glut" != xno; then
54 AC_ARG_ENABLE([warnings],
55 [AS_HELP_STRING([--enable-warnings],
56 [use all gcc compiler warnings @<:@default=yes@:>@])])
57 if test "x$enable_warnings" != xno -a "x$GCC" = xyes; then
58 CFLAGS="$CFLAGS -Wall -pedantic -Werror"
62 AC_CONFIG_FILES([Makefile
67 progs/demos/CallbackMaker/Makefile
68 progs/demos/Fractals/Makefile
69 progs/demos/Fractals_random/Makefile
70 progs/demos/Lorenz/Makefile
72 progs/demos/One/Makefile
73 progs/demos/shapes/Makefile