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.
spkg-configure for mpc, adjustments for its dependees
- Loading branch information
Showing
3 changed files
with
27 additions
and
3 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,24 @@ | ||
SAGE_SPKG_CONFIGURE([mpc], [ | ||
AC_CHECK_HEADER(mpc.h, [], [sage_spkg_install_mpc=yes]) | ||
dnl mpc_cmp_abs appeared in MPC 1.1.0 | ||
AC_SEARCH_LIBS([mpc_cmp_abs], [mpc], [break], [sage_spkg_install_mpc=yes]) | ||
if test x$sage_spkg_install_mpc = xyes; then | ||
AC_SUBST(SAGE_MPC_PREFIX, ['$SAGE_LOCAL']) | ||
dnl AC_SUBST(SAGE_MPC_INCLUDE, ['$SAGE_LOCAL/include']) | ||
AC_MSG_RESULT([using Sage's mpc SPKG]) | ||
else | ||
dnl If found, we want to get the absolute path to where we | ||
dnl found it for use with some packages want | ||
dnl this information at configure time | ||
AX_ABSOLUTE_HEADER([mpc.h]) | ||
if test x$gl_cv_absolute_mpc_h = x; then | ||
AC_MSG_ERROR(m4_normalize([ | ||
failed to find absolute path to mpc.h despite it being reported found | ||
])) | ||
fi | ||
dnl AC_SUBST(SAGE_MPC_INCLUDE, [`AS_DIRNAME($gl_cv_absolute_mpc_h)`]) | ||
AC_SUBST(SAGE_MPC_PREFIX, ['']) | ||
AC_MSG_RESULT([using mpc library from the system]) | ||
fi | ||
]) |
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,6 +1,6 @@ | ||
cd src | ||
|
||
sdh_configure $SAGE_CONFIGURE_GMP $SAGE_CONFIGURE_MPFR \ | ||
--with-mpc="$SAGE_LOCAL" --disable-static --enable-shared | ||
sdh_configure $SAGE_CONFIGURE_GMP $SAGE_CONFIGURE_MPFR \ | ||
--with-mpc="$SAGE_MPC_PREFIX" --disable-static --enable-shared | ||
sdh_make | ||
sdh_make_install |