]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Fix HAVE_SHADOWGRP configure check
authorFlorian Weimer <fweimer@redhat.com>
Mon, 21 Nov 2022 10:52:45 +0000 (11:52 +0100)
committerSerge Hallyn <serge@hallyn.com>
Mon, 21 Nov 2022 14:06:14 +0000 (08:06 -0600)
The missing #include <gshadow.h> causes the configure check to fail
spuriously, resulting in HAVE_SHADOWGRP not being defined even
on systems that actually have sgetsgent (such as current glibc).

configure.ac

index 924254a0c8171802c1d39d9c539ff8f275bc9624..6c7d9839979e037d36f42d7ff1bd80680612b1f6 100644 (file)
@@ -116,6 +116,10 @@ if test "$ac_cv_header_shadow_h" = "yes"; then
                ac_cv_libc_shadowgrp,
                AC_RUN_IFELSE([AC_LANG_SOURCE([
                                #include <shadow.h>
+                               #ifdef HAVE_GSHADOW_H
+                               #include <gshadow.h>
+                               #endif
+                               int
                                main()
                                {
                                        struct sgrp *sg = sgetsgent("test:x::");