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

Contents of /eggdrop1.9/configure.ac

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


Revision 1.2 - (show annotations) (download)
Fri Oct 19 01:55:04 2001 UTC (17 years, 8 months ago) by tothwolf
Branch: MAIN
Changes since 1.1: +31 -12 lines
* removed obsolete EGG_CHECK_FUNC_VSPRINTF autoconf macro
* removed obsolete EGG_HEADER_STDC autoconf macro
* added EGG_C_LONG_LONG autoconf macro
* added EGG_FUNC_C99_VSNPRINTF autoconf macro
* added EGG_REPLACE_SNPRINTF autoconf macro
* added EGG_TYPE_32BIT autoconf macro

* removed unused dlfcn.h header check from configure.ac
* removed AC_CHECK_SIZEOF long and int from configure.ac
* added many required autoconf macros to configure.ac
* added AC_REPLACE_FUNCS to configure.ac for compat functions
* many configure.ac cleanups

* updated compat/snprintf.c with latest version from Samba
* added code to link libm with compat library for snprintf.c
* added support for LIBOBJS to compat/Makefile.am
* added memset back to compat
* added memcpy back to compat
* many compat cleanups

* renamed egg_strcasecmp() to strcasecmp()
* renamed egg_strncasecmp() to strncasecmp()
* renamed egg_snprintf() to snprintf()
* renamed egg_vsnprintf() to vsnprintf()
* renamed egg_strftime() to strftime()
* renamed egg_inet_aton() to inet_aton()
* renamed egg_inet_ntop() to inet_ntop()
* renamed egg_inet_pton() to inet_pton()

* exported strftime() for modules
* exported inet_ntop() for modules
* exported inet_pton() for modules
* exported vasprintf() for modules
* exported asprintf() for modules

* renamed u_32bit_t typedef to u_32int_t
* extended stat.h to support standard bits and checks

* major function changes:
  + egg_strcasecmp -> strcasecmp
  + egg_strncasecmp -> strncasecmp
  + egg_snprintf -> snprintf
  + egg_vsnprintf -> vsnprintf
  + egg_strftime -> strftime
  + egg_inet_aton -> inet_aton
  + egg_inet_ntop -> inet_ntop
  + egg_inet_pton -> inet_pton

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 # Checks for compiler characteristics
26 AC_PROG_CC_STDC
27 AC_C_BIGENDIAN
28 AC_C_CONST
29 AC_C_VOLATILE
30 AC_C_INLINE
31 AC_C_LONG_DOUBLE
32 EGG_C_LONG_LONG
33
34 # Gettext support
35 EGG_GNU_GETTEXT
36
37 # Libtool support
38 EGG_LIBTOOL
39
40 # Speedup compile
41 EGG_CHECK_CCPIPE
42
43 # Checks for programs
44 AC_PROG_LN_S
45 EGG_PROG_STRIP
46 EGG_PROG_AWK
47 EGG_PROG_BASENAME
48 AC_CHECK_PROG(EGG_UNAME,uname,uname)
49 AC_CHECK_PROG(AR,ar,ar)
50
51 # Test the os and set the module linking settings
52 EGG_CHECK_OS
53
54 # Checks for system libraries
55 EGG_CHECK_LIBS
56
57 # Checks for header files
58 AC_HEADER_DIRENT
59 AC_HEADER_STAT
60 AC_HEADER_STDC
61 AC_HEADER_SYS_WAIT
62 AC_CHECK_HEADERS(sys/time.h)
63 AC_HEADER_TIME
64 AC_CHECK_HEADERS(string.h strings.h ctype.h stdlib.h limits.h unistd.h)
65 AC_CHECK_HEADERS(sys/rusage.h sys/select.h stdarg.h std_args.h)
66
67 # Checks for types and structures
68 AC_TYPE_PID_T
69 AC_TYPE_SIZE_T
70 EGG_TYPE_32BIT
71 EGG_TYPE_SOCKLEN_T
72 EGG_INADDR_LOOPBACK
73
74 # Checks for library functions
75 AC_CHECK_FUNCS(clock dprintf fsync getdtablesize getrusage isascii)
76 AC_CHECK_FUNCS(random srandom rename setpgid sigaction sigemptyset uname)
77
78 # Check for these functions, and replace those not found
79 AC_REPLACE_FUNCS(memcpy memset strcasecmp strncasecmp strftime)
80 AC_REPLACE_FUNCS(inet_aton inet_ntop inet_pton)
81
82 # These all share a common file: snprintf.c
83 AC_CHECK_FUNCS(vsnprintf snprintf asprintf vasprintf,,egg_replace_snprintf="yes")
84
85 # Check if vsnprintf is C99 compliant
86 EGG_FUNC_C99_VSNPRINTF
87
88 # Check if we need to compile all or part of snprintf.c
89 EGG_REPLACE_SNPRINTF
90
91 # Checks for cygwin
92 EGG_CYGWIN
93
94 # Checks for IPV6
95 EGG_IPV6_SUPPORTED
96 EGG_IPV6_OPTIONS
97
98 # Where is tcl? Is it here?
99 # ---------- begin robey's tcl thingies
100 # (well, what used to be robey's tcl thingies...)
101
102 # Latest tested Tcl version to recommend if Tcl isn't found
103 tclrecommendver="8.3.3"
104
105 # Site recommended to download Tcl from
106 tclrecommendsite="ftp://ftp.eggheads.org/pub/tcl/tcl8_3/"
107
108 # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
109 tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
110 tcl8.0 tcl80 tcl7.6 tcl76 tcl7.5 tcl75 tcl7.4 tcl74 \
111 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 tcl7.0 tcl70"
112
113 # Tcl library filename suffixes
114 tcllibextensions=".so .so.1 .so.1.0 .so.1.2 .a .sl .dll"
115
116 # Tcl library search paths
117 tcllibpaths="/usr/local/lib /usr/local/pkgs/tcl/lib \
118 /usr/lib /lib /usr/i486-linuxaout/lib \
119 /beos/system/lib /sys/lib \
120 $HOME/lib $HOME/tcl/lib $HOME"
121
122 # Tcl header filenames
123 tclheadernames="tcl.h"
124
125 # Tcl header search paths
126 tclheaderpaths="/usr/local/include /usr/local/pkgs/tcl/include \
127 /usr/include /beos/system/include /beos/devel/include \
128 /sys/include $HOME/include $HOME/tcl/include $HOME"
129
130 EGG_TCL_WITH_OPTIONS
131 EGG_TCL_ENV
132 EGG_TCL_WITH_TCLLIB
133 EGG_TCL_WITH_TCLINC
134 EGG_TCL_FIND_LIBRARY
135 EGG_TCL_FIND_HEADER
136 EGG_TCL_CHECK_LIBRARY
137 EGG_TCL_CHECK_HEADER
138 EGG_TCL_DETECT_CHANGE
139
140 EGG_TCL_CHECK_VERSION
141 EGG_TCL_CHECK_PRE70
142 EGG_TCL_CHECK_PRE75
143 EGG_TCL_TESTLIBS
144 EGG_TCL_CHECK_FREE
145 EGG_TCL_THREADS_OPTIONS
146 EGG_TCL_CHECK_THREADS
147 EGG_TCL_LIB_REQS
148 EGG_TCL_LUSH
149 # ---------- end of (what used to be) robey's tcl thingies
150
151 EGG_DEBUG_OPTIONS
152
153 EGG_DEFINE_VERSION_NUM
154
155 EGG_COMPRESS_MODULE
156
157 AC_CONFIG_SUBDIRS(libltdl)
158
159 AC_SUBST(ac_aux_dir)
160
161 # FIXME: module's Makefiles list will prolly become dynamic
162 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])
163
164 EGG_MSG_CONFIGURE_END

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23