diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 4507e85..9b004dc 100644 --- a/configure.ac +++ b/configure.ac  | |||
| @@ -101,11 +101,14 @@ AC_ARG_WITH([tools], | |||
| 101 | [with_tools=yes]) | 101 | [with_tools=yes]) | 
| 102 | 102 | ||
| 103 | AS_IF([test "x$with_tools" = "xyes"], [ | 103 | AS_IF([test "x$with_tools" = "xyes"], [ | 
| 104 | have_readline=no | ||
| 104 | AC_DEFINE(BUILD_TOOLS, 1, [Define if we are building irecovery tools]) | 105 | AC_DEFINE(BUILD_TOOLS, 1, [Define if we are building irecovery tools]) | 
| 105 | AC_CHECK_HEADERS([readline/readline.h], | 106 | AC_CHECK_HEADERS([readline/readline.h], | 
| 106 | [AC_DEFINE(HAVE_READLINE, 1, [Define if readline is available])], | 107 | [AC_DEFINE(HAVE_READLINE, 1, [Define if readline is available]) | 
| 108 | have_readline=yes], | ||
| 107 | [AC_MSG_NOTICE([NOTE: Building without readline support. If you want readline support, install its development package.])] | 109 | [AC_MSG_NOTICE([NOTE: Building without readline support. If you want readline support, install its development package.])] | 
| 108 | ) | 110 | ) | 
| 111 | AM_CONDITIONAL(HAVE_READLINE, test "x$have_readline" = "xyes") | ||
| 109 | ]) | 112 | ]) | 
| 110 | AM_CONDITIONAL(BUILD_TOOLS, test "x$with_tools" = "xyes") | 113 | AM_CONDITIONAL(BUILD_TOOLS, test "x$with_tools" = "xyes") | 
| 111 | 114 | ||
