Build third-party if either examples or apps is enabled

This commit is contained in:
Tatsuhiro Tsujikawa 2015-05-28 22:55:47 +09:00
parent 1f7e6ea3fe
commit ad265aa9d0
2 changed files with 15 additions and 0 deletions

View File

@ -477,6 +477,16 @@ fi
AM_CONDITIONAL([ENABLE_EXAMPLES], [ test "x${enable_examples}" = "xyes" ]) AM_CONDITIONAL([ENABLE_EXAMPLES], [ test "x${enable_examples}" = "xyes" ])
# third-party only be built if either enable_examples or enable_app is
# yes
enable_third_party=no
if test "x${enable_examples}" = "xyes" || test "x${enable_app}" = "xyes"; then
enable_third_party=yes
fi
AM_CONDITIONAL([ENABLE_THIRD_PARTY], [ test "x${enable_third_party}" = "xyes" ])
# Python bindings # Python bindings
enable_python_bindings=no enable_python_bindings=no
if test "x${request_python_bindings}" != "xno" && if test "x${request_python_bindings}" != "xno" &&
@ -750,4 +760,5 @@ AC_MSG_NOTICE([summary of build options:
Examples: ${enable_examples} Examples: ${enable_examples}
Python bindings:${enable_python_bindings} Python bindings:${enable_python_bindings}
Threading: ${enable_threads} Threading: ${enable_threads}
Third-party: ${enable_third_party}
]) ])

View File

@ -23,10 +23,14 @@
AM_CPPFLAGS = -Wall @DEFS@ AM_CPPFLAGS = -Wall @DEFS@
if ENABLE_THIRD_PARTY
noinst_LTLIBRARIES = libhttp-parser.la noinst_LTLIBRARIES = libhttp-parser.la
libhttp_parser_la_SOURCES = \ libhttp_parser_la_SOURCES = \
http-parser/http_parser.c \ http-parser/http_parser.c \
http-parser/http_parser.h http-parser/http_parser.h
endif # ENABLE_THIRD_PARTY
dist_pkgdata_SCRIPTS = h2o/fetch-ocsp-response dist_pkgdata_SCRIPTS = h2o/fetch-ocsp-response