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

ChangeLog
m4/pty.m4
modules/forkpty

index 3ee420e..8b1d34c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       forkpty: Move AC_LIBOBJ invocations to module description.
+       * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
+       * modules/forkpty (configure.ac): ... to here.
+
+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...
index 399c340..1042a40 100644 (file)
--- a/m4/pty.m4
+++ b/m4/pty.m4
@@ -1,4 +1,4 @@
-# pty.m4 serial 9
+# pty.m4 serial 10
 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,
@@ -67,12 +67,10 @@ AC_DEFUN([gl_FUNC_FORKPTY],
       ])
     if test $gl_cv_func_forkpty_const != yes; then
       REPLACE_FORKPTY=1
-      AC_LIBOBJ([forkpty])
     fi
   else
     dnl The system does not have forkpty.
     HAVE_FORKPTY=0
-    AC_LIBOBJ([forkpty])
   fi
 ])
 
index 78ba504..b04a4da 100644 (file)
@@ -13,6 +13,9 @@ login_tty
 
 configure.ac:
 gl_FUNC_FORKPTY
+if test $HAVE_FORKPTY = 0 || test $REPLACE_FORKPTY = 1; then
+  AC_LIBOBJ([forkpty])
+fi
 gl_PTY_MODULE_INDICATOR([forkpty])
 
 Makefile.am: