Skip to content

Commit

Permalink
build: add python checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Hergert committed Mar 1, 2014
1 parent d0bee9f commit d31ff4c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/autotools/PrintBuildConfiguration.m4
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ Documentation:
Install man pages : ${bson_install_man}

Bindings:
Python (experimental) : ${enable_python}
Python (experimental) : ${ax_python_header}
"
13 changes: 13 additions & 0 deletions build/autotools/Python.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
AC_ARG_ENABLE(
[python],
[AC_HELP_STRING([--enable-python=@<:no/yes@:>@],
[Enable support for experimental python bindings. @<:@default=no@:>@])],
[], [
enable_python=no
ax_python_header=no
]
)
AS_IF([test "x$enable_python" = "xyes"], [
AX_PYTHON
])
AM_CONDITIONAL([ENABLE_PYTHON], [test "x$ax_python_header" != "xno"])
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ m4_include([build/autotools/CheckTarget.m4])
m4_include([build/autotools/Endian.m4])
m4_include([build/autotools/ReadCommandLineArguments.m4])
m4_include([build/autotools/FindDependencies.m4])
m4_include([build/autotools/Python.m4])

# We would put AM_INIT_AUTOMAKE into SetupAutomake.m4, but seems to cause autoconf errors.
AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip tar-ustar])
Expand Down

0 comments on commit d31ff4c

Please sign in to comment.