fi;
changequote([, ])dnl
])
-dnl if test -d $srcdir/ghc -a ! -f $srcdir/ghc/compiler/parser/Lexer.hs; then
-dnl FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-lt],[2.0],
-dnl [AC_MSG_ERROR([Alex version 2.0 or later is required to compile GHC.])])[]dnl
-dnl fi
+if test -d $srcdir/ghc -a ! -f $srcdir/ghc/compiler/parser/Lexer.hs; then
+ FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-lt],[2.0],
+ [AC_MSG_ERROR([Alex version 2.0 or later is required to compile GHC.])])[]dnl
+fi
AlexVersion=$fptools_cv_alex_version;
AC_SUBST(AlexVersion)
])
GL_CFLAGS=
fi
- LIBS="$GLUT_X_LIBS"
+ dnl Keep the GL/GLU/GLX libs, but expand the rest to what GLUT needs.
+ dnl (Some systems, like OpenBSD, need the GL/GLU libs.)
+ LIBS=`echo "$LIBS" | sed "s@$GL_X_LIBS@$GLUT_X_LIBS@"`
FPTOOLS_SEARCH_LIBS([#include <GL/glut.h>], glutMainLoop, glut32 glut, have_glut=yes, have_glut=no)