X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=configure.in;h=f23725ec25da0d1994c5c03f9bf3d888f50fc860;hb=113c06a96687cf466979972f5780c3ddd4d5dee5;hp=f525baf5a60b8b41e37dbd640df0422bb11aa707;hpb=01763200472634c81cb7b7f7f6ad1ad5d02a4570;p=freeglut diff --git a/configure.in b/configure.in index f525baf..f23725e 100644 --- a/configure.in +++ b/configure.in @@ -35,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 \