summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-12-17 12:48:00 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-12-17 12:48:00 +0000
commita6357180c8a0880dbc6b2effbc726d54b15205d1 (patch)
treefa860f98deefd46a4b19577b15fbf480a17caeda /configure.ac
parenta1ad2810d54f878ae54f220fc69532093ffd613e (diff)
libgtop check
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac16
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 9a8730392..86b070e96 100644
--- a/configure.ac
+++ b/configure.ac
@@ -424,9 +424,23 @@ else
AM_CONDITIONAL(HAVE_GLIB2, true)
AC_DEFINE([HAVE_GLIB2],[1],[Have glib2])
LIBS="$LIBS $GLIB_LIBS"
- CFLAGS="$CFLAGS $GLIB_CFLAGS"
+ CFLAGS="$CFLAGS $GLIB_CFLAGS"
fi
+#libgtop
+PKG_CHECK_MODULES(LIBGTOP,libgtop-2.0, [gtop=true] , [gtop=false] )
+if test x$gtop = xfalse
+then
+ AM_CONDITIONAL(HAVE_LIBGTOP, false)
+ AC_MSG_WARN([GNUnet requires libgtop])
+else
+ AM_CONDITIONAL(HAVE_LIBGTOP, true)
+ AC_DEFINE([HAVE_LIBGTOP],[1],[Have libgtop])
+ LIBS="$LIBS $LIBGTOP_LIBS"
+ CFLAGS="$CFLAGS $LIBGTOP_CFLAGS"
+fi
+
+
AC_CHECK_HEADERS([nss.h],[nss=true],[nss=false])