summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac20
1 files changed, 14 insertions, 6 deletions
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.
2585AC_ARG_ENABLE(etc-default-login, 2585AC_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
2596if 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 ] 2605fi
2597)
2598 2606
2599dnl BSD systems use /etc/login.conf so --with-default-path= has no effect 2607dnl BSD systems use /etc/login.conf so --with-default-path= has no effect
2600if test $ac_cv_func_login_getcapbool = "yes" -a \ 2608if test $ac_cv_func_login_getcapbool = "yes" -a \