mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
0b7d6fa5ee
This was a feature designed to allow a Thrift server to report information about its interface. However, the feature has significant design problems, and is presence is currently causing confusion without doing any good. Therefore, it is being removed. It will always be in source control if and when we are ready to come back to it. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741824 13f79535-47bb-0310-9956-ffa450edef68
196 lines
5.0 KiB
Plaintext
196 lines
5.0 KiB
Plaintext
AC_PREREQ(2.59)
|
|
|
|
AC_INIT([thrift], [20080411])
|
|
|
|
AC_CONFIG_AUX_DIR([.])
|
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
AC_ARG_VAR([PY_PREFIX], [Prefix for installing Python modules.
|
|
(Normal --prefix is ignored for Python because
|
|
Python has different conventions.)
|
|
Default = "/usr"])
|
|
AS_IF([test "x$PY_PREFIX" = x], [PY_PREFIX="/usr"])
|
|
|
|
AC_ARG_VAR([JAVA_PREFIX], [Prefix for installing the Java lib jar.
|
|
(Normal --prefix is ignored for Java because
|
|
Java has different conevntions.)
|
|
Default = "/usr/local/lib"])
|
|
AS_IF([test "x$JAVA_PREFIX" = x], [JAVA_PREFIX="/usr/local/lib"])
|
|
|
|
AC_PROG_CC
|
|
AC_PROG_CPP
|
|
AC_PROG_CXX
|
|
AC_PROG_INSTALL
|
|
AC_PROG_LIBTOOL
|
|
AC_PROG_MAKE_SET
|
|
AC_PROG_YACC
|
|
AC_PROG_LEX
|
|
AM_PROG_LEX
|
|
AC_PROG_LN_S
|
|
AC_PROG_MKDIR_P
|
|
|
|
AC_LANG([C++])
|
|
AX_BOOST_BASE([1.33.1])
|
|
|
|
AX_LIB_EVENT([1.0])
|
|
AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$success" = "yes"])
|
|
|
|
AX_LIB_ZLIB([1.2.3])
|
|
AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"])
|
|
|
|
AX_THRIFT_LIB(csharp, [C#], yes)
|
|
if test "$with_csharp" = "yes"; then
|
|
PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
|
|
fi
|
|
AM_CONDITIONAL(WITH_MONO, [test "$have_mono" = "yes"])
|
|
|
|
AX_THRIFT_LIB(java, [Java], yes)
|
|
if test "$with_java" = "yes"; then
|
|
AC_PATH_PROG([ANT], [ant])
|
|
AX_PROG_JAVAC
|
|
AX_PROG_JAVA
|
|
fi
|
|
AM_CONDITIONAL([WITH_JAVA],
|
|
[test -n "$ANT" -a -n "$JAVA" -a -n "$JAVAC"])
|
|
|
|
AX_THRIFT_LIB(erlang, [Erlang], yes)
|
|
if test "$with_erlang" = "yes"; then
|
|
AC_PATH_PROG([ERLC], [erlc])
|
|
fi
|
|
AM_CONDITIONAL(WITH_ERLANG, [test -n "$ERLC"])
|
|
|
|
AX_THRIFT_LIB(py, [Python], yes)
|
|
if test "$with_py" = "yes"; then
|
|
AM_PATH_PYTHON(2.4,, :)
|
|
fi
|
|
AM_CONDITIONAL(WITH_PYTHON, [test -n "$PYTHON" -a "$PYTHON" != ":"])
|
|
|
|
AX_THRIFT_LIB(perl, [Perl], yes)
|
|
if test "$with_perl" = "yes"; then
|
|
AC_PATH_PROG([PERL], [perl])
|
|
fi
|
|
AM_CONDITIONAL(WITH_PERL, [test -n "$PERL"])
|
|
|
|
AX_THRIFT_LIB(ruby, [Ruby], yes)
|
|
if test "$with_ruby" = "yes"; then
|
|
AC_PATH_PROG([RUBY], [ruby])
|
|
fi
|
|
AM_CONDITIONAL(WITH_RUBY, [test -n "$RUBY"])
|
|
|
|
AC_C_CONST
|
|
AC_C_INLINE
|
|
AC_C_VOLATILE
|
|
|
|
AC_HEADER_STDBOOL
|
|
AC_HEADER_STDC
|
|
AC_HEADER_TIME
|
|
AC_CHECK_HEADERS([arpa/inet.h])
|
|
AC_CHECK_HEADERS([endian.h])
|
|
AC_CHECK_HEADERS([fcntl.h])
|
|
AC_CHECK_HEADERS([inttypes.h])
|
|
AC_CHECK_HEADERS([limits.h])
|
|
AC_CHECK_HEADERS([netdb.h])
|
|
AC_CHECK_HEADERS([netinet/in.h])
|
|
AC_CHECK_HEADERS([pthread.h])
|
|
AC_CHECK_HEADERS([stddef.h])
|
|
AC_CHECK_HEADERS([stdlib.h])
|
|
AC_CHECK_HEADERS([sys/socket.h])
|
|
AC_CHECK_HEADERS([sys/time.h])
|
|
AC_CHECK_HEADERS([unistd.h])
|
|
AC_CHECK_HEADERS([libintl.h])
|
|
AC_CHECK_HEADERS([malloc.h])
|
|
|
|
AC_CHECK_LIB(pthread, pthread_create)
|
|
AC_CHECK_LIB(rt, sched_get_priority_min)
|
|
|
|
AC_TYPE_INT16_T
|
|
AC_TYPE_INT32_T
|
|
AC_TYPE_INT64_T
|
|
AC_TYPE_INT8_T
|
|
AC_TYPE_MODE_T
|
|
AC_TYPE_OFF_T
|
|
AC_TYPE_SIZE_T
|
|
AC_TYPE_SSIZE_T
|
|
AC_TYPE_UINT16_T
|
|
AC_TYPE_UINT32_T
|
|
AC_TYPE_UINT64_T
|
|
AC_TYPE_UINT8_T
|
|
AC_CHECK_TYPES([ptrdiff_t], [], [exit 1])
|
|
|
|
AC_STRUCT_TM
|
|
|
|
AC_FUNC_ALLOCA
|
|
AC_FUNC_MALLOC
|
|
AC_FUNC_MEMCMP
|
|
AC_FUNC_REALLOC
|
|
AC_FUNC_SELECT_ARGTYPES
|
|
AC_FUNC_STAT
|
|
AC_FUNC_STRERROR_R
|
|
AC_FUNC_STRFTIME
|
|
AC_FUNC_VPRINTF
|
|
AC_CHECK_FUNCS([strtoul])
|
|
AC_CHECK_FUNCS([bzero])
|
|
AC_CHECK_FUNCS([clock_gettime])
|
|
AC_CHECK_FUNCS([ftruncate])
|
|
AC_CHECK_FUNCS([gethostbyname])
|
|
AC_CHECK_FUNCS([gettimeofday])
|
|
AC_CHECK_FUNCS([memmove])
|
|
AC_CHECK_FUNCS([memset])
|
|
AC_CHECK_FUNCS([mkdir])
|
|
AC_CHECK_FUNCS([realpath])
|
|
AC_CHECK_FUNCS([select])
|
|
AC_CHECK_FUNCS([socket])
|
|
AC_CHECK_FUNCS([strchr])
|
|
AC_CHECK_FUNCS([strdup])
|
|
AC_CHECK_FUNCS([strerror])
|
|
AC_CHECK_FUNCS([strstr])
|
|
AC_CHECK_FUNCS([strtol])
|
|
AC_CHECK_FUNCS([sqrt])
|
|
|
|
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(csharp, [C#], yes)
|
|
AM_CONDITIONAL([THRIFT_GEN_csharp], [test "$ax_thrift_gen_csharp" = "yes"])
|
|
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)
|
|
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)
|
|
AM_CONDITIONAL([THRIFT_GEN_hs], [test "$ax_thrift_gen_hs" = "yes"])
|
|
AX_THRIFT_GEN(html, [HTML], yes)
|
|
AM_CONDITIONAL([THRIFT_GEN_html], [test "$ax_thrift_gen_html" = "yes"])
|
|
|
|
AC_CONFIG_HEADERS(config.h:config.hin)
|
|
|
|
AC_CONFIG_FILES([
|
|
Makefile
|
|
compiler/cpp/Makefile
|
|
lib/Makefile
|
|
lib/cpp/Makefile
|
|
lib/cpp/thrift.pc
|
|
lib/cpp/thrift-nb.pc
|
|
lib/cpp/thrift-z.pc
|
|
lib/csharp/Makefile
|
|
lib/java/Makefile
|
|
lib/perl/Makefile
|
|
lib/perl/test/Makefile
|
|
lib/py/Makefile
|
|
lib/rb/Makefile
|
|
test/Makefile
|
|
test/py/Makefile
|
|
test/rb/Makefile
|
|
])
|
|
|
|
AC_OUTPUT
|