On Mon, 21 Apr 2008 17:58:52 -0700 chromatic <[EMAIL PROTECTED]> wrote:
> On Monday 21 April 2008 17:02:27 Mark Glines wrote: > > > Another note, slightly off-topic: does OpenGL actually need a > > configuration/detection step at all? I notice neither SDL or > > PostgreSQL seem to have one. Maybe they're detecting everything at > > runtime, or maybe their generated stuff runs from make instead of > > from configure? On the other hand, the config system is > > modularized into nice neat little steps, which makes them terribly > > easy to write and maintain, so it seems a shame not to use them. :) > > PostgreSQL and SDL use NCI to link against existing shared > libraries. As I understand the OpenGL code (and the crypto code), > they actually build C code, which is a little more involved. Ok. So if the OpenGL and crypto code didn't have to generate custom C files, they wouldn't have to have all the extra infrastructure, right? Just a test that gets "skip_all"ed if the library can't be loaded at runtime, like pgsql has, no detection nonsense, no generation nonsense, no config-script testing nonsense. So is that the preferred method of implementing bindings for C libraries? Or is there such a thing as a "preferred method", to begin with? Mark