AM_CONDITIONAL([MAKEINSTALL_DO_SETUID], [test "x$enable_makeinstall_setuid" = xyes])
+AC_ARG_ENABLE([makeinstall-tty-setgid],
+ AS_HELP_STRING([--disable-makeinstall-tty-setgid], [do not setgid for wall, and write during "make install"]),
+ [], [enable_makeinstall_tty_setgid=yes]
+)
+AM_CONDITIONAL([MAKEINSTALL_DO_TTY_SETGID], [test "x$enable_makeinstall_tty_setgid" = xyes])
+
+
+
AC_ARG_ENABLE([colors-default],
AS_HELP_STRING([--disable-colors-default], [do not colorize output from utils by default]),
[], [enable_colors_default=yes]
endif
if USE_TTY_GROUP
if MAKEINSTALL_DO_CHOWN
+if MAKEINSTALL_DO_TTY_SETGID
install-exec-hook-wall::
chgrp tty $(DESTDIR)$(usrbin_execdir)/wall
chmod g+s $(DESTDIR)$(usrbin_execdir)/wall
INSTALL_EXEC_HOOKS += install-exec-hook-wall
endif
endif
+endif
endif # BUILD_WALL
if USE_TTY_GROUP
if MAKEINSTALL_DO_CHOWN
+if MAKEINSTALL_DO_TTY_SETGID
install-exec-hook-write::
chgrp tty $(DESTDIR)$(usrbin_execdir)/write
chmod g+s $(DESTDIR)$(usrbin_execdir)/write
INSTALL_EXEC_HOOKS += install-exec-hook-write
endif
endif
+endif
endif # BUILD_WRITE