ptsname: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 15:18:22 +0000 (17:18 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:37 +0000 (00:06 +0200)
* m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
invocations from here...
* modules/ptsname (configure.ac): ... to here.

ChangeLog
m4/ptsname.m4
modules/ptsname

index edb2ee8314e2fd4056c3efda5fba144c3621bc1a..3ee420e7e3030615962ce1ce059fcb03e9884ea6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       ptsname: Move AC_LIBOBJ invocations to module description.
+       * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
+       invocations from here...
+       * modules/ptsname (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        pread: Move AC_LIBOBJ invocations to module description.
index 06d0441cf4fa6bf1441c43ef59a9fe42f75a6058..4dba5f375ab411d1a7851c04f59499dea93ec626 100644 (file)
@@ -1,4 +1,4 @@
-# ptsname.m4 serial 1
+# ptsname.m4 serial 2
 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,
@@ -14,8 +14,6 @@ AC_DEFUN([gl_FUNC_PTSNAME],
   AC_CHECK_FUNCS([ptsname])
   if test $ac_cv_func_ptsname = no; then
     HAVE_PTSNAME=0
-    AC_LIBOBJ([ptsname])
-    gl_PREREQ_PTSNAME
   fi
 ])
 
index ab14894d3be1eeeab7160a037ef8a037a4f725fe..985b79ba5ee1cc6c49a4f7fad24cb83dfdfc9375 100644 (file)
@@ -12,6 +12,10 @@ ttyname_r       [test $HAVE_PTSNAME = 0]
 
 configure.ac:
 gl_FUNC_PTSNAME
+if test $HAVE_PTSNAME = 0; then
+  AC_LIBOBJ([ptsname])
+  gl_PREREQ_PTSNAME
+fi
 gl_STDLIB_MODULE_INDICATOR([ptsname])
 
 Makefile.am: