From 8f7dec8ee149aa00d43b7f19ee7d8027cbf8fb5d Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Tue, 2 Dec 2014 14:15:26 -0800 Subject: Add a ./configure flag "DIST_LANG" to select which langauge to include in a distribution package. --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 58c1bf37..c3b04e0c 100644 --- a/configure.ac +++ b/configure.ac @@ -20,6 +20,14 @@ AC_CONFIG_SRCDIR(src/google/protobuf/message.cc) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) +AC_ARG_VAR(DIST_LANG, [language to include in the distribution package (i.e., make dist)]) +case "$DIST_LANG" in + "") DIST_LANG=cpp ;; + all | cpp | java | python | javanano) ;; + *) AC_MSG_FAILURE([unknown language: $DIST_LANG]) ;; +esac +AC_SUBST(DIST_LANG) + # autoconf's default CXXFLAGS are usually "-g -O2". These aren't necessarily # the best choice for libprotobuf. AS_IF([test "x${ac_cv_env_CFLAGS_set}" = "x"], -- cgit v1.2.3