/[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.13 - (hide annotations) (download)
Sun Jul 25 11:17:34 2004 UTC (15 years, 6 months ago) by wcc
Branch: MAIN
Changes since 1.12: +31 -33 lines
* We now support module loading under Darwin (Mac OS X) and NeXT Step.

* Detect Tcl in $HOME/lib and $HOME/tcl/lib first, as to make it easier to allow users to override the system's Tcl version.

* Cleaned up modules.c and the module configure stuff quite a bit.

* Check for -Wall as it's own test (backport 1.9).

* No more eggmod.sh.

* Small fix to a previous patch (removed an unused variable).

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23