Commit 7c5bd1b4 authored by Shane Snyder's avatar Shane Snyder
Browse files

add abt-snoozer configure enable/disable switch

parent 710203bc
...@@ -73,16 +73,34 @@ CPPFLAGS="$ARGOBOTS_CFLAGS $CPPFLAGS" ...@@ -73,16 +73,34 @@ CPPFLAGS="$ARGOBOTS_CFLAGS $CPPFLAGS"
CFLAGS="$ARGOBOTS_CFLAGS $CFLAGS" CFLAGS="$ARGOBOTS_CFLAGS $CFLAGS"
PC_REQUIRES="mercury argobots" PC_REQUIRES="mercury argobots"
PKG_CHECK_MODULES([ABT_SNOOZER],[abt-snoozer],
[ check_abt_snoozer=auto
AC_DEFINE([HAVE_ABT_SNOOZER], [1], [Use ABT-SNOOZER]) AC_ARG_ENABLE([abt-snoozer],
PC_REQUIRES="$PC_REQUIRES abt-snoozer" [ --enable-abt-snoozer enable abt-snoozer (default: dynamic check)],
], [ case "${enableval}" in
[printf ""]) yes) check_abt_snoozer=yes ;;
LIBS="$ABT_SNOOZER_LIBS $LIBS" no) check_abt_snoozer=no ;;
CPPFLAGS="$ABT_SNOOZER_CFLAGS $CPPFLAGS" *) AC_MSG_ERROR([bad value ${enableval} for --enable-abt-snoozer]) ;;
CFLAGS="$ABT_SNOOZER_CFLAGS $CFLAGS" esac],
AC_SUBST([PC_REQUIRES], ["$PC_REQUIRES"]) [])
check_abt_snoozer_status=fail
if test "x${check_abt_snoozer}" = xauto -o "x${check_abt_snoozer}" = xyes ; then
dnl AC_MSG_CHECKING([If abt-snoozer is installed])
PKG_CHECK_MODULES([ABT_SNOOZER],[abt-snoozer],
[AC_DEFINE([HAVE_ABT_SNOOZER], [1], [Use ABT-SNOOZER])
PC_REQUIRES="$PC_REQUIRES abt-snoozer"
LIBS="$ABT_SNOOZER_LIBS $LIBS"
CPPFLAGS="$ABT_SNOOZER_CFLAGS $CPPFLAGS"
CFLAGS="$ABT_SNOOZER_CFLAGS $CFLAGS"
AC_SUBST([PC_REQUIRES], ["$PC_REQUIRES"])
check_abt_snoozer_status=success],
[printf ""])
fi
if test "x${check_abt_snoozer_status}" = xfail -a "x${check_abt_snoozer}" = xyes; then
AC_MSG_ERROR([Could not find working abt-snoozer installation!])
fi
# turn off a warning that is tripping up our use of utlist at the moment # turn off a warning that is tripping up our use of utlist at the moment
CFLAGS="-Wno-address $CFLAGS" CFLAGS="-Wno-address $CFLAGS"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment