/[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.56 - (hide annotations) (download)
Sun Oct 17 08:38:11 2004 UTC (14 years, 7 months ago) by stdarg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.55: +5 -2 lines
* Add intl include directory to CPPFLAGS when using builtin gettext

1 wcc 1.51 dnl configure.ac: this file is processed by autoconf to produce ./configure.
2     dnl
3 stdarg 1.56 dnl $Id: configure.ac,v 1.55 2004/10/17 05:14:06 stdarg Exp $
4 wcc 1.51
5     AC_PREREQ(2.57)
6 wingman 1.53 AC_INIT([Eggdrop], [1.9.0], [bugs@eggheads.org])
7 wcc 1.51 AC_COPYRIGHT([Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Eggheads Development Team])
8 stdarg 1.56 AC_REVISION($Revision: 1.55 $)
9 tothwolf 1.3 AC_CONFIG_AUX_DIR(acconfig)
10 ite 1.1 AM_CONFIG_HEADER(config.h)
11 stdarg 1.55 AC_CONFIG_FILES([Makefile lib/Makefile lib/compat/Makefile lib/eggdrop/Makefile m4/Makefile po/Makefile.in src/Makefile modules/Makefile acconfig/module.mk intl/Makefile])
12 tothwolf 1.35
13    
14 wcc 1.51 # Print start message
15 ite 1.1 EGG_MSG_CONFIGURE_START
16 wingman 1.53 AM_INIT_AUTOMAKE(eggdrop, 1.9.0)
17 ite 1.1
18 wcc 1.51
19 ite 1.1 # FIXME: optionally allow a system wide install by bypassing the macro below.
20     AC_PREFIX_DEFAULT([\${HOME}/eggdrop])
21    
22 wcc 1.51
23 ite 1.1 # config.h stuff
24     AH_TOP([#ifndef _EGG_CONFIG_H
25     #define _EGG_CONFIG_H])
26     AH_BOTTOM([#endif /* !_EGG_CONFIG_H */])
27    
28 wcc 1.51
29     # Check for a working C compiler
30 ite 1.1 AC_PROG_CC
31     EGG_CHECK_CC
32    
33 wcc 1.51
34     # Checks for odd operating systems
35 ite 1.1 AC_AIX
36     AC_ISC_POSIX
37     AC_MINIX
38    
39 wcc 1.51
40 tothwolf 1.2 # Checks for compiler characteristics
41     AC_C_BIGENDIAN
42     AC_C_CONST
43     AC_C_INLINE
44     AC_C_LONG_DOUBLE
45     EGG_C_LONG_LONG
46    
47 wcc 1.51
48 ite 1.1 # Gettext support
49     EGG_GNU_GETTEXT
50 stdarg 1.56 if test "$USE_INCLUDED_LIBINTL" = "yes"; then
51     CPPFLAGS="${CPPFLAGS} -I\${top_builddir}/intl"
52     fi
53 ite 1.1
54 wcc 1.51
55 ite 1.1 # Libtool support
56     EGG_LIBTOOL
57    
58 wcc 1.51
59 ite 1.1 # Speedup compile
60     EGG_CHECK_CCPIPE
61    
62 wcc 1.51
63 ite 1.4 # Compile Warnings
64     EGG_CHECK_CFLAGS_WALL
65    
66 wcc 1.51
67 ite 1.1 # Checks for programs
68     AC_PROG_LN_S
69 stdarg 1.38 AC_PROG_LIBTOOL
70 ite 1.1 EGG_PROG_AWK
71     EGG_PROG_BASENAME
72     AC_CHECK_PROG(EGG_UNAME,uname,uname)
73     AC_CHECK_PROG(AR,ar,ar)
74    
75 ite 1.9
76 ite 1.1 # Test the os and set the module linking settings
77     EGG_CHECK_OS
78    
79 wcc 1.51
80 ite 1.1 # Checks for system libraries
81     EGG_CHECK_LIBS
82    
83 wcc 1.51
84 ite 1.1 # Checks for header files
85 tothwolf 1.2 AC_HEADER_STDC
86 ite 1.1 AC_HEADER_TIME
87 stdarg 1.55 AC_CHECK_HEADERS(ctype.h unistd.h sys/select.h sys/poll.h)
88 wcc 1.51
89 ite 1.1
90 tothwolf 1.2 # Checks for types and structures
91 ite 1.1 EGG_TYPE_SOCKLEN_T
92    
93 wcc 1.51
94 ite 1.17 # Checks for library variables
95     EGG_VAR_SYS_ERRLIST
96    
97 wcc 1.51
98 ite 1.1 # Checks for library functions
99 stdarg 1.55 AC_CHECK_FUNCS(fsync random srandom rename setpgid sigaction sigemptyset uname)
100 wcc 1.51
101 tothwolf 1.2
102     # Check for these functions, and replace those not found
103 wcc 1.51 AC_REPLACE_FUNCS(memcpy memset poll strcasecmp strncasecmp strftime strdup inet_ntop inet_pton strerror strlcat strlcpy)
104    
105 tothwolf 1.2
106     # These all share a common file: snprintf.c
107 stdarg 1.55 AC_CHECK_FUNCS(vsnprintf snprintf, [], [egg_replace_snprintf="yes"])
108 wcc 1.51 EGG_REPLACE_SNPRINTF
109 tothwolf 1.2
110 ite 1.1
111 ite 1.18 # Check if getopt_long is avalaibale
112     EGG_FUNC_GETOPT_LONG
113    
114 ite 1.1
115 tothwolf 1.2 # Checks for IPV6
116 ite 1.1 EGG_IPV6_SUPPORTED
117     EGG_IPV6_OPTIONS
118    
119 wcc 1.51
120 wingman 1.50 # Checks for debug options
121 ite 1.1 EGG_DEBUG_OPTIONS
122    
123 wcc 1.51
124 wingman 1.50 # Defines version num
125 ite 1.1 EGG_DEFINE_VERSION_NUM
126    
127 wcc 1.51 # Save now since modules may fail due to a missing requirement
128 wingman 1.50 AC_CACHE_SAVE
129 ite 1.1
130 wingman 1.50 # Check for modules
131     EGG_CHECK_MODULES
132    
133     # Export list of enabled modules
134     AC_SUBST(EGG_MODULES_ENABLED)
135 ite 1.1
136 wcc 1.51
137 wingman 1.52 # Export auxiliary dir (./acconfig/)
138 wingman 1.54 AC_SUBST(ac_aux_dir)
139 wingman 1.52
140 ite 1.16
141 wingman 1.50 # Export list of preloaded shared objects
142     AC_SUBST(LIBEGGDROP_PRELOAD)
143    
144 wcc 1.51
145 wingman 1.50 # ldl support
146 stdarg 1.55 AC_CONFIG_SUBDIRS(libltdl)
147 wingman 1.50
148 tothwolf 1.35 AC_OUTPUT
149 ite 1.1 EGG_MSG_CONFIGURE_END

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23