From: David Reiss Date: Thu, 27 Mar 2008 21:42:34 +0000 (+0000) Subject: Allow the Thrift compiler to be built without the Perl generator. X-Git-Tag: 0.2.0~849 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=fdc21aa713ca8ddf19cd2104c4074bdd27211e05;p=common%2Fthrift.git Allow the Thrift compiler to be built without the Perl generator. - Use AX_THRIFT_GEN to make configure support --disable-gen-perl - Update the compiler Makefile.am to exclude the generator. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665623 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/Makefile.am b/compiler/cpp/Makefile.am index dbf3917a..54a44c98 100644 --- a/compiler/cpp/Makefile.am +++ b/compiler/cpp/Makefile.am @@ -11,7 +11,6 @@ thrift_SOURCES = src/thrifty.yy \ src/generate/t_generator.cc \ src/generate/t_php_generator.cc \ src/generate/t_xsd_generator.cc \ - src/generate/t_perl_generator.cc \ src/generate/t_erl_generator.cc \ src/globals.h \ src/main.h \ @@ -56,6 +55,9 @@ endif if THRIFT_GEN_rb thrift_SOURCES += src/generate/t_rb_generator.cc endif +if THRIFT_GEN_perl +thrift_SOURCES += src/generate/t_perl_generator.cc +endif if THRIFT_GEN_cocoa thrift_SOURCES += src/generate/t_cocoa_generator.cc endif diff --git a/configure.ac b/configure.ac index f56a2761..9e65a612 100644 --- a/configure.ac +++ b/configure.ac @@ -136,6 +136,8 @@ AX_THRIFT_GEN(py, [Python], yes) AM_CONDITIONAL([THRIFT_GEN_py], [test "$ax_thrift_gen_py" = "yes"]) AX_THRIFT_GEN(rb, [Ruby], yes) AM_CONDITIONAL([THRIFT_GEN_rb], [test "$ax_thrift_gen_rb" = "yes"]) +AX_THRIFT_GEN(perl, [Perl], yes) +AM_CONDITIONAL([THRIFT_GEN_perl], [test "$ax_thrift_gen_perl" = "yes"]) AX_THRIFT_GEN(cocoa, [Cocoa], yes) AM_CONDITIONAL([THRIFT_GEN_cocoa], [test "$ax_thrift_gen_cocoa" = "yes"]) AX_THRIFT_GEN(st, [Smalltalk], yes)