Skip to content

SAGE_SPKG_CONFIGURE macro: Add new pre-check and post-check optional arguments #27641

@embray

Description

@embray

This adds two new optional arguments to the SAGE_SPKG_CONFIGURE. Both are sets of actions that should be run unconditionally when running the resulting configure script, regardless of the outcome of checks for the package.

This demonstrates a use case for this in mpir, where no matter what else it is imperative to set a value for SAGE_MP_LIBRARY (even if we are not installing the mpir SPKG, or the SPKG is already installed).

The follow-up ticket #27642 might make more clear why this is useful: If some SPKG is already installed we shouldn't bother checking for it on the system, so we skip the dependency checks. But we may still want to perform other package-specific configure actions.

One thing I don't like about this entirely is that it would seem clearer and more logical to make the "pre" argument come before the other arguments. However, since it's optional, and is not used for many packages, I thought it would be better to add it to the end of the argument list and not have to update every spkg-configure.m4 to pass an empty value for the first argument.

CC: @dimpase

Component: build: configure

Author: Erik Bray

Branch/Commit: 1c24df1

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/27641

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions