ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure.ac
(Generate patch)

Comparing:
ircd-hybrid-7.2/configure.ac (file contents), Revision 912 by michael, Wed Nov 7 22:47:44 2007 UTC vs.
ircd-hybrid/trunk/configure.ac (file contents), Revision 6542 by michael, Wed Sep 16 11:01:51 2015 UTC

# Line 1 | Line 1
1 < # Inspired by work Copyright (C) 2006 Luca Filipozzi
2 < # vim: set fdm=marker ts=2 sw=2 et:
1 > dnl Process this file with autoconf to produce a configure script.
2  
3 < AC_PREREQ(2.59)
4 < AC_INIT([ircd-hybrid],[7.2.4])
5 < AM_INIT_AUTOMAKE
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  
11 #ltdl stuff
12 AC_LIBLTDL_CONVENIENCE
13 AC_SUBST(INCLTDL)
14 AC_SUBST(LIBLTDL)
15 AC_LIBTOOL_DLOPEN
16 AM_DISABLE_STATIC
17 AM_ENABLE_SHARED
18
13   # Checks for programs.
14 < AC_PROG_CC
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 < AC_PROG_LIBTOOL
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 < AX_CHECK_LIB_IPV4
29 < AX_CHECK_LIB_IPV6
30 < AX_CHECK_LIB_CRYPT
28 > GCC_STACK_PROTECT_CC
29 > GCC_STACK_PROTECT_LIB
30  
31 < # Checks for header files.
32 < AC_CHECK_HEADERS([sys/resource.h]) # ick
31 > AX_APPEND_COMPILE_FLAGS([-fno-strict-aliasing])
32 > AX_LIBRARY_NET
33  
34   # Checks for typedefs, structures, and compiler characteristics.
36 AC_C_CONST
37 AC_C_INLINE
35   AC_C_BIGENDIAN
36  
40 AC_CHECK_SIZEOF(int64_t)
41 AC_CHECK_SIZEOF(long long)
42
43 if test "$ac_cv_sizeof_int64_t" = 8; then
44  AC_CHECK_TYPE(uint64_t)
45  AC_CHECK_TYPE(int64_t)
46 elif test "$ac_cv_sizeof_long_long" = 8; then
47  AC_CHECK_TYPE(uint64_t, unsigned long long)
48  AC_CHECK_TYPE(int64_t, long long)
49 else
50  AC_MSG_ERROR([Your system doesn't appear to have 64 bit integers.  Aborting.])
51 fi
52
53
37   # Checks for library functions.
38 < AC_CHECK_FUNCS_ONCE(snprintf,  \
39 <                    vsnprintf, \
40 <                    lrand48,   \
58 <                    srand48,   \
59 <                    mmap,      \
60 <                    strtok_r,  \
61 <                    usleep,    \
62 <                    strlcat,   \
63 <                    strlcpy,   \
64 <                    basename)
38 > AC_CHECK_FUNCS_ONCE(strtok_r \
39 >                    strlcat  \
40 >                    strlcpy)
41  
42 + # Checks for header files.
43   AC_CHECK_HEADERS_ONCE(crypt.h        \
67                      inttypes.h     \
68                      stdint.h       \
44                        sys/resource.h \
45                        sys/param.h    \
46 <                      errno.h        \
47 <                      sys/syslog.h   \
73 <                      stddef.h       \
74 <                      libgen.h       \
46 >                      types.h        \
47 >                      socket.h       \
48                        sys/wait.h     \
49 <                      wait.h         \
77 <                      link.h)
49 >                      wait.h)
50  
51 < dnl Openssl checks
80 < AC_ARG_ENABLE(openssl,
81 < [  --enable-openssl[=DIR]       Enable OpenSSL support (DIR optional).
82 <  --disable-openssl            Disable OpenSSL support. ],
83 < [ cf_enable_openssl=$enableval ],
84 < [ cf_enable_openssl="auto" ])
85 < AC_MSG_CHECKING(for OpenSSL)
86 < if test "$cf_enable_openssl" != "no"; then
87 <  cf_openssl_basedir=""
88 <  if test "$cf_enable_openssl" != "auto" &&
89 <     test "$cf_enable_openssl" != "yes"; then
90 <     dnl Support for --enable-openssl=/some/place
91 <     cf_openssl_basedir="${cf_enable_openssl}"
92 <  else
93 <    dnl Do the auto-probe here.  Check some common directory paths.
94 <    for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
95 <                /opt /opt/openssl /usr/local/openssl; do
96 <      if test -f "${dirs}/include/openssl/opensslv.h"; then
97 <        cf_openssl_basedir="${dirs}"
98 <        break
99 <      fi
100 <    done
101 <    unset dirs
102 <  fi
103 <
104 <  dnl Now check cf_openssl_found to see if we found anything.
105 <  if test ! -z "$cf_openssl_basedir"; then
106 <    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
107 <      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
108 <      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
109 <    else
110 <      dnl OpenSSL wasn't found in the directory specified.  Naughty
111 <      dnl administrator...
112 <      cf_openssl_basedir=""
113 <    fi
114 <  else
115 <    dnl Check for stock FreeBSD 4.x and 5.x systems, since their files
116 <    dnl are in /usr/include and /usr/lib.  In this case, we don't want to
117 <    dnl change INCLUDES or LIBS, but still want to enable OpenSSL.
118 <    dnl We can't do this check above, because some people want two versions
119 <    dnl of OpenSSL installed (stock FreeBSD 4.x/5.x and /usr/local/ssl)
120 <    dnl and they want /usr/local/ssl to have preference.
121 <    if test -f "/usr/include/openssl/opensslv.h"; then
122 <      cf_openssl_basedir="/usr"
123 <    fi
124 <  fi
125 <
126 <  dnl If we have a basedir defined, then everything is okay.  Otherwise,
127 <  dnl we have a problem.
128 <  if test ! -z "$cf_openssl_basedir"; then
129 <    LIBS="-lcrypto -lssl $LIBS"
130 <    AC_MSG_RESULT($cf_openssl_basedir)
131 <    cf_enable_openssl="yes"
132 <    AC_DEFINE(HAVE_LIBCRYPTO)
133 <  else
134 <    AC_MSG_RESULT(not found.  Please check your path.)
135 <    cf_enable_openssl="no"
136 <  fi
137 <  unset cf_openssl_basedir
138 < else
139 <  dnl If --disable-openssl was specified
140 <  AC_MSG_RESULT(disabled)
141 < fi
142 < AM_CONDITIONAL(ENABLE_SSL, [test x"$cf_enable_openssl" = xyes])
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_ENABLE_IOLOOP_MECHANISM
58 < AX_ARG_WITH_NICKLEN
148 < AX_ARG_WITH_USERLEN
149 < AX_ARG_WITH_HOSTLEN
150 < AX_ARG_WITH_TOPICLEN
151 < AX_ARG_WITH_LCLIENT_HEAP_SIZE
152 < AX_ARG_WITH_CLIENT_HEAP_SIZE
153 < AX_ARG_WITH_CHANNEL_HEAP_SIZE
154 < AX_ARG_WITH_DBUF_HEAP_SIZE
155 < AX_ARG_WITH_DNODE_HEAP_SIZE
156 < AX_ARG_WITH_BAN_HEAP_SIZE
157 < AX_ARG_WITH_TOPIC_HEAP_SIZE
158 < AX_ARG_WITH_IRCD_HEAP_SIZE
159 < AX_ARG_WITH_MQUEUE_HEAP_SIZE
160 < AX_ARG_WITH_FMSG_HEAP_SIZE
161 < AX_ARG_WITH_NICKNAME_HISTORY_LENGTH
162 < AX_ARG_WITH_SYSLOG
163 < AX_ARG_ENABLE_EFNET
164 < AX_ARG_ENABLE_HALFOPS
57 > AX_ARG_IOLOOP_MECHANISM
58 > AX_ARG_ENABLE_ASSERT
59   AX_ARG_ENABLE_DEBUGGING
60   AX_ARG_ENABLE_WARNINGS
61 < AX_ARG_ENABLE_SYSLOG
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.])
174 AC_CONFIG_SUBDIRS(libltdl)
69  
70 < AC_CONFIG_FILES(               \
71 <       Makefile                \
72 <       etc/Makefile            \
73 <       etc/example.conf        \
74 <       etc/example.conf.quick  \
75 <       etc/example.efnet.conf  \
76 <       servlink/Makefile       \
77 <       contrib/Makefile        \
78 <       contrib/help/Makefile   \
79 <       src/Makefile            \
186 <       messages/Makefile       \
187 <       modules/Makefile        \
188 <                         modules/core/Makefile   \
189 <       doc/Makefile            \
190 <       help/Makefile           \
191 <                         help/opers/Makefile             \
192 <                         help/users/Makefile     \
193 <       lib/Makefile            \
194 <       lib/pcre/Makefile
195 < )
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 "###############################################################################"

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)