Skip to content

Commit

Permalink
Allow the Thrift compiler to be built without the OCaml generator.
Browse files Browse the repository at this point in the history
- Use AX_THRIFT_GEN to make configure support --disable-gen-ocaml
- Update the compiler Makefile.am to exclude the generator.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665593 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
dreiss committed Mar 27, 2008
1 parent 6d9dddd commit bd4419f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/cpp/Makefile.am
Expand Up @@ -14,7 +14,6 @@ thrift_SOURCES = src/thrifty.yy \
src/generate/t_rb_generator.cc \
src/generate/t_xsd_generator.cc \
src/generate/t_perl_generator.cc \
src/generate/t_ocaml_generator.cc \
src/generate/t_erl_generator.cc \
src/generate/t_hs_generator.cc \
src/generate/t_cocoa_generator.cc \
Expand Down Expand Up @@ -61,6 +60,9 @@ endif
if THRIFT_GEN_java
thrift_SOURCES += src/generate/t_java_generator.cc
endif
if THRIFT_GEN_ocaml
thrift_SOURCES += src/generate/t_ocaml_generator.cc
endif

thrift_CXXFLAGS = -Wall -I$(srcdir)/src $(BOOST_CPPFLAGS)
thrift_LDFLAGS = -Wall $(BOOST_LDFLAGS)
Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Expand Up @@ -130,6 +130,8 @@ AX_THRIFT_GEN(cpp, [C++], yes)
AM_CONDITIONAL([THRIFT_GEN_cpp], [test "$ax_thrift_gen_cpp" = "yes"])
AX_THRIFT_GEN(java, [Java], yes)
AM_CONDITIONAL([THRIFT_GEN_java], [test "$ax_thrift_gen_java" = "yes"])
AX_THRIFT_GEN(ocaml, [OCaml], yes)
AM_CONDITIONAL([THRIFT_GEN_ocaml], [test "$ax_thrift_gen_ocaml" = "yes"])

AC_CONFIG_HEADERS(config.h:config.hin)

Expand Down

0 comments on commit bd4419f

Please sign in to comment.