This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proper dependency resolution (all tests in PARI spkg-config)
- Loading branch information
Showing
7 changed files
with
68 additions
and
99 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 |
---|---|---|
@@ -1,18 +1,3 @@ | ||
SAGE_SPKG_CONFIGURE([pari_elldata], [ | ||
AC_PATH_PROG([GP], [gp]) | ||
if test x$GP != x; then | ||
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 | ||
fi | ||
else | ||
AC_MSG_NOTICE([gp is not found]) | ||
sage_spkg_install_pari_elldata=yes | ||
fi | ||
SAGE_CHECK_PARI_DEP([pari_elldata]) | ||
]) |
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 |
---|---|---|
@@ -1,18 +1,3 @@ | ||
SAGE_SPKG_CONFIGURE([pari_galdata], [ | ||
AC_PATH_PROG([GP], [gp]) | ||
if test x$GP != x; then | ||
AC_MSG_CHECKING([is pari_galdata installed? ]) | ||
gp_gal_check=`echo "polgalois(x^8-2)[[1]]" | $GP -qf` | ||
if test x$gp_gal_check = x16; then | ||
AC_MSG_RESULT([yes]) | ||
else | ||
AC_MSG_RESULT([no; cannot use system pari/GP without gapdata package]) | ||
AC_MSG_NOTICE([Install galdata package and reconfigure.]) | ||
AC_MSG_NOTICE([Otherwise Sage will build its own pari/GP.]) | ||
sage_spkg_install_pari_galdata=yes | ||
fi | ||
else | ||
AC_MSG_NOTICE([gp is not found]) | ||
sage_spkg_install_pari_elldata=yes | ||
fi | ||
SAGE_CHECK_PARI_DEP([pari_galdata]) | ||
]) |
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 |
---|---|---|
@@ -1,18 +1,3 @@ | ||
SAGE_SPKG_CONFIGURE([pari_galpol], [ | ||
AC_PATH_PROG([GP], [gp]) | ||
if test x$GP != x; then | ||
AC_MSG_CHECKING([is pari_galpol installed? ]) | ||
gp_ell_check=`echo "galoisgetname(12,1)" | $GP -qf` | ||
if test "x$gp_ell_check = xC3\ \:\ C4"; then | ||
AC_MSG_RESULT([yes]) | ||
else | ||
AC_MSG_RESULT([no; cannot use system pari/GP without galpol package]) | ||
AC_MSG_NOTICE([Install galpol package and reconfigure.]) | ||
AC_MSG_NOTICE([Otherwise Sage will build its own pari/GP.]) | ||
sage_spkg_install_pari_galpol=yes | ||
fi | ||
else | ||
AC_MSG_NOTICE([gp is not found]) | ||
sage_spkg_install_pari_galpol=yes | ||
fi | ||
SAGE_CHECK_PARI_DEP([pari_galpol]) | ||
]) |
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 |
---|---|---|
@@ -1,18 +1,3 @@ | ||
SAGE_SPKG_CONFIGURE([pari_seadata], [ | ||
AC_PATH_PROG([GP], [gp]) | ||
if test x$GP != x; then | ||
AC_MSG_CHECKING([is pari_seadata installed? ]) | ||
gp_seadat_check=`echo "poldegree(ellmodulareqn(211)[[1]])" | $GP -qf` | ||
if test x$gp_seadat_check = x212; then | ||
AC_MSG_RESULT([yes]) | ||
else | ||
AC_MSG_RESULT([no; cannot use system pari/GP without seadata package]) | ||
AC_MSG_NOTICE([Install seadata package and reconfigure.]) | ||
AC_MSG_NOTICE([Otherwise Sage will build its own pari/GP.]) | ||
sage_spkg_install_pari_seadata=yes | ||
fi | ||
else | ||
AC_MSG_NOTICE([gp is not found]) | ||
sage_spkg_install_pari_seadata=yes | ||
fi | ||
SAGE_CHECK_PARI_DEP([pari_seadata]) | ||
]) |
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 |
---|---|---|
@@ -1,18 +1,3 @@ | ||
SAGE_SPKG_CONFIGURE([pari_seadata_small], [ | ||
AC_PATH_PROG([GP], [gp]) | ||
if test x$GP != x; then | ||
AC_MSG_CHECKING([is pari_seadata_small installed? ]) | ||
gp_seadat_check=`echo "poldegree(ellmodulareqn(11)[[1]])" | $GP -qf` | ||
if test x$gp_seadat_check = x12; then | ||
AC_MSG_RESULT([yes]) | ||
else | ||
AC_MSG_RESULT([no; cannot use system pari/GP without seadata package]) | ||
AC_MSG_NOTICE([Install seadata package and reconfigure.]) | ||
AC_MSG_NOTICE([Otherwise Sage will build its own pari/GP.]) | ||
sage_spkg_install_pari_seadata_small=yes | ||
fi | ||
else | ||
AC_MSG_NOTICE([gp is not found]) | ||
sage_spkg_install_pari_seadata_small=yes | ||
fi | ||
SAGE_CHECK_PARI_DEP([pari_seadata_small]) | ||
]) |
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,10 @@ | ||
AC_DEFUN([SAGE_CHECK_PARI_DEP],[ | ||
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 $1 as well]) | ||
[sage_spkg_install_]$1=yes | ||
else | ||
AC_MSG_RESULT([no]) | ||
fi | ||
]) |