Allow the Thrift compiler to be built without the Smalltalk generator.

- Use AX_THRIFT_GEN to make configure support --disable-gen-st
- Update the compiler Makefile.am to exclude the generator.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665600 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Reiss 2008-03-27 21:40:42 +00:00
parent 2b6ba090dc
commit b3ac8a6c72
2 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,6 @@ thrift_SOURCES = src/thrifty.yy \
src/generate/t_perl_generator.cc \
src/generate/t_erl_generator.cc \
src/generate/t_cocoa_generator.cc \
src/generate/t_st_generator.cc \
src/generate/t_csharp_generator.cc \
src/globals.h \
src/main.h \
@ -57,6 +56,9 @@ endif
if THRIFT_GEN_java
thrift_SOURCES += src/generate/t_java_generator.cc
endif
if THRIFT_GEN_st
thrift_SOURCES += src/generate/t_st_generator.cc
endif
if THRIFT_GEN_ocaml
thrift_SOURCES += src/generate/t_ocaml_generator.cc
endif

View File

@ -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(st, [Smalltalk], yes)
AM_CONDITIONAL([THRIFT_GEN_st], [test "$ax_thrift_gen_st" = "yes"])
AX_THRIFT_GEN(ocaml, [OCaml], yes)
AM_CONDITIONAL([THRIFT_GEN_ocaml], [test "$ax_thrift_gen_ocaml" = "yes"])
AX_THRIFT_GEN(hs, [Haskell], yes)