/[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.50 - (show annotations) (download)
Mon Jun 14 14:45:53 2004 UTC (15 years ago) by wingman
Branch: MAIN
Changes since 1.49: +18 -7 lines
Made module configure stuff dynamic.

1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(Eggdrop, 1.7, bugs@eggheads.org)
3 AC_PREREQ(2.53)
4 AC_CONFIG_AUX_DIR(acconfig)
5 AM_CONFIG_HEADER(config.h)
6
7 AC_CONFIG_FILES([Makefile lib/Makefile lib/compat/Makefile lib/eggdrop/Makefile m4/Makefile po/Makefile.in src/Makefile modules/Makefile])
8
9 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 # 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 # Gettext support
38 EGG_GNU_GETTEXT
39
40 # Libtool support
41 EGG_LIBTOOL
42
43 # Speedup compile
44 EGG_CHECK_CCPIPE
45
46 # Compile Warnings
47 EGG_CHECK_CFLAGS_WALL
48
49 # Checks for programs
50 AC_PROG_LN_S
51 AC_PROG_LIBTOOL
52 EGG_PROG_AWK
53 EGG_PROG_BASENAME
54 AC_CHECK_PROG(EGG_UNAME,uname,uname)
55 AC_CHECK_PROG(AR,ar,ar)
56
57 # Should -O2 CFLAG be removed?
58 EGG_DISABLE_CC_OPTIMIZATION
59
60 # 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 AC_HEADER_STAT
69 AC_HEADER_STDC
70 AC_HEADER_SYS_WAIT
71 AC_CHECK_HEADERS(sys/time.h)
72 AC_HEADER_TIME
73 AC_CHECK_HEADERS(string.h strings.h ctype.h stdlib.h limits.h unistd.h)
74 AC_CHECK_HEADERS(sys/rusage.h sys/select.h sys/poll.h stdarg.h std_args.h)
75
76 # Checks for types and structures
77 AC_TYPE_PID_T
78 AC_TYPE_SIZE_T
79 EGG_TYPE_32BIT
80 EGG_TYPE_SOCKLEN_T
81 EGG_INADDR_LOOPBACK
82
83 # Checks for library variables
84 EGG_VAR_SYS_ERRLIST
85
86 # Checks for library functions
87 AC_CHECK_FUNCS(clock dprintf fsync getdtablesize getrusage isascii)
88 AC_CHECK_FUNCS(random srandom rename setpgid sigaction sigemptyset uname)
89
90 # Check for these functions, and replace those not found
91 AC_REPLACE_FUNCS(memcpy memset poll strcasecmp strncasecmp strftime strdup)
92 AC_REPLACE_FUNCS(inet_ntop inet_pton strerror strlcat strlcpy)
93
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
100 # Check if getopt_long is avalaibale
101 EGG_FUNC_GETOPT_LONG
102
103 # Check if we need to compile all or part of snprintf.c
104 EGG_REPLACE_SNPRINTF
105
106 # Checks for IPV6
107 EGG_IPV6_SUPPORTED
108 EGG_IPV6_OPTIONS
109
110 # Checks for debug options
111 EGG_DEBUG_OPTIONS
112
113 # Defines version num
114 EGG_DEFINE_VERSION_NUM
115
116 # Save now since modules may fail due to a missing
117 # requirement (like tcl.h not found...)
118 AC_CACHE_SAVE
119
120 # Check for modules
121 EGG_CHECK_MODULES
122
123 # Export list of enabled modules
124 AC_SUBST(EGG_MODULES_ENABLED)
125
126 # XXX: for what is this?
127 AC_SUBST(ac_aux_dir)
128
129 # Export list of preloaded shared objects
130 AC_SUBST(LIBEGGDROP_PRELOAD)
131
132 # ldl support
133 AC_CONFIG_SUBDIRS(libltdl intl)
134
135 AC_OUTPUT
136
137 EGG_MSG_CONFIGURE_END

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23