changeset 15067:9ef4a2568d37

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.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 17:26:05 +0200
parents 554c82adb9b9
children fa9d03b9c554
files ChangeLog m4/pty.m4 modules/login_tty
diffstat 3 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
--- 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 @@
   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
 ])
--- a/modules/login_tty
+++ b/modules/login_tty
@@ -12,6 +12,9 @@
 
 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: