diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-31 18:04:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-31 18:04:28 +0000 |
commit | f3fa149e507bf5cca1f499d48c780a4853e7b2c5 (patch) | |
tree | fc446fdc671ff5cba0874bb000ab7f2c378a36be /configure.ac | |
parent | dc994999f6702effb64e5bfc3eb727ee0f3723ef (diff) |
-allow installation even as non-root non-sudo user to succeed with new nss code
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c75b52f4c7..2cc522bf6a 100644 --- a/configure.ac +++ b/configure.ac @@ -766,7 +766,7 @@ AC_ARG_WITH(sudo, ], [AC_MSG_RESULT([no])]) AC_SUBST(SUDO_BINARY) - +AM_CONDITIONAL([HAVE_SUDO], [test "x$SUDO_BINARY" != "x" -o -w /]) # test for gnunetdns group name GNUNETDNS_GROUP=gnunetdns @@ -1104,6 +1104,11 @@ then AC_MSG_NOTICE([NOTICE: Mac OS X framework build enabled.]) fi +if test "x$SUDO_BINARY" = "x" -a ! -w / +then + AC_MSG_NOTICE([NOTICE: --with-sudo not specified and not running as 'root', will not install GNS NSS library]) +fi + AC_MSG_NOTICE([******************************************** You can compile GNUnet with make |