|
1 | | -SAGE_SPKG_CONFIGURE( |
2 | | - [ninja_build], [ |
3 | | - dnl meson_python needs 1.8.2 or later |
4 | | - AC_CACHE_CHECK([for ninja >= 1.8.2], [ac_cv_path_NINJA], [ |
5 | | - AC_PATH_PROGS_FEATURE_CHECK([NINJA], [ninja], [ |
6 | | - dnl support both two- and three-component version schemes |
7 | | - dnl since samurai (a ninja alternative) uses two |
8 | | - ninja_version=`$ac_path_NINJA --version 2>&1 \ |
9 | | - | $SED -n -e 's/\([[0-9]]*\(\.[[0-9]]*\)\{1,2\}\).*/\1/p'` |
10 | | - AS_IF([test -n "$ninja_version"], [ |
11 | | - AX_COMPARE_VERSION([$ninja_version], [ge], [1.8.2], [ |
12 | | - ac_cv_path_NINJA="$ac_path_NINJA" |
13 | | - ac_path_NINJA_found=: |
| 1 | +SAGE_SPKG_CONFIGURE([ninja_build], [dnl |
| 2 | + dnl meson_python needs 1.8.2 or later |
| 3 | + AC_CACHE_CHECK([for ninja >= 1.8.2], [ac_cv_path_NINJA], [dnl |
| 4 | + dnl Do not accept ninja installed from https://pypi.org/project/ninja/ |
| 5 | + dnl in the default user scheme; it will not work in our venv because |
| 6 | + dnl we set PYTHONUSERBASE in sage-env. |
| 7 | + WITH_SAGE_PYTHONUSERBASE([dnl |
| 8 | + AC_PATH_PROGS_FEATURE_CHECK([NINJA], [ninja], [dnl |
| 9 | + dnl support both two- and three-component version schemes |
| 10 | + dnl since samurai (a ninja alternative) uses two |
| 11 | + ninja_version=`$ac_path_NINJA --version 2>&1 \ |
| 12 | + | $SED -n -e 's/\([[0-9]]*\(\.[[0-9]]*\)\{1,2\}\).*/\1/p'` |
| 13 | + AS_IF([test -n "$ninja_version"], [dnl |
| 14 | + AX_COMPARE_VERSION([$ninja_version], [ge], [1.8.2], [ |
| 15 | + ac_cv_path_NINJA="$ac_path_NINJA" |
| 16 | + ac_path_NINJA_found=: |
| 17 | + ]) |
14 | 18 | ]) |
15 | 19 | ]) |
16 | 20 | ]) |
|
0 commit comments