Skip to content

Commit f713a56

Browse files
author
Matthias Koeppe
committed
build/pkgs/flint: Reject FLINT >= 3.1.0
1 parent 4ac7152 commit f713a56

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

build/pkgs/flint/spkg-configure.m4

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
11
SAGE_SPKG_CONFIGURE([flint], [
22
SAGE_SPKG_DEPCHECK([mpfr], [
3-
AC_CHECK_HEADER(flint/flint.h, [
3+
AC_CHECK_HEADER(flint/flint.h, [dnl
44
dnl gr_get_fexpr appears in Flint 3.0
5-
AC_SEARCH_LIBS([gr_get_fexpr], [flint], [], [sage_spkg_install_flint=yes])
5+
AC_SEARCH_LIBS([gr_get_fexpr], [flint], [dnl
6+
dnl Flint 3.1 is too new
7+
AC_MSG_CHECKING([whether FLINT version is >= 3.1.0])
8+
AC_COMPILE_IFELSE([dnl
9+
AC_LANG_PROGRAM([[#include <flint/flint.h>
10+
#if __FLINT_RELEASE >= 30100
11+
# error "FLINT 3.1 is too new"
12+
#endif
13+
]])
14+
], [dnl
15+
AC_MSG_RESULT([no])
16+
], [dnl
17+
AC_MSG_RESULT([yes; too new])
18+
sage_spkg_install_flint=yes
19+
])
20+
], [sage_spkg_install_flint=yes])
621
], [sage_spkg_install_flint=yes])
722
])
8-
], [], [], [
23+
], [], [], [dnl
924
if test x$sage_spkg_install_flint = xyes; then
1025
AC_SUBST(SAGE_FLINT_PREFIX, ['$SAGE_LOCAL'])
1126
else

0 commit comments

Comments
 (0)