changeset 15131:9ed2584c6e17

ttyname_r: Move AC_LIBOBJ invocations to module description. * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and gl_PREREQ_TTYNAME_R invocations from here... * modules/ttyname_r (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 17:10:24 +0200
parents 34dd4b9c2452
children f1a244185b18
files ChangeLog m4/ttyname_r.m4 modules/ttyname_r
diffstat 3 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	ttyname_r: Move AC_LIBOBJ invocations to module description.
+	* m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
+	gl_PREREQ_TTYNAME_R invocations from here...
+	* modules/ttyname_r (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	tsearch: Move AC_LIBOBJ invocations to module description.
--- a/m4/ttyname_r.m4
+++ b/m4/ttyname_r.m4
@@ -1,4 +1,4 @@
-# ttyname_r.m4 serial 7
+# ttyname_r.m4 serial 8
 dnl Copyright (C) 2010-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,
@@ -93,10 +93,6 @@
       esac
     fi
   fi
-  if test $HAVE_TTYNAME_R = 0 || test $REPLACE_TTYNAME_R = 1; then
-    AC_LIBOBJ([ttyname_r])
-    gl_PREREQ_TTYNAME_R
-  fi
 ])
 
 # Prerequisites of lib/ttyname_r.c.
--- a/modules/ttyname_r
+++ b/modules/ttyname_r
@@ -11,6 +11,10 @@
 
 configure.ac:
 gl_FUNC_TTYNAME_R
+if test $HAVE_TTYNAME_R = 0 || test $REPLACE_TTYNAME_R = 1; then
+  AC_LIBOBJ([ttyname_r])
+  gl_PREREQ_TTYNAME_R
+fi
 gl_UNISTD_MODULE_INDICATOR([ttyname_r])
 
 Makefile.am: