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

Annotation of /eggdrop1.9/configure.ac

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


Revision 1.50 - (hide annotations) (download)
Mon Jun 14 14:45:53 2004 UTC (14 years, 10 months ago) by wingman
Branch: MAIN
Changes since 1.49: +18 -7 lines
Made module configure stuff dynamic.

1 ite 1.1 dnl Process this file with autoconf to produce a configure script.
2 wcc 1.37 AC_INIT(Eggdrop, 1.7, bugs@eggheads.org)
3 ite 1.45 AC_PREREQ(2.53)
4 tothwolf 1.3 AC_CONFIG_AUX_DIR(acconfig)
5 ite 1.1 AM_CONFIG_HEADER(config.h)
6 tothwolf 1.35
7 wingman 1.50 AC_CONFIG_FILES([Makefile lib/Makefile lib/compat/Makefile lib/eggdrop/Makefile m4/Makefile po/Makefile.in src/Makefile modules/Makefile])
8 tothwolf 1.35
9 ite 1.1 EGG_MSG_CONFIGURE_START
10     AM_INIT_AUTOMAKE(eggdrop, 1.7.0)
11    
12     # FIXME: optionally allow a system wide install by bypassing the macro below.
13     AC_PREFIX_DEFAULT([\${HOME}/eggdrop])
14    
15     # config.h stuff
16     AH_TOP([#ifndef _EGG_CONFIG_H
17     #define _EGG_CONFIG_H])
18     AH_BOTTOM([#endif /* !_EGG_CONFIG_H */])
19    
20     # Setup build environment
21     AC_PROG_CC
22     EGG_CHECK_CC
23    
24     # Crazy machines
25     AC_AIX
26     AC_ISC_POSIX
27     AC_MINIX
28    
29 tothwolf 1.2 # Checks for compiler characteristics
30     AC_C_BIGENDIAN
31     AC_C_CONST
32     AC_C_VOLATILE
33     AC_C_INLINE
34     AC_C_LONG_DOUBLE
35     EGG_C_LONG_LONG
36    
37 ite 1.1 # Gettext support
38     EGG_GNU_GETTEXT
39    
40     # Libtool support
41     EGG_LIBTOOL
42    
43     # Speedup compile
44     EGG_CHECK_CCPIPE
45    
46 ite 1.4 # Compile Warnings
47     EGG_CHECK_CFLAGS_WALL
48    
49 ite 1.1 # Checks for programs
50     AC_PROG_LN_S
51 stdarg 1.38 AC_PROG_LIBTOOL
52 ite 1.1 EGG_PROG_AWK
53     EGG_PROG_BASENAME
54     AC_CHECK_PROG(EGG_UNAME,uname,uname)
55     AC_CHECK_PROG(AR,ar,ar)
56    
57 ite 1.9 # Should -O2 CFLAG be removed?
58     EGG_DISABLE_CC_OPTIMIZATION
59    
60 ite 1.1 # Test the os and set the module linking settings
61     EGG_CHECK_OS
62    
63     # Checks for system libraries
64     EGG_CHECK_LIBS
65    
66     # Checks for header files
67     AC_HEADER_DIRENT
68 tothwolf 1.2 AC_HEADER_STAT
69     AC_HEADER_STDC
70 ite 1.1 AC_HEADER_SYS_WAIT
71     AC_CHECK_HEADERS(sys/time.h)
72     AC_HEADER_TIME
73 tothwolf 1.2 AC_CHECK_HEADERS(string.h strings.h ctype.h stdlib.h limits.h unistd.h)
74 stdarg 1.24 AC_CHECK_HEADERS(sys/rusage.h sys/select.h sys/poll.h stdarg.h std_args.h)
75 ite 1.1
76 tothwolf 1.2 # Checks for types and structures
77 ite 1.1 AC_TYPE_PID_T
78     AC_TYPE_SIZE_T
79 tothwolf 1.2 EGG_TYPE_32BIT
80 ite 1.1 EGG_TYPE_SOCKLEN_T
81 tothwolf 1.2 EGG_INADDR_LOOPBACK
82 ite 1.1
83 ite 1.17 # Checks for library variables
84     EGG_VAR_SYS_ERRLIST
85    
86 ite 1.1 # Checks for library functions
87 ite 1.17 AC_CHECK_FUNCS(clock dprintf fsync getdtablesize getrusage isascii)
88 tothwolf 1.2 AC_CHECK_FUNCS(random srandom rename setpgid sigaction sigemptyset uname)
89    
90     # Check for these functions, and replace those not found
91 stdarg 1.24 AC_REPLACE_FUNCS(memcpy memset poll strcasecmp strncasecmp strftime strdup)
92 stdarg 1.22 AC_REPLACE_FUNCS(inet_ntop inet_pton strerror strlcat strlcpy)
93 tothwolf 1.2
94     # These all share a common file: snprintf.c
95     AC_CHECK_FUNCS(vsnprintf snprintf asprintf vasprintf,,egg_replace_snprintf="yes")
96    
97     # Check if vsnprintf is C99 compliant
98     EGG_FUNC_C99_VSNPRINTF
99 ite 1.1
100 ite 1.18 # Check if getopt_long is avalaibale
101     EGG_FUNC_GETOPT_LONG
102    
103 tothwolf 1.2 # Check if we need to compile all or part of snprintf.c
104     EGG_REPLACE_SNPRINTF
105 ite 1.1
106 tothwolf 1.2 # Checks for IPV6
107 ite 1.1 EGG_IPV6_SUPPORTED
108     EGG_IPV6_OPTIONS
109    
110 wingman 1.50 # Checks for debug options
111 ite 1.1 EGG_DEBUG_OPTIONS
112    
113 wingman 1.50 # Defines version num
114 ite 1.1 EGG_DEFINE_VERSION_NUM
115    
116 wingman 1.50 # Save now since modules may fail due to a missing
117     # requirement (like tcl.h not found...)
118     AC_CACHE_SAVE
119 ite 1.1
120 wingman 1.50 # Check for modules
121     EGG_CHECK_MODULES
122    
123     # Export list of enabled modules
124     AC_SUBST(EGG_MODULES_ENABLED)
125 ite 1.1
126 wingman 1.50 # XXX: for what is this?
127 ite 1.1 AC_SUBST(ac_aux_dir)
128 ite 1.16
129 wingman 1.50 # Export list of preloaded shared objects
130     AC_SUBST(LIBEGGDROP_PRELOAD)
131    
132     # ldl support
133     AC_CONFIG_SUBDIRS(libltdl intl)
134    
135 tothwolf 1.35 AC_OUTPUT
136 ite 1.1
137     EGG_MSG_CONFIGURE_END

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23