Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
spkg-configure for pari_elldata
Browse files Browse the repository at this point in the history
if pari/GP is available, but elldata is not, then we
need to vendor pari/GP, as we cannot (easily) just install elldata
  • Loading branch information
dimpase committed Aug 3, 2019
1 parent 2f45c9e commit b622942
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build/pkgs/pari_elldata/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
SAGE_SPKG_CONFIGURE([pari_elldata], [
AC_REQUIRE([SAGE_SPKG_CONFIGURE_PARI])
AC_MSG_CHECKING([installing pari? ])
if test x$sage_spkg_install_pari = xyes; then
AC_MSG_RESULT([yes; install pari_elldata as well])
sage_spkg_install_pari_elldata=yes
else
AC_MSG_RESULT([no])
AC_MSG_CHECKING([is pari_elldata installed? ])
gp_ell_check=`echo "r=ellinit(\"11a1\"); r[[11]]" | $GP -qf`
if test x$gp_ell_check = x20008; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no; cannot use system pari/GP without elldata package])
AC_MSG_NOTICE([Install elldata package and reconfigure.])
AC_MSG_NOTICE([Otherwise Sage will build its own pari/GP.])
sage_spkg_install_pari_elldata=yes
sage_spkg_install_pari=yes
fi
fi
])

0 comments on commit b622942

Please sign in to comment.