ttyname_r: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 15:10:24 +0000 (17:10 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:07:02 +0000 (00:07 +0200)
* 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.

ChangeLog
m4/ttyname_r.m4
modules/ttyname_r

index f7dc3c1..84009ea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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.
        * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
        invocations from here...
index 5d26bc9..a0308a6 100644 (file)
@@ -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 @@ main (void)
       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.
index 8e79bf3..f68d9b1 100644 (file)
@@ -11,6 +11,10 @@ extensions
 
 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: