summaryrefslogtreecommitdiff
path: root/modules/login_tty
diff options
context:
space:
mode:
Diffstat (limited to 'modules/login_tty')
-rw-r--r--modules/login_tty7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/login_tty b/modules/login_tty
index 551691e2c5..aa46b7f8b0 100644
--- a/modules/login_tty
+++ b/modules/login_tty
@@ -13,12 +13,13 @@ open [test $ac_cv_func_login_tty = no]
configure.ac:
gl_FUNC_LOGIN_TTY
-if test $ac_cv_func_login_tty = no; then
- AC_LIBOBJ([login_tty])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOGIN_TTY], [test $ac_cv_func_login_tty = no])
gl_PTY_MODULE_INDICATOR([login_tty])
Makefile.am:
+if GL_COND_OBJ_LOGIN_TTY
+lib_SOURCES += login_tty.c
+endif
Include:
extern int login_tty (int);