Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
441d408b
Commit
441d408b
authored
Mar 21, 2015
by
Alexandre Duret-Lutz
Browse files
configure: disable Python when --disable-shared
Fixes
#68
. * configure.ac: Here.
parent
125fa983
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
441d408b
...
...
@@ -35,19 +35,6 @@ test -z "$CXXFLAGS" && CXXFLAGS=
adl_ENABLE_DEVEL
AC_ARG_ENABLE([python],
[AC_HELP_STRING([--disable-python],
[do not compile Python bindings])],
[], [enable_python=yes])
AM_CONDITIONAL([USE_PYTHON], [test "x${enable_python:-yes}" = xyes])
if test "x${enable_python:-yes}" = xyes; then
AC_MSG_NOTICE([You may configure with --disable-python ]dnl
[if you do not need Python bindings.])
adl_CHECK_PYTHON
fi
AC_PROG_CC
gl_EARLY
...
...
@@ -129,6 +116,29 @@ LTDL_INIT([subproject convenience])
link_all_deplibs=yes
link_all_deplibs_CXX=yes
AC_ARG_ENABLE([python],
[AC_HELP_STRING([--disable-python],
[do not compile Python bindings])],
[], [enable_python=yes])
case $enable_shared:$enable_python in
no:no);;
no:*)
enable_python=no
AC_MSG_NOTICE([Not building Python bindings because of --disable-shared.])
;;
esac
AM_CONDITIONAL([USE_PYTHON], [test "x${enable_python:-yes}" = xyes])
if test "x${enable_python:-yes}" = xyes; then
AC_MSG_NOTICE([You may configure with --disable-python ]dnl
[if you do not need Python bindings.])
adl_CHECK_PYTHON
fi
adl_ENABLE_DEBUG
ad_GCC_OPTIM
adl_NDEBUG
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment