-AC_ARG_ENABLE(hopengl,
-[ --enable-hopengl
- Build HOpenGL, a Haskell binding for OpenGL/GLUT.
- On Mac OS X, use --enable-hopengl=x11 to use X11 instead
- of the "native" libraries.
-],
-[GhcLibsWithOpenGL=YES; GhcLibsWithGLUT=YES],
-[GhcLibsWithOpenGL=NO; GhcLibsWithGLUT=NO]
-)
-UseQuartzOpenGL=NO
-if test x"$TargetOS_CPP" = x"darwin"; then
- if test x"$enable_hopengl" != x"x11"; then
- AC_DEFINE([USE_QUARTZ_OPENGL], [1],
- [Define to 1 if native OpenGL should be used on Mac OS X])
- UseQuartzOpenGL=YES
- fi
-fi
-
-AC_SUBST([GhcLibsWithOpenGL])
-AC_SUBST([GhcLibsWithGLUT])
+AC_ARG_ENABLE([openal],
+ AC_HELP_STRING([--enable-openal],
+ [Build OpenAL binding [[default=autodetect]]]),
+ [ if test x"$enableval" = x"yes"; then
+ GhcLibsWithOpenAL=YES
+ else
+ GhcLibsWithOpenAL=NO
+ fi
+ ],
+ [GhcLibsWithOpenAL=yes])
+
+AC_SUBST([GhcLibsWithOpenAL])