pgsql: Ignore libedit/libreadline while probing for standard functions. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Ignore libedit/libreadline while probing for standard functions.
Date
Msg-id E1Tl4eL-0007SD-C6@gemulon.postgresql.org
Whole thread Raw
List 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
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/7f8a6ed233f90bc5438fced1119b0a70b0cb1068

Modified Files
--------------
configure    |  519 +++++++++++++++++++++++++++++-----------------------------
configure.in |   31 ++--
2 files changed, 276 insertions(+), 274 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Ignore libedit/libreadline while probing for standard functions.
Next
From: Tom Lane
Date:
Subject: pgsql: Ignore libedit/libreadline while probing for standard functions.