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

Contents of /eggdrop1.6/configure.ac

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


Revision 1.31 - (show annotations) (download)
Fri Jul 4 01:52:55 2008 UTC (11 years, 10 months ago) by tothwolf
Branch: MAIN
Changes since 1.30: +10 -9 lines
Refactored root Makefile.in variables.

Removed unnecessary '-g' flag from LD variables (-g is ignored).

Renamed DEBCFLAGS to DEBCFLGS

Moved -g3 compiler flag to DEBCFLGS variable.

Removed double quoting "`command`" in autoconf macro tests.

Changed autoconf macro 'test ! foo = bar' tests to 'test foo !=  bar'. Both are portable but '!=' is now more common in autoconf macros and is easier to read.

1 dnl configure.ac: this file is processed by autoconf to produce ./configure.
2 dnl
3 dnl $Id: configure.ac,v 1.30 2008-07-02 07:31:27 tothwolf Exp $
4
5 AC_PREREQ(2.59)
6 AC_INIT([Eggdrop],[1.6.20],[bugs@eggheads.org])
7 AC_COPYRIGHT([Copyright (C) 1999 - 2008 Eggheads Development Team])
8 AC_REVISION($Revision: 1.30 $)
9 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
14 dnl config.h stuff
15 AH_TOP([#ifndef _EGG_CONFIG_H
16 #define _EGG_CONFIG_H])
17 AH_BOTTOM([#endif /* !_EGG_CONFIG_H */])
18
19 # Print start message
20 EGG_MSG_CONFIGURE_START
21 EGG_SAVE_PARAMETERS
22
23
24 # Check for a working C compiler
25 AC_PROG_CC
26 EGG_CHECK_CC
27
28 # These 3 need to be done before any AC_COMPILE_IFELSE()'s.
29 AC_AIX
30 AC_ISC_POSIX
31 AC_MINIX
32
33 # Check C compiler characteristics.
34 EGG_CHECK_CCPIPE
35 EGG_CHECK_CCWALL
36
37
38 # Check for executable extension.
39 EGG_EXEEXT
40
41
42 # Checks for programs.
43 AC_PROG_INSTALL
44 AC_PROG_MAKE_SET
45 AC_PROG_RANLIB
46 AC_PROG_LN_S
47 EGG_PROG_HEAD_1
48 EGG_PROG_STRIP
49 EGG_PROG_AWK
50 EGG_PROG_BASENAME
51 AC_CHECK_PROG(UNAME,uname,uname)
52
53
54 # Check if we will strip the binary
55 # Do this *before* EGG_CHECK_OS
56 EGG_ENABLE_STRIP
57
58
59 # Checks for system libraries.
60 EGG_CHECK_LIBS
61
62
63 # Test the OS and set the module linking settings.
64 EGG_OS_VERSION
65 EGG_CHECK_MODULE_SUPPORT
66 EGG_CHECK_OS
67
68
69 # Checks for header files.
70 EGG_HEADER_STDC
71 AC_HEADER_DIRENT
72 AC_HEADER_TIME
73 AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h stdio.h std_args.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])
74
75
76 # Checks for typedefs, structures, and compiler characteristics.
77 AC_C_CONST
78 AC_C_BIGENDIAN
79 AC_C_INLINE
80 AC_TYPE_PID_T
81 AC_TYPE_SIZE_T
82 AC_STRUCT_TIMEZONE
83 AC_C_VOLATILE
84 EGG_CHECK_SOCKLEN_T
85
86
87 # Check the sizes of various types.
88 AC_CHECK_SIZEOF(long, 0)
89 AC_CHECK_SIZEOF(int, 0)
90 AC_CHECK_SIZEOF(short, 0)
91
92
93 # Checks for functions and their arguments.
94 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])
95 AC_FUNC_SELECT_ARGTYPES
96 EGG_FUNC_VPRINTF
97 AC_FUNC_STRFTIME
98 AC_FUNC_MMAP
99
100
101 # Make sure we are using the correct result from a broken libsafe sscanf().
102 EGG_CHECK_LIBSAFE_SSCANF
103
104
105 # Tcl version to recommend if no Tcl is found, and the site where it can be
106 # found for download.
107 tclrecommendver="8.5.X"
108 tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
109
110 # Tcl library filename prefixes, suffixes, and search paths.
111 tcllibnames="tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
112 tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
113 tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
114 tcl7.0 tcl70"
115
116 tcllibextensions=".so .so.1 .so.1.0 .so.1.2 .dll .dylib .sl .a"
117
118 tcllibpaths="$HOME/lib $HOME/tcl/lib \
119 /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
120 /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
121 /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
122 /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
123 /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
124 /usr/i486-linuxaout/lib /beos/system/lib $HOME"
125
126 # Tcl header filenames and search paths.
127 tclheadernames="tcl.h"
128 tclheaderpaths="$HOME/include $HOME/tcl/include \
129 /usr/local/include /usr/include \
130 /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
131 /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
132 /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
133 /usr/local/pkgs/tcl/include /sys/include \
134 /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
135
136
137 # We save the cache (if used) here to speed things up if we can't find Tcl.
138 AC_CACHE_SAVE
139
140 # Misc Tcl checks.
141 EGG_TCL_ARG_WITH
142 EGG_TCL_ENV
143 EGG_TCL_WITH_TCLLIB
144 EGG_TCL_WITH_TCLINC
145 EGG_TCL_FIND_LIBRARY
146 EGG_TCL_FIND_HEADER
147 EGG_TCL_CHECK_LIBRARY
148 EGG_TCL_CHECK_HEADER
149 EGG_TCL_DETECT_CHANGE
150 EGG_TCL_CHECK_VERSION
151 EGG_TCL_CHECK_PRE70
152 EGG_TCL_TESTLIBS
153 EGG_TCL_CHECK_FREE
154 EGG_TCL_ENABLE_THREADS
155 EGG_TCL_CHECK_THREADS
156 EGG_TCL_LIB_REQS
157 EGG_TCL_LUSH
158
159
160 # Substitute Makefile variables.
161 EGG_SUBST_EGGVERSION
162 EGG_SUBST_DEST
163 EGG_SUBST_MOD_UPDIR
164
165
166 EGG_CATCH_MAKEFILE_REBUILD
167
168
169 # Create Makefiles
170 AC_CONFIG_FILES([Makefile doc/Makefile scripts/Makefile src/Makefile src/compat/Makefile src/md5/Makefile src/mod/Makefile])
171 AC_OUTPUT
172
173
174 # Display configure end message
175 AC_MSG_RESULT
176 EGG_MSG_WEIRDOS
177 EGG_MSG_CONFIGURE_END

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23