[nanny] Add python-gtop as build depends
- From: Roberto Majadas <telemaco src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nanny] Add python-gtop as build depends
- Date: Fri, 5 Mar 2010 10:33:06 +0000 (UTC)
commit 8dd42665e099d8042d3d5bf0962b98eada418263
Author: Roberto Majadas <roberto majadas openshine com>
Date: Fri Mar 5 10:13:55 2010 +0100
Add python-gtop as build depends
configure.ac | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c2c3073..73630fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -131,6 +131,27 @@ else
AC_MSG_ERROR([You need to have python-hachoir-regex installed])
fi
+dnl check for python-gtop
+dnl -----------------------------------------
+AC_MSG_CHECKING(for python-gtop)
+prog="
+import sys
+try:
+ import gtop
+except RuntimeError:
+ sys.exit(0)
+except ImportError:
+ sys.exit(1)
+sys.exit(0)
+"
+
+if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC
+then
+ AC_MSG_RESULT(found)
+else
+ AC_MSG_RESULT(not found)
+ AC_MSG_ERROR([You need to have python-gtop installed])
+fi
dnl checking operative system
dnl --------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]