File: configure.ac

package info (click to toggle)
kvirc 2%3A2.1.3.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 16,068 kB
  • ctags: 9,520
  • sloc: cpp: 86,255; sh: 9,113; makefile: 631; perl: 419; ansic: 315; sed: 16
file content (257 lines) | stat: -rw-r--r-- 9,717 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
# ----=========================================================----
#
# 	configure.ac for the KVIrc IRC client
#
# ----=========================================================----

#
#	Variables used by the KVIrc build system
#
AC_DEFINE(BUILD_DATE, [], [Build date])
AC_DEFINE(COMPILE_NEED_CHARSET_TRANSLATION, 1, [Define if you need the charset translation code])
AC_DEFINE(COMPILE_NEED_IGNORE_SIGALARM, 1, [Define if you want to ignore sigalarm in all theads])
AC_DEFINE(COMPILE_NEED_IPV6, 1, [Define if you want to compile the experimental IPv6 support])
AC_DEFINE(COMPILE_NEED_KDE, 1, [Define if you need a KDE compilation])
AC_DEFINE(COMPILE_NEED_LOCALE, 1, [Define if you have msgfmt and want to use localization support])
AC_DEFINE(COMPILE_NEED_OWN_INET_ATON, 1, [Define if you need own inet_aton implementation to be used])
AC_DEFINE(COMPILE_NEED_OWN_INET_NTOA, 1, [Define if you need own inet_ntoa implementation to be used])
AC_DEFINE(COMPILE_USE_LOCAL_8BIT_ENCODING, 0, [Define if you need to preserve your local 8bit encoding])
AC_DEFINE(HAVE_BOOL, 1, [Define if the C++ compiler supports BOOL])
AC_DEFINE(HAVE_i386_BASED_CPU, 1, [Define if you have a i386 based CPU (386,486,586,686...)])
AC_DEFINE(HAVE_LIBDL, 1, [Define to 1 if have libdl])

AC_PREREQ([2.50])

AC_INIT(README)

echo "################################################################################"
echo "### Trying to figure out where I am                                          ###"
echo "################################################################################"

AC_CANONICAL_SYSTEM

echo "################################################################################"
echo "### Checking for strange systems                                             ###"
echo "################################################################################"

AC_AIX
AC_MINIX

echo "################################################################################"
echo "### Initializing automake                                                    ###"
echo "################################################################################"

AM_INIT_AUTOMAKE(kvirc, 2.1.3)

AC_PREFIX_DEFAULT(/usr/local)
AC_PREFIX_PROGRAM(kvirc)

AM_CONFIG_HEADER(src/config.h)

AM_MAINTAINER_MODE

echo "################################################################################"
echo "### Checking the compilation mode                                            ###"
echo "################################################################################"

AC_SS_CXXFLAGS

echo "################################################################################"
echo "### Checking the C++ environment                                             ###"
echo "################################################################################"

AC_LANG_CPLUSPLUS
AC_PROG_MAKE_SET
AC_PROG_CXX
AC_PROG_CXXCPP

echo "################################################################################"
echo "### Initializing libtool                                                     ###"
echo "################################################################################"

AM_DISABLE_STATIC
AM_PROG_LIBTOOL

echo "################################################################################"
echo "### Checking system properties                                               ###"
echo "################################################################################"

AC_SS_CHECK_BOOL
AC_SS_HEADER_CHECKS
AC_SS_FUNCTION_CHECKS
AC_SS_CHECK_LOCALIZE

echo "################################################################################"
echo "### Looking for useful libraries                                             ###"
echo "################################################################################"

AC_SS_LIBRARY_CHECKS
AC_SS_FIND_DL
AC_SS_FIND_JPEG

echo "################################################################################"
echo "### Checking for X                                                           ###"
echo "################################################################################"

AC_SS_FIND_X

echo "################################################################################"
echo "### Checking for Qt                                                          ###"
echo "################################################################################"

AC_SS_FIND_QT

echo "################################################################################"
echo "### Checking for KDE                                                         ###"
echo "################################################################################"

AC_SS_FIND_KDE

echo "################################################################################"
echo "### Working out the final configuration                                      ###"
echo "################################################################################"

AC_SS_FINAL_CONFIG

echo "################################################################################"
echo "### Current build configuration                                              ###"
echo "################################################################################"
if test "$SS_HAVE_LIBJPEG" = "yes"; then
	echo "### Linking to the JPEG library"
fi
echo "### The X libraries are in:"
echo "###     $SS_X_LIBRARY_DIR"
echo "### The X headers are in:"
echo "###     $SS_X_INCLUDE_DIR"
echo "### The Qt library is in:"
echo "###     $SS_QT_LIBRARY_DIR"
echo "### The Qt headers seem to be in:"
echo "###     $SS_QT_INCLUDE_DIR"
echo "### The Qt meta object compiler path is:"
echo "###     $SS_QT_MOC"
if test "$SS_KDE_REQUESTED" = "yes"; then
	echo "### Compiling KDE support"
	echo "### The KDE libraries are in:"
	echo "###     $SS_KDE_LIBRARY_DIR"
	echo "### The KDE headers are in:"
	echo "###     $SS_KDE_INCLUDE_DIR"
fi
if test "$SS_CHARSET_TRANSLATION" = "yes"; then
	echo "### Enabling charset translation"
fi
if test "$SS_COMPILE_USE_IPV6" = "yes"; then
	echo "### Enabling experimental IPv6 support"
fi
if test "$SS_COMPILE_IGNORE_SIGALARM" = "yes"; then
	echo "### Enabling additional SIGALARM hack"
fi
if test "$SS_COMPILE_USE_OWN_INET_ATON" = "yes"; then
	echo "### Using own inet_aton implementation"
fi
if test "$SS_COMPILE_USE_OWN_INET_NTOA" = "yes"; then
	echo "### Using own inet_ntoa implementation"
fi
if test "$SS_COMPILE_i386_ASM" = "yes"; then
	echo "### Using i386 assembler code"
fi
if test "$SS_PLUGINS_DIRECTORY_COMPILE" = "yes"; then
	echo "### Enabling plugin support"
fi
echo "### The final include flags are:"
for a_flag in $SS_FLAGS_INCDIRS ; do
	echo "###     $a_flag"
done
echo "### The final library directories are:"
for a_flag in $SS_FLAGS_LIBDIRS ; do
	echo "###     $a_flag"
done
echo "### The final libraries to link are:"
for a_flag in $SS_FLAGS_LIBLINK ; do
	echo "###     $a_flag"
done
echo "### The installation prefix is:"
echo "###     $prefix"
echo "### The executable prefix is:"
echo "###     $exec_prefix"
echo "### The images will be installed in in:"
echo "###     $imagedir"
echo "### The help files will be installed in:"
echo "###     $helpdir"
echo "### The configuration files will be installed in:"
echo "###     $configdir"
echo "### The manual page will be installed in:"
echo "###     $mandir"
echo "### The global kvirc directory will be:"
echo "###     $globalkvircdir"
echo "### The plugins will be installed in:"
echo "###     $pluglibexecdir"
echo "### The scripts will be installed in:"
echo "###     $scriptdir"
echo "### The binary files will be installed in:"
echo "###     $bindir"
echo "### The libraries will be installed in:"
echo "###     $libdir"
echo "### The base directory of the source tree is:"
echo "###     $topdir"
echo "################################################################################"

echo "################################################################################"
echo "### Creating Makefiles                                                       ###"
echo "################################################################################"

AC_OUTPUT( \
	Makefile \
	admin/Makefile \
	admin/macros/Makefile \
	data/Makefile \
	data/charmaps/Makefile \
	data/config/Makefile \
	data/help/index/Makefile \
	data/help/Makefile \
	data/icons/Makefile \
	data/images/Makefile \
	data/kde/iconbig/Makefile \
	data/kde/iconmid/Makefile \
	data/kde/iconsmall/Makefile \
	data/kde/Makefile \
	data/man/Makefile \
	data/mimetypes/Makefile \
	data/msgcolors/Makefile \
	data/newpics/Makefile \
	data/pics/Makefile \
	doc/Makefile \
	doc/script-examples/Makefile \
	doc/script-tests/Makefile \
	m4/Makefile \
	po/Makefile.in \
	shellscripts/Makefile \
	shellscripts/browser/Makefile \
	shellscripts/config/kvirc-config \
	shellscripts/config/Makefile \
	shellscripts/scriptdist/Makefile \
	shellscripts/search/Makefile \
	src/Makefile \
	src/common/Makefile \
	src/kvilib/Makefile \
	src/kvirc/Makefile \
	src/plugins/Makefile \
	src/plugins/about/Makefile \
	src/plugins/away/Makefile \
	src/plugins/biff/Makefile \
	src/plugins/charpicker/Makefile \
	src/plugins/country/Makefile \
	src/plugins/editor/Makefile \
	src/plugins/fserve/Makefile \
	src/plugins/hello/Makefile \
	src/plugins/image/Makefile \
	src/plugins/mydialog/Makefile \
	src/plugins/myplugin/Makefile \
	src/plugins/stat/Makefile \
	src/plugins/style/Makefile \
	src/plugins/url/Makefile \
	src/plugins/xmms/Makefile \
)

echo "################################################################################"
echo "### Completed successfully                                                   ###"
echo "################################################################################"