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

add abt-snoozer configure enable/disable switch

parent 710203bc
......@@ -73,16 +73,34 @@ CPPFLAGS="$ARGOBOTS_CFLAGS $CPPFLAGS"
CFLAGS="$ARGOBOTS_CFLAGS $CFLAGS"
PC_REQUIRES="mercury argobots"
PKG_CHECK_MODULES([ABT_SNOOZER],[abt-snoozer],
[
AC_DEFINE([HAVE_ABT_SNOOZER], [1], [Use ABT-SNOOZER])
PC_REQUIRES="$PC_REQUIRES abt-snoozer"
],
[printf ""])
LIBS="$ABT_SNOOZER_LIBS $LIBS"
CPPFLAGS="$ABT_SNOOZER_CFLAGS $CPPFLAGS"
CFLAGS="$ABT_SNOOZER_CFLAGS $CFLAGS"
AC_SUBST([PC_REQUIRES], ["$PC_REQUIRES"])
check_abt_snoozer=auto
AC_ARG_ENABLE([abt-snoozer],
[ --enable-abt-snoozer enable abt-snoozer (default: dynamic check)],
[ case "${enableval}" in
yes) check_abt_snoozer=yes ;;
no) check_abt_snoozer=no ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-abt-snoozer]) ;;
esac],
[])
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
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