blob: a6d61e8c522ae37014845ac6140465a11d10c6c8 [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
7AM_INIT_AUTOMAKE
8
Marc Slemko75c2f702007-01-17 07:59:38 +00009AC_FUNC_MALLOC
10
11AC_FUNC_REALLOC
12
13AC_FUNC_SELECT_ARGTYPES
14
15AC_CHECK_FUNCS([bzero])
16
Marc Slemko9f0ba252006-07-21 03:53:13 +000017AC_CHECK_FUNCS([gethostbyname])
18
19AC_CHECK_FUNCS([gettimeofday])
20
21AC_CHECK_FUNCS([memset])
22
Marc Slemko75c2f702007-01-17 07:59:38 +000023AC_CHECK_FUNCS([select])
24
Marc Slemko9f0ba252006-07-21 03:53:13 +000025AC_CHECK_FUNCS([socket])
26
Marc Slemkod42a2c22006-08-10 03:30:18 +000027AC_CHECK_FUNCS([strtol])
28
29AC_CHECK_FUNCS([strtoul])
30
Mark Slee3303f362007-03-05 20:09:37 +000031AC_CHECK_FUNCS([memmove])
32
33AC_CHECK_FUNCS([strstr])
34
35AC_CHECK_FUNCS([strchr])
36
Marc Slemko9f0ba252006-07-21 03:53:13 +000037AC_CHECK_HEADERS([arpa/inet.h])
38
Marc Slemko75c2f702007-01-17 07:59:38 +000039AC_CHECK_HEADERS([fcntl.h])
40
Marc Slemko9f0ba252006-07-21 03:53:13 +000041AC_CHECK_HEADERS([inttypes.h])
42
43AC_CHECK_HEADERS([netdb.h])
44
45AC_CHECK_HEADERS([netinet/in.h])
46
47AC_CHECK_HEADERS([pthread.h])
48
49AC_CHECK_HEADERS([stddef.h])
50
51AC_CHECK_HEADERS([sys/socket.h])
52
53AC_CHECK_HEADERS([sys/time.h])
54
55AC_CHECK_HEADERS([unistd.h])
56
Mark Slee4f261c52007-04-13 00:33:24 +000057AC_CHECK_HEADERS([endian.h])
58
Mark Sleeeb0d0242007-01-25 07:58:55 +000059AC_C_INLINE
60
Marc Slemko6f038a72006-08-03 18:58:09 +000061AX_BOOST_BASE([1.33.1])
62
Marc Slemko85ca7a12007-01-17 08:32:16 +000063AX_EVENT_BASE([1.2.0])
64
Marc Slemkoe03da182006-07-21 21:32:36 +000065AC_CHECK_LIB(pthread, pthread_create)
66
Marc Slemkoc7782972006-07-25 02:26:35 +000067AC_CHECK_LIB(rt, sched_get_priority_min)
68
69AC_CHECK_FUNCS([clock_gettime])
70
Marc Slemko9f0ba252006-07-21 03:53:13 +000071AC_C_CONST
72
73AC_C_VOLATILE
74
75AC_HEADER_STDBOOL
76
77AC_HEADER_STDC
78
79AC_HEADER_TIME
80
Marc Slemko75c2f702007-01-17 07:59:38 +000081AC_TYPE_OFF_T
82
83AC_TYPE_MODE_T
84
Marc Slemko9f0ba252006-07-21 03:53:13 +000085AC_TYPE_SIZE_T
86
Marc Slemkod42a2c22006-08-10 03:30:18 +000087AC_TYPE_INT16_T
88
Marc Slemko9d4a3e22006-07-21 19:53:48 +000089AC_TYPE_INT32_T
Marc Slemkoe03da182006-07-21 21:32:36 +000090
Marc Slemko9d4a3e22006-07-21 19:53:48 +000091AC_TYPE_INT64_T
92
93AC_TYPE_UINT16_T
94
95AC_TYPE_UINT32_T
96
97AC_TYPE_UINT64_T
98
99AC_TYPE_UINT8_T
100
Marc Slemko9f0ba252006-07-21 03:53:13 +0000101AC_CONFIG_HEADERS(config.h:config.hin)
102
103AC_PROG_CC
104
105AC_PROG_CXX
106
107AC_PROG_INSTALL
108
109AC_PROG_LIBTOOL
110
Mark Slee5d06fea2007-03-05 22:18:18 +0000111AC_PROG_MAKE_SET
112
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000113AC_OUTPUT(Makefile)