Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libmtime
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
icon-libraries
libmtime
Commits
3c45e595
Commit
3c45e595
authored
8 months ago
by
Sergey Kosukhin
Browse files
Options
Downloads
Patches
Plain Diff
Disable Python interface by default
parent
9f08091d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!43
Update python build
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure.ac
+9
-14
9 additions, 14 deletions
configure.ac
with
9 additions
and
14 deletions
configure.ac
+
9
−
14
View file @
3c45e595
...
...
@@ -72,14 +72,12 @@ AM_CONDITIONAL([ENABLE_FORTRAN_HL], [test x"$enable_fortran_hl" = xyes])
AC_ARG_ENABLE([python],
[AS_HELP_STRING([--enable-python],
[enable the Python interface @<:@default=auto@:>@])], [],
[enable_python=auto])
AS_IF([test "x$enable_shared" = xno || test "x$with_pic" = xno],
[AS_CASE([$enable_python],
[auto], [enable_python=no],
[no], [],
[AC_MSG_ERROR([cannot provide the Python interface when the shared libraries dnl
or PIC objects are disabled])])])
[enable the Python interface @<:@default=no@:>@])], [],
[enable_python=no])
AS_VAR_IF([enable_python], [yes],
[AS_IF([test "x$enable_shared" = xno || test "x$with_pic" = xno],
[AC_MSG_ERROR([cannot provide the Python interface when the shared libraries or dnl
PIC objects are disabled])])])
AC_ARG_ENABLE([check],
[AS_HELP_STRING([--enable-check],
...
...
@@ -112,7 +110,7 @@ AS_VAR_IF([enable_check], [yes],
[CHECK_CLIBS=;CHECK_CFLAGS=])
AM_CONDITIONAL([ENABLE_CHECK], [test x"$enable_check" = xyes])
AS_IF([
test x"$
enable_python
" != xno
],
AS_
VAR_
IF([enable_python
], [yes
],
[dnl
dnl AM_PATH_PYTHON does not run ACTION-IF-NOT-FOUND when the PYTHON provided by the user
dnl is too old:
...
...
@@ -125,11 +123,8 @@ dnl is too old:
PACKAGE=mtime
AM_PATH_PYTHON([mtime_python_min_version], [mtime_python_found=yes], [:])
PACKAGE=$save_PACKAGE])
AS_VAR_IF([mtime_python_found], [yes],
[enable_python=yes],
[AS_VAR_IF([enable_python], [auto],
[enable_python=no],
[AC_MSG_FAILURE([cannot find suitable Python interpreter])])])])
AS_VAR_IF([mtime_python_found], [no],
[AC_MSG_FAILURE([cannot find suitable Python interpreter])])])
AM_CONDITIONAL([ENABLE_PYTHON], [test x"$enable_python" = xyes])
AM_MISSING_PROG([RAGEL], [ragel])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment