Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit f916905

Browse files
dimpaseMatthias Koeppe
authored andcommitted
check system pari/gp for qfisom bug #2140
see http://pari.math.u-bordeaux.fr/cgi-bin/bugreport.cgi?bug=2140
1 parent f976c52 commit f916905

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build/pkgs/pari/spkg-configure.m4

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,17 @@ SAGE_SPKG_CONFIGURE([pari], [
8888
AC_MSG_NOTICE([Otherwise Sage will build its own pari/GP.])
8989
sage_spkg_install_pari=yes
9090
fi
91+
AC_MSG_CHECKING([whether qfisom bug of pari 2.11.2 is fixed])
92+
bug_check=`echo "qfisom([[16,6;6,10]],[[4,3;3,10]])" | $GP -qf 2>> config.log`
93+
expected="0"
94+
if test x"$bug_check" = x"$expected"; then
95+
AC_MSG_RESULT([yes])
96+
else
97+
AC_MSG_RESULT([no; cannot use system pari/GP with known bug])
98+
AC_MSG_NOTICE([Upgrade your system package and reconfigure.])
99+
AC_MSG_NOTICE([Otherwise Sage will build its own pari/GP.])
100+
sage_spkg_install_pari=yes
101+
fi
91102
fi dnl end GP test
92103
93104
if test x$sage_spkg_install_pari = xno; then dnl main PARI test

0 commit comments

Comments
 (0)