/[svn]/ircd-hybrid/trunk/configure.ac
ViewVC logotype

Contents of /ircd-hybrid/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6542 - (show annotations)
Wed Sep 16 11:01:51 2015 UTC (7 years ago) by michael
File size: 2513 byte(s)
- Replace obsolete usleep() with nanosleep()

1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_REVISION([$Id$])
4
5 AC_PREREQ(2.69)
6 AC_INIT([ircd-hybrid], [TRUNK], [bugs@ircd-hybrid.org])
7 AM_INIT_AUTOMAKE(1.15 subdir-objects)
8 AM_MAINTAINER_MODE
9 AC_CONFIG_MACRO_DIR([m4])
10 AC_CONFIG_HEADER(config.h)
11 AC_CONFIG_SRCDIR(src/ircd.c)
12
13 # Checks for programs.
14 AC_PROG_CC_C99
15 AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
16 [AC_MSG_ERROR([no suitable C99 compiler found. Aborting.])])
17 AC_PROG_YACC
18 AM_PROG_LEX
19 AC_PROG_INSTALL
20
21 # Initializing libtool.
22 LT_CONFIG_LTDL_DIR([libltdl])
23 LT_INIT([dlopen disable-static])
24 LTDL_INIT([recursive convenience])
25 LIBTOOL="$LIBTOOL --silent"
26
27 # Checks for libraries.
28 GCC_STACK_PROTECT_CC
29 GCC_STACK_PROTECT_LIB
30
31 AX_APPEND_COMPILE_FLAGS([-fno-strict-aliasing])
32 AX_LIBRARY_NET
33
34 # Checks for typedefs, structures, and compiler characteristics.
35 AC_C_BIGENDIAN
36
37 # Checks for library functions.
38 AC_CHECK_FUNCS_ONCE(strtok_r \
39 strlcat \
40 strlcpy)
41
42 # Checks for header files.
43 AC_CHECK_HEADERS_ONCE(crypt.h \
44 sys/resource.h \
45 sys/param.h \
46 types.h \
47 socket.h \
48 sys/wait.h \
49 wait.h)
50
51 AC_SEARCH_LIBS(crypt, crypt)
52
53 # Define various chunk sizes for the pooling allocator
54 AX_MEMPOOL_CHUNKSIZES
55
56 # Argument processing.
57 AX_ARG_IOLOOP_MECHANISM
58 AX_ARG_ENABLE_ASSERT
59 AX_ARG_ENABLE_DEBUGGING
60 AX_ARG_ENABLE_WARNINGS
61 AX_ARG_OPENSSL
62 AX_ARG_LIBGEOIP
63
64 AC_DEFINE_DIR([PREFIX],[prefix],[Set to prefix.])
65 AC_DEFINE_DIR([SYSCONFDIR],[sysconfdir],[Set to sysconfdir.])
66 AC_DEFINE_DIR([LIBDIR],[libdir],[Set to libdir.])
67 AC_DEFINE_DIR([DATADIR],[datadir],[Set to datadir.])
68 AC_DEFINE_DIR([LOCALSTATEDIR],[localstatedir],[Set to localstatedir.])
69
70 AC_CONFIG_FILES( \
71 Makefile \
72 src/Makefile \
73 libltdl/Makefile \
74 modules/Makefile \
75 modules/core/Makefile \
76 modules/extra/Makefile \
77 doc/Makefile \
78 help/Makefile \
79 tools/Makefile)
80
81 AC_OUTPUT
82
83 echo "###############################################################################"
84 echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
85 echo
86 echo "ircd-hybrid will be installed in ${prefix}. To change this, run:"
87 echo " ./configure --prefix=DIRECTORY"
88 echo "###############################################################################"

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28