diff options
author | Malcolm Smith <smith@chaquo.com> | 2024-02-02 23:30:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-02 23:30:52 (GMT) |
commit | f35c7c070ca6b49c5d6a97be34e6c02f828f5873 (patch) | |
tree | 2f5edf389e9ed3a82fa29c6560b4a36c5178959b /configure | |
parent | 1183f1e6bfba06ae6c8ea362f96e977bc288e627 (diff) | |
download | cpython-f35c7c070ca6b49c5d6a97be34e6c02f828f5873.zip cpython-f35c7c070ca6b49c5d6a97be34e6c02f828f5873.tar.gz cpython-f35c7c070ca6b49c5d6a97be34e6c02f828f5873.tar.bz2 |
gh-114875: Require getgrent for building the grp extension module (#114876)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -17476,6 +17476,12 @@ then : printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h fi +ac_fn_c_check_func "$LINENO" "getgrent" "ac_cv_func_getgrent" +if test "x$ac_cv_func_getgrent" = xyes +then : + printf "%s\n" "#define HAVE_GETGRENT 1" >>confdefs.h + +fi ac_fn_c_check_func "$LINENO" "getgrgid" "ac_cv_func_getgrgid" if test "x$ac_cv_func_getgrgid" = xyes then : @@ -28968,7 +28974,8 @@ then : if true then : - if test "$ac_cv_func_getgrgid" = yes -o "$ac_cv_func_getgrgid_r" = yes + if test "$ac_cv_func_getgrent" = "yes" && + { test "$ac_cv_func_getgrgid" = "yes" || test "$ac_cv_func_getgrgid_r" = "yes"; } then : py_cv_module_grp=yes else $as_nop |