Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 93750 invoked from network); 16 Nov 2005 22:20:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Nov 2005 22:20:13 -0000 Received: (qmail 60238 invoked by uid 500); 16 Nov 2005 22:19:58 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 59446 invoked by uid 500); 16 Nov 2005 22:19:56 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 59429 invoked by uid 99); 16 Nov 2005 22:19:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2005 14:19:56 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [213.4.129.135] (HELO telesmtp8.mail.isp) (213.4.129.135) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2005 14:21:29 -0800 Received: from [80.32.146.155] ([80.32.146.155]) by telesmtp8.mail.isp (terra.es) with ESMTP id IQ2JCK01.8BH for ; Wed, 16 Nov 2005 23:19:32 +0100 Message-ID: <437BB074.40103@telefonica.net> Date: Wed, 16 Nov 2005 23:19:32 +0100 From: Jean-frederic Clere Reply-To: jfclere@sinix.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041023 X-Accept-Language: en, fr MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: JCHEVM builds and runs References: <4377BAEC.70207@dellroad.org> <437B8CA8.3040607@telefonica.net> <437B9527.4070005@dellroad.org> <437B9CD1.7020909@telefonica.net> <437BA071.1040504@dellroad.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Tom Tromey wrote: >>>>>>"Archie" == Archie Cobbs writes: >>>>>> >>>>>> > >Archie> Great! What O/S are you using? Do you know a good ./configure test >Archie> for whether "-ldl" is required? > >The usual thing is to pick whatever symbol is used by the package and >do a series of AC_CHECK_LIB calls. The original poster didn't say how >the link failed, but for instance if dlopen was missing you would look >for that. There's an example of this for dlopen and friends in >libltdl (part of libtool). > >There's no hard and fast rule for knowing what functions to check for. > >I'd say to look at APR before spending a lot of time on configury >though. > > The following patch helps for most unix like machine: +++ jfclere@jfcexpert:~/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm> svn diff configure.in Index: configure.in =================================================================== --- configure.in (revision 345091) +++ configure.in (working copy) @@ -80,6 +80,7 @@ [AC_MSG_ERROR([required library crypto missing])]) AC_CHECK_LIB(popt, poptGetContext,, [AC_MSG_ERROR([required library libpopt missing])]) +AC_CHECK_LIB(dl, dlopen,,,) # Check for pthread library, linking either via -pthread or -lpthread AC_MSG_CHECKING([whether -pthread gets us the pthread library]) +++ >Tom > > >