Allow the Thrift compiler to be built without the Haskell generator.
authorDavid Reiss <dreiss@apache.org>
Thu, 27 Mar 2008 21:40:26 +0000 (21:40 +0000)
committerDavid Reiss <dreiss@apache.org>
Thu, 27 Mar 2008 21:40:26 +0000 (21:40 +0000)
- Use AX_THRIFT_GEN to make configure support --disable-gen-hs
- Update the compiler Makefile.am to exclude the generator.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665596 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/Makefile.am
configure.ac

index f06b821..9063943 100644 (file)
@@ -15,7 +15,6 @@ thrift_SOURCES = src/thrifty.yy \
                  src/generate/t_xsd_generator.cc \
                  src/generate/t_perl_generator.cc \
                  src/generate/t_erl_generator.cc \
-                 src/generate/t_hs_generator.cc \
                  src/generate/t_cocoa_generator.cc \
                  src/generate/t_st_generator.cc \
                  src/generate/t_csharp_generator.cc \
@@ -62,6 +61,9 @@ endif
 if THRIFT_GEN_ocaml
 thrift_SOURCES += src/generate/t_ocaml_generator.cc
 endif
+if THRIFT_GEN_hs
+thrift_SOURCES += src/generate/t_hs_generator.cc
+endif
 
 thrift_CXXFLAGS = -Wall -I$(srcdir)/src $(BOOST_CPPFLAGS)
 thrift_LDFLAGS = -Wall $(BOOST_LDFLAGS)
index db68259..862cd53 100644 (file)
@@ -132,6 +132,8 @@ 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"])
+AX_THRIFT_GEN(hs, [Haskell], yes)
+AM_CONDITIONAL([THRIFT_GEN_hs], [test "$ax_thrift_gen_hs" = "yes"])
 
 AC_CONFIG_HEADERS(config.h:config.hin)