Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
margo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
sds
margo
Commits
7c5bd1b4
Commit
7c5bd1b4
authored
Sep 01, 2017
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add abt-snoozer configure enable/disable switch
parent
710203bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
10 deletions
+28
-10
configure.ac
configure.ac
+28
-10
No files found.
configure.ac
View file @
7c5bd1b4
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment