esac
case "$host_os" in
- hpux9.*)
- shadow_funcs="getspwuid"
-
- # DCE support (requires ANSI C compiler)
- if test "$with_DCE" = "yes"; then
- # order of libs in 9.X is important. -lc_r must be last
- SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
- LIBS="${LIBS} -ldce -lM -lc_r"
- $as_echo "#define _REENTRANT 1" >>confdefs.h
-
-
- case "${CPPFLAGS}" in
- *"-I/usr/include/reentrant"|*"-I/usr/include/reentrant ")
- ;;
- *)
- if test X"${CPPFLAGS}" = X""; then
- CPPFLAGS="-I/usr/include/reentrant"
- else
- CPPFLAGS="${CPPFLAGS} -I/usr/include/reentrant"
- fi
- ;;
- esac
-
- fi
- ;;
hpux10.*)
shadow_funcs="getprpwnam iscomsec"
shadow_libs="-lsec"
-
esac
case "$host_os" in
- hpux9.*)
- shadow_funcs="getspwuid"
-
- # DCE support (requires ANSI C compiler)
- if test "$with_DCE" = "yes"; then
- # order of libs in 9.X is important. -lc_r must be last
- SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
- LIBS="${LIBS} -ldce -lM -lc_r"
- AC_DEFINE(_REENTRANT)
- SUDO_APPEND_CPPFLAGS(-I/usr/include/reentrant)
- fi
- ;;
hpux10.*)
shadow_funcs="getprpwnam iscomsec"
shadow_libs="-lsec"
AH_TEMPLATE(HAVE_GETPRPWNAM, [Define to 1 if you have the `getprpwnam' function. (SecureWare-style shadow passwords).])
AH_TEMPLATE(HAVE_GETPWANAM, [Define to 1 if you have the `getpwanam' function. (SunOS 4.x shadow passwords).])
AH_TEMPLATE(HAVE_GETSPNAM, [Define to 1 if you have the `getspnam' function (SVR4-style shadow passwords).])
-AH_TEMPLATE(HAVE_GETSPWUID, [Define to 1 if you have the `getspwuid' function. (HP-UX <= 9.X shadow passwords).])
AH_TEMPLATE(HAVE_GSS_KRB5_CCACHE_NAME, [Define to 1 if you have the `gss_krb5_ccache_name' function.])
AH_TEMPLATE(HAVE_HEIMDAL, [Define to 1 if your Kerberos is Heimdal.])
AH_TEMPLATE(HAVE_INET_NTOP, [Define to 1 if you have the `inet_ntop' function.])
epw = spw->sp_pwdp;
}
#endif /* HAVE_GETSPNAM */
-#ifdef HAVE_GETSPWUID
- {
- struct s_passwd *spw;
-
- if ((spw = getspwuid(pw->pw_uid)) && spw->pw_passwd)
- epw = spw->pw_passwd;
- }
-#endif /* HAVE_GETSPWUID */
#ifdef HAVE_GETPWANAM
{
struct passwd_adjunct *spw;
#ifdef HAVE_GETSPNAM
setspent();
#endif
-#ifdef HAVE_GETSPWUID
- setspwent();
-#endif
#ifdef HAVE_GETPWANAM
setpwaent();
#endif
#ifdef HAVE_GETSPNAM
endspent();
#endif
-#ifdef HAVE_GETSPWUID
- endspwent();
-#endif
#ifdef HAVE_GETPWANAM
endpwaent();
#endif