X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 49C909DC834 for ; Sat, 11 Feb 2006 13:40:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 63148-04 for ; Sat, 11 Feb 2006 13:40:24 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id D73F99DC82F for ; Sat, 11 Feb 2006 13:40:22 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k1BHeMY01646; Sat, 11 Feb 2006 12:40:22 -0500 (EST) From: Bruce Momjian Message-Id: <200602111740.k1BHeMY01646@candle.pha.pa.us> Subject: Re: Finding the pqlib version In-Reply-To: <43EE066B.7000900@online.de> To: Christoph Zwerschke Date: Sat, 11 Feb 2006 12:40:22 -0500 (EST) CC: pgsql-interfaces@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.125 required=5 tests=[AWL=0.125] X-Spam-Score: 0.125 X-Spam-Level: X-Archive-Number: 200602/31 X-Sequence-Number: 5995 Christoph Zwerschke wrote: > Peter Eisentraut wrote: > > You should query the presence of the function, not the version of the > > library. > > Yes, but it will complicate things. I will probably have to use > something like "configure" to do this. So far, this hasn't been > necessary. So I'd prefer a simple hack. Or how would you to this? I was wondering that myself. I am thinking you would need to use dlopen() to check for the symbol. Because the libpq version could change after you compile, I can't see how you could make it a configure check unless you said you don't allow changes to libpq after the build. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073