--- configure.ac.orig 2008-03-11 08:42:31.000000000 +0300 +++ configure.ac 2014-07-02 14:29:06.000000000 +0400 @@ -34,7 +34,7 @@ dnl Checks for library functions. AC_TYPE_GETGROUPS -AC_CHECK_FUNCS(strchr memcpy getopt_long getcwd getwd) +AC_CHECK_FUNCS(strchr memcpy getopt_long getcwd getwd sysconf group_member) if test "$ac_cv_lib_static_libiberty_a_xmalloc" = no \ -o "$which_cv_iberty" = no ; then --- bash.c.orig 2008-01-18 21:07:02.000000000 +0300 +++ bash.c 2014-07-02 10:10:09.000000000 +0400 @@ -46,7 +46,9 @@ * - changed all occurences of 'gid_t' into 'GID_T'. * - exported functions needed in which.c */ +#if !defined (HAVE_GROUP_MEMBER) static int group_member (GID_T gid); +#endif static char* extract_colon_unit (char const* string, int* p_index); /*=========================================================================== @@ -199,6 +201,7 @@ } } +#if !defined (HAVE_GROUP_MEMBER) /* From bash-3.2 / general.c / line 931 */ /* Return non-zero if GID is one that we have in our groups list. */ int @@ -228,6 +231,7 @@ return (0); } +#endif /* From bash-3.2 / findcmd.c / line 75 */ /* Return some flags based on information about this file. --- config.h.in.orig 2008-08-06 19:19:52.000000000 +0400 +++ config.h.in 2014-07-02 12:56:02.619519923 +0400 @@ -25,6 +25,9 @@ /* Define to 1 if you have the `getwd' function. */ #undef HAVE_GETWD +/* Define to 1 if you have the `group_member' function. */ +#undef HAVE_GROUP_MEMBER + /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H @@ -55,6 +58,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H +/* Define to 1 if you have the `sysconf' function. */ +#undef HAVE_SYSCONF + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H --- configure.orig 2008-08-06 19:19:37.000000000 +0400 +++ configure 2014-07-02 14:31:58.006026539 +0400 @@ -4999,7 +4999,7 @@ -for ac_func in strchr memcpy getopt_long getcwd getwd +for ac_func in strchr memcpy getopt_long getcwd getwd sysconf group_member do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5