OCamlPro/opam-repository — pull request #109 by pveber (2012-10-07 08:44:44+00:00)
Title: ocamlsdl: optional dependency on lablgl

ocamlsdl has a module Sdlgl which is compiled only if lablgl is available. Without this patch ocamlsdl is unconditionnally compiled without GL support.

The patch works but maybe is not as elegant as it could be: the switch --with-lablgldir is always present but indicates a wrong directory if lablgl is not installed. It doesn't bother ocamlsdl makefile, but it sure would be nicer to put the switch on the command line only if lablgl is installed. Is there a way to do that currently?