Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: reduce build requirements on gmp and mpfr #2260

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,15 @@ fi
# check GMP
################################################################################

FLINT_CHECK_GMP_H(6,2,1)
AS_IF([test "$enable_gmp_internals" = "yes"], [
FLINT_CHECK_GMP_H(6,2,1)
GMP_REQUIREMENT="6.2.1"
], [
dnl Dependency on mpn_zero_p
FLINT_CHECK_GMP_H(6,1,0)
GMP_REQUIREMENT="6.1.0"
])
AC_SUBST([GMP_REQUIREMENT])
FLINT_GMP_LONG_LONG_LIMB([SLONG="long long int"
ULONG="unsigned long long int"
gmpcompat_h_in="gmpcompat-longlong.h.in"],
Expand All @@ -1001,7 +1009,8 @@ AC_SUBST(GMPCOMPAT_H_IN, $gmpcompat_h_in)
# check MPFR
################################################################################

FLINT_CHECK_MPFR_H(4,1,0)
dnl Dependency on mpfr_rootn_ui
FLINT_CHECK_MPFR_H(4,0,0)

################################################################################
# check ABI
Expand Down
2 changes: 1 addition & 1 deletion flint.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Name: @PACKAGE_NAME@
Description: Fast Library for Number Theory
Version: @PACKAGE_VERSION@
URL: https://flintlib.org/
Requires: gmp >= 6.2.1 mpfr >= 4.1.0
Requires: gmp >= @GMP_REQUIREMENT@ mpfr >= 4.0.0
Cflags: -I${includedir}
Libs: -L${libdir} -lflint
Loading