Yep that'll have the same effect as what I was trying.<div><br></div><div>Ordinarily in a nonstandard directory that might be the preferred way to set it, but in this case where pg_config is found and being <span></span>used it should really be using the output of that within the configure script itself IMHO.</div>
<div><br></div><div>-Steve</div><div><br></div><div><br><br>On Saturday, June 15, 2013, wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Claus / Steven<br>
<br>
I have also bee having problems with freeswitch find libpq. I have tried with version 1.2.10 down to 1.2.7. what i've found on my system<br>
<br>
Platform CentOS 6.4<br>
Postgresql 9.2<br>
<br>
using the following configure options<br>
./configure --enable-core-pgsql-support LDFLAGS="-L/usr/pgsql-9.2/lib" CPPFLAGS="-I/usr/pgsql-9.2/include"<br>
<br>
freeswitch no longer complains about not finding lpg. Another error is thrown out. This new problem is to do with mod_xml_scgi which seems to be an old bug and the problem I'm having currently.<br>
<br>
Try the options given above and see. I suspect you only need the --enable-core-pgsql-support.<br>
<br>
Kellon<br>
<br>
<br>
<br>
From: Claus Andersen <<a href="javascript:;" onclick="_e(event, 'cvml', 'clan@wheel.dk')">clan@wheel.dk</a>><br>
Date: 06/14/13 12:07Subject: Re: [Freeswitch-users] configure fails to find libpq<br>
<br>
On Fri, 14 Jun 2013, Steven Ayre wrote:<br>
<br>
> Adding this line immediately before AC_CHECK_LIB, bootstrap.sh again, and then try configure.<br>
> LDFLAGS="$LDFLAGS `$PG_CONFIG --libdir`"<br>
><br>
> It's a possible workaround rather than an actual fix (and an ugly one at that since it then keeps that lib<br>
> directory for the rest of the script). One I haven't actually tested since libpq-dev on my system (Debian)<br>
> installs to /usr/lib so doesn't have your issue. So let us know how you get on with it.<br>
><br>
> If detected POSTGRESQL_LDFLAGS is already set containing the correct path so if that's what gets used by the<br>
> build it might not be a problem past the configure stage.<br>
<br>
I assume that the following has the same effect:<br>
<br>
$ LDFLAGS="${LDFLAGS} -L/usr/pgsql-9.2/lib"<br>
$ export LDFLAGS<br>
$./configure --enable-core-pgsql-support<br>
<br>
This fails during make and I have written a sperate mail to that effect. I<br>
will try your suggestion as well.<br>
<br>
Would the proper procedure be to file a new bug or should the make error<br>
be filed as a seperate (but related) bug?<br>
<br>
Kind Regards,<br>
Claus Andersen </blockquote></div>