1 |
dnl Process this file with autoconf to produce a configure script. |
2 |
AC_INIT(src/eggdrop.h) |
3 |
AC_CONFIG_AUX_DIR(.) |
4 |
AM_CONFIG_HEADER(config.h) |
5 |
EGG_MSG_CONFIGURE_START |
6 |
AM_INIT_AUTOMAKE(eggdrop, 1.7.0) |
7 |
|
8 |
# FIXME: optionally allow a system wide install by bypassing the macro below. |
9 |
AC_PREFIX_DEFAULT([\${HOME}/eggdrop]) |
10 |
|
11 |
# config.h stuff |
12 |
AH_TOP([#ifndef _EGG_CONFIG_H |
13 |
#define _EGG_CONFIG_H]) |
14 |
AH_BOTTOM([#endif /* !_EGG_CONFIG_H */]) |
15 |
|
16 |
# Setup build environment |
17 |
AC_PROG_CC |
18 |
EGG_CHECK_CC |
19 |
|
20 |
# Crazy machines |
21 |
AC_AIX |
22 |
AC_ISC_POSIX |
23 |
AC_MINIX |
24 |
|
25 |
# Gettext support |
26 |
EGG_GNU_GETTEXT |
27 |
|
28 |
# Libtool support |
29 |
EGG_LIBTOOL |
30 |
|
31 |
# Speedup compile |
32 |
EGG_CHECK_CCPIPE |
33 |
|
34 |
# Checks for programs |
35 |
AC_PROG_LN_S |
36 |
EGG_PROG_STRIP |
37 |
EGG_PROG_AWK |
38 |
EGG_PROG_BASENAME |
39 |
AC_CHECK_PROG(EGG_UNAME,uname,uname) |
40 |
AC_CHECK_PROG(AR,ar,ar) |
41 |
|
42 |
# Test the os and set the module linking settings |
43 |
EGG_CHECK_OS |
44 |
|
45 |
# Checks for system libraries |
46 |
EGG_CHECK_LIBS |
47 |
|
48 |
# Checks for header files |
49 |
AC_HEADER_DIRENT |
50 |
AC_HEADER_SYS_WAIT |
51 |
AC_CHECK_HEADERS(sys/time.h) |
52 |
AC_HEADER_TIME |
53 |
AC_CHECK_HEADERS(sys/select.h sys/rusage.h unistd.h dlfcn.h stdarg.h std_args.h strings.h limits.h) |
54 |
EGG_INADDR_LOOPBACK |
55 |
|
56 |
# Checks for typedefs, structures, and compiler characteristics |
57 |
AC_TYPE_PID_T |
58 |
AC_TYPE_SIZE_T |
59 |
EGG_TYPE_SOCKLEN_T |
60 |
AC_C_CONST |
61 |
AC_C_BIGENDIAN |
62 |
AC_C_INLINE |
63 |
AC_CHECK_SIZEOF(long, 0) |
64 |
AC_CHECK_SIZEOF(int, 0) |
65 |
|
66 |
# Checks for library functions |
67 |
AC_CHECK_FUNCS(clock getrusage setpgid uname sigaction sigemptyset rename strcasecmp strncasecmp getdtablesize random srandom dlopen dprintf snprintf vsnprintf isascii inet_aton strftime fsync inet_pton inet_ntop) |
68 |
EGG_CHECK_FUNC_VSPRINTF |
69 |
|
70 |
# Make sure we have stdc headers, since we can't compile without them |
71 |
EGG_HEADER_STDC |
72 |
|
73 |
# Checks for cygwin |
74 |
EGG_CYGWIN |
75 |
|
76 |
EGG_IPV6_SUPPORTED |
77 |
EGG_IPV6_OPTIONS |
78 |
|
79 |
# Where is tcl? Is it here? |
80 |
# ---------- begin robey's tcl thingies |
81 |
# (well, what used to be robey's tcl thingies...) |
82 |
|
83 |
# Latest tested Tcl version to recommend if Tcl isn't found |
84 |
tclrecommendver="8.3.3" |
85 |
|
86 |
# Site recommended to download Tcl from |
87 |
tclrecommendsite="ftp://ftp.eggheads.org/pub/tcl/tcl8_3/" |
88 |
|
89 |
# Tcl library filename prefixes (also used for Tcl header dir on FreeBSD) |
90 |
tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \ |
91 |
tcl8.0 tcl80 tcl7.6 tcl76 tcl7.5 tcl75 tcl7.4 tcl74 \ |
92 |
tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 tcl7.0 tcl70" |
93 |
|
94 |
# Tcl library filename suffixes |
95 |
tcllibextensions=".so .so.1 .so.1.0 .so.1.2 .a .sl .dll" |
96 |
|
97 |
# Tcl library search paths |
98 |
tcllibpaths="/usr/local/lib /usr/local/pkgs/tcl/lib \ |
99 |
/usr/lib /lib /usr/i486-linuxaout/lib \ |
100 |
/beos/system/lib /sys/lib \ |
101 |
$HOME/lib $HOME/tcl/lib $HOME" |
102 |
|
103 |
# Tcl header filenames |
104 |
tclheadernames="tcl.h" |
105 |
|
106 |
# Tcl header search paths |
107 |
tclheaderpaths="/usr/local/include /usr/local/pkgs/tcl/include \ |
108 |
/usr/include /beos/system/include /beos/devel/include \ |
109 |
/sys/include $HOME/include $HOME/tcl/include $HOME" |
110 |
|
111 |
EGG_TCL_WITH_OPTIONS |
112 |
EGG_TCL_ENV |
113 |
EGG_TCL_WITH_TCLLIB |
114 |
EGG_TCL_WITH_TCLINC |
115 |
EGG_TCL_FIND_LIBRARY |
116 |
EGG_TCL_FIND_HEADER |
117 |
EGG_TCL_CHECK_LIBRARY |
118 |
EGG_TCL_CHECK_HEADER |
119 |
EGG_TCL_DETECT_CHANGE |
120 |
|
121 |
EGG_TCL_CHECK_VERSION |
122 |
EGG_TCL_CHECK_PRE70 |
123 |
EGG_TCL_CHECK_PRE75 |
124 |
EGG_TCL_TESTLIBS |
125 |
EGG_TCL_CHECK_FREE |
126 |
EGG_TCL_THREADS_OPTIONS |
127 |
EGG_TCL_CHECK_THREADS |
128 |
EGG_TCL_LIB_REQS |
129 |
EGG_TCL_LUSH |
130 |
# ---------- end of (what used to be) robey's tcl thingies |
131 |
|
132 |
EGG_DEBUG_OPTIONS |
133 |
|
134 |
EGG_DEFINE_VERSION_NUM |
135 |
|
136 |
EGG_COMPRESS_MODULE |
137 |
|
138 |
AC_CONFIG_SUBDIRS(libltdl) |
139 |
|
140 |
AC_SUBST(ac_aux_dir) |
141 |
|
142 |
# FIXME: module's Makefiles list will prolly become dynamic |
143 |
AC_OUTPUT([Makefile doc/Makefile scripts/Makefile src/Makefile src/compat/Makefile src/egglib/Makefile src/mod/Makefile src/adns/Makefile src/mod/Makefile intl/Makefile po/Makefile.in src/mod/assoc.mod/Makefile src/mod/blowfish.mod/Makefile src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/filesys.mod/Makefile src/mod/irc.mod/Makefile src/mod/notes.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/tclscript.mod/Makefile src/mod/transfer.mod/Makefile src/mod/uptime.mod/Makefile src/mod/woobie.mod/Makefile]) |
144 |
|
145 |
EGG_MSG_CONFIGURE_END |