From e858c3b8c07ed6a62b24cada4ec63f78905af7e9 Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Thu, 23 Mar 2017 09:48:58 -0700 Subject: [PATCH] build: Check for the presence of readline --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 124728ff..68a92eb8 100644 --- a/configure.ac +++ b/configure.ac @@ -72,6 +72,9 @@ AC_DEFINE_UNQUOTED(CONFIGDIR, "/etc/iwd", [Configuration directory]) AC_CHECK_HEADERS(linux/types.h linux/if_alg.h) +AC_CHECK_HEADERS(readline/readline.h, enable_readline=yes, + AC_MSG_ERROR(readline header files are required)) + AC_PATH_PROG(A2X, [a2x], [], $PATH:/sbin:/usr/sbin) AM_CONDITIONAL(BUILD_DOCS, test "$A2X" != "")