View | Details | Raw Unified | Return to bug 919
Collapse All | Expand All

(-)configure.ac (-5 / +13 lines)
Lines 2583-2600 fi Link Here
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 \

Return to bug 919