X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=configure.in;h=f23725ec25da0d1994c5c03f9bf3d888f50fc860;hb=55c89b69c614edb681058caf4ab1d77db7569d29;hp=fa8c7a06ad776410aa874c2209403d37906a7175;hpb=5a1684a1effc7c8dca1df51280714269313ed578;p=freeglut diff --git a/configure.in b/configure.in index fa8c7a0..f23725e 100644 --- a/configure.in +++ b/configure.in @@ -1,14 +1,13 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(Makefile.am) -AM_INIT_AUTOMAKE(freeglut,2.0.0) +AM_INIT_AUTOMAKE(freeglut,2.0.1) AM_CONFIG_HEADER(config.h) dnl Checks for programs. AC_PROG_CC AC_C_CONST AC_EXEEXT -AC_PROG_RANLIB AC_LIBTOOL_DLOPEN AM_PROG_LIBTOOL AC_SUBST(LIBTOOL_DEPS) @@ -36,11 +35,27 @@ dnl Checks for library functions. AC_CHECK_LIBM AC_SUBST(LIBM) +dnl Build time configuration + +AC_ARG_ENABLE(replace-glut, +[ --disable-replace-glut Coexist with existing glut library]) +if test "x$enable_replace_glut" != xno +then + LIBRARY=glut + HEADER=glut.h +else + LIBRARY=freeglut + HEADER= +fi +AC_SUBST(LIBRARY) +AC_SUBST(HEADER) + AC_OUTPUT(\ Makefile \ doc/Makefile \ progs/Makefile \ progs/demos/Makefile \ + progs/demos/CallbackMaker/Makefile \ progs/demos/Fractals/Makefile \ progs/demos/Fractals_random/Makefile \ progs/demos/Lorenz/Makefile \