From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 2186DBB83 for ; Fri, 8 Sep 2006 16:52:03 +0200 (CEST) Received: from [128.93.8.195] (alceste.inria.fr [128.93.8.195]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k88Eq2Tv032521 for ; Fri, 8 Sep 2006 16:52:02 +0200 Message-ID: <45018392.6080107@inria.fr> Date: Fri, 08 Sep 2006 16:52:02 +0200 From: Guillaume Rousse User-Agent: Thunderbird 1.5.0.5 (X11/20060804) MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Re: ocaml support in autotools References: <44CE2C74.4070607@inria.fr> <44CE6483.9070205@tepkom.ru> <44D1F265.4040401@inria.fr> <20060804044055.79801082.bga@tepkom.ru> <1154669546.5926.34.camel@rosella.wigram> <20060804084134.GA19840@fork.recoil.org> In-Reply-To: <20060804084134.GA19840@fork.recoil.org> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 45018392.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; guillaume:01 guillaume:01 ocaml:01 anil:01 afaik:01 ocaml:01 tarball:01 lib:01 voluceau:01 rocquencourt:01 2006:98 stamps:98 wrote:01 wrote:01 78153:01 Anil Madhavapeddy wrote: > On Fri, Aug 04, 2006 at 03:32:26PM +1000, skaller wrote: >> AFAIK, you simply cannot 'autoconf' check a required library >> is available: the check will not reveal the version of Ocaml >> used to build that library .. and it must be built with >> the version of Ocaml being used for this tarball build >> or the library is useless. >> >> I think what you actually need to do is: >> >> (a) find the appropriate Ocaml program >> (b) find the candidate library >> (c) check the time stamps on both, and reject the library >> unless its date is newer than the ocaml program. >> > > You can simply run a test link against the OCaml library as part > of the AC_OCAML_CHECK_LIB (or whatever its called), just as is done > for C library testing. This will error out almost always if the > versions are out of sync. I also favor this option. -- Guillaume Rousse Projet Estime, INRIA Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France