- Added new mesh service (WiP)
[oweals/gnunet.git] / configure.ac
index 0af7f5935ae4eeca22f7233cd240a582ce889199..95b10be7b059e9cb6dfb280db6b75a2a44e99896 100644 (file)
@@ -339,6 +339,18 @@ else
 fi
 
 
+
+AC_CHECK_HEADERS([nss.h],[nss=true],[nss=false])
+if test x$nss = xfalse
+then
+       AM_CONDITIONAL(HAVE_GLIBCNSS, false)
+       AC_MSG_WARN([No GNU libc nss header, will not build NSS plugin])
+else
+       AM_CONDITIONAL(HAVE_GLIBCNSS, true)
+fi
+
+
+
 # test for kvm and kstat (for CPU stats under BSD/Solaris)
 AC_CHECK_LIB([kvm],[kvm_open])
 AC_CHECK_LIB([kstat],[kstat_open])
@@ -766,7 +778,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
@@ -1013,10 +1025,13 @@ src/fs/Makefile
 src/fs/fs.conf
 src/gns/Makefile
 src/gns/gns.conf
+src/gns/nss/Makefile
 src/hello/Makefile
 src/include/Makefile
 src/include/gnunet_directories.h
 src/hostlist/Makefile
+src/lockmanager/Makefile
+src/lockmanager/lockmanager.conf
 src/mesh/Makefile
 src/mesh/mesh.conf
 src/mysql/Makefile
@@ -1035,6 +1050,7 @@ src/statistics/Makefile
 src/statistics/statistics.conf
 src/stream/Makefile
 src/template/Makefile
+src/testbed/Makefile
 src/testing/Makefile
 src/topology/Makefile
 src/transport/Makefile
@@ -1100,6 +1116,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