Signed-off-by: Chris Lalancette <[email protected]> --- configure.ac | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac index 1f1c212..9076b2d 100644 --- a/configure.ac +++ b/configure.ac @@ -13,6 +13,26 @@ AC_ARG_ENABLE(local, [ DELTACLOUD_INSTALL_DIR=`pwd`/src ], [ DELTACLOUD_INSTALL_DIR=$pkgdatadir ]) AC_SUBST(DELTACLOUD_INSTALL_DIR) +dnl +dnl check for classads-devel +dnl + +CLASSADS_REQUIRED=1.0.4 + +AC_ARG_WITH([classads], AC_HELP_STRING([--with-classads=@<:@PFX@:>@], + [classads location])) + +if test "x$with_classads" = xno ; then + AC_MSG_CHECKING([for classads libraries >= $CLASSADS_REQUIRED]) + AC_MSG_ERROR([classads >= $CLASSADS_REQUIRED is required for aggregator]) +elif test "x$with_classads" = "x"; then + fail=0 + AC_CHECK_HEADERS([classad/classad_distribution.h],, [fail=1],[]) + if test $fail = 1; then + AC_MSG_ERROR([You must install the classads development package to compile the aggregator]) + fi +fi + # If using gcc and default CFLAGS, enable some warnings. test x"$ac_ct_CC:$CFLAGS" = 'xgcc:-g -O2' \ && CFLAGS="$CFLAGS -Wshadow -Wall -Werror" -- 1.7.2.3 _______________________________________________ deltacloud-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/deltacloud-devel
