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 2E7099DC80A for ; Tue, 14 Feb 2006 08:46:08 -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 04388-04 for ; Tue, 14 Feb 2006 08:46:05 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by postgresql.org (Postfix) with ESMTP id 953FD9DC804 for ; Tue, 14 Feb 2006 08:45:53 -0400 (AST) Received: from [84.173.62.59] (helo=[192.168.1.10]) by mrelayeu.kundenserver.de (node=mrelayeu2) with ESMTP (Nemesis), id 0MKwtQ-1F8zZ61pxB-0003aV; Tue, 14 Feb 2006 13:45:56 +0100 Message-ID: <43F1D106.3040700@online.de> Date: Tue, 14 Feb 2006 13:45:58 +0100 From: Christoph Zwerschke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041206 Thunderbird/1.0 Mnenhy/0.6.0.104 MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: Re: Finding the pqlib version References: <43EDC399.6060203@online.de> <200602111450.17325.peter_e@gmx.net> <1139920780.11729.2.camel@localhost.localdomain> In-Reply-To: <1139920780.11729.2.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:d4c19f41f9a9703255691874c1441822 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.08 required=5 tests=[AWL=0.080] X-Spam-Score: 0.08 X-Spam-Level: X-Archive-Number: 200602/52 X-Sequence-Number: 6016 Murray Cumming wrote: > On Sat, 2006-02-11 at 14:50 +0100, Peter Eisentraut wrote: >> Christoph Zwerschke wrote: >>> However, there is no such thing as "PQLIB_VERSION_MAJOR". >>> Anything else I could query instead? >> You should query the presence of the function, not the version of the >> library. > > If pqlib installed a pkg-config .pc file then this would be simpler. Yes. You could use pg_config, but this is usually only included in the server package, not in the libs package. -- Christoph