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 | |||||
David Reiss | bc3dddb | 2007-08-22 23:20:24 +0000 | [diff] [blame] | 7 | AC_PROG_CC |
8 | |||||
9 | AC_PROG_CXX | ||||
10 | |||||
11 | AC_LANG([C++]) | ||||
12 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 13 | AM_INIT_AUTOMAKE |
14 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 15 | AC_FUNC_MALLOC |
16 | |||||
Mark Slee | 79b1694 | 2007-11-26 19:05:29 +0000 | [diff] [blame^] | 17 | AC_FUNC_MEMCMP |
18 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 19 | AC_FUNC_REALLOC |
20 | |||||
21 | AC_FUNC_SELECT_ARGTYPES | ||||
22 | |||||
David Reiss | bc3dddb | 2007-08-22 23:20:24 +0000 | [diff] [blame] | 23 | AC_FUNC_STRERROR_R |
24 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 25 | AC_CHECK_FUNCS([bzero]) |
26 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 27 | AC_CHECK_FUNCS([gethostbyname]) |
28 | |||||
29 | AC_CHECK_FUNCS([gettimeofday]) | ||||
30 | |||||
31 | AC_CHECK_FUNCS([memset]) | ||||
32 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 33 | AC_CHECK_FUNCS([select]) |
34 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 35 | AC_CHECK_FUNCS([socket]) |
36 | |||||
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 37 | AC_CHECK_FUNCS([strtol]) |
38 | |||||
39 | AC_CHECK_FUNCS([strtoul]) | ||||
40 | |||||
Mark Slee | 3303f36 | 2007-03-05 20:09:37 +0000 | [diff] [blame] | 41 | AC_CHECK_FUNCS([memmove]) |
42 | |||||
43 | AC_CHECK_FUNCS([strstr]) | ||||
44 | |||||
45 | AC_CHECK_FUNCS([strchr]) | ||||
46 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 47 | AC_CHECK_HEADERS([arpa/inet.h]) |
48 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 49 | AC_CHECK_HEADERS([fcntl.h]) |
50 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 51 | AC_CHECK_HEADERS([inttypes.h]) |
52 | |||||
53 | AC_CHECK_HEADERS([netdb.h]) | ||||
54 | |||||
55 | AC_CHECK_HEADERS([netinet/in.h]) | ||||
56 | |||||
57 | AC_CHECK_HEADERS([pthread.h]) | ||||
58 | |||||
59 | AC_CHECK_HEADERS([stddef.h]) | ||||
60 | |||||
61 | AC_CHECK_HEADERS([sys/socket.h]) | ||||
62 | |||||
63 | AC_CHECK_HEADERS([sys/time.h]) | ||||
64 | |||||
65 | AC_CHECK_HEADERS([unistd.h]) | ||||
66 | |||||
Mark Slee | 4f261c5 | 2007-04-13 00:33:24 +0000 | [diff] [blame] | 67 | AC_CHECK_HEADERS([endian.h]) |
68 | |||||
Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 69 | AC_C_INLINE |
70 | |||||
Marc Slemko | 6f038a7 | 2006-08-03 18:58:09 +0000 | [diff] [blame] | 71 | AX_BOOST_BASE([1.33.1]) |
72 | |||||
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 73 | AX_LIB_EVENT([1.0]) |
74 | AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$success" = "yes"]) | ||||
Marc Slemko | 85ca7a1 | 2007-01-17 08:32:16 +0000 | [diff] [blame] | 75 | |
David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame] | 76 | AX_LIB_ZLIB([1.2.3]) |
77 | AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"]) | ||||
78 | |||||
Marc Slemko | e03da18 | 2006-07-21 21:32:36 +0000 | [diff] [blame] | 79 | AC_CHECK_LIB(pthread, pthread_create) |
80 | |||||
Marc Slemko | c778297 | 2006-07-25 02:26:35 +0000 | [diff] [blame] | 81 | AC_CHECK_LIB(rt, sched_get_priority_min) |
82 | |||||
83 | AC_CHECK_FUNCS([clock_gettime]) | ||||
84 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 85 | AC_C_CONST |
86 | |||||
87 | AC_C_VOLATILE | ||||
88 | |||||
89 | AC_HEADER_STDBOOL | ||||
90 | |||||
91 | AC_HEADER_STDC | ||||
92 | |||||
93 | AC_HEADER_TIME | ||||
94 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 95 | AC_TYPE_OFF_T |
96 | |||||
97 | AC_TYPE_MODE_T | ||||
98 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 99 | AC_TYPE_SIZE_T |
100 | |||||
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 101 | AC_TYPE_INT16_T |
102 | |||||
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 103 | AC_TYPE_INT32_T |
Marc Slemko | e03da18 | 2006-07-21 21:32:36 +0000 | [diff] [blame] | 104 | |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 105 | AC_TYPE_INT64_T |
106 | |||||
107 | AC_TYPE_UINT16_T | ||||
108 | |||||
109 | AC_TYPE_UINT32_T | ||||
110 | |||||
111 | AC_TYPE_UINT64_T | ||||
112 | |||||
113 | AC_TYPE_UINT8_T | ||||
114 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 115 | AC_CONFIG_HEADERS(config.h:config.hin) |
116 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 117 | AC_PROG_INSTALL |
118 | |||||
119 | AC_PROG_LIBTOOL | ||||
120 | |||||
Mark Slee | 5d06fea | 2007-03-05 22:18:18 +0000 | [diff] [blame] | 121 | AC_PROG_MAKE_SET |
122 | |||||
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 123 | AC_OUTPUT(Makefile) |