summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index d9a87d8e6..ca433e569 100644
--- a/configure.in
+++ b/configure.in
@@ -236,6 +236,8 @@ if (test -z "$no_pam" && test "x$ac_cv_header_security_pam_appl_h" = "xyes") ; t
236 236
237 AC_CHECK_FUNCS(pam_getenvlist) 237 AC_CHECK_FUNCS(pam_getenvlist)
238 238
239 disable_shadow=yes
240
239 PAM_MSG="yes" 241 PAM_MSG="yes"
240 242
241 # Check PAM strerror arguments (old PAM) 243 # Check PAM strerror arguments (old PAM)
@@ -933,10 +935,30 @@ AC_ARG_WITH(shadow,
933 [ 935 [
934 if test "x$withval" = "xno" ; then 936 if test "x$withval" = "xno" ; then
935 AC_DEFINE(DISABLE_SHADOW) 937 AC_DEFINE(DISABLE_SHADOW)
938 disable_shadow=yes
936 fi 939 fi
937 ] 940 ]
938) 941)
939 942
943if test -z "$disable_shadow" ; then
944 AC_MSG_CHECKING([if the systems has expire shadow information])
945 AC_TRY_COMPILE(
946 [
947#include <sys/types.h>
948#include <shadow.h>
949 struct spwd sp;
950 ],[ sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; ],
951 [ sp_expire_available=yes ], []
952 )
953
954 if test "x$sp_expire_available" = "xyes" ; then
955 AC_MSG_RESULT(yes)
956 AC_DEFINE(HAS_SHADOW_EXPIRE)
957 else
958 AC_MSG_RESULT(no)
959 fi
960fi
961
940# Use ip address instead of hostname in $DISPLAY 962# Use ip address instead of hostname in $DISPLAY
941DISPLAY_HACK_MSG="no" 963DISPLAY_HACK_MSG="no"
942AC_ARG_WITH(ipaddr-display, 964AC_ARG_WITH(ipaddr-display,