forked from sagemath/sage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide spkg-config for bliss, with minimal version 0.77. Depends on sagemath#35344, where Sage's bliss is bumped to 0.77 with the necessary API changes. Fixes sagemath#35829 URL: sagemath#35830 Reported by: Dima Pasechnik Reviewer(s): Dima Pasechnik, Matthias Köppe
- Loading branch information
Showing
4 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bliss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bliss | ||
bliss-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
SAGE_SPKG_CONFIGURE([bliss], [ | ||
m4_pushdef([SAGE_BLISS_MINVER],[0.77]) | ||
m4_pushdef([SAGE_BLISS_MAJOR],[0]) | ||
m4_pushdef([SAGE_BLISS_MINOR],[77]) | ||
AC_CHECK_HEADER([bliss/bliss_C.h], [ | ||
AC_SEARCH_LIBS([bliss_new], [bliss], [ | ||
AC_MSG_CHECKING([checking bliss version directly]) | ||
AC_RUN_IFELSE([AC_LANG_PROGRAM([ | ||
[#include <bliss/defs.hh> | ||
]],[[ | ||
if (BLISS_VERSION_MAJOR > ]] SAGE_BLISS_MAJOR [[ ) return 0; | ||
if (BLISS_VERSION_MAJOR == ]] SAGE_BLISS_MAJOR [[ && | ||
BLISS_VERSION_MINOR >= ]] SAGE_BLISS_MINOR [[ ) return 0; | ||
else return 1; | ||
]])], | ||
[AC_MSG_RESULT([Good.])], | ||
[AC_MSG_RESULT([Too old.]) | ||
sage_spkg_install_bliss=yes], | ||
[]) dnl cross-compilation - noop | ||
], | ||
[sage_spkg_install_bliss=yes]) | ||
], [sage_spkg_install_bliss=yes]) | ||
m4_popdef([SAGE_BLISS_MINVER]) | ||
m4_popdef([SAGE_BLISS_MAJOR]) | ||
m4_popdef([SAGE_BLISS_MINOR]) | ||
]) | ||
|