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 | |
T Jake Luciani | 03ec1e4 | 2011-01-27 02:53:57 +0000 | [diff] [blame] | 20 | AC_PREREQ(2.65) |
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 21 | |
Jake Farrell | 6fcecd4 | 2012-10-11 20:34:25 +0000 | [diff] [blame] | 22 | AC_INIT([thrift], [1.0.0-dev]) |
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 23 | |
| 24 | AC_CONFIG_AUX_DIR([.]) |
| 25 | |
Roger Meier | f2100be | 2011-03-23 20:36:20 +0000 | [diff] [blame] | 26 | AM_INIT_AUTOMAKE([1.9 tar-ustar]) |
Bryan Duxbury | b005c1f | 2011-02-09 17:05:11 +0000 | [diff] [blame] | 27 | PKG_PROG_PKG_CONFIG |
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 28 | |
David Reiss | d683219 | 2007-09-05 00:47:32 +0000 | [diff] [blame] | 29 | AC_ARG_VAR([PY_PREFIX], [Prefix for installing Python modules. |
| 30 | (Normal --prefix is ignored for Python because |
| 31 | Python has different conventions.) |
| 32 | Default = "/usr"]) |
David Reiss | cdd6f3c | 2008-03-04 21:10:29 +0000 | [diff] [blame] | 33 | AS_IF([test "x$PY_PREFIX" = x], [PY_PREFIX="/usr"]) |
David Reiss | d683219 | 2007-09-05 00:47:32 +0000 | [diff] [blame] | 34 | |
David Reiss | f0c21a7 | 2008-07-11 01:26:16 +0000 | [diff] [blame] | 35 | AC_ARG_VAR([JAVA_PREFIX], [Prefix for installing the Java lib jar. |
| 36 | (Normal --prefix is ignored for Java because |
Christian Lavoie | afc6d8f | 2011-02-20 02:39:19 +0000 | [diff] [blame] | 37 | Java has different conventions.) |
David Reiss | f0c21a7 | 2008-07-11 01:26:16 +0000 | [diff] [blame] | 38 | Default = "/usr/local/lib"]) |
| 39 | AS_IF([test "x$JAVA_PREFIX" = x], [JAVA_PREFIX="/usr/local/lib"]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 40 | |
Bryan Duxbury | 3f0b526 | 2010-05-12 21:31:58 +0000 | [diff] [blame] | 41 | AC_ARG_VAR([RUBY_PREFIX], [Prefix for installing Ruby modules. |
| 42 | (Normal --prefix is ignored for Ruby because |
| 43 | Ruby has different conventions.) |
| 44 | Default = none, let ruby setup decide]) |
| 45 | |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 46 | AC_ARG_VAR([PHP_PREFIX], [Prefix for installing PHP modules. |
| 47 | (Normal --prefix is ignored for PHP because |
| 48 | PHP has different conventions.) |
| 49 | Default = "/usr/lib/php"]) |
| 50 | AS_IF([test "x$PHP_PREFIX" = x], [PHP_PREFIX="/usr/lib/php"]) |
| 51 | |
Bryan Duxbury | 89200e1 | 2010-08-25 17:09:02 +0000 | [diff] [blame] | 52 | AC_ARG_VAR([PHP_CONFIG_PREFIX], |
| 53 | [Prefix for installing PHP extension module .ini file. |
| 54 | (Normal --prefix is ignored for PHP because PHP has |
| 55 | different conventions.) |
| 56 | Default = "/etc/php.d"]) |
| 57 | AS_IF([test "x$PHP_CONFIG_PREFIX" = x], [PHP_CONFIG_PREFIX="/etc/php.d"]) |
| 58 | |
Jake Farrell | 05e0cdb | 2011-05-05 13:45:26 +0000 | [diff] [blame] | 59 | AC_ARG_VAR([INSTALLDIRS], [When installing Perl modules, specifies which |
| 60 | of the sets of installation directories |
| 61 | to choose: perl, site or vendor. |
| 62 | Default = "vendor"]) |
| 63 | AS_IF([test "x$INSTALLDIRS" = x], [INSTALLDIRS="vendor"]) |
| 64 | |
David Reiss | c07057e | 2010-06-11 17:57:32 +0000 | [diff] [blame] | 65 | AC_ARG_VAR([PERL_PREFIX], [Prefix for installing Perl modules. |
| 66 | (Normal --prefix is ignored for Perl because |
| 67 | Perl has different conventions.) |
Jake Farrell | 05e0cdb | 2011-05-05 13:45:26 +0000 | [diff] [blame] | 68 | Ignored, when INSTALLDIRS set to site or vendor. |
David Reiss | c07057e | 2010-06-11 17:57:32 +0000 | [diff] [blame] | 69 | Default = "/usr/local/lib"]) |
| 70 | AS_IF([test "x$PERL_PREFIX" = x], [PERL_PREFIX="/usr/local"]) |
| 71 | |
Anthony F. Molinaro | a5df7c7 | 2010-09-27 17:22:17 +0000 | [diff] [blame] | 72 | AC_ARG_VAR([CABAL_CONFIGURE_FLAGS], |
| 73 | [Extra flags to pass to cabal: "cabal Setup.lhs configure $CABAL_CONFIGURE_FLAGS". |
| 74 | (Typically used to set --user or force --global.)]) |
| 75 | |
| 76 | AC_SUBST(CABAL_CONFIGURE_FLAGS) |
| 77 | |
Jake Farrell | b95b0ff | 2012-03-22 21:49:10 +0000 | [diff] [blame] | 78 | AC_ARG_VAR([D_IMPORT_PREFIX], [Prefix for installing D modules. |
| 79 | [INCLUDEDIR/d2]]) |
| 80 | AS_IF([test "x$D_IMPORT_PREFIX" = x], [D_IMPORT_PREFIX="${includedir}/d2"]) |
| 81 | |
| 82 | AC_ARG_VAR([DMD_LIBEVENT_FLAGS], [DMD flags for linking libevent (auto-detected if not set).]) |
| 83 | AC_ARG_VAR([DMD_OPENSSL_FLAGS], [DMD flags for linking OpenSSL (auto-detected if not set).]) |
| 84 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 85 | AC_PROG_CC |
| 86 | AC_PROG_CPP |
| 87 | AC_PROG_CXX |
| 88 | AC_PROG_INSTALL |
| 89 | AC_PROG_LIBTOOL |
| 90 | AC_PROG_MAKE_SET |
| 91 | AC_PROG_YACC |
| 92 | AC_PROG_LEX |
| 93 | AM_PROG_LEX |
David Reiss | 7ed4b98 | 2008-02-11 23:24:47 +0000 | [diff] [blame] | 94 | AC_PROG_LN_S |
| 95 | AC_PROG_MKDIR_P |
Christian Lavoie | afc6d8f | 2011-02-20 02:39:19 +0000 | [diff] [blame] | 96 | AC_PROG_AWK |
| 97 | AC_PROG_RANLIB |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 98 | |
| 99 | AC_LANG([C++]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 100 | |
David Reiss | ea4c981 | 2010-08-31 16:51:21 +0000 | [diff] [blame] | 101 | AX_THRIFT_LIB(cpp, [C++], yes) |
| 102 | have_cpp=no |
| 103 | if test "$with_cpp" = "yes"; then |
Roger Meier | 6bb0a7a | 2012-05-11 10:44:32 +0000 | [diff] [blame] | 104 | AX_BOOST_BASE([1.40.0]) |
Jake Farrell | 3ad8081 | 2011-06-09 19:14:22 +0000 | [diff] [blame] | 105 | if test "x$succeeded" = "xyes" ; then |
David Reiss | ef5e81b | 2010-08-31 16:51:28 +0000 | [diff] [blame] | 106 | have_cpp="yes" |
| 107 | fi |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 108 | |
David Reiss | ea4c981 | 2010-08-31 16:51:21 +0000 | [diff] [blame] | 109 | AX_LIB_EVENT([1.0]) |
| 110 | have_libevent=$success |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 111 | |
David Reiss | ea4c981 | 2010-08-31 16:51:21 +0000 | [diff] [blame] | 112 | AX_LIB_ZLIB([1.2.3]) |
| 113 | have_zlib=$success |
Chris Piro | 20c81ad | 2013-03-07 11:32:48 -0500 | [diff] [blame] | 114 | |
Jake Farrell | d6d3e37 | 2012-07-27 16:01:33 +0000 | [diff] [blame] | 115 | AX_THRIFT_LIB(qt4, [Qt], yes) |
| 116 | have_qt=no |
| 117 | if test "$with_qt4" = "yes"; then |
| 118 | PKG_CHECK_MODULES([QT], [QtCore >= 4.3, QtNetwork >= 4.3], have_qt=yes, have_qt=no) |
| 119 | fi |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 120 | if test "$have_qt" = "yes"; then |
| 121 | AC_PATH_PROGS([QT_MOC], [moc-qt4 moc]) |
| 122 | have_qt=$success |
| 123 | fi |
David Reiss | ea4c981 | 2010-08-31 16:51:21 +0000 | [diff] [blame] | 124 | fi |
| 125 | AM_CONDITIONAL([WITH_CPP], [test "$have_cpp" = "yes"]) |
| 126 | AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$have_libevent" = "yes"]) |
| 127 | AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$have_zlib" = "yes"]) |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 128 | AM_CONDITIONAL([AMX_HAVE_QT], [test "$have_qt" = "yes"]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 129 | |
Roger Meier | 3217723 | 2012-05-01 11:19:53 +0000 | [diff] [blame] | 130 | AX_THRIFT_LIB(c_glib, [C (GLib)], yes) |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 131 | if test "$with_c_glib" = "yes"; then |
| 132 | PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.0], have_glib2=yes, have_glib2=no) |
| 133 | PKG_CHECK_MODULES([GOBJECT], [gobject-2.0 >= 2.0], have_gobject2=yes, have_gobject2=no) |
| 134 | if test "$have_glib2" = "yes" -a "$have_gobject2" = "yes" ; then |
| 135 | have_c_glib="yes" |
| 136 | fi |
| 137 | fi |
| 138 | AM_CONDITIONAL(WITH_C_GLIB, [test "$have_glib2" = "yes" -a "$have_gobject2" = "yes"]) |
| 139 | |
David Reiss | 520b5ee | 2008-03-02 07:00:26 +0000 | [diff] [blame] | 140 | AX_THRIFT_LIB(csharp, [C#], yes) |
| 141 | if test "$with_csharp" = "yes"; then |
David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 142 | PKG_CHECK_MODULES(MONO, mono >= 2.0.0, net_3_5=yes, net_3_5=no) |
| 143 | PKG_CHECK_MODULES(MONO, mono >= 1.2.4, have_mono=yes, have_mono=no) |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 144 | if test "$have_mono" = "yes" ; then |
| 145 | have_csharp="yes" |
| 146 | fi |
David Reiss | 520b5ee | 2008-03-02 07:00:26 +0000 | [diff] [blame] | 147 | fi |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 148 | AM_CONDITIONAL(WITH_MONO, [test "$have_csharp" = "yes"]) |
David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 149 | AM_CONDITIONAL(NET_2_0, [test "$net_3_5" = "no"]) |
David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 150 | |
David Reiss | 62d3981 | 2008-03-02 07:00:22 +0000 | [diff] [blame] | 151 | AX_THRIFT_LIB(java, [Java], yes) |
| 152 | if test "$with_java" = "yes"; then |
David Reiss | d9cdf42 | 2009-03-13 21:25:29 +0000 | [diff] [blame] | 153 | AX_JAVAC_AND_JAVA |
Bryan Duxbury | 38bab12 | 2010-08-12 00:27:14 +0000 | [diff] [blame] | 154 | AC_PATH_PROG([ANT], [ant]) |
Jake Farrell | 210d766 | 2011-05-25 21:07:29 +0000 | [diff] [blame] | 155 | AX_CHECK_ANT_VERSION($ANT, 1.7) |
David Reiss | fff84d1 | 2009-05-22 19:50:33 +0000 | [diff] [blame] | 156 | AC_SUBST(CLASSPATH) |
David Reiss | 4ca0c8e | 2009-05-12 23:16:55 +0000 | [diff] [blame] | 157 | AC_SUBST(ANT_FLAGS) |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 158 | if test "x$JAVAC" != "x" && test "x$JAVAC" != "x" && test "x$ANT" != "x" ; then |
| 159 | have_java="yes" |
| 160 | fi |
David Reiss | 62d3981 | 2008-03-02 07:00:22 +0000 | [diff] [blame] | 161 | fi |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 162 | AM_CONDITIONAL([WITH_JAVA], [test "$have_java" = "yes"]) |
David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 163 | |
Christopher Piro | b6f18c2 | 2008-03-04 07:09:12 +0000 | [diff] [blame] | 164 | AX_THRIFT_LIB(erlang, [Erlang], yes) |
| 165 | if test "$with_erlang" = "yes"; then |
David Reiss | 9e2fd79 | 2010-05-18 16:52:48 +0000 | [diff] [blame] | 166 | AC_ERLANG_PATH_ERL |
| 167 | AC_ERLANG_PATH_ERLC |
David Reiss | 31e1b6e | 2010-08-24 20:45:24 +0000 | [diff] [blame] | 168 | if test -n "$ERLC" ; then |
| 169 | AC_ERLANG_SUBST_LIB_DIR |
| 170 | # Install into the detected Erlang directory instead of $libdir/erlang/lib |
| 171 | ERLANG_INSTALL_LIB_DIR="$ERLANG_LIB_DIR" |
| 172 | AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) |
| 173 | fi |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 174 | if test -n "$ERL" -a -n "$ERLC" ; then |
| 175 | have_erlang="yes" |
| 176 | fi |
Christopher Piro | b6f18c2 | 2008-03-04 07:09:12 +0000 | [diff] [blame] | 177 | fi |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 178 | AM_CONDITIONAL(WITH_ERLANG, [test "$have_erlang" = "yes"]) |
Christopher Piro | b6f18c2 | 2008-03-04 07:09:12 +0000 | [diff] [blame] | 179 | |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 180 | AX_THRIFT_LIB(python, [Python], yes) |
| 181 | if test "$with_python" = "yes"; then |
David Reiss | 1a14091 | 2008-06-11 01:16:37 +0000 | [diff] [blame] | 182 | AM_PATH_PYTHON(2.4,, :) |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 183 | if test "x$PYTHON" != "x" && test "x$PYTHON" != "x:" ; then |
| 184 | have_python="yes" |
| 185 | fi |
David Reiss | 1a14091 | 2008-06-11 01:16:37 +0000 | [diff] [blame] | 186 | fi |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 187 | AM_CONDITIONAL(WITH_PYTHON, [test "$have_python" = "yes"]) |
David Reiss | 1a14091 | 2008-06-11 01:16:37 +0000 | [diff] [blame] | 188 | |
Roger Meier | 50e4349 | 2010-10-08 17:46:06 +0000 | [diff] [blame] | 189 | AC_PATH_PROG([TRIAL], [trial]) |
| 190 | |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 191 | AX_THRIFT_LIB(perl, [Perl], yes) |
| 192 | if test "$with_perl" = "yes"; then |
| 193 | AC_PATH_PROG([PERL], [perl]) |
David Reiss | dcc7e9b | 2010-08-31 16:51:22 +0000 | [diff] [blame] | 194 | if test -n "$PERL" ; then |
| 195 | AC_PROG_PERL_MODULES([Bit::Vector], success="yes", success="no") |
| 196 | have_perl_bit_vector="$success" |
Bryan Duxbury | 1237369 | 2010-08-19 05:23:59 +0000 | [diff] [blame] | 197 | fi |
David Reiss | dcc7e9b | 2010-08-31 16:51:22 +0000 | [diff] [blame] | 198 | if test -n "$PERL" -a "$have_perl_bit_vector" = "yes" ; then |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 199 | have_perl="yes" |
| 200 | fi |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 201 | fi |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 202 | AM_CONDITIONAL(WITH_PERL, [test "$have_perl" = "yes"]) |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 203 | |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 204 | AX_THRIFT_LIB(php, [PHP], yes) |
| 205 | if test "$with_php" = "yes"; then |
| 206 | AC_PATH_PROG([PHP], [php]) |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 207 | if test -n "$PHP" ; then |
| 208 | have_php="yes" |
| 209 | fi |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 210 | fi |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 211 | AM_CONDITIONAL(WITH_PHP, [test "$have_php" = "yes"]) |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 212 | |
Bryan Duxbury | 89200e1 | 2010-08-25 17:09:02 +0000 | [diff] [blame] | 213 | AX_THRIFT_LIB(php_extension, [PHP_EXTENSION], yes) |
| 214 | if test "$with_php_extension" = "yes"; then |
| 215 | AC_PATH_PROG([PHP_CONFIG], [php-config]) |
Anthony F. Molinaro | ddcf32a | 2010-10-05 16:45:50 +0000 | [diff] [blame] | 216 | if test -n "$PHP_CONFIG" ; then |
| 217 | AC_CONFIG_SUBDIRS([lib/php/src/ext/thrift_protocol]) |
| 218 | have_php_extension="yes" |
| 219 | fi |
Bryan Duxbury | 89200e1 | 2010-08-25 17:09:02 +0000 | [diff] [blame] | 220 | fi |
Anthony F. Molinaro | ddcf32a | 2010-10-05 16:45:50 +0000 | [diff] [blame] | 221 | AM_CONDITIONAL(WITH_PHP_EXTENSION, [test "$have_php_extension" = "yes"]) |
Bryan Duxbury | 89200e1 | 2010-08-25 17:09:02 +0000 | [diff] [blame] | 222 | |
Roger Meier | 33b720a | 2012-01-24 18:42:46 +0000 | [diff] [blame] | 223 | AC_PATH_PROG([PHPUNIT], [phpunit]) |
| 224 | AM_CONDITIONAL(HAVE_PHPUNIT, [test "x$PHPUNIT" != "x"]) |
| 225 | |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 226 | AX_THRIFT_LIB(ruby, [Ruby], yes) |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 227 | have_ruby=no |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 228 | if test "$with_ruby" = "yes"; then |
| 229 | AC_PATH_PROG([RUBY], [ruby]) |
Jake Farrell | 9c39f77 | 2011-08-30 19:12:10 +0000 | [diff] [blame] | 230 | AC_PATH_PROG([RAKE], [rake]) |
| 231 | AC_PATH_PROG([BUNDLER], [bundle]) |
| 232 | if test "x$RUBY" != "x" -a "x$RAKE" != "x"; then |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 233 | have_ruby="yes" |
| 234 | fi |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 235 | fi |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 236 | AM_CONDITIONAL(WITH_RUBY, [test "$have_ruby" = "yes"]) |
Jake Farrell | 9c39f77 | 2011-08-30 19:12:10 +0000 | [diff] [blame] | 237 | AM_CONDITIONAL(HAVE_BUNDLER, [test "x$BUNDLER" != "x"]) |
Bryan Duxbury | ec47358 | 2009-04-07 16:31:04 +0000 | [diff] [blame] | 238 | |
Anthony F. Molinaro | a5df7c7 | 2010-09-27 17:22:17 +0000 | [diff] [blame] | 239 | AX_THRIFT_LIB(haskell, [Haskell], yes) |
| 240 | have_haskell=no |
| 241 | RUNHASKELL=true |
Bryan Duxbury | c657447 | 2010-10-06 00:12:33 +0000 | [diff] [blame] | 242 | CABAL=true |
Anthony F. Molinaro | a5df7c7 | 2010-09-27 17:22:17 +0000 | [diff] [blame] | 243 | if test "$with_haskell" = "yes"; then |
Bryan Duxbury | c657447 | 2010-10-06 00:12:33 +0000 | [diff] [blame] | 244 | AC_PATH_PROG([CABAL], [cabal]) |
Anthony F. Molinaro | a5df7c7 | 2010-09-27 17:22:17 +0000 | [diff] [blame] | 245 | AC_PATH_PROG([RUNHASKELL], [runhaskell]) |
Bryan Duxbury | c657447 | 2010-10-06 00:12:33 +0000 | [diff] [blame] | 246 | if test "x$CABAL" != "x" -a "x$RUNHASKELL" != "x"; then |
Anthony F. Molinaro | a5df7c7 | 2010-09-27 17:22:17 +0000 | [diff] [blame] | 247 | have_haskell="yes" |
| 248 | else |
| 249 | RUNHASKELL=true |
Bryan Duxbury | c657447 | 2010-10-06 00:12:33 +0000 | [diff] [blame] | 250 | CABAL=true |
Anthony F. Molinaro | a5df7c7 | 2010-09-27 17:22:17 +0000 | [diff] [blame] | 251 | fi |
| 252 | fi |
Bryan Duxbury | c657447 | 2010-10-06 00:12:33 +0000 | [diff] [blame] | 253 | AC_SUBST(CABAL) |
Anthony F. Molinaro | a5df7c7 | 2010-09-27 17:22:17 +0000 | [diff] [blame] | 254 | AC_SUBST(RUNHASKELL) |
| 255 | AM_CONDITIONAL(WITH_HASKELL, [test "$have_haskell" = "yes"]) |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 256 | |
Christian Lavoie | afc6d8f | 2011-02-20 02:39:19 +0000 | [diff] [blame] | 257 | AX_THRIFT_LIB(go, [Go], yes) |
| 258 | if test "$with_go" = "yes"; then |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame^] | 259 | AC_PATH_PROG([GO], [go]) |
| 260 | if [[ -x "$GO" ]] ; then |
Christian Lavoie | afc6d8f | 2011-02-20 02:39:19 +0000 | [diff] [blame] | 261 | have_go="yes" |
| 262 | fi |
| 263 | fi |
| 264 | AM_CONDITIONAL(WITH_GO, [test "$have_go" = "yes"]) |
| 265 | |
Jake Farrell | b95b0ff | 2012-03-22 21:49:10 +0000 | [diff] [blame] | 266 | |
| 267 | AX_THRIFT_LIB(d, [D], yes) |
| 268 | if test "$with_d" = "yes"; then |
| 269 | AX_DMD |
| 270 | AC_SUBST(DMD) |
| 271 | if test "x$DMD" != "x"; then |
| 272 | have_d="yes" |
| 273 | fi |
| 274 | fi |
| 275 | |
| 276 | # Determine actual name of the generated D library for use in the command line |
| 277 | # when compiling tests. This is needed because the -l<lib> syntax doesn't work |
| 278 | # with OPTLINK (Windows). |
| 279 | lib_prefix=lib |
| 280 | lib_suffix=a |
| 281 | case "$host_os" in |
| 282 | cygwin* | mingw* | pw32* | cegcc*) |
| 283 | lib_prefix="" |
| 284 | lib_suffix=lib |
| 285 | ;; |
| 286 | esac |
| 287 | D_LIB_NAME="${lib_prefix}thriftd.${lib_suffix}" |
| 288 | AC_SUBST(D_LIB_NAME) |
| 289 | D_EVENT_LIB_NAME="${lib_prefix}thriftd-event.${lib_suffix}" |
| 290 | AC_SUBST(D_EVENT_LIB_NAME) |
| 291 | D_SSL_LIB_NAME="${lib_prefix}thriftd-ssl.${lib_suffix}" |
| 292 | AC_SUBST(D_SSL_LIB_NAME) |
| 293 | |
| 294 | if test "$have_d" = "yes"; then |
| 295 | AX_CHECK_D_MODULE(deimos.event2.event) |
| 296 | have_deimos_event2=$success |
| 297 | |
| 298 | with_d_event_tests="no" |
| 299 | if test "$have_deimos_event2" = "yes"; then |
| 300 | if test "x$DMD_LIBEVENT_FLAGS" = "x"; then |
| 301 | if test "$dmd_optlink" = "yes"; then |
| 302 | AC_MSG_WARN([D libevent interface found, but cannot auto-detect \ |
| 303 | linker flags for OPTLINK. Please set DMD_LIBEVENT_FLAGS manually.]) |
| 304 | else |
| 305 | AX_LIB_EVENT([2.0]) |
| 306 | if test "$success" = "yes"; then |
| 307 | DMD_LIBEVENT_FLAGS=$(echo "$LIBEVENT_LDFLAGS $LIBEVENT_LIBS" | \ |
| 308 | sed -e 's/^ *//g;s/ *$//g;s/^\(.\)/-L\1/g;s/ */ -L/g') |
| 309 | with_d_event_tests="yes" |
| 310 | else |
| 311 | AC_MSG_WARN([D libevent interface present, but libevent library not found.]) |
| 312 | fi |
| 313 | fi |
| 314 | else |
| 315 | with_d_event_tests="yes" |
| 316 | fi |
| 317 | fi |
| 318 | |
| 319 | AX_CHECK_D_MODULE(deimos.openssl.ssl) |
| 320 | have_deimos_openssl=$success |
| 321 | |
| 322 | with_d_ssl_tests="no" |
| 323 | if test "$have_deimos_openssl" = "yes"; then |
| 324 | if test "x$DMD_OPENSSL_FLAGS" = "x"; then |
| 325 | if test "$dmd_optlink" = "yes"; then |
| 326 | AC_MSG_WARN([D OpenSSL interface found, but cannot auto-detect \ |
| 327 | linker flags for OPTLINK. Please set DMD_OPENSSL_FLAGS manually.]) |
| 328 | else |
| 329 | AX_CHECK_OPENSSL([with_d_ssl_tests="yes"]) |
| 330 | if test "$with_d_ssl_tests" = "yes"; then |
| 331 | DMD_OPENSSL_FLAGS=$(echo "$OPENSSL_LDFLAGS $OPENSSL_LIBS" | \ |
| 332 | sed -e 's/^ *//g;s/ *$//g;s/^\(.\)/-L\1/g;s/ */ -L/g') |
| 333 | else |
| 334 | AC_MSG_WARN([D OpenSSL interface present, but OpenSSL library not found.]) |
| 335 | fi |
| 336 | fi |
| 337 | else |
| 338 | with_d_ssl_tests="yes" |
| 339 | fi |
| 340 | fi |
| 341 | fi |
| 342 | |
| 343 | AM_CONDITIONAL(WITH_D, [test "$have_d" = "yes"]) |
| 344 | AM_CONDITIONAL(DMD_OPTLINK, [test "$dmd_optlink" = "yes"]) |
| 345 | AC_SUBST(DMD_OF_DIRSEP, "$dmd_of_dirsep") |
| 346 | AM_CONDITIONAL(HAVE_DEIMOS_EVENT2, [test "$have_deimos_event2" = "yes"]) |
| 347 | AM_CONDITIONAL(WITH_D_EVENT_TESTS, [test "$with_d_event_tests" = "yes"]) |
| 348 | AC_SUBST(DMD_LIBEVENT_FLAGS) |
| 349 | AM_CONDITIONAL(HAVE_DEIMOS_OPENSSL, [test "$have_deimos_openssl" = "yes"]) |
| 350 | AM_CONDITIONAL(WITH_D_SSL_TESTS, [test "$with_d_ssl_tests" = "yes"]) |
| 351 | AC_SUBST(DMD_OPENSSL_FLAGS) |
| 352 | |
| 353 | |
Jake Farrell | 627f1a0 | 2011-09-14 03:43:49 +0000 | [diff] [blame] | 354 | have_tests=yes |
| 355 | if test "$with_tests" = "no"; then |
| 356 | have_tests="no" |
| 357 | fi |
| 358 | AM_CONDITIONAL(WITH_TESTS, [test "$have_tests" = "yes"]) |
| 359 | |
Roger Meier | 6e96965 | 2011-12-13 00:36:01 +0000 | [diff] [blame] | 360 | AM_CONDITIONAL(MINGW, false) |
| 361 | case "${host_os}" in |
| 362 | *mingw*) |
| 363 | mingw32_support="yes" |
| 364 | AC_CHECK_HEADER(windows.h) |
| 365 | AM_CONDITIONAL(MINGW, true) |
| 366 | ;; |
| 367 | *) |
| 368 | AC_ISC_POSIX |
| 369 | ;; |
| 370 | esac |
| 371 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 372 | AC_C_CONST |
| 373 | AC_C_INLINE |
| 374 | AC_C_VOLATILE |
| 375 | |
| 376 | AC_HEADER_STDBOOL |
| 377 | AC_HEADER_STDC |
| 378 | AC_HEADER_TIME |
Christian Lavoie | afc6d8f | 2011-02-20 02:39:19 +0000 | [diff] [blame] | 379 | AC_HEADER_SYS_WAIT |
| 380 | AC_TYPE_SIGNAL |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 381 | AC_CHECK_HEADERS([arpa/inet.h]) |
Bryan Duxbury | 184d262 | 2010-08-17 17:43:58 +0000 | [diff] [blame] | 382 | AC_CHECK_HEADERS([sys/param.h]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 383 | AC_CHECK_HEADERS([fcntl.h]) |
| 384 | AC_CHECK_HEADERS([inttypes.h]) |
David Reiss | 7ed4b98 | 2008-02-11 23:24:47 +0000 | [diff] [blame] | 385 | AC_CHECK_HEADERS([limits.h]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 386 | AC_CHECK_HEADERS([netdb.h]) |
| 387 | AC_CHECK_HEADERS([netinet/in.h]) |
| 388 | AC_CHECK_HEADERS([pthread.h]) |
| 389 | AC_CHECK_HEADERS([stddef.h]) |
David Reiss | d7a16f4 | 2008-02-19 22:47:29 +0000 | [diff] [blame] | 390 | AC_CHECK_HEADERS([stdlib.h]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 391 | AC_CHECK_HEADERS([sys/socket.h]) |
| 392 | AC_CHECK_HEADERS([sys/time.h]) |
Roger Meier | 2fa9c31 | 2011-09-05 19:15:53 +0000 | [diff] [blame] | 393 | AC_CHECK_HEADERS([sys/un.h]) |
| 394 | AC_CHECK_HEADERS([sys/poll.h]) |
| 395 | AC_CHECK_HEADERS([sys/resource.h]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 396 | AC_CHECK_HEADERS([unistd.h]) |
| 397 | AC_CHECK_HEADERS([libintl.h]) |
| 398 | AC_CHECK_HEADERS([malloc.h]) |
Roger Meier | 9d9c4b9 | 2011-02-23 20:27:54 +0000 | [diff] [blame] | 399 | AC_CHECK_HEADERS([openssl/ssl.h]) |
| 400 | AC_CHECK_HEADERS([openssl/rand.h]) |
| 401 | AC_CHECK_HEADERS([openssl/x509v3.h]) |
Roger Meier | 12d7053 | 2011-12-14 23:35:28 +0000 | [diff] [blame] | 402 | AC_CHECK_HEADERS([sched.h]) |
Roger Meier | 9357636 | 2013-03-15 19:49:23 +0100 | [diff] [blame] | 403 | AC_CHECK_HEADERS([wchar.h]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 404 | |
| 405 | AC_CHECK_LIB(pthread, pthread_create) |
David Reiss | e4ca179 | 2009-05-21 02:28:19 +0000 | [diff] [blame] | 406 | dnl NOTE(dreiss): I haven't been able to find any really solid docs |
| 407 | dnl on what librt is and how it fits into various Unix systems. |
| 408 | dnl My best guess is that it is where glibc stashes its implementation |
| 409 | dnl of the POSIX Real-Time Extensions. This seems necessary on Linux, |
| 410 | dnl and we haven't yet found a system where this is a problem. |
| 411 | AC_CHECK_LIB(rt, clock_gettime) |
David Reiss | 9b90344 | 2009-10-21 05:51:28 +0000 | [diff] [blame] | 412 | AC_CHECK_LIB(socket, setsockopt) |
Roger Meier | 6869112 | 2011-09-09 06:19:35 +0000 | [diff] [blame] | 413 | |
| 414 | if test "$have_cpp" = "yes" ; then |
| 415 | # mingw toolchain used to build "Thrift Compiler for Windows" |
| 416 | # does not support libcrypto, so we just check if we building the cpp library |
Jake Farrell | 012dfda | 2011-08-29 18:18:55 +0000 | [diff] [blame] | 417 | AC_CHECK_LIB(crypto, |
| 418 | BN_init, |
| 419 | [AC_CHECK_LIB(ssl, |
| 420 | SSL_ctrl, |
| 421 | [LIBS="-lssl -lcrypto $LIBS"], |
| 422 | [AC_MSG_ERROR(["Error: libssl required"])], |
| 423 | -lcrypto |
| 424 | )], |
| 425 | [AC_MSG_ERROR(["Error: libcrypto required."])] |
| 426 | ) |
Roger Meier | 6869112 | 2011-09-09 06:19:35 +0000 | [diff] [blame] | 427 | fi |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 428 | |
| 429 | AC_TYPE_INT16_T |
| 430 | AC_TYPE_INT32_T |
| 431 | AC_TYPE_INT64_T |
| 432 | AC_TYPE_INT8_T |
| 433 | AC_TYPE_MODE_T |
| 434 | AC_TYPE_OFF_T |
| 435 | AC_TYPE_SIZE_T |
David Reiss | 847a294 | 2008-04-21 18:07:43 +0000 | [diff] [blame] | 436 | AC_TYPE_SSIZE_T |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 437 | AC_TYPE_UINT16_T |
| 438 | AC_TYPE_UINT32_T |
| 439 | AC_TYPE_UINT64_T |
| 440 | AC_TYPE_UINT8_T |
David Reiss | 33fc5ad | 2008-05-09 07:17:34 +0000 | [diff] [blame] | 441 | AC_CHECK_TYPES([ptrdiff_t], [], [exit 1]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 442 | |
David Reiss | 7ed4b98 | 2008-02-11 23:24:47 +0000 | [diff] [blame] | 443 | AC_STRUCT_TM |
| 444 | |
David Reiss | 85a8f7b | 2009-05-21 02:28:16 +0000 | [diff] [blame] | 445 | dnl NOTE(dreiss): AI_ADDRCONFIG is not defined on OpenBSD. |
| 446 | AC_CHECK_DECL([AI_ADDRCONFIG], [], |
| 447 | [AC_DEFINE([AI_ADDRCONFIG], 0, |
| 448 | [Define if the AI_ADDRCONFIG symbol is unavailable])], |
| 449 | [ |
| 450 | #include <sys/types.h> |
| 451 | #include <sys/socket.h> |
| 452 | #include <netdb.h> |
| 453 | ]) |
| 454 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 455 | AC_FUNC_ALLOCA |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 456 | AC_FUNC_FORK |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 457 | AC_FUNC_MALLOC |
David Reiss | 7ed4b98 | 2008-02-11 23:24:47 +0000 | [diff] [blame] | 458 | AC_FUNC_MEMCMP |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 459 | AC_FUNC_REALLOC |
| 460 | AC_FUNC_SELECT_ARGTYPES |
| 461 | AC_FUNC_STAT |
| 462 | AC_FUNC_STRERROR_R |
David Reiss | 7ed4b98 | 2008-02-11 23:24:47 +0000 | [diff] [blame] | 463 | AC_FUNC_STRFTIME |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 464 | AC_FUNC_VPRINTF |
| 465 | AC_CHECK_FUNCS([strtoul]) |
| 466 | AC_CHECK_FUNCS([bzero]) |
David Reiss | 7ed4b98 | 2008-02-11 23:24:47 +0000 | [diff] [blame] | 467 | AC_CHECK_FUNCS([ftruncate]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 468 | AC_CHECK_FUNCS([gethostbyname]) |
| 469 | AC_CHECK_FUNCS([gettimeofday]) |
| 470 | AC_CHECK_FUNCS([memmove]) |
| 471 | AC_CHECK_FUNCS([memset]) |
| 472 | AC_CHECK_FUNCS([mkdir]) |
| 473 | AC_CHECK_FUNCS([realpath]) |
| 474 | AC_CHECK_FUNCS([select]) |
| 475 | AC_CHECK_FUNCS([socket]) |
| 476 | AC_CHECK_FUNCS([strchr]) |
| 477 | AC_CHECK_FUNCS([strdup]) |
David Reiss | 7ed4b98 | 2008-02-11 23:24:47 +0000 | [diff] [blame] | 478 | AC_CHECK_FUNCS([strerror]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 479 | AC_CHECK_FUNCS([strstr]) |
| 480 | AC_CHECK_FUNCS([strtol]) |
| 481 | AC_CHECK_FUNCS([sqrt]) |
David Reiss | e4ca179 | 2009-05-21 02:28:19 +0000 | [diff] [blame] | 482 | dnl The following functions are optional. |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 483 | AC_CHECK_FUNCS([alarm]) |
David Reiss | e4ca179 | 2009-05-21 02:28:19 +0000 | [diff] [blame] | 484 | AC_CHECK_FUNCS([clock_gettime]) |
| 485 | AC_CHECK_FUNCS([sched_get_priority_min]) |
| 486 | AC_CHECK_FUNCS([sched_get_priority_max]) |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 487 | |
David Reiss | 79db3e1 | 2010-08-31 16:51:31 +0000 | [diff] [blame] | 488 | if test "$cross_compiling" = "no" ; then |
| 489 | AX_SIGNED_RIGHT_SHIFT |
| 490 | fi |
David Reiss | e4d4ea0 | 2009-04-02 21:37:17 +0000 | [diff] [blame] | 491 | |
David Reiss | 5ddabb8 | 2010-10-06 17:09:37 +0000 | [diff] [blame] | 492 | dnl autoscan thinks we need this macro because we have a member function |
| 493 | dnl called "error". Invoke the macro but don't run the check so autoscan |
| 494 | dnl thinks we are in the clear. It's highly unlikely that we will ever |
| 495 | dnl actually use the function that this checks for. |
| 496 | if false ; then |
| 497 | AC_FUNC_ERROR_AT_LINE |
| 498 | fi |
| 499 | |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 500 | # --- Coverage hooks --- |
| 501 | |
| 502 | AC_ARG_ENABLE(coverage, |
| 503 | [ --enable-coverage turn on -fprofile-arcs -ftest-coverage], |
| 504 | [case "${enableval}" in |
| 505 | yes) ENABLE_COVERAGE=1 ;; |
| 506 | no) ENABLE_COVERAGE=0 ;; |
| 507 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-cov) ;; |
| 508 | esac], |
| 509 | [ENABLE_COVERAGE=2]) |
| 510 | |
| 511 | if test "x[$]ENABLE_COVERAGE" = "x1"; then |
| 512 | AC_MSG_WARN(enable coverage) |
| 513 | GCOV_CFLAGS="`echo \"[$]CFLAGS\" | perl -pe 's/-O\d+//g;'` -fprofile-arcs -ftest-coverage" |
| 514 | GCOV_CXXFLAGS="`echo \"[$]CXXFLAGS\" | perl -pe 's/-O\d+//g;'` -fprofile-arcs -ftest-coverage" |
| 515 | GCOV_LDFLAGS="-XCClinker -fprofile-arcs -XCClinker -ftest-coverage" |
| 516 | fi |
| 517 | |
| 518 | AC_SUBST(ENABLE_COVERAGE) |
| 519 | AC_SUBST(GCOV_CFLAGS) |
| 520 | AC_SUBST(GCOV_CXXFLAGS) |
| 521 | AC_SUBST(GCOV_LDFLAGS) |
| 522 | |
Roger Meier | 3faaedf | 2011-10-02 10:51:45 +0000 | [diff] [blame] | 523 | AC_ARG_ENABLE(boostthreads, |
| 524 | [ --enable-boostthreads use boost threads, instead of POSIX pthread (experimental) ], |
| 525 | [case "${enableval}" in |
| 526 | yes) ENABLE_BOOSTTHREADS=1 ;; |
| 527 | no) ENABLE_BOOSTTHREADS=0 ;; |
| 528 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-cov) ;; |
| 529 | esac], |
| 530 | [ENABLE_BOOSTTHREADS=2]) |
| 531 | |
| 532 | |
| 533 | if test "x[$]ENABLE_BOOSTTHREADS" = "x1"; then |
| 534 | AC_MSG_WARN(enable boostthreads) |
| 535 | AC_DEFINE([USE_BOOST_THREAD], [1], [experimental --enable-boostthreads that replaces POSIX pthread by boost::thread]) |
Roger Meier | 3831578 | 2011-11-06 11:29:41 +0000 | [diff] [blame] | 536 | LIBS="-lboost_thread $LIBS" |
Roger Meier | 3faaedf | 2011-10-02 10:51:45 +0000 | [diff] [blame] | 537 | fi |
| 538 | |
| 539 | AM_CONDITIONAL([WITH_BOOSTTHREADS], [test "x[$]ENABLE_BOOSTTHREADS" = "x1"]) |
| 540 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 541 | AC_CONFIG_HEADERS(config.h:config.hin) |
Jake Farrell | 240df17 | 2013-06-04 23:59:34 -0400 | [diff] [blame] | 542 | # gruard against pre defined config.h |
| 543 | AH_TOP([ |
| 544 | #ifndef CONFIG_H |
| 545 | #define CONFIG_H |
| 546 | ]) |
| 547 | AH_BOTTOM([ |
| 548 | #endif |
| 549 | ]) |
| 550 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 551 | |
| 552 | AC_CONFIG_FILES([ |
| 553 | Makefile |
| 554 | compiler/cpp/Makefile |
Bryan Duxbury | a1e268c | 2010-05-03 21:33:00 +0000 | [diff] [blame] | 555 | compiler/cpp/version.h |
Jake Farrell | 16b7641 | 2012-06-22 03:51:38 +0000 | [diff] [blame] | 556 | compiler/cpp/src/windows/version.h |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 557 | lib/Makefile |
| 558 | lib/cpp/Makefile |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 559 | lib/cpp/test/Makefile |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 560 | lib/cpp/thrift-nb.pc |
| 561 | lib/cpp/thrift-z.pc |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 562 | lib/cpp/thrift-qt.pc |
Bryan Duxbury | c657447 | 2010-10-06 00:12:33 +0000 | [diff] [blame] | 563 | lib/cpp/thrift.pc |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 564 | lib/c_glib/Makefile |
| 565 | lib/c_glib/thrift_c_glib.pc |
| 566 | lib/c_glib/test/Makefile |
David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 567 | lib/csharp/Makefile |
Jake Farrell | b95b0ff | 2012-03-22 21:49:10 +0000 | [diff] [blame] | 568 | lib/d/Makefile |
| 569 | lib/d/test/Makefile |
Bryan Duxbury | 7173bd9 | 2010-05-02 22:54:22 +0000 | [diff] [blame] | 570 | lib/erl/Makefile |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame^] | 571 | lib/go/Makefile |
Anthony F. Molinaro | a5df7c7 | 2010-09-27 17:22:17 +0000 | [diff] [blame] | 572 | lib/hs/Makefile |
David Reiss | f8dcf03 | 2008-02-23 22:07:39 +0000 | [diff] [blame] | 573 | lib/java/Makefile |
Roger Meier | f249576 | 2011-03-17 19:13:36 +0000 | [diff] [blame] | 574 | lib/js/test/Makefile |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 575 | lib/perl/Makefile |
| 576 | lib/perl/test/Makefile |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 577 | lib/php/Makefile |
Roger Meier | 33b720a | 2012-01-24 18:42:46 +0000 | [diff] [blame] | 578 | lib/php/test/Makefile |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 579 | lib/py/Makefile |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 580 | lib/rb/Makefile |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 581 | test/Makefile |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 582 | test/cpp/Makefile |
Bryan Duxbury | c657447 | 2010-10-06 00:12:33 +0000 | [diff] [blame] | 583 | test/hs/Makefile |
Roger Meier | eaa61d8 | 2012-01-12 21:38:29 +0000 | [diff] [blame] | 584 | test/nodejs/Makefile |
Roger Meier | b33967b | 2012-01-21 09:18:05 +0000 | [diff] [blame] | 585 | test/php/Makefile |
Roger Meier | 01b568c | 2012-01-10 21:30:02 +0000 | [diff] [blame] | 586 | test/perl/Makefile |
David Reiss | 9ff3b9d | 2008-02-15 01:10:23 +0000 | [diff] [blame] | 587 | test/py/Makefile |
Roger Meier | 50e4349 | 2010-10-08 17:46:06 +0000 | [diff] [blame] | 588 | test/py.twisted/Makefile |
Chris Piro | 20c81ad | 2013-03-07 11:32:48 -0500 | [diff] [blame] | 589 | test/py.tornado/Makefile |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 590 | test/rb/Makefile |
Roger Meier | fa89932 | 2012-10-22 19:27:38 +0000 | [diff] [blame] | 591 | tutorial/Makefile |
Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 592 | tutorial/cpp/Makefile |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame^] | 593 | tutorial/go/Makefile |
Roger Meier | fa89932 | 2012-10-22 19:27:38 +0000 | [diff] [blame] | 594 | tutorial/java/Makefile |
| 595 | tutorial/js/Makefile |
Roger Meier | 1d66d06 | 2012-10-26 21:46:18 +0000 | [diff] [blame] | 596 | tutorial/py/Makefile |
| 597 | tutorial/py.twisted/Makefile |
Chris Piro | 20c81ad | 2013-03-07 11:32:48 -0500 | [diff] [blame] | 598 | tutorial/py.tornado/Makefile |
Roger Meier | ed817d0 | 2013-06-09 23:10:06 +0200 | [diff] [blame] | 599 | tutorial/rb/Makefile |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 600 | ]) |
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 601 | |
| 602 | AC_OUTPUT |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 603 | |
| 604 | |
| 605 | echo |
| 606 | echo "$PACKAGE $VERSION" |
| 607 | echo |
David Reiss | ea4c981 | 2010-08-31 16:51:21 +0000 | [diff] [blame] | 608 | echo "Building C++ Library ......... : $have_cpp" |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 609 | echo "Building C (GLib) Library .... : $have_c_glib" |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 610 | echo "Building Java Library ........ : $have_java" |
| 611 | echo "Building C# Library .......... : $have_csharp" |
| 612 | echo "Building Python Library ...... : $have_python" |
| 613 | echo "Building Ruby Library ........ : $have_ruby" |
Anthony F. Molinaro | a5df7c7 | 2010-09-27 17:22:17 +0000 | [diff] [blame] | 614 | echo "Building Haskell Library ..... : $have_haskell" |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 615 | echo "Building Perl Library ........ : $have_perl" |
| 616 | echo "Building PHP Library ......... : $have_php" |
| 617 | echo "Building Erlang Library ...... : $have_erlang" |
Christian Lavoie | afc6d8f | 2011-02-20 02:39:19 +0000 | [diff] [blame] | 618 | echo "Building Go Library .......... : $have_go" |
Jake Farrell | b95b0ff | 2012-03-22 21:49:10 +0000 | [diff] [blame] | 619 | echo "Building D Library ........... : $have_d" |
Jake Farrell | c9c972b | 2012-07-24 17:28:24 +0000 | [diff] [blame] | 620 | |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 621 | if test "$have_cpp" = "yes" ; then |
| 622 | echo |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 623 | echo "C++ Library:" |
| 624 | echo " Build TZlibTransport ...... : $have_zlib" |
| 625 | echo " Build TNonblockingServer .. : $have_libevent" |
| 626 | echo " Build TQTcpServer (Qt) .... : $have_qt" |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 627 | fi |
| 628 | if test "$have_java" = "yes" ; then |
| 629 | echo |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 630 | echo "Java Library:" |
| 631 | echo " Using javac ............... : $JAVAC" |
| 632 | echo " Using java ................ : $JAVA" |
| 633 | echo " Using ant ................. : $ANT" |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 634 | fi |
| 635 | if test "$have_csharp" = "yes" ; then |
| 636 | echo |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 637 | echo "C# Library:" |
| 638 | echo " Using .NET 3.5 ............ : $net_3_5" |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 639 | fi |
| 640 | if test "$have_python" = "yes" ; then |
| 641 | echo |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 642 | echo "Python Library:" |
| 643 | echo " Using Python .............. : $PYTHON" |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 644 | fi |
Anthony F. Molinaro | ddcf32a | 2010-10-05 16:45:50 +0000 | [diff] [blame] | 645 | if test "$have_php" = "yes" ; then |
| 646 | echo |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 647 | echo "PHP Library:" |
| 648 | echo " Using php-config .......... : $PHP_CONFIG" |
Anthony F. Molinaro | ddcf32a | 2010-10-05 16:45:50 +0000 | [diff] [blame] | 649 | fi |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 650 | if test "$have_ruby" = "yes" ; then |
| 651 | echo |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 652 | echo "Ruby Library:" |
| 653 | echo " Using Ruby ................ : $RUBY" |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 654 | fi |
Anthony F. Molinaro | a5df7c7 | 2010-09-27 17:22:17 +0000 | [diff] [blame] | 655 | if test "$have_haskell" = "yes" ; then |
| 656 | echo |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 657 | echo "Haskell Library:" |
| 658 | echo " Using Haskell ............. : $RUNHASKELL" |
| 659 | echo " Using Cabal ............... : $CABAL" |
Anthony F. Molinaro | a5df7c7 | 2010-09-27 17:22:17 +0000 | [diff] [blame] | 660 | fi |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 661 | if test "$have_perl" = "yes" ; then |
| 662 | echo |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 663 | echo "Perl Library:" |
| 664 | echo " Using Perl ................ : $PERL" |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 665 | fi |
| 666 | if test "$have_erlang" = "yes" ; then |
| 667 | echo |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 668 | echo "Erlang Library:" |
| 669 | echo " Using erlc ................ : $ERLC" |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 670 | fi |
Christian Lavoie | afc6d8f | 2011-02-20 02:39:19 +0000 | [diff] [blame] | 671 | if test "$have_go" = "yes" ; then |
| 672 | echo |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 673 | echo "Go Library:" |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame^] | 674 | echo " Using Go................... : $GO" |
| 675 | echo " Using Go version........... : $(go version)" |
Christian Lavoie | afc6d8f | 2011-02-20 02:39:19 +0000 | [diff] [blame] | 676 | fi |
Jake Farrell | b95b0ff | 2012-03-22 21:49:10 +0000 | [diff] [blame] | 677 | if test "$have_d" = "yes" ; then |
| 678 | echo |
| 679 | echo "Using D Compiler ............. : $DMD" |
| 680 | echo "Building D libevent tests .... : $with_d_event_tests" |
| 681 | echo "Building D SSL tests ......... : $with_d_ssl_tests" |
| 682 | fi |
David Reiss | 5cc3ba8 | 2010-08-31 16:51:20 +0000 | [diff] [blame] | 683 | echo |
| 684 | echo "If something is missing that you think should be present," |
| 685 | echo "please skim the output of configure to find the missing" |
| 686 | echo "component. Details are present in config.log." |