Revision: 938
http://vcs.pcre.org/viewvc?view=rev&revision=938
Author: ph10
Date: 2012-02-26 16:08:15 +0000 (Sun, 26 Feb 2012)
Log Message:
-----------
Add /usr/include/edit/readline/ as somewhere where editline's header might be.
Modified Paths:
--------------
code/trunk/configure.ac
Modified: code/trunk/configure.ac
===================================================================
--- code/trunk/configure.ac 2012-02-26 15:58:56 UTC (rev 937)
+++ code/trunk/configure.ac 2012-02-26 16:08:15 UTC (rev 938)
@@ -570,11 +570,13 @@
fi
-# Check for the availability of libedit
+# Check for the availability of libedit. Different distributions put its
+# headers in different places. Try to cover the most common ones.
if test "$enable_pcretest_libedit" = "yes"; then
AC_CHECK_HEADERS([editline/readline.h], [HAVE_EDITLINE_READLINE_H=1],
- [AC_CHECK_HEADERS([readline/readline.h], [HAVE_READLINE_READLINE_H=1])])
+ [AC_CHECK_HEADERS([edit/readline/readline.h], [HAVE_READLINE_READLINE_H=1],
+ [AC_CHECK_HEADERS([readline/readline.h], [HAVE_READLINE_READLINE_H=1])])])
AC_CHECK_LIB([edit], [readline], [LIBEDIT="-ledit"])
fi