David Reiss | feab773 | 2009-03-30 22:52:44 +0000 | [diff] [blame] | 1 | # |
| 2 | # Licensed to the Apache Software Foundation (ASF) under one |
| 3 | # or more contributor license agreements. See the NOTICE file |
| 4 | # distributed with this work for additional information |
| 5 | # regarding copyright ownership. The ASF licenses this file |
| 6 | # to you under the Apache License, Version 2.0 (the |
| 7 | # "License"); you may not use this file except in compliance |
| 8 | # with the License. You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, |
| 13 | # software distributed under the License is distributed on an |
| 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | # KIND, either express or implied. See the License for the |
| 16 | # specific language governing permissions and limitations |
| 17 | # under the License. |
| 18 | # |
| 19 | |
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 20 | AC_PREREQ(2.59) |
| 21 | |
Bryan Duxbury | 4c9f25c | 2010-08-13 02:52:12 +0000 | [diff] [blame] | 22 | AC_INIT([thrift], [0.5.0-dev]) |
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 23 | |
| 24 | AC_CONFIG_AUX_DIR([.]) |
| 25 | |
| 26 | AM_INIT_AUTOMAKE |
| 27 | |
David Reiss | d683219 | 2007-09-05 00:47:32 +0000 | [diff] [blame] | 28 | AC_ARG_VAR([PY_PREFIX], [Prefix for installing Python modules. |
| 29 | (Normal --prefix is ignored for Python because |
| 30 | Python has different conventions.) |
| 31 | Default = "/usr"]) |
David Reiss | cdd6f3c | 2008-03-04 21:10:29 +0000 | [diff] [blame] | 32 | AS_IF([test "x$PY_PREFIX" = x], [PY_PREFIX="/usr"]) |
David Reiss | d683219 | 2007-09-05 00:47:32 +0000 | [diff] [blame] | 33 | |
David Reiss | f0c21a7 | 2008-07-11 01:26:16 +0000 | [diff] [blame] | 34 | AC_ARG_VAR([JAVA_PREFIX], [Prefix for installing the Java lib jar. |
| 35 | (Normal --prefix is ignored for Java because |
| 36 | Java has different conevntions.) |
| 37 | Default = "/usr/local/lib"]) |
| 38 | AS_IF([test "x$JAVA_PREFIX" = x], [JAVA_PREFIX="/usr/local/lib"]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 39 | |
Bryan Duxbury | 3f0b526 | 2010-05-12 21:31:58 +0000 | [diff] [blame] | 40 | AC_ARG_VAR([RUBY_PREFIX], [Prefix for installing Ruby modules. |
| 41 | (Normal --prefix is ignored for Ruby because |
| 42 | Ruby has different conventions.) |
| 43 | Default = none, let ruby setup decide]) |
| 44 | |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 45 | AC_ARG_VAR([PHP_PREFIX], [Prefix for installing PHP modules. |
| 46 | (Normal --prefix is ignored for PHP because |
| 47 | PHP has different conventions.) |
| 48 | Default = "/usr/lib/php"]) |
| 49 | AS_IF([test "x$PHP_PREFIX" = x], [PHP_PREFIX="/usr/lib/php"]) |
| 50 | |
David Reiss | c07057e | 2010-06-11 17:57:32 +0000 | [diff] [blame] | 51 | AC_ARG_VAR([PERL_PREFIX], [Prefix for installing Perl modules. |
| 52 | (Normal --prefix is ignored for Perl because |
| 53 | Perl has different conventions.) |
| 54 | Default = "/usr/local/lib"]) |
| 55 | AS_IF([test "x$PERL_PREFIX" = x], [PERL_PREFIX="/usr/local"]) |
| 56 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 57 | AC_PROG_CC |
| 58 | AC_PROG_CPP |
| 59 | AC_PROG_CXX |
| 60 | AC_PROG_INSTALL |
| 61 | AC_PROG_LIBTOOL |
| 62 | AC_PROG_MAKE_SET |
| 63 | AC_PROG_YACC |
| 64 | AC_PROG_LEX |
| 65 | AM_PROG_LEX |
David Reiss | 7ed4b98 | 2008-02-11 23:24:47 +0000 | [diff] [blame] | 66 | AC_PROG_LN_S |
| 67 | AC_PROG_MKDIR_P |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 68 | |
| 69 | AC_LANG([C++]) |
| 70 | AX_BOOST_BASE([1.33.1]) |
| 71 | |
| 72 | AX_LIB_EVENT([1.0]) |
| 73 | AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$success" = "yes"]) |
| 74 | |
| 75 | AX_LIB_ZLIB([1.2.3]) |
| 76 | AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"]) |
| 77 | |
David Reiss | 520b5ee | 2008-03-02 07:00:26 +0000 | [diff] [blame] | 78 | AX_THRIFT_LIB(csharp, [C#], yes) |
| 79 | if test "$with_csharp" = "yes"; then |
David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 80 | PKG_CHECK_MODULES(MONO, mono >= 2.0.0, net_3_5=yes, net_3_5=no) |
| 81 | PKG_CHECK_MODULES(MONO, mono >= 1.2.4, have_mono=yes, have_mono=no) |
David Reiss | 520b5ee | 2008-03-02 07:00:26 +0000 | [diff] [blame] | 82 | fi |
David Reiss | 82c1bab | 2008-06-11 01:16:53 +0000 | [diff] [blame] | 83 | AM_CONDITIONAL(WITH_MONO, [test "$have_mono" = "yes"]) |
David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 84 | AM_CONDITIONAL(NET_2_0, [test "$net_3_5" = "no"]) |
David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 85 | |
David Reiss | 62d3981 | 2008-03-02 07:00:22 +0000 | [diff] [blame] | 86 | AX_THRIFT_LIB(java, [Java], yes) |
| 87 | if test "$with_java" = "yes"; then |
David Reiss | d9cdf42 | 2009-03-13 21:25:29 +0000 | [diff] [blame] | 88 | AX_JAVAC_AND_JAVA |
Bryan Duxbury | 38bab12 | 2010-08-12 00:27:14 +0000 | [diff] [blame] | 89 | AC_PATH_PROG([ANT], [ant]) |
Bryan Duxbury | c27cda5 | 2009-08-14 20:04:15 +0000 | [diff] [blame] | 90 | AX_CHECK_JAVA_CLASS(org.slf4j.Logger) |
| 91 | have_slf4j="$success" |
| 92 | AX_CHECK_JAVA_CLASS(org.slf4j.impl.SimpleLogger) |
| 93 | have_slf4j_simple="$success" |
David Reiss | fdfcebd | 2009-05-22 19:50:29 +0000 | [diff] [blame] | 94 | AX_CHECK_JAVA_CLASS(org.apache.commons.lang.builder.HashCodeBuilder) |
| 95 | have_hashcode="$success" |
Bryan Duxbury | c27cda5 | 2009-08-14 20:04:15 +0000 | [diff] [blame] | 96 | if test "x$have_slf4j_simple" = "xyes" && test "x$have_slf4j" = "xyes" && test "x$have_hashcode" = "xyes" ; then |
David Reiss | 4ca0c8e | 2009-05-12 23:16:55 +0000 | [diff] [blame] | 97 | ANT_FLAGS="$ANT_FLAGS -Dnoivy=" |
| 98 | fi |
David Reiss | fff84d1 | 2009-05-22 19:50:33 +0000 | [diff] [blame] | 99 | AC_SUBST(CLASSPATH) |
David Reiss | 4ca0c8e | 2009-05-12 23:16:55 +0000 | [diff] [blame] | 100 | AC_SUBST(ANT_FLAGS) |
David Reiss | 62d3981 | 2008-03-02 07:00:22 +0000 | [diff] [blame] | 101 | fi |
David Reiss | 82c1bab | 2008-06-11 01:16:53 +0000 | [diff] [blame] | 102 | AM_CONDITIONAL([WITH_JAVA], |
David Reiss | f8dcf03 | 2008-02-23 22:07:39 +0000 | [diff] [blame] | 103 | [test -n "$ANT" -a -n "$JAVA" -a -n "$JAVAC"]) |
David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 104 | |
Christopher Piro | b6f18c2 | 2008-03-04 07:09:12 +0000 | [diff] [blame] | 105 | AX_THRIFT_LIB(erlang, [Erlang], yes) |
| 106 | if test "$with_erlang" = "yes"; then |
David Reiss | 9e2fd79 | 2010-05-18 16:52:48 +0000 | [diff] [blame] | 107 | AC_ERLANG_PATH_ERL |
| 108 | AC_ERLANG_PATH_ERLC |
| 109 | AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) |
Christopher Piro | b6f18c2 | 2008-03-04 07:09:12 +0000 | [diff] [blame] | 110 | fi |
David Reiss | 9e2fd79 | 2010-05-18 16:52:48 +0000 | [diff] [blame] | 111 | AM_CONDITIONAL(WITH_ERLANG, [test -n "$ERL" -a -n "$ERLC"]) |
Christopher Piro | b6f18c2 | 2008-03-04 07:09:12 +0000 | [diff] [blame] | 112 | |
David Reiss | 1a14091 | 2008-06-11 01:16:37 +0000 | [diff] [blame] | 113 | AX_THRIFT_LIB(py, [Python], yes) |
| 114 | if test "$with_py" = "yes"; then |
| 115 | AM_PATH_PYTHON(2.4,, :) |
| 116 | fi |
David Reiss | 82c1bab | 2008-06-11 01:16:53 +0000 | [diff] [blame] | 117 | AM_CONDITIONAL(WITH_PYTHON, [test -n "$PYTHON" -a "$PYTHON" != ":"]) |
David Reiss | 1a14091 | 2008-06-11 01:16:37 +0000 | [diff] [blame] | 118 | |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 119 | AX_THRIFT_LIB(perl, [Perl], yes) |
| 120 | if test "$with_perl" = "yes"; then |
| 121 | AC_PATH_PROG([PERL], [perl]) |
Bryan Duxbury | 1237369 | 2010-08-19 05:23:59 +0000 | [diff] [blame^] | 122 | if test -n "`$PERL -MBit::Vector -e exit 2>&1`"; then |
| 123 | AC_MSG_WARN([Perl Bit::Vector module not installed, skipping perl]) |
| 124 | have_perl_bit_vector="no" |
| 125 | fi |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 126 | fi |
Bryan Duxbury | 1237369 | 2010-08-19 05:23:59 +0000 | [diff] [blame^] | 127 | AM_CONDITIONAL(WITH_PERL, [test -n "$PERL" -a -z "$have_perl_bit_vector"]) |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 128 | |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 129 | AX_THRIFT_LIB(php, [PHP], yes) |
| 130 | if test "$with_php" = "yes"; then |
| 131 | AC_PATH_PROG([PHP], [php]) |
| 132 | fi |
| 133 | AM_CONDITIONAL(WITH_PHP, [test -n "$PHP"]) |
| 134 | |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 135 | AX_THRIFT_LIB(ruby, [Ruby], yes) |
| 136 | if test "$with_ruby" = "yes"; then |
| 137 | AC_PATH_PROG([RUBY], [ruby]) |
Bryan Duxbury | ec47358 | 2009-04-07 16:31:04 +0000 | [diff] [blame] | 138 | AC_PATH_PROG([RSPEC], [spec]) |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 139 | fi |
David Reiss | 8d07e1d | 2008-07-11 08:04:12 +0000 | [diff] [blame] | 140 | AM_CONDITIONAL(WITH_RUBY, [test -n "$RUBY"]) |
Bryan Duxbury | ec47358 | 2009-04-07 16:31:04 +0000 | [diff] [blame] | 141 | AM_CONDITIONAL(HAVE_RSPEC, [test -n "$RSPEC"]) |
| 142 | |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 143 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 144 | AC_C_CONST |
| 145 | AC_C_INLINE |
| 146 | AC_C_VOLATILE |
| 147 | |
| 148 | AC_HEADER_STDBOOL |
| 149 | AC_HEADER_STDC |
| 150 | AC_HEADER_TIME |
| 151 | AC_CHECK_HEADERS([arpa/inet.h]) |
Bryan Duxbury | 184d262 | 2010-08-17 17:43:58 +0000 | [diff] [blame] | 152 | AC_CHECK_HEADERS([sys/param.h]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 153 | AC_CHECK_HEADERS([fcntl.h]) |
| 154 | AC_CHECK_HEADERS([inttypes.h]) |
David Reiss | 7ed4b98 | 2008-02-11 23:24:47 +0000 | [diff] [blame] | 155 | AC_CHECK_HEADERS([limits.h]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 156 | AC_CHECK_HEADERS([netdb.h]) |
| 157 | AC_CHECK_HEADERS([netinet/in.h]) |
| 158 | AC_CHECK_HEADERS([pthread.h]) |
| 159 | AC_CHECK_HEADERS([stddef.h]) |
David Reiss | d7a16f4 | 2008-02-19 22:47:29 +0000 | [diff] [blame] | 160 | AC_CHECK_HEADERS([stdlib.h]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 161 | AC_CHECK_HEADERS([sys/socket.h]) |
| 162 | AC_CHECK_HEADERS([sys/time.h]) |
| 163 | AC_CHECK_HEADERS([unistd.h]) |
| 164 | AC_CHECK_HEADERS([libintl.h]) |
| 165 | AC_CHECK_HEADERS([malloc.h]) |
| 166 | |
| 167 | AC_CHECK_LIB(pthread, pthread_create) |
David Reiss | e4ca179 | 2009-05-21 02:28:19 +0000 | [diff] [blame] | 168 | dnl NOTE(dreiss): I haven't been able to find any really solid docs |
| 169 | dnl on what librt is and how it fits into various Unix systems. |
| 170 | dnl My best guess is that it is where glibc stashes its implementation |
| 171 | dnl of the POSIX Real-Time Extensions. This seems necessary on Linux, |
| 172 | dnl and we haven't yet found a system where this is a problem. |
| 173 | AC_CHECK_LIB(rt, clock_gettime) |
David Reiss | 9b90344 | 2009-10-21 05:51:28 +0000 | [diff] [blame] | 174 | AC_CHECK_LIB(socket, setsockopt) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 175 | |
| 176 | AC_TYPE_INT16_T |
| 177 | AC_TYPE_INT32_T |
| 178 | AC_TYPE_INT64_T |
| 179 | AC_TYPE_INT8_T |
| 180 | AC_TYPE_MODE_T |
| 181 | AC_TYPE_OFF_T |
| 182 | AC_TYPE_SIZE_T |
David Reiss | 847a294 | 2008-04-21 18:07:43 +0000 | [diff] [blame] | 183 | AC_TYPE_SSIZE_T |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 184 | AC_TYPE_UINT16_T |
| 185 | AC_TYPE_UINT32_T |
| 186 | AC_TYPE_UINT64_T |
| 187 | AC_TYPE_UINT8_T |
David Reiss | 33fc5ad | 2008-05-09 07:17:34 +0000 | [diff] [blame] | 188 | AC_CHECK_TYPES([ptrdiff_t], [], [exit 1]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 189 | |
David Reiss | 7ed4b98 | 2008-02-11 23:24:47 +0000 | [diff] [blame] | 190 | AC_STRUCT_TM |
| 191 | |
David Reiss | 85a8f7b | 2009-05-21 02:28:16 +0000 | [diff] [blame] | 192 | dnl NOTE(dreiss): AI_ADDRCONFIG is not defined on OpenBSD. |
| 193 | AC_CHECK_DECL([AI_ADDRCONFIG], [], |
| 194 | [AC_DEFINE([AI_ADDRCONFIG], 0, |
| 195 | [Define if the AI_ADDRCONFIG symbol is unavailable])], |
| 196 | [ |
| 197 | #include <sys/types.h> |
| 198 | #include <sys/socket.h> |
| 199 | #include <netdb.h> |
| 200 | ]) |
| 201 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 202 | AC_FUNC_ALLOCA |
| 203 | AC_FUNC_MALLOC |
David Reiss | 7ed4b98 | 2008-02-11 23:24:47 +0000 | [diff] [blame] | 204 | AC_FUNC_MEMCMP |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 205 | AC_FUNC_REALLOC |
| 206 | AC_FUNC_SELECT_ARGTYPES |
| 207 | AC_FUNC_STAT |
| 208 | AC_FUNC_STRERROR_R |
David Reiss | 7ed4b98 | 2008-02-11 23:24:47 +0000 | [diff] [blame] | 209 | AC_FUNC_STRFTIME |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 210 | AC_FUNC_VPRINTF |
| 211 | AC_CHECK_FUNCS([strtoul]) |
| 212 | AC_CHECK_FUNCS([bzero]) |
David Reiss | 7ed4b98 | 2008-02-11 23:24:47 +0000 | [diff] [blame] | 213 | AC_CHECK_FUNCS([ftruncate]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 214 | AC_CHECK_FUNCS([gethostbyname]) |
| 215 | AC_CHECK_FUNCS([gettimeofday]) |
| 216 | AC_CHECK_FUNCS([memmove]) |
| 217 | AC_CHECK_FUNCS([memset]) |
| 218 | AC_CHECK_FUNCS([mkdir]) |
| 219 | AC_CHECK_FUNCS([realpath]) |
| 220 | AC_CHECK_FUNCS([select]) |
| 221 | AC_CHECK_FUNCS([socket]) |
| 222 | AC_CHECK_FUNCS([strchr]) |
| 223 | AC_CHECK_FUNCS([strdup]) |
David Reiss | 7ed4b98 | 2008-02-11 23:24:47 +0000 | [diff] [blame] | 224 | AC_CHECK_FUNCS([strerror]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 225 | AC_CHECK_FUNCS([strstr]) |
| 226 | AC_CHECK_FUNCS([strtol]) |
| 227 | AC_CHECK_FUNCS([sqrt]) |
David Reiss | e4ca179 | 2009-05-21 02:28:19 +0000 | [diff] [blame] | 228 | dnl The following functions are optional. |
| 229 | AC_CHECK_FUNCS([clock_gettime]) |
| 230 | AC_CHECK_FUNCS([sched_get_priority_min]) |
| 231 | AC_CHECK_FUNCS([sched_get_priority_max]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 232 | |
David Reiss | e4d4ea0 | 2009-04-02 21:37:17 +0000 | [diff] [blame] | 233 | AX_SIGNED_RIGHT_SHIFT |
| 234 | |
David Reiss | 2258573 | 2008-02-27 01:55:33 +0000 | [diff] [blame] | 235 | AX_THRIFT_GEN(cpp, [C++], yes) |
| 236 | AM_CONDITIONAL([THRIFT_GEN_cpp], [test "$ax_thrift_gen_cpp" = "yes"]) |
David Reiss | e8a87de | 2008-02-27 02:39:25 +0000 | [diff] [blame] | 237 | AX_THRIFT_GEN(java, [Java], yes) |
| 238 | AM_CONDITIONAL([THRIFT_GEN_java], [test "$ax_thrift_gen_java" = "yes"]) |
Bryan Duxbury | 321eb7a | 2010-04-22 21:17:39 +0000 | [diff] [blame] | 239 | AX_THRIFT_GEN(as3, [AS3], yes) |
| 240 | AM_CONDITIONAL([THRIFT_GEN_as3], [test "$ax_thrift_gen_as3" = "yes"]) |
David Reiss | ce4f4f0 | 2008-03-27 21:41:31 +0000 | [diff] [blame] | 241 | AX_THRIFT_GEN(csharp, [C#], yes) |
| 242 | AM_CONDITIONAL([THRIFT_GEN_csharp], [test "$ax_thrift_gen_csharp" = "yes"]) |
David Reiss | bfd26dc | 2008-03-27 21:41:49 +0000 | [diff] [blame] | 243 | AX_THRIFT_GEN(py, [Python], yes) |
| 244 | AM_CONDITIONAL([THRIFT_GEN_py], [test "$ax_thrift_gen_py" = "yes"]) |
David Reiss | ae25358 | 2008-03-27 21:42:11 +0000 | [diff] [blame] | 245 | AX_THRIFT_GEN(rb, [Ruby], yes) |
| 246 | AM_CONDITIONAL([THRIFT_GEN_rb], [test "$ax_thrift_gen_rb" = "yes"]) |
David Reiss | fdc21aa | 2008-03-27 21:42:34 +0000 | [diff] [blame] | 247 | AX_THRIFT_GEN(perl, [Perl], yes) |
| 248 | AM_CONDITIONAL([THRIFT_GEN_perl], [test "$ax_thrift_gen_perl" = "yes"]) |
David Reiss | 32272d9 | 2009-02-17 20:28:30 +0000 | [diff] [blame] | 249 | AX_THRIFT_GEN(php, [PHP], yes) |
| 250 | AM_CONDITIONAL([THRIFT_GEN_php], [test "$ax_thrift_gen_php" = "yes"]) |
David Reiss | f3b0db3 | 2009-02-17 20:28:01 +0000 | [diff] [blame] | 251 | AX_THRIFT_GEN(erl, [Erlang], yes) |
| 252 | AM_CONDITIONAL([THRIFT_GEN_erl], [test "$ax_thrift_gen_erl" = "yes"]) |
David Reiss | 4b349aa | 2008-03-27 21:41:02 +0000 | [diff] [blame] | 253 | AX_THRIFT_GEN(cocoa, [Cocoa], yes) |
| 254 | AM_CONDITIONAL([THRIFT_GEN_cocoa], [test "$ax_thrift_gen_cocoa" = "yes"]) |
David Reiss | b3ac8a6 | 2008-03-27 21:40:42 +0000 | [diff] [blame] | 255 | AX_THRIFT_GEN(st, [Smalltalk], yes) |
| 256 | AM_CONDITIONAL([THRIFT_GEN_st], [test "$ax_thrift_gen_st" = "yes"]) |
David Reiss | 3d671b5 | 2008-03-27 21:40:11 +0000 | [diff] [blame] | 257 | AX_THRIFT_GEN(ocaml, [OCaml], yes) |
| 258 | AM_CONDITIONAL([THRIFT_GEN_ocaml], [test "$ax_thrift_gen_ocaml" = "yes"]) |
David Reiss | 22812f8 | 2008-03-27 21:40:26 +0000 | [diff] [blame] | 259 | AX_THRIFT_GEN(hs, [Haskell], yes) |
| 260 | AM_CONDITIONAL([THRIFT_GEN_hs], [test "$ax_thrift_gen_hs" = "yes"]) |
David Reiss | 782cb67 | 2009-02-17 20:28:13 +0000 | [diff] [blame] | 261 | AX_THRIFT_GEN(xsd, [XSD], yes) |
| 262 | AM_CONDITIONAL([THRIFT_GEN_xsd], [test "$ax_thrift_gen_xsd" = "yes"]) |
David Reiss | dc0aada | 2008-10-21 00:09:23 +0000 | [diff] [blame] | 263 | AX_THRIFT_GEN(html, [HTML], yes) |
| 264 | AM_CONDITIONAL([THRIFT_GEN_html], [test "$ax_thrift_gen_html" = "yes"]) |
T Jake Luciani | 322caa2 | 2010-02-15 03:24:55 +0000 | [diff] [blame] | 265 | AX_THRIFT_GEN(js, [JavaScript], yes) |
| 266 | AM_CONDITIONAL([THRIFT_GEN_js], [test "$ax_thrift_gen_js" = "yes"]) |
David Reiss | 2258573 | 2008-02-27 01:55:33 +0000 | [diff] [blame] | 267 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 268 | AC_CONFIG_HEADERS(config.h:config.hin) |
| 269 | |
| 270 | AC_CONFIG_FILES([ |
| 271 | Makefile |
| 272 | compiler/cpp/Makefile |
Bryan Duxbury | a1e268c | 2010-05-03 21:33:00 +0000 | [diff] [blame] | 273 | compiler/cpp/version.h |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 274 | lib/Makefile |
| 275 | lib/cpp/Makefile |
| 276 | lib/cpp/thrift.pc |
| 277 | lib/cpp/thrift-nb.pc |
| 278 | lib/cpp/thrift-z.pc |
David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 279 | lib/csharp/Makefile |
Bryan Duxbury | 7173bd9 | 2010-05-02 22:54:22 +0000 | [diff] [blame] | 280 | lib/erl/Makefile |
David Reiss | f8dcf03 | 2008-02-23 22:07:39 +0000 | [diff] [blame] | 281 | lib/java/Makefile |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 282 | lib/perl/Makefile |
| 283 | lib/perl/test/Makefile |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 284 | lib/php/Makefile |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 285 | lib/py/Makefile |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 286 | lib/rb/Makefile |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 287 | test/Makefile |
David Reiss | 9ff3b9d | 2008-02-15 01:10:23 +0000 | [diff] [blame] | 288 | test/py/Makefile |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 289 | test/rb/Makefile |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 290 | ]) |
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 291 | |
| 292 | AC_OUTPUT |