diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-10-05 00:07:45 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-10-05 00:07:45 +0000 |
| commit | 9e6c3582dda50fe1aa639203358864ca6cb2914b (patch) | |
| tree | cf5c2621b332c74cd2aba1ec79213b671dd18856 /configure.in | |
| parent | 03ea9ecbdacaaea906b26a1525cd4246dde5aec5 (diff) | |
| download | postgresql-9e6c3582dda50fe1aa639203358864ca6cb2914b.tar.gz | |
Second try at fixing libedit configuration for Bob Friesenhahn.
Buildfarm results from 'gazelle' show that there are indeed libedit
versions for which history.h is a needed header, even though it's
apparently been dropped entirely in other versions. Grumble.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 4d182f571b..5292146623 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $PostgreSQL: pgsql/configure.in,v 1.480 2006/10/04 22:31:13 tgl Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.481 2006/10/05 00:07:45 tgl Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -756,10 +756,12 @@ if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then If you have libedit already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-readline to disable libedit support.])])])]) -# Note: in a libedit installation, history.h is normally a dummy, and may -# not be there at all. The functions are declared in readline.h instead. -# To avoid including incompatible headers when both libraries are present, -# assume we do not need history.h. +# Note: in a libedit installation, history.h is sometimes a dummy, and may +# not be there at all. Hence, don't complain if not found. We must check +# though, since in yet other versions it is an independent header. + AC_CHECK_HEADERS(editline/history.h, [], + [AC_CHECK_HEADERS(history.h, [], + [AC_CHECK_HEADERS(readline/history.h)])]) fi if test "$with_zlib" = yes; then |
