summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-12-02 21:41:12 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-12-02 21:41:12 +0000
commitc5bf116367bb3e8a6263d7f24c900abcdbf38955 (patch)
treefa66c022a40486197c4d89c9efe6b02174690108 /configure.in
parent4af2ea329bd69b5bdc2c4fc33c7673ca944edec5 (diff)
downloadpostgresql-c5bf116367bb3e8a6263d7f24c900abcdbf38955.tar.gz
Allow libedit to keep its headers in /usr/include/readline/ ... not a
very good practice IMHO, but apparently some people think so.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in28
1 files changed, 17 insertions, 11 deletions
diff --git a/configure.in b/configure.in
index cbb2279ffe..94cc0568e1 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.388 2004/12/02 15:32:50 momjian Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.389 2004/12/02 21:41:12 tgl Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -716,32 +716,38 @@ AC_CHECK_HEADERS(netinet/tcp.h, [], [],
if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
AC_CHECK_HEADERS(readline/readline.h, [],
- [AC_CHECK_HEADERS(readline.h, [],
- [AC_MSG_ERROR([readline header not found
+ [AC_CHECK_HEADERS(readline.h, [],
+ [AC_MSG_ERROR([readline header not found
If you have readline 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 readline support.])])])
AC_CHECK_HEADERS(readline/history.h, [],
- [AC_CHECK_HEADERS(history.h, [],
- [AC_MSG_ERROR([history header not found
+ [AC_CHECK_HEADERS(history.h, [],
+ [AC_MSG_ERROR([history header not found
If you have readline 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 readline support.])])])
fi
if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
+# Some installations of libedit usurp /usr/include/readline/, which seems
+# bad practice, since in combined installations readline will have its headers
+# there. We might have to resort to AC_EGREP checks to make sure we found
+# the proper header...
AC_CHECK_HEADERS(editline/readline.h, [],
- [AC_CHECK_HEADERS(readline.h, [],
- [AC_MSG_ERROR([readline header not found
+ [AC_CHECK_HEADERS(readline.h, [],
+ [AC_CHECK_HEADERS(readline/readline.h, [],
+ [AC_MSG_ERROR([readline header not found
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.])])])
+Use --without-readline to disable libedit support.])])])])
AC_CHECK_HEADERS(editline/history.h, [],
- [AC_CHECK_HEADERS(history.h, [],
- [AC_MSG_ERROR([history header not found
+ [AC_CHECK_HEADERS(history.h, [],
+ [AC_CHECK_HEADERS(readline/history.h, [],
+ [AC_MSG_ERROR([history header not found
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.])])])
+Use --without-readline to disable libedit support.])])])])
fi
if test "$with_zlib" = yes; then