changeset 15073:5235b13c9a16

readline: Move AC_LIBOBJ invocations to module description. * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and gl_PREREQ_READLINE invocations from here... * modules/readline (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 17:56:39 +0200
parents a30201cdf27e
children 79164b84def4
files ChangeLog m4/readline.m4 modules/readline
diffstat 3 files changed, 12 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+	readline: Move AC_LIBOBJ invocations to module description.
+	* m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
+	gl_PREREQ_READLINE invocations from here...
+	* modules/readline (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
 	read: Move AC_LIBOBJ invocations to module description.
 	* m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
 	* modules/read (configure.ac): ... to here.
--- a/m4/readline.m4
+++ b/m4/readline.m4
@@ -1,4 +1,4 @@
-# readline.m4 serial 8
+# readline.m4 serial 9
 dnl Copyright (C) 2005-2006, 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -73,11 +73,6 @@
   AC_SUBST([LTLIBREADLINE])
 
   AC_CHECK_HEADERS([readline/readline.h])
-
-  if test "$gl_cv_lib_readline" = no; then
-    AC_LIBOBJ([readline])
-    gl_PREREQ_READLINE
-  fi
 ])
 
 # Prerequisites of lib/readline.c.
--- a/modules/readline
+++ b/modules/readline
@@ -12,6 +12,10 @@
 
 configure.ac:
 gl_FUNC_READLINE
+if test "$gl_cv_lib_readline" = no; then
+  AC_LIBOBJ([readline])
+  gl_PREREQ_READLINE
+fi
 
 Makefile.am: