From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.comp.sysutils.autoconf.general,gmane.lisp.guile.devel Subject: Re: How to replace a function Date: Fri, 07 Mar 2003 10:38:33 -0600 Sender: autoconf-bounces+gnu-autoconf=m.gmane.org@gnu.org Message-ID: <8765qvxhbq.fsf@raven.i.defaultvalue.org> References: <20030307123707.GA8811@www> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047057378 11115 80.91.224.249 (7 Mar 2003 17:16:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2003 17:16:18 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: autoconf-bounces+gnu-autoconf=m.gmane.org@gnu.org Fri Mar 07 18:16:15 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18rLSB-0002su-00 for ; Fri, 07 Mar 2003 18:16:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rLS9-00051M-06 for gnu-autoconf@m.gmane.org; Fri, 07 Mar 2003 12:16:13 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18rLQT-0004VR-00 for autoconf@gnu.org; Fri, 07 Mar 2003 12:14:29 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18rL6H-0006Gp-00 for autoconf@gnu.org; Fri, 07 Mar 2003 11:53:38 -0500 Original-Received: from dsl093-098-016.wdc1.dsl.speakeasy.net ([66.93.98.16] helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rKrh-0000yM-00; Fri, 07 Mar 2003 11:38:33 -0500 Original-Received: from raven.i.defaultvalue.org (raven.i.defaultvalue.org [192.168.1.7]) by defaultvalue.org (Postfix) with ESMTP id 561C077C; Fri, 7 Mar 2003 10:38:33 -0600 (CST) Original-Received: by raven.i.defaultvalue.org (Postfix, from userid 1000) id 4F7DFD9ED5; Fri, 7 Mar 2003 10:38:33 -0600 (CST) Original-To: tomas@fabula.de In-Reply-To: <20030307123707.GA8811@www> (tomas@fabula.de's message of "Fri, 7 Mar 2003 13:37:07 +0100") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) Original-cc: autoconf@gnu.org Original-cc: rm@fabula.de X-BeenThere: autoconf@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Discussion list for the autoconf build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: autoconf-bounces+gnu-autoconf=m.gmane.org@gnu.org Xref: main.gmane.org gmane.comp.sysutils.autoconf.general:2291 gmane.lisp.guile.devel:2054 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2054 tomas@fabula.de writes: > The problem is that AC_REPLACE_FUNCS will find one version > of the Guile library, whereas the version I'm going to link > against is the one returned by `guile-config link' or whatever. > > My question: Is there a canonical way to solve this? I.e. > is there a way to tell AC_REPLACE_FUNCS *which* library to > look into? Or is it just meant to cope with ``standard system > libraries'' and am I to re-invent the wheel and do a > tentative compile? If I understand what you're doing right, you might be able to just make sure that you have the right -L and -l args in LDFLAGS and LIBS before you call AC_REPLACE_FUNCS. However, even if this does work in the normal case, depending on how AC_REPLACE_FUNCs works, this may or may not work when cross-compiling. I don't really have any experience with AC_REPLACE_FUNCS in particular, so I'm just guessing here. Hope this helps -- Rob Browning rlb @defaultvalue.org, @linuxdevel.com, and @debian.org Previously @cs.utexas.edu GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4