Re: Dependency on Camlp4
Jacques Garrigue <[email protected]> Wed, 5 Nov 2014 10:55:32 +0900
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
On 2014/11/05 00:48, Boris Yakobowski wrote: > > Dear all, > > Now that Camlp4 is no longer distributed along with OCaml, compiling Lablgtk with OCaml's trunk has become problematic. As far as I can see, Lablgtk uses Camlp4 for 2 reasons : > (1) 'IFDEF HAS_PRINTEXC_BACKTRACE THEN' in gtkSignal.ml4 > (2) Concrete syntax [< ... >] for streams in 3 other .ml4 files > > For (1), this could (and probably should) be replaced by a call to sed. > For (2), the .ml files could be packaged with the source distribution of Lablgtk, and optionally regenerated by a special Makefile rule. > > Would those changes be acceptable to you ? They would make life much easier for us. Well, LablGTK is not the only package depending on camlp4. But I agree that the dependency is hardly essential, and could be avoided easily. For (2) processing in advance is indeed the answer. For (1) I would rather suggest to do it in the configure script: we could add a gtk_config.ml, containing interesting results of the configuration. Jacques