readline: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 15:56:39 +0000 (17:56 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:40 +0000 (00:06 +0200)
* m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
gl_PREREQ_READLINE invocations from here...
* modules/readline (configure.ac): ... to here.

ChangeLog
m4/readline.m4
modules/readline

index 02c6a7c..b2537dd 100644 (file)
--- 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.
index 90ce357..a5ab067 100644 (file)
@@ -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_DEFUN([gl_FUNC_READLINE],
   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.
index 7f2af8f..9cee3bb 100644 (file)
@@ -12,6 +12,10 @@ getline         [test "$gl_cv_lib_readline" = no]
 
 configure.ac:
 gl_FUNC_READLINE
+if test "$gl_cv_lib_readline" = no; then
+  AC_LIBOBJ([readline])
+  gl_PREREQ_READLINE
+fi
 
 Makefile.am: