1 dnl Process this file with autoconf to produce a configure script.
4 AM_INIT_AUTOMAKE(freeglut,2.0.1)
5 AM_CONFIG_HEADER(config.h)
7 dnl Checks for programs.
13 AC_SUBST(LIBTOOL_DEPS)
15 dnl Checks for libraries.
18 AC_CHECK_LIB(Xxf86vm,XF86VidModeSwitchToMode,
19 LIBXXF86VM=-lXxf86vm,LIBXXF86VM=,$X_LIBS -lXext -lX11)
22 dnl Checks for header files.
24 AC_HAVE_HEADERS( GL/gl.h GL/glu.h GL/glx.h )
27 CFLAGS="$CFLAGS $X_CFLAGS"
28 AC_CHECK_HEADERS(X11/extensions/xf86vmode.h,,,[#include <X11/Xlib.h>])
31 dnl Checks for typedefs, structures, and compiler characteristics.
33 dnl Checks for library functions.
38 dnl Build time configuration
40 AC_ARG_ENABLE(replace-glut,
41 [ --disable-replace-glut Coexist with existing glut library])
42 if test "x$enable_replace_glut" != xno
57 progs/demos/Makefile \
58 progs/demos/CallbackMaker/Makefile \
59 progs/demos/Fractals/Makefile \
60 progs/demos/Fractals_random/Makefile \
61 progs/demos/Lorenz/Makefile \
62 progs/demos/One/Makefile \