From 5db5fe4511fe24255dd6abeecac61d7b83ceca12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Date: Tue, 30 May 2017 23:25:39 +0200 Subject: [PATCH] enable PAM by default, print configuration on ./configure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit also add BIG warning for people trying to build without it, basically running screen as root may make sense on some embedded linux, where you don't have users, but everyone else should use PAM while at it improve ./configure output to show final configuration Signed-off-by: Amadeusz Sławiński --- src/configure.ac | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/configure.ac b/src/configure.ac index abad58c..9e46f00 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -89,9 +89,9 @@ dnl Check user changeable stuff dnl AC_ARG_ENABLE(pam, AS_HELP_STRING([--enable-pam], - [enable PAM support (default: disabled)]), + [enable PAM support (default: enabled)]), [enable_pam=$enableval], - [enable_pam=no]) + [enable_pam=yes]) AC_ARG_ENABLE(utmp, AS_HELP_STRING([--enable-utmp], [enable utmp support (default: disabled)]), [enable_utmp=$enableval], @@ -203,3 +203,29 @@ dnl Generate files from *.in ones dnl AC_OUTPUT(Makefile doc/Makefile) + +dnl +dnl Print out config +dnl + +echo "" +echo "Configuration:" +echo "" +echo " PAM support: .............................. $enable_pam" +echo " telnet support: ........................... $enable_telnet" +echo " utmp support: ............................. $enable_utmp" +echo " global socket directory: .................. $enable_socket_dir" +echo "" +echo " system screenrc location: ................. $with_system_screenrc" +echo " pty mode: ................................. $with_pty_mode" +echo " pty group: ................................ $with_pty_group" +echo " pty on read only file system: ............. $with_pty_rofs" +echo "" + +AS_IF([test "x$enable_pam" != "xyes"], [ + echo "!!! WARNING !!!" + echo "YOU ARE DISABLING PAM SUPPORT!" + echo "FOR screen TO WORK IT WILL NEED TO RUN AS SUID root BINARY" + echo "THIS CONFIGURATION IS _HIGHLY_ NOT RECOMMENDED!" + echo "!!! WARNING !!!" +])