/[cvs]/eggdrop1.6/configure.ac
ViewVC logotype

Annotation of /eggdrop1.6/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.33 - (hide annotations) (download)
Fri Jul 4 03:17:25 2008 UTC (11 years, 6 months ago) by tothwolf
Branch: MAIN
Changes since 1.32: +12 -3 lines
Require autoconf 2.60 now.

Added AC_PRESERVE_HELP_ORDER macro to configure.ac

Added new autoconf macros to aclocal.m4 and configure.ac: EGG_DEBUG_ENABLE EGG_DEBUG_DEFAULTS EGG_DEBUG_OPTIONS EGG_DEBUG_CFLAGS EGG_ENABLE_DEBUG_CONTEXT

Added new configure options: --enable-debug --enable-debug-mem --enable-debug-assert --enable-debug-context

Replaced ENABLE_STRIP define with DEBUG

DEBUG_CONTEXT is now defined in config.h instead of eggdrop.h

Refactored DEBUG and DEBUG_CONTEXT conditional code in main.c.

Don't default set unlimited core file size for non-debug builds.

1 wcc 1.1 dnl configure.ac: this file is processed by autoconf to produce ./configure.
2     dnl
3 tothwolf 1.33 dnl $Id: configure.ac,v 1.32 2008-07-04 02:41:42 tothwolf Exp $
4 wcc 1.1
5 tothwolf 1.33 AC_PREREQ(2.60)
6 guppy 1.29 AC_INIT([Eggdrop],[1.6.20],[bugs@eggheads.org])
7 guppy 1.27 AC_COPYRIGHT([Copyright (C) 1999 - 2008 Eggheads Development Team])
8 tothwolf 1.33 AC_REVISION($Revision: 1.32 $)
9 wcc 1.1 AC_CONFIG_SRCDIR(src/eggdrop.h)
10     AC_CONFIG_AUX_DIR(misc)
11     AC_CONFIG_HEADER(config.h)
12     AC_PREFIX_DEFAULT([\${HOME}/eggdrop])
13 tothwolf 1.33 AC_PRESERVE_HELP_ORDER
14 wcc 1.1
15 wcc 1.11 dnl config.h stuff
16 tothwolf 1.32 AH_TOP([/*
17     * Copyright (C) 1997 Robey Pointer
18     * Copyright (C) 1999 - 2008 Eggheads Development Team
19     *
20     * This program is free software; you can redistribute it and/or
21     * modify it under the terms of the GNU General Public License
22     * as published by the Free Software Foundation; either version 2
23     * of the License, or (at your option) any later version.
24     *
25     * This program is distributed in the hope that it will be useful,
26     * but WITHOUT ANY WARRANTY; without even the implied warranty of
27     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28     * GNU General Public License for more details.
29     *
30     * You should have received a copy of the GNU General Public License
31     * along with this program; if not, write to the Free Software
32     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33     */
34    
35     #ifndef _EGG_CONFIG_H
36 wcc 1.10 #define _EGG_CONFIG_H])
37     AH_BOTTOM([#endif /* !_EGG_CONFIG_H */])
38 wcc 1.7
39     # Print start message
40 wcc 1.1 EGG_MSG_CONFIGURE_START
41     EGG_SAVE_PARAMETERS
42    
43 wcc 1.7
44     # Check for a working C compiler
45 wcc 1.1 AC_PROG_CC
46     EGG_CHECK_CC
47    
48 wcc 1.13 # These 3 need to be done before any AC_COMPILE_IFELSE()'s.
49 wcc 1.1 AC_AIX
50     AC_ISC_POSIX
51     AC_MINIX
52    
53 wcc 1.13 # Check C compiler characteristics.
54 tothwolf 1.32 EGG_CHECK_ICC
55 tothwolf 1.31 EGG_CHECK_CCPIPE
56 wcc 1.13 EGG_CHECK_CCWALL
57 tothwolf 1.31
58    
59     # Check for executable extension.
60     EGG_EXEEXT
61 wcc 1.1
62 wcc 1.7
63 wcc 1.13 # Checks for programs.
64 wcc 1.1 AC_PROG_INSTALL
65     AC_PROG_MAKE_SET
66     AC_PROG_RANLIB
67     AC_PROG_LN_S
68     EGG_PROG_HEAD_1
69     EGG_PROG_STRIP
70     EGG_PROG_AWK
71     EGG_PROG_BASENAME
72     AC_CHECK_PROG(UNAME,uname,uname)
73    
74 wcc 1.7
75 tothwolf 1.30 # Check if we will strip the binary
76     # Do this *before* EGG_CHECK_OS
77     EGG_ENABLE_STRIP
78    
79    
80 wcc 1.13 # Checks for system libraries.
81     EGG_CHECK_LIBS
82 wcc 1.1
83 wcc 1.7
84 wcc 1.13 # Test the OS and set the module linking settings.
85     EGG_OS_VERSION
86     EGG_CHECK_MODULE_SUPPORT
87     EGG_CHECK_OS
88 wcc 1.1
89 wcc 1.10
90 wcc 1.13 # Checks for header files.
91 wcc 1.1 EGG_HEADER_STDC
92     AC_HEADER_DIRENT
93     AC_HEADER_TIME
94 tothwolf 1.32 AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h stdio.h stdarg.h stddef.h sys/file.h sys/param.h sys/rusage.h sys/select.h sys/socket.h sys/time.h unistd.h wchar.h])
95 wcc 1.7
96 wcc 1.1
97 wcc 1.13 # Checks for typedefs, structures, and compiler characteristics.
98 wcc 1.1 AC_C_CONST
99     AC_C_BIGENDIAN
100     AC_C_INLINE
101     AC_TYPE_PID_T
102     AC_TYPE_SIZE_T
103 wcc 1.7 AC_STRUCT_TIMEZONE
104 wcc 1.1 AC_C_VOLATILE
105 wcc 1.7 EGG_CHECK_SOCKLEN_T
106    
107 wcc 1.1
108 wcc 1.13 # Check the sizes of various types.
109 wcc 1.1 AC_CHECK_SIZEOF(long, 0)
110     AC_CHECK_SIZEOF(int, 0)
111 wcc 1.12 AC_CHECK_SIZEOF(short, 0)
112 wcc 1.1
113 wcc 1.7
114 wcc 1.13 # Checks for functions and their arguments.
115     AC_CHECK_FUNCS([clock dprintf fsync getdtablesize getrusage inet_aton isascii mbrlen memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom strcasecmp strncasecmp uname vsnprintf])
116 wcc 1.3 AC_FUNC_SELECT_ARGTYPES
117     EGG_FUNC_VPRINTF
118 wcc 1.1 AC_FUNC_STRFTIME
119 wcc 1.9 AC_FUNC_MMAP
120 wcc 1.1
121 wcc 1.7
122 wcc 1.13 # Make sure we are using the correct result from a broken libsafe sscanf().
123 wcc 1.1 EGG_CHECK_LIBSAFE_SSCANF
124    
125 wcc 1.7
126 wcc 1.20 # Tcl version to recommend if no Tcl is found, and the site where it can be
127 wcc 1.7 # found for download.
128 guppy 1.28 tclrecommendver="8.5.X"
129     tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
130 wcc 1.1
131 tothwolf 1.18 # Tcl library filename prefixes, suffixes, and search paths.
132     tcllibnames="tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
133     tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
134     tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
135     tcl7.0 tcl70"
136 wcc 1.1
137 wcc 1.16 tcllibextensions=".so .so.1 .so.1.0 .so.1.2 .dll .dylib .sl .a"
138 tothwolf 1.18
139 wcc 1.16 tcllibpaths="$HOME/lib $HOME/tcl/lib \
140 wcc 1.22 /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
141 wcc 1.7 /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
142 wcc 1.16 /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
143     /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
144 wcc 1.19 /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
145 wcc 1.13 /usr/i486-linuxaout/lib /beos/system/lib $HOME"
146 wcc 1.1
147 wcc 1.13 # Tcl header filenames and search paths.
148 wcc 1.1 tclheadernames="tcl.h"
149 wcc 1.16 tclheaderpaths="$HOME/include $HOME/tcl/include \
150     /usr/local/include /usr/include \
151 wcc 1.7 /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
152 wcc 1.16 /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
153     /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
154 wcc 1.7 /usr/local/pkgs/tcl/include /sys/include \
155 wcc 1.19 /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
156 wcc 1.1
157    
158 tothwolf 1.31 # We save the cache (if used) here to speed things up if we can't find Tcl.
159 wcc 1.13 AC_CACHE_SAVE
160 tothwolf 1.31
161     # Misc Tcl checks.
162 wcc 1.1 EGG_TCL_ARG_WITH
163     EGG_TCL_ENV
164     EGG_TCL_WITH_TCLLIB
165     EGG_TCL_WITH_TCLINC
166     EGG_TCL_FIND_LIBRARY
167     EGG_TCL_FIND_HEADER
168     EGG_TCL_CHECK_LIBRARY
169     EGG_TCL_CHECK_HEADER
170     EGG_TCL_DETECT_CHANGE
171     EGG_TCL_CHECK_VERSION
172     EGG_TCL_CHECK_PRE70
173     EGG_TCL_TESTLIBS
174     EGG_TCL_CHECK_FREE
175     EGG_TCL_ENABLE_THREADS
176     EGG_TCL_CHECK_THREADS
177     EGG_TCL_LIB_REQS
178     EGG_TCL_LUSH
179    
180 wcc 1.7
181 tothwolf 1.33 # Debug options
182     EGG_DEBUG_ENABLE
183     EGG_DEBUG_DEFAULTS
184     EGG_DEBUG_OPTIONS
185     EGG_DEBUG_CFLAGS
186     EGG_ENABLE_DEBUG_CONTEXT
187    
188    
189 wcc 1.13 # Substitute Makefile variables.
190 wcc 1.1 EGG_SUBST_EGGVERSION
191     EGG_SUBST_DEST
192     EGG_SUBST_MOD_UPDIR
193    
194 wcc 1.7
195 wcc 1.1 EGG_CATCH_MAKEFILE_REBUILD
196 wcc 1.7
197    
198     # Create Makefiles
199 wcc 1.1 AC_CONFIG_FILES([Makefile doc/Makefile scripts/Makefile src/Makefile src/compat/Makefile src/md5/Makefile src/mod/Makefile])
200     AC_OUTPUT
201    
202 wcc 1.7
203     # Display configure end message
204 wcc 1.13 AC_MSG_RESULT
205     EGG_MSG_WEIRDOS
206 wcc 1.1 EGG_MSG_CONFIGURE_END

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23