Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 1 | AC_PREREQ(2.59) |
| 2 | |
David Reiss | b72d19f | 2007-09-18 19:46:00 +0000 | [diff] [blame] | 3 | AC_INIT([thrift], [20070917]) |
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 4 | |
| 5 | AC_CONFIG_AUX_DIR([.]) |
| 6 | |
| 7 | AM_INIT_AUTOMAKE |
| 8 | |
David Reiss | d683219 | 2007-09-05 00:47:32 +0000 | [diff] [blame] | 9 | AC_ARG_VAR([PY_PREFIX], [Prefix for installing Python modules. |
| 10 | (Normal --prefix is ignored for Python because |
| 11 | Python has different conventions.) |
| 12 | Default = "/usr"]) |
| 13 | AS_IF([test "x$PY_PREFIX" == x], [PY_PREFIX="/usr"]) |
| 14 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 15 | AM_PATH_PYTHON(2.4,, :) |
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 16 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 17 | |
| 18 | AC_PROG_CC |
| 19 | AC_PROG_CPP |
| 20 | AC_PROG_CXX |
| 21 | AC_PROG_INSTALL |
| 22 | AC_PROG_LIBTOOL |
| 23 | AC_PROG_MAKE_SET |
| 24 | AC_PROG_YACC |
| 25 | AC_PROG_LEX |
| 26 | AM_PROG_LEX |
| 27 | |
| 28 | AC_LANG([C++]) |
| 29 | AX_BOOST_BASE([1.33.1]) |
| 30 | |
| 31 | AX_LIB_EVENT([1.0]) |
| 32 | AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$success" = "yes"]) |
| 33 | |
| 34 | AX_LIB_ZLIB([1.2.3]) |
| 35 | AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"]) |
| 36 | |
| 37 | AC_C_CONST |
| 38 | AC_C_INLINE |
| 39 | AC_C_VOLATILE |
| 40 | |
| 41 | AC_HEADER_STDBOOL |
| 42 | AC_HEADER_STDC |
| 43 | AC_HEADER_TIME |
| 44 | AC_CHECK_HEADERS([arpa/inet.h]) |
| 45 | AC_CHECK_HEADERS([endian.h]) |
| 46 | AC_CHECK_HEADERS([fcntl.h]) |
| 47 | AC_CHECK_HEADERS([inttypes.h]) |
| 48 | AC_CHECK_HEADERS([netdb.h]) |
| 49 | AC_CHECK_HEADERS([netinet/in.h]) |
| 50 | AC_CHECK_HEADERS([pthread.h]) |
| 51 | AC_CHECK_HEADERS([stddef.h]) |
| 52 | AC_CHECK_HEADERS([sys/socket.h]) |
| 53 | AC_CHECK_HEADERS([sys/time.h]) |
| 54 | AC_CHECK_HEADERS([unistd.h]) |
| 55 | AC_CHECK_HEADERS([libintl.h]) |
| 56 | AC_CHECK_HEADERS([malloc.h]) |
| 57 | |
| 58 | AC_CHECK_LIB(pthread, pthread_create) |
| 59 | AC_CHECK_LIB(rt, sched_get_priority_min) |
| 60 | |
| 61 | AC_TYPE_INT16_T |
| 62 | AC_TYPE_INT32_T |
| 63 | AC_TYPE_INT64_T |
| 64 | AC_TYPE_INT8_T |
| 65 | AC_TYPE_MODE_T |
| 66 | AC_TYPE_OFF_T |
| 67 | AC_TYPE_SIZE_T |
| 68 | AC_TYPE_UINT16_T |
| 69 | AC_TYPE_UINT32_T |
| 70 | AC_TYPE_UINT64_T |
| 71 | AC_TYPE_UINT8_T |
| 72 | |
| 73 | AC_FUNC_ALLOCA |
| 74 | AC_FUNC_MALLOC |
| 75 | AC_FUNC_REALLOC |
| 76 | AC_FUNC_SELECT_ARGTYPES |
| 77 | AC_FUNC_STAT |
| 78 | AC_FUNC_STRERROR_R |
| 79 | AC_FUNC_VPRINTF |
| 80 | AC_CHECK_FUNCS([strtoul]) |
| 81 | AC_CHECK_FUNCS([bzero]) |
| 82 | AC_CHECK_FUNCS([clock_gettime]) |
| 83 | AC_CHECK_FUNCS([gethostbyname]) |
| 84 | AC_CHECK_FUNCS([gettimeofday]) |
| 85 | AC_CHECK_FUNCS([memmove]) |
| 86 | AC_CHECK_FUNCS([memset]) |
| 87 | AC_CHECK_FUNCS([mkdir]) |
| 88 | AC_CHECK_FUNCS([realpath]) |
| 89 | AC_CHECK_FUNCS([select]) |
| 90 | AC_CHECK_FUNCS([socket]) |
| 91 | AC_CHECK_FUNCS([strchr]) |
| 92 | AC_CHECK_FUNCS([strdup]) |
| 93 | AC_CHECK_FUNCS([strstr]) |
| 94 | AC_CHECK_FUNCS([strtol]) |
| 95 | AC_CHECK_FUNCS([sqrt]) |
| 96 | |
| 97 | AC_CONFIG_HEADERS(config.h:config.hin) |
| 98 | |
| 99 | AC_CONFIG_FILES([ |
| 100 | Makefile |
| 101 | compiler/cpp/Makefile |
| 102 | lib/Makefile |
| 103 | lib/cpp/Makefile |
| 104 | lib/cpp/thrift.pc |
| 105 | lib/cpp/thrift-nb.pc |
| 106 | lib/cpp/thrift-z.pc |
| 107 | lib/py/Makefile |
| 108 | if/Makefile |
| 109 | ]) |
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 110 | |
| 111 | AC_OUTPUT |