Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 82 lines (63 sloc) 2.005 kB
ccf4add @MarkDelany Prepare for first ./configure push
MarkDelany authored
1 AC_PREREQ([2.68])
2 AC_INIT([pluton], [0.0.1], [y6x@romeo.emu.st],,[http://markdelany.github.com/Pluton])
3 AC_PREFIX_DEFAULT(/usr/local/pluton)
4 AC_CONFIG_SRCDIR(manager/plutonManager.cc)
5 AC_CONFIG_HEADER(config.h)
6 AC_CONFIG_AUX_DIR(config)
7 AC_CONFIG_MACRO_DIR([m4])
8
9 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
10
11 WARN_CXXFLAGS="-Wall -pedantic -Wno-long-long"
12 AC_SUBST(WARN_CXXFLAGS)
13
14 # Checks for programs.
15 AC_PROG_CXX
16 AC_PROG_CC
17 AC_PROG_LIBTOOL
18 AC_PROG_LN_S
19 AC_PROG_MAKE_SET
20
21 # Include large-file support on Linux
22
23 AC_SYS_LARGEFILE
24
25 # Check for packages
26
27 PKG_CHECK_MODULES(LIBCURL, libcurl >= 7.19.6)
2bbc399 @MarkDelany Many portability fixes and autoconf support
MarkDelany authored
28 PKG_CHECK_MODULES(STATETHREADS, st >= 1.8)
ccf4add @MarkDelany Prepare for first ./configure push
MarkDelany authored
29
2bbc399 @MarkDelany Many portability fixes and autoconf support
MarkDelany authored
30 # Checks for C header files.
ccf4add @MarkDelany Prepare for first ./configure push
MarkDelany authored
31
2bbc399 @MarkDelany Many portability fixes and autoconf support
MarkDelany authored
32 AC_CHECK_HEADERS([arpa/inet.h \
33 dirent.h fcntl.h stdlib.h \
34 netinet/in.h \
35 sys/param.h sys/mman.h sys/select.h sys/socket.h sys/stat.h \
36 sys/time.h sys/types.h sys/uio.h \
37 unistd.h])
ccf4add @MarkDelany Prepare for first ./configure push
MarkDelany authored
38
2bbc399 @MarkDelany Many portability fixes and autoconf support
MarkDelany authored
39 # Checks for CPP header files.
40
41 AC_LANG_PUSH([C++])
42 AC_CHECK_HEADERS([unordered_map])
43 AC_CHECK_HEADERS([tr1/unordered_map])
44 AC_CHECK_HEADERS([hash_map])
45 AC_CHECK_HEADERS([ext/hash_map])
46 AC_LANG_POP([C++])
ccf4add @MarkDelany Prepare for first ./configure push
MarkDelany authored
47
48 # Checks for typedefs, structures, and compiler characteristics.
49 AC_HEADER_STDBOOL
2bbc399 @MarkDelany Many portability fixes and autoconf support
MarkDelany authored
50
ccf4add @MarkDelany Prepare for first ./configure push
MarkDelany authored
51 AC_TYPE_UID_T
52 AC_C_INLINE
53 AC_TYPE_INT32_T
54 AC_TYPE_OFF_T
55 AC_TYPE_PID_T
56 AC_TYPE_SIZE_T
57 AC_TYPE_SSIZE_T
58 AC_TYPE_UINT32_T
59 AC_TYPE_UINT64_T
60
61 # Checks for library functions.
62 AC_FUNC_ERROR_AT_LINE
63 AC_FUNC_FORK
64 AC_FUNC_MALLOC
65 AC_FUNC_MMAP
66 AC_FUNC_REALLOC
2bbc399 @MarkDelany Many portability fixes and autoconf support
MarkDelany authored
67 AC_CHECK_FUNCS([alarm dup2 gethostbyname gettimeofday memmove memset munmap \
ccf4add @MarkDelany Prepare for first ./configure push
MarkDelany authored
68 realpath select socket strcasecmp strchr strdup strerror strncasecmp strtol])
69
2bbc399 @MarkDelany Many portability fixes and autoconf support
MarkDelany authored
70 AC_SEARCH_LIBS([recv], [nsl])
71 AC_SEARCH_LIBS([socket], [socket])
72
73 AC_CHECK_DECLS([optreset])
74
75 AC_CHECK_MEMBERS([struct dirent.d_namlen], [], [], [[#include <dirent.h>]])
76
ccf4add @MarkDelany Prepare for first ./configure push
MarkDelany authored
77 AC_OUTPUT(Makefile replace/Makefile
78 commonLibrary/Makefile clientServiceLibrary/Makefile
79 manager/Makefile commands/Makefile services/Makefile
80 testPrograms/Makefile
81 wrappers/perl/Makefile wrappers/java/Makefile wrappers/php/Makefile)
Something went wrong with that request. Please try again.