pgsql: Ignore libedit/libreadline while probing for standard functions.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Ignore libedit/libreadline while probing for standard functions.
Date: 2012-12-18 21:24:29
Message-ID: E1Tl4eL-0007S2-63@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Ignore libedit/libreadline while probing for standard functions.

Some versions of libedit expose bogus definitions of setproctitle(),
optreset, and perhaps other symbols that we don't want configure to pick up
on. There was a previous report of similar problems with strlcpy(), which
we addressed in commit 59cf88da91bc88978b05275ebd94ac2d980c4047, but the
problem has evidently grown in scope since then. In hopes of not having to
deal with it again in future, rearrange configure's tests for supplied
functions so that we ignore libedit/libreadline except when probing
specifically for functions we expect them to provide.

Per report from Christoph Berg, though this is slightly more aggressive
than his proposed patch.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2666a6d0b934b19d4a691b93a64c7d3208acad43

Modified Files
--------------
configure | 737 +++++++++++++++++++++++++++++-----------------------------
configure.in | 31 ++--
2 files changed, 385 insertions(+), 383 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2012-12-18 21:32:56 pgsql: Don't include postgres.h in postgres_fe.h for cpluspluscheck.
Previous Message hubert depesz lubaczewski 2012-12-18 11:42:16 Re: [COMMITTERS] pgsql: Allow a streaming replication standby to follow a timeline switc