diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-02-10 22:28:54 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-02-10 22:28:54 +1100 |
commit | 2f9573df714b221acbf92f8b48645849475136fa (patch) | |
tree | e47752597eaf4b8fc78fecbc5c3e0019e1b57b5a | |
parent | 33370e0287649c135eef8e7a0e22aee754deeac5 (diff) |
- (dtucker) [configure.ac] Bug #919: Provide visible feedback for the
--disable-etc-default-login configure option.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.ac | 20 |
2 files changed, 19 insertions, 7 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20050210 | ||
2 | - (dtucker) [configure.ac] Bug #919: Provide visible feedback for the | ||
3 | --disable-etc-default-login configure option. | ||
4 | |||
1 | 20050209 | 5 | 20050209 |
2 | - (dtucker) OpenBSD CVS Sync | 6 | - (dtucker) OpenBSD CVS Sync |
3 | - dtucker@cvs.openbsd.org 2005/01/28 09:45:53 | 7 | - dtucker@cvs.openbsd.org 2005/01/28 09:45:53 |
@@ -2115,4 +2119,4 @@ | |||
2115 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 2119 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
2116 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 2120 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
2117 | 2121 | ||
2118 | $Id: ChangeLog,v 1.3647 2005/02/09 11:17:28 dtucker Exp $ | 2122 | $Id: ChangeLog,v 1.3648 2005/02/10 11:28:54 dtucker Exp $ |
diff --git a/configure.ac b/configure.ac index e79e89ac2..9d1d33282 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.239 2005/02/09 11:17:28 dtucker Exp $ | 1 | # $Id: configure.ac,v 1.240 2005/02/10 11:28:55 dtucker Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -2583,18 +2583,26 @@ fi | |||
2583 | 2583 | ||
2584 | # check for /etc/default/login and use it if present. | 2584 | # check for /etc/default/login and use it if present. |
2585 | AC_ARG_ENABLE(etc-default-login, | 2585 | AC_ARG_ENABLE(etc-default-login, |
2586 | [ --disable-etc-default-login Disable using PATH from /etc/default/login [no]],, | 2586 | [ --disable-etc-default-login Disable using PATH from /etc/default/login [no]], |
2587 | [ AC_CHECK_FILE("/etc/default/login", | 2587 | [ if test "x$enableval" = "xno"; then |
2588 | [ external_path_file=/etc/default/login ]) | 2588 | AC_MSG_NOTICE([/etc/default/login handling disabled]) |
2589 | etc_default_login=no | ||
2590 | else | ||
2591 | etc_default_login=yes | ||
2592 | fi ], | ||
2593 | [ etc_default_login=yes ] | ||
2594 | ) | ||
2589 | 2595 | ||
2596 | if test "x$etc_default_login" != "xno"; then | ||
2597 | AC_CHECK_FILE("/etc/default/login", | ||
2598 | [ external_path_file=/etc/default/login ]) | ||
2590 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | 2599 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; |
2591 | then | 2600 | then |
2592 | AC_MSG_WARN([cross compiling: Disabling /etc/default/login test]) | 2601 | AC_MSG_WARN([cross compiling: Disabling /etc/default/login test]) |
2593 | elif test "x$external_path_file" = "x/etc/default/login"; then | 2602 | elif test "x$external_path_file" = "x/etc/default/login"; then |
2594 | AC_DEFINE(HAVE_ETC_DEFAULT_LOGIN) | 2603 | AC_DEFINE(HAVE_ETC_DEFAULT_LOGIN) |
2595 | fi | 2604 | fi |
2596 | ] | 2605 | fi |
2597 | ) | ||
2598 | 2606 | ||
2599 | dnl BSD systems use /etc/login.conf so --with-default-path= has no effect | 2607 | dnl BSD systems use /etc/login.conf so --with-default-path= has no effect |
2600 | if test $ac_cv_func_login_getcapbool = "yes" -a \ | 2608 | if test $ac_cv_func_login_getcapbool = "yes" -a \ |