From ad265aa9d0201bfc314bf3543cc36e56c5b8d9be Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 28 May 2015 22:55:47 +0900 Subject: [PATCH] Build third-party if either examples or apps is enabled --- configure.ac | 11 +++++++++++ third-party/Makefile.am | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/configure.ac b/configure.ac index 202b59cb..9943a462 100644 --- a/configure.ac +++ b/configure.ac @@ -477,6 +477,16 @@ fi 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 enable_python_bindings=no if test "x${request_python_bindings}" != "xno" && @@ -750,4 +760,5 @@ AC_MSG_NOTICE([summary of build options: Examples: ${enable_examples} Python bindings:${enable_python_bindings} Threading: ${enable_threads} + Third-party: ${enable_third_party} ]) diff --git a/third-party/Makefile.am b/third-party/Makefile.am index aa8832d3..0dc41621 100644 --- a/third-party/Makefile.am +++ b/third-party/Makefile.am @@ -23,10 +23,14 @@ AM_CPPFLAGS = -Wall @DEFS@ +if ENABLE_THIRD_PARTY + noinst_LTLIBRARIES = libhttp-parser.la libhttp_parser_la_SOURCES = \ http-parser/http_parser.c \ http-parser/http_parser.h +endif # ENABLE_THIRD_PARTY + dist_pkgdata_SCRIPTS = h2o/fetch-ocsp-response