blob: 5e336173b071309f52f141381a951404f96b0aa8 [file] [log] [blame]
Marc Slemko9f0ba252006-07-21 03:53:13 +00001AC_PREREQ(2.59)
2
Marc Slemkob09f5882006-08-23 22:03:34 +00003AC_INIT(thriftcpp, 1.0)
Marc Slemko9f0ba252006-07-21 03:53:13 +00004
5AC_CONFIG_SRCDIR(src/Thrift.h)
6
David Reissbc3dddb2007-08-22 23:20:24 +00007AC_PROG_CC
8
9AC_PROG_CXX
10
11AC_LANG([C++])
12
Marc Slemko9f0ba252006-07-21 03:53:13 +000013AM_INIT_AUTOMAKE
14
Marc Slemko75c2f702007-01-17 07:59:38 +000015AC_FUNC_MALLOC
16
17AC_FUNC_REALLOC
18
19AC_FUNC_SELECT_ARGTYPES
20
David Reissbc3dddb2007-08-22 23:20:24 +000021AC_FUNC_STRERROR_R
22
Marc Slemko75c2f702007-01-17 07:59:38 +000023AC_CHECK_FUNCS([bzero])
24
Marc Slemko9f0ba252006-07-21 03:53:13 +000025AC_CHECK_FUNCS([gethostbyname])
26
27AC_CHECK_FUNCS([gettimeofday])
28
29AC_CHECK_FUNCS([memset])
30
Marc Slemko75c2f702007-01-17 07:59:38 +000031AC_CHECK_FUNCS([select])
32
Marc Slemko9f0ba252006-07-21 03:53:13 +000033AC_CHECK_FUNCS([socket])
34
Marc Slemkod42a2c22006-08-10 03:30:18 +000035AC_CHECK_FUNCS([strtol])
36
37AC_CHECK_FUNCS([strtoul])
38
Mark Slee3303f362007-03-05 20:09:37 +000039AC_CHECK_FUNCS([memmove])
40
41AC_CHECK_FUNCS([strstr])
42
43AC_CHECK_FUNCS([strchr])
44
Marc Slemko9f0ba252006-07-21 03:53:13 +000045AC_CHECK_HEADERS([arpa/inet.h])
46
Marc Slemko75c2f702007-01-17 07:59:38 +000047AC_CHECK_HEADERS([fcntl.h])
48
Marc Slemko9f0ba252006-07-21 03:53:13 +000049AC_CHECK_HEADERS([inttypes.h])
50
51AC_CHECK_HEADERS([netdb.h])
52
53AC_CHECK_HEADERS([netinet/in.h])
54
55AC_CHECK_HEADERS([pthread.h])
56
57AC_CHECK_HEADERS([stddef.h])
58
59AC_CHECK_HEADERS([sys/socket.h])
60
61AC_CHECK_HEADERS([sys/time.h])
62
63AC_CHECK_HEADERS([unistd.h])
64
Mark Slee4f261c52007-04-13 00:33:24 +000065AC_CHECK_HEADERS([endian.h])
66
Mark Sleeeb0d0242007-01-25 07:58:55 +000067AC_C_INLINE
68
Marc Slemko6f038a72006-08-03 18:58:09 +000069AX_BOOST_BASE([1.33.1])
70
David Reiss79ae0f82007-09-17 21:15:47 +000071AX_LIB_EVENT([1.0])
72AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$success" = "yes"])
Marc Slemko85ca7a12007-01-17 08:32:16 +000073
Marc Slemkoe03da182006-07-21 21:32:36 +000074AC_CHECK_LIB(pthread, pthread_create)
75
Marc Slemkoc7782972006-07-25 02:26:35 +000076AC_CHECK_LIB(rt, sched_get_priority_min)
77
78AC_CHECK_FUNCS([clock_gettime])
79
Marc Slemko9f0ba252006-07-21 03:53:13 +000080AC_C_CONST
81
82AC_C_VOLATILE
83
84AC_HEADER_STDBOOL
85
86AC_HEADER_STDC
87
88AC_HEADER_TIME
89
Marc Slemko75c2f702007-01-17 07:59:38 +000090AC_TYPE_OFF_T
91
92AC_TYPE_MODE_T
93
Marc Slemko9f0ba252006-07-21 03:53:13 +000094AC_TYPE_SIZE_T
95
Marc Slemkod42a2c22006-08-10 03:30:18 +000096AC_TYPE_INT16_T
97
Marc Slemko9d4a3e22006-07-21 19:53:48 +000098AC_TYPE_INT32_T
Marc Slemkoe03da182006-07-21 21:32:36 +000099
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000100AC_TYPE_INT64_T
101
102AC_TYPE_UINT16_T
103
104AC_TYPE_UINT32_T
105
106AC_TYPE_UINT64_T
107
108AC_TYPE_UINT8_T
109
Marc Slemko9f0ba252006-07-21 03:53:13 +0000110AC_CONFIG_HEADERS(config.h:config.hin)
111
Marc Slemko9f0ba252006-07-21 03:53:13 +0000112AC_PROG_INSTALL
113
114AC_PROG_LIBTOOL
115
Mark Slee5d06fea2007-03-05 22:18:18 +0000116AC_PROG_MAKE_SET
117
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000118AC_OUTPUT(Makefile)