summaryrefslogtreecommitdiff
path: root/modules/readline
diff options
context:
space:
mode:
Diffstat (limited to 'modules/readline')
-rw-r--r--modules/readline9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/readline b/modules/readline
index 9cee3bb271..137ee2a976 100644
--- a/modules/readline
+++ b/modules/readline
@@ -12,12 +12,15 @@ getline [test "$gl_cv_lib_readline" = no]
configure.ac:
gl_FUNC_READLINE
-if test "$gl_cv_lib_readline" = no; then
- AC_LIBOBJ([readline])
+gl_CONDITIONAL([GL_COND_OBJ_READLINE], [test "$gl_cv_lib_readline" = no])
+AM_COND_IF([GL_COND_OBJ_READLINE], [
gl_PREREQ_READLINE
-fi
+])
Makefile.am:
+if GL_COND_OBJ_READLINE
+lib_SOURCES += readline.c
+endif
Include:
"readline.h"