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

ChangeLog
m4/pty.m4
modules/login_tty

index f832499..814725a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       login_tty: Move AC_LIBOBJ invocations to module description.
+       * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
+       * modules/login_tty (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        openpty: Move AC_LIBOBJ invocations to module description.
        * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
        * modules/openpty (configure.ac): ... to here.
index fc99e73..cc31d8b 100644 (file)
--- a/m4/pty.m4
+++ b/m4/pty.m4
@@ -1,4 +1,4 @@
-# pty.m4 serial 11
+# pty.m4 serial 12
 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,
@@ -143,7 +143,4 @@ AC_DEFUN([gl_FUNC_LOGIN_TTY],
   LIBS="$LIBS $PTY_LIB"
   AC_CHECK_FUNCS([login_tty])
   LIBS="$gl_saved_LIBS"
-  if test $ac_cv_func_login_tty = no; then
-    AC_LIBOBJ([login_tty])
-  fi
 ])
index 53c5cae..abf7482 100644 (file)
@@ -12,6 +12,9 @@ sys_ioctl
 
 configure.ac:
 gl_FUNC_LOGIN_TTY
+if test $ac_cv_func_login_tty = no; then
+  AC_LIBOBJ([login_tty])
+fi
 gl_PTY_MODULE_INDICATOR([login_tty])
 
 Makefile.am: