From cdf8300ff2ddee6a71e3318a5083fa4209e747a9 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Wed, 12 Sep 2001 19:15:10 +0000 Subject: [PATCH] Relevant BUGIDs: 440107 Purpose of commit: reentrant modules Commit summary: --------------- Lay the autoconf groundwork for making all PAM modules reentrant on systems that include the POSIX getxx_r() functions. --- _pam_aconf.h.in | 4 ++++ configure.in | 1 + 2 files changed, 5 insertions(+) diff --git a/_pam_aconf.h.in b/_pam_aconf.h.in index 35dfd197..baa97170 100644 --- a/_pam_aconf.h.in +++ b/_pam_aconf.h.in @@ -62,6 +62,10 @@ #undef HAVE_STRTOL #undef HAVE_UNAME +/* Define if reentrant declarations of standard nss functions are available */ +#undef HAVE_GETPWNAM_R +#undef HAVE_GETGRNAM_R + /* ugly hack to partially support old pam_strerror syntax */ #undef UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT diff --git a/configure.in b/configure.in index 83197356..407d08e0 100644 --- a/configure.in +++ b/configure.in @@ -380,6 +380,7 @@ AC_PROG_GCC_TRADITIONAL AC_FUNC_MEMCMP AC_FUNC_VPRINTF AC_CHECK_FUNCS(gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname) +AC_CHECK_FUNCS(getpwnam_r getgrnam_r) dnl Checks for programs/utilities AC_CHECK_PROG(HAVE_SGML2TXT, sgml2txt, yes, no) -- 2.40.0