/[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.43 - (hide annotations) (download)
Wed Jul 20 10:50:35 2011 UTC (8 years, 7 months ago) by thommey
Branch: MAIN
CVS Tags: HEAD
Changes since 1.42: +3 -2 lines
Work around Tcl8.5.10 bug 3371644. Use the autoconf macros AC_LANG_PROGRAM/AC_LANG_SOURCE.

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23