Skip to content

Commit 42c4a4f

Browse files
committed
meson: add explicit option for eclib support
Add an entry to meson.options (and tweak src/meson.build) so that the user can explicitly state whether or not he would like eclib support to be enabled, e.g. $ meson setup -Declib=disabled The default of "auto" is backwards-compatible.
1 parent af73e0c commit 42c4a4f

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

meson.options

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ option(
4141
description: 'Coxeter 3.x interface to Coxeter groups'
4242
)
4343

44+
option(
45+
'eclib',
46+
type: 'feature',
47+
value: 'auto',
48+
description: 'eclib interface to mwrank and elliptic curves over Q'
49+
)
50+
4451
option(
4552
'mcqd',
4653
type: 'feature',

src/meson.build

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,12 @@ mtx = cc.find_library(
157157
)
158158
png = dependency(['libpng', 'png', 'png16'], version: '>=1.2')
159159
zlib = dependency('zlib', version: '>=1.2.11')
160-
ec = dependency('eclib', version: '>=20250122', required: false, disabler: true)
160+
ec = dependency(
161+
'eclib',
162+
version: '>=20250122',
163+
required: get_option('eclib'),
164+
disabler: true
165+
)
161166
ecm = cc.find_library('ecm', required: not is_windows, disabler: true)
162167
gmpxx = dependency('gmpxx', required: not is_windows, disabler: true)
163168
fflas = dependency(

0 commit comments

Comments
 (0)