Skip to content

Commit ca3d95b

Browse files
committed
configure.ac: no cffi/pycparser with --disable-notebook and --disable-r
The pycparser package is a dependency of two others, cffi and rpy2, which can be disabled with --disable-notebook and --disable-r respectively. As a result we can disable pycparser when both flags are present.
1 parent 62164e3 commit ca3d95b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

configure.ac

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,12 @@ AS_IF([test "$SAGE_ENABLE_r" = no -a "$SAGE_ENABLE_sage_docbuild" = no], [
555555
AS_VAR_SET([SAGE_ENABLE_$pkg], [$enableval])
556556
done
557557
])
558+
AS_IF([test "$SAGE_ENABLE_r" = no -a "$SAGE_ENABLE_notebook" = no], [
559+
dnl These two are dependencies of both rpy2 and some notebook stuff
560+
for pkg in cffi pycparser; do
561+
AS_VAR_SET([SAGE_ENABLE_$pkg], [$enableval])
562+
done
563+
])
558564

559565
dnl Packages that require a special override to use the SPKG
560566
dnl when the system package is not usable.

0 commit comments

Comments
 (0)