Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 1 | AC_PREREQ(2.59) |
2 | |||||
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 3 | AC_INIT(thriftcpp, 1.0) |
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 4 | |
5 | AC_CONFIG_SRCDIR(src/Thrift.h) | ||||
6 | |||||
7 | AM_INIT_AUTOMAKE | ||||
8 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 9 | AC_FUNC_MALLOC |
10 | |||||
11 | AC_FUNC_REALLOC | ||||
12 | |||||
13 | AC_FUNC_SELECT_ARGTYPES | ||||
14 | |||||
15 | AC_CHECK_FUNCS([bzero]) | ||||
16 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 17 | AC_CHECK_FUNCS([gethostbyname]) |
18 | |||||
19 | AC_CHECK_FUNCS([gettimeofday]) | ||||
20 | |||||
21 | AC_CHECK_FUNCS([memset]) | ||||
22 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 23 | AC_CHECK_FUNCS([select]) |
24 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 25 | AC_CHECK_FUNCS([socket]) |
26 | |||||
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 27 | AC_CHECK_FUNCS([strtol]) |
28 | |||||
29 | AC_CHECK_FUNCS([strtoul]) | ||||
30 | |||||
Mark Slee | 3303f36 | 2007-03-05 20:09:37 +0000 | [diff] [blame^] | 31 | AC_CHECK_FUNCS([memmove]) |
32 | |||||
33 | AC_CHECK_FUNCS([strstr]) | ||||
34 | |||||
35 | AC_CHECK_FUNCS([strchr]) | ||||
36 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 37 | AC_CHECK_HEADERS([arpa/inet.h]) |
38 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 39 | AC_CHECK_HEADERS([fcntl.h]) |
40 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 41 | AC_CHECK_HEADERS([inttypes.h]) |
42 | |||||
43 | AC_CHECK_HEADERS([netdb.h]) | ||||
44 | |||||
45 | AC_CHECK_HEADERS([netinet/in.h]) | ||||
46 | |||||
47 | AC_CHECK_HEADERS([pthread.h]) | ||||
48 | |||||
49 | AC_CHECK_HEADERS([stddef.h]) | ||||
50 | |||||
51 | AC_CHECK_HEADERS([sys/socket.h]) | ||||
52 | |||||
53 | AC_CHECK_HEADERS([sys/time.h]) | ||||
54 | |||||
55 | AC_CHECK_HEADERS([unistd.h]) | ||||
56 | |||||
Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 57 | AC_C_INLINE |
58 | |||||
Marc Slemko | 6f038a7 | 2006-08-03 18:58:09 +0000 | [diff] [blame] | 59 | AX_BOOST_BASE([1.33.1]) |
60 | |||||
Marc Slemko | 85ca7a1 | 2007-01-17 08:32:16 +0000 | [diff] [blame] | 61 | AX_EVENT_BASE([1.2.0]) |
62 | |||||
Marc Slemko | e03da18 | 2006-07-21 21:32:36 +0000 | [diff] [blame] | 63 | AC_CHECK_LIB(pthread, pthread_create) |
64 | |||||
Marc Slemko | c778297 | 2006-07-25 02:26:35 +0000 | [diff] [blame] | 65 | AC_CHECK_LIB(rt, sched_get_priority_min) |
66 | |||||
67 | AC_CHECK_FUNCS([clock_gettime]) | ||||
68 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 69 | AC_C_CONST |
70 | |||||
71 | AC_C_VOLATILE | ||||
72 | |||||
73 | AC_HEADER_STDBOOL | ||||
74 | |||||
75 | AC_HEADER_STDC | ||||
76 | |||||
77 | AC_HEADER_TIME | ||||
78 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 79 | AC_TYPE_OFF_T |
80 | |||||
81 | AC_TYPE_MODE_T | ||||
82 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 83 | AC_TYPE_SIZE_T |
84 | |||||
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 85 | AC_TYPE_INT16_T |
86 | |||||
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 87 | AC_TYPE_INT32_T |
Marc Slemko | e03da18 | 2006-07-21 21:32:36 +0000 | [diff] [blame] | 88 | |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 89 | AC_TYPE_INT64_T |
90 | |||||
91 | AC_TYPE_UINT16_T | ||||
92 | |||||
93 | AC_TYPE_UINT32_T | ||||
94 | |||||
95 | AC_TYPE_UINT64_T | ||||
96 | |||||
97 | AC_TYPE_UINT8_T | ||||
98 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 99 | AC_CONFIG_HEADERS(config.h:config.hin) |
100 | |||||
101 | AC_PROG_CC | ||||
102 | |||||
103 | AC_PROG_CXX | ||||
104 | |||||
105 | AC_PROG_INSTALL | ||||
106 | |||||
107 | AC_PROG_LIBTOOL | ||||
108 | |||||
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 109 | AC_OUTPUT(Makefile) |