blob: d542feb85a2ec2b7bd431ff770390e3ecb5d61ea [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
Marc Slemko9f0ba252006-07-21 03:53:13 +000031AC_CHECK_HEADERS([arpa/inet.h])
32
Marc Slemko75c2f702007-01-17 07:59:38 +000033AC_CHECK_HEADERS([fcntl.h])
34
Marc Slemko9f0ba252006-07-21 03:53:13 +000035AC_CHECK_HEADERS([inttypes.h])
36
37AC_CHECK_HEADERS([netdb.h])
38
39AC_CHECK_HEADERS([netinet/in.h])
40
41AC_CHECK_HEADERS([pthread.h])
42
43AC_CHECK_HEADERS([stddef.h])
44
45AC_CHECK_HEADERS([sys/socket.h])
46
47AC_CHECK_HEADERS([sys/time.h])
48
49AC_CHECK_HEADERS([unistd.h])
50
Marc Slemko6f038a72006-08-03 18:58:09 +000051AX_BOOST_BASE([1.33.1])
52
Marc Slemkoe03da182006-07-21 21:32:36 +000053AC_CHECK_LIB(pthread, pthread_create)
54
Marc Slemkoc7782972006-07-25 02:26:35 +000055AC_CHECK_LIB(rt, sched_get_priority_min)
56
57AC_CHECK_FUNCS([clock_gettime])
58
Marc Slemko9f0ba252006-07-21 03:53:13 +000059AC_C_CONST
60
61AC_C_VOLATILE
62
63AC_HEADER_STDBOOL
64
65AC_HEADER_STDC
66
67AC_HEADER_TIME
68
Marc Slemko75c2f702007-01-17 07:59:38 +000069AC_TYPE_OFF_T
70
71AC_TYPE_MODE_T
72
Marc Slemko9f0ba252006-07-21 03:53:13 +000073AC_TYPE_SIZE_T
74
Marc Slemkod42a2c22006-08-10 03:30:18 +000075AC_TYPE_INT16_T
76
Marc Slemko9d4a3e22006-07-21 19:53:48 +000077AC_TYPE_INT32_T
Marc Slemkoe03da182006-07-21 21:32:36 +000078
Marc Slemko9d4a3e22006-07-21 19:53:48 +000079AC_TYPE_INT64_T
80
81AC_TYPE_UINT16_T
82
83AC_TYPE_UINT32_T
84
85AC_TYPE_UINT64_T
86
87AC_TYPE_UINT8_T
88
Marc Slemko9f0ba252006-07-21 03:53:13 +000089AC_CONFIG_HEADERS(config.h:config.hin)
90
91AC_PROG_CC
92
93AC_PROG_CXX
94
95AC_PROG_INSTALL
96
97AC_PROG_LIBTOOL
98
Mark Slee29050782006-09-29 00:12:30 +000099CFLAGS="-O2"
100
101CXXFLAGS="-O2"
102
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000103AC_OUTPUT(Makefile)