aboutsummaryrefslogtreecommitdiffstats
path: root/conf/m4/plptools/PLP_CHECK_READLINE.m4
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2007-12-07 22:07:37 +0000
committerReuben Thomas <rrt@sc3d.org>2007-12-07 22:07:37 +0000
commit6552c17a058165061a0ad9271b9178d2e593f651 (patch)
tree000117911f9cb3d9fecaf238439f4ebb93774250 /conf/m4/plptools/PLP_CHECK_READLINE.m4
parent31a65bcab58968b635c391bd21a0b8e37a2d473c (diff)
downloadplptools-6552c17a058165061a0ad9271b9178d2e593f651.tar.gz
plptools-6552c17a058165061a0ad9271b9178d2e593f651.tar.bz2
plptools-6552c17a058165061a0ad9271b9178d2e593f651.zip
Remove unused m4 tests, and test for readline version; we should all
be using at least 4.2 by now.
Diffstat (limited to 'conf/m4/plptools/PLP_CHECK_READLINE.m4')
-rw-r--r--conf/m4/plptools/PLP_CHECK_READLINE.m423
1 files changed, 0 insertions, 23 deletions
diff --git a/conf/m4/plptools/PLP_CHECK_READLINE.m4 b/conf/m4/plptools/PLP_CHECK_READLINE.m4
index 4762c6a..df4e8d8 100644
--- a/conf/m4/plptools/PLP_CHECK_READLINE.m4
+++ b/conf/m4/plptools/PLP_CHECK_READLINE.m4
@@ -53,28 +53,5 @@ AC_DEFUN([PLP_CHECK_READLINE],
AC_SUBST(LIBREADLINE)
if test "${ac_cv_readline_libs}" != "" ; then
AC_DEFINE_UNQUOTED(HAVE_LIBREADLINE,1,$rl_desc)
- PLP_READLINE_VERSION
- fi
-])
-
-dnl
-dnl Check for readline version.
-dnl Those readline developers change their API too frequently
-dnl and don't provide a version number in the headers :-(
-dnl
-AC_DEFUN([PLP_READLINE_VERSION],
-[
- AC_MSG_CHECKING(for readline version)
- saved_libs=$LIBS
- LIBS="$LIBS $LIBREADLINE"
- rl42=false
- AC_TRY_LINK(,[extern void rl_set_prompt(void); rl_set_prompt();],rl42=true)
- LIBS="$saved_LIBS"
- if $rl42 ; then
- AC_MSG_RESULT(4.2 or greater)
- AC_DEFINE_UNQUOTED(READLINE_VERSION,402)
- else
- AC_DEFINE_UNQUOTED(READLINE_VERSION,401)
- AC_MSG_RESULT(4.1 or less)
fi
])