diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-03-23 04:11:35 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-03-23 04:11:35 +0100 |
commit | 33c51445de63d4dc7935571587fc8864485f542b (patch) | |
tree | 26728d0d0b34c9115955f9f8a9e8d0ebf6bd812a | |
parent | 26323c12c942d0597507cd9ca3f7fdc40c4e60e8 (diff) | |
download | ratpoison-33c51445de63d4dc7935571587fc8864485f542b.zip |
Don't link against libhistory by default.
-rw-r--r-- | configure.ac | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index b7e2a1a..2e0a036 100644 --- a/configure.ac +++ b/configure.ac @@ -134,26 +134,26 @@ fi dnl Those who do not learn the lessons of history dnl are doomed to delete it... yuk yuk. --ttn AC_ARG_ENABLE([history], - AS_HELP_STRING([--disable-history], - [ignore libhistory (default: use it if available, only used for ! expansion)]), - [], [enable_history=default]) + AS_HELP_STRING([--enable-history], + [Link with libhistory (default: disabled. Note: only used for ! expansion)]), + [], [enable_history=no]) HISTORY_LIBS= have_history=no AS_CASE([$enable_history], [no], [], - [yes|default], + [yes], [AC_CHECK_HEADERS([readline/history.h], [AC_CHECK_LIB([history], [add_history], [have_history=yes], [])], [])], - [AC_MSG_ERROR([invalid --enable-history="$enable_history" parameter])]) + [AC_MSG_ERROR([invalid --disable-history="$enable_history" parameter])]) AC_MSG_CHECKING([whether to use libhistory]) AS_CASE([$enable_history:$have_history], [yes:no], [AC_MSG_ERROR([Can't find history headers/lib. \ Install readline dev libs for history expansion.])], - [default:no|no:*], [AC_MSG_RESULT([no])], - [*:yes], [AC_MSG_RESULT([yes]) + [no:*], [AC_MSG_RESULT([no])], + [yes:yes], [AC_MSG_RESULT([yes]) AC_DEFINE_UNQUOTED(HAVE_HISTORY, 1, Define this to enable history) HISTORY_LIBS="-lhistory"]) |