Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / runtime / kdesu / configure.in.in
blob11379d383628997a1bde46e4ede5c70e03146d6a
1 dnl Check for "struct ucred"
2 AC_MSG_CHECKING("struct ucred")
3 AC_EGREP_HEADER([struct ucred], [sys/socket.h], have_ucred=yes)
4 if test "$have_ucred" = "yes"; then
5     AC_DEFINE(HAVE_STRUCT_UCRED, 1, [Define if you have the struct ucred])
6     AC_MSG_RESULT(yes)
7 else
8     AC_MSG_RESULT(no)
9 fi
11 dnl Check for the group "nogroup" or "nobody" Use -2 otherwise.
12 AC_MSG_CHECKING(nogroup)
13 AC_TRY_RUN([
14     #include <grp.h>
15     #include <sys/types.h>
17     int main() 
18     {
19         struct group *grp = getgrnam("nogroup");
20         if (grp) return 0;
21         return 1;
22     }
23 ], nogroup=nogroup, 
24 AC_TRY_RUN([
25     #include <grp.h>
26     #include <sys/types.h>
28     int main() 
29     {
30         struct group *grp = getgrnam("nobody");
31         if (grp) return 0;
32         return 1;
33     }
34 ], nogroup=nobody, 
35 nogroup=65534, nogroup=65534), nogroup=65534)
36 AC_MSG_RESULT($nogroup)
37 AC_SUBST(nogroup)
38 AC_CHECK_FUNCS(getpeereid)