summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-22 18:02:39 -0500
committerJune McEnroe <june@causal.agency>2020-12-22 19:28:22 -0500
commitd856b81a310d813aad4a64128aad0ec07ef15929 (patch)
treeedb5210874ad0c9a05fb426f206a92b38b1acc4a
parentFail if building --with-libedit and can't find libedit (diff)
downloadsrc-d856b81a310d813aad4a64128aad0ec07ef15929.tar.gz
src-d856b81a310d813aad4a64128aad0ec07ef15929.zip
Build with libedit by default
Diffstat (limited to '')
-rw-r--r--bin/dash/configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/dash/configure.ac b/bin/dash/configure.ac
index 9d96f5af..43e71efd 100644
--- a/bin/dash/configure.ac
+++ b/bin/dash/configure.ac
@@ -169,9 +169,10 @@ if test "$have_st_mtim" = "yes"; then
 		[Define if your `struct stat' has `st_mtim'])
 fi
 
-AC_ARG_WITH(libedit, AS_HELP_STRING(--with-libedit, [Compile with libedit support]))
+AC_ARG_WITH(libedit,
+	AS_HELP_STRING(--without-libedit, [Compile without libedit support]))
 use_libedit=
-if test "$with_libedit" = "yes"; then
+if test "$with_libedit" != "no"; then
 	AC_CHECK_LIB(edit, history_init, [
 		AC_CHECK_HEADER([histedit.h], [use_libedit="yes"],
 				AC_MSG_ERROR(