From e2c09904b9b9bece1350cc736fed723732dfc0e0 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 22 Dec 2020 19:26:16 -0500 Subject: Fail if building --with-libedit and can't find libedit Previously, configure --with-libedit would only fail in the case where libedit is available but its header file histedit.h is not. --- bin/dash/configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/dash') diff --git a/bin/dash/configure.ac b/bin/dash/configure.ac index 33f0b08c..9d96f5af 100644 --- a/bin/dash/configure.ac +++ b/bin/dash/configure.ac @@ -175,7 +175,8 @@ if test "$with_libedit" = "yes"; then AC_CHECK_LIB(edit, history_init, [ AC_CHECK_HEADER([histedit.h], [use_libedit="yes"], AC_MSG_ERROR( - [Can't find required header files.]))]) + [Can't find required header files.]))], [ + AC_MSG_ERROR([Can't find libedit.])]) fi if test "$use_libedit" != "yes"; then AC_DEFINE([SMALL], 1, [Define if you build with -DSMALL]) -- cgit 1.4.1