gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r25173 - gnunet


From: gnunet
Subject: [GNUnet-SVN] r25173 - gnunet
Date: Fri, 30 Nov 2012 17:56:39 +0100

Author: harsha
Date: 2012-11-30 17:56:39 +0100 (Fri, 30 Nov 2012)
New Revision: 25173

Modified:
   gnunet/configure.ac
Log:
configure option for using IBM LoadLeveler for scheduling testbed slaves on 
SuperMUC

Modified: gnunet/configure.ac
===================================================================
--- gnunet/configure.ac 2012-11-30 14:29:44 UTC (rev 25172)
+++ gnunet/configure.ac 2012-11-30 16:56:39 UTC (rev 25173)
@@ -936,6 +936,37 @@
 AC_DEFINE_UNQUOTED([HAVE_GNUTLS], $gnutls, [We have gnutls])
 
 
+# Test if we are building for superMUC
+llapi=0
+AC_MSG_CHECKING(if testbed should use IBM LoadLeveler to run on SuperMUC)
+AC_ARG_WITH([ll],
+    [AS_HELP_STRING([--with-ll=PFX],
+       [use IBM LoadLeveler (installed at PFX) for running testbed on 
SuperMUC]. Default is no)],
+    [AC_MSG_RESULT([$with_ll])
+     case $with_ll in
+       no)
+         ;;
+       yes)
+         AC_CHECK_HEADERS([llapi.h],
+           AC_CHECK_LIB([llapi], [llsubmit],
+               llapi=true,
+               AC_MSG_ERROR(libllapi not found but --with-llapi given)),
+           AC_MSG_ERROR(llapi.h not found but --with-llapi given))
+       ;;
+       *)
+         LDFLAGS="-L$with_ll/lib $LDFLAGS"
+         CPPFLAGS="-I$with_ll/include $CPPFLAGS"
+        AC_CHECK_HEADERS([llapi.h],
+           AC_CHECK_LIB([llapi], [llsubmit],
+               llapi=true,
+               AC_MSG_ERROR(libllapi not found but --with-llapi given)),
+           AC_MSG_ERROR(llapi.h not found but --with-llapi given))
+        ;;
+     esac
+    ],
+    [AC_MSG_RESULT(--with-ll not specified)])
+AM_CONDITIONAL(WITH_LL, test x$llapi = xtrue)
+AC_DEFINE_UNQUOTED(WITH_LL, $llapi, [Do we have to use IBM LoadLeveler])
 
 # should 'make check' run tests?
 AC_MSG_CHECKING(whether to run tests)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]