From f30d8b018871495327cbf711b73b04278a34f3e1 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 11 Mar 2014 09:24:16 +0100 Subject: [PATCH] List readline support in configure summary * m4/readline.m4: Set gnupg_cv_have_readline. * configure.ac: Add readline support to summary output. -- Readline is an optional feature which is build if the readline development files are available on the build systems. Too often they are missing on a (new) build machine which at least makes debugging inconvenient. Backport useful code from fixes for bug 1447. * configure.ac: Cehck for inet_ntop. * m4/libcurl.m4: Provide a #define for the version of the curl library. -- We do not have keyserver helpers anymore but this fixes may come handy eventually. --- configure.ac | 1 + m4/readline.m4 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 4b12f01df..c20984afd 100644 --- a/configure.ac +++ b/configure.ac @@ -1870,6 +1870,7 @@ echo " Use standard socket: $use_standard_socket Dirmngr auto start: $dirmngr_auto_start + Readline support: $gnupg_cv_have_readline " if test x"$use_regex" != xyes ; then echo " diff --git a/m4/readline.m4 b/m4/readline.m4 index 783f40123..0c9619dea 100644 --- a/m4/readline.m4 +++ b/m4/readline.m4 @@ -10,6 +10,7 @@ dnl dnl Defines HAVE_LIBREADLINE to 1 if a working readline setup is dnl found, and sets @LIBREADLINE@ to the necessary libraries. + AC_DEFUN([GNUPG_CHECK_READLINE], [ AC_ARG_WITH(readline, @@ -17,6 +18,7 @@ AC_DEFUN([GNUPG_CHECK_READLINE], [look for the readline library in DIR]), [_do_readline=$withval],[_do_readline=yes]) + gnupg_cv_have_readline=no if test "$_do_readline" != "no" ; then if test -d "$withval" ; then CPPFLAGS="${CPPFLAGS} -I$withval/include" @@ -51,6 +53,7 @@ rl_completion_matches(NULL,NULL); AC_DEFINE(HAVE_LIBREADLINE,1, [Define to 1 if you have a fully functional readline library.]) AC_SUBST(LIBREADLINE,$_combo) + gnupg_cv_have_readline=yes break fi done