Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 771 lines (666 sloc) 23.242 kb
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_INIT(src)
4 AM_CONFIG_HEADER(config.h)
91a6f65 * === Bump to 2.6.2 ===
zed authored
5 AM_INIT_AUTOMAKE(xchat, 2.6.2)
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
6 AM_MAINTAINER_MODE
7 AC_PROG_CC
8 AC_PROG_CPP
9 AM_PROG_AS
10 AM_DISABLE_STATIC
11 AM_PROG_LIBTOOL
12
91a6f65 * === Bump to 2.6.2 ===
zed authored
13 ALL_LINGUAS="de el fi fr gl hu ja ko nl pa sq sv vi zh_TW"
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
14 AM_GNU_GETTEXT
15
7bfa0b1 *** empty log message ***
zed authored
16 dnl displaced from acconfig.h
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
17 AH_VERBATIM([OLD_PERL],[#undef OLD_PERL])
18 AH_VERBATIM([PREFIX],[#undef PREFIX])
700f097 configure.in: Add new config.h entries: XCHATLIBDIR, XCHATSHAREDIR.
zed authored
19 AH_VERBATIM([XCHATLIBDIR],[#undef XCHATLIBDIR])
20 AH_VERBATIM([XCHATSHAREDIR],[#undef XCHATSHAREDIR])
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
21 AH_VERBATIM([SOCKS],[#undef SOCKS])
22 AH_VERBATIM([USE_DEBUG],[#undef USE_DEBUG])
db81110 configure.in: Add sr to ALL_LINGUAS. Comment out gnome.
zed authored
23 dnl AH_VERBATIM([USE_GNOME],[#undef USE_GNOME])
c32a1cc xtext: use mit-shm for tinting image.
zed authored
24 AH_VERBATIM([USE_SHM],[#undef USE_SHM])
9bf8c08 Add (highly buggy) spelling support.
zed authored
25 AH_VERBATIM([USE_GTKSPELL],[#undef USE_GTKSPELL])
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
26 AH_VERBATIM([USE_IPV6],[#undef USE_IPV6])
27 AH_VERBATIM([USE_MMX],[#undef USE_MMX])
28 AH_VERBATIM([USE_OPENSSL],[#undef USE_OPENSSL])
29 AH_VERBATIM([USE_PLUGIN],[#undef USE_PLUGIN])
30 AH_VERBATIM([USE_XFT],[#undef USE_XFT])
31 AH_VERBATIM([USE_XLIB],[#undef USE_XLIB])
55ab1ef Checked in rehashed po files.
zed authored
32 AH_VERBATIM([USE_SIGACTION],[#undef USE_SIGACTION])
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
33 AH_VERBATIM([USING_FREEBSD],[#undef USING_FREEBSD])
34 AH_VERBATIM([USING_LINUX],[#undef USING_LINUX])
35 AH_VERBATIM([socklen_t],[#undef socklen_t])
36
37 AC_PATH_PROG(sedpath, sed)
38 if test "_$sedpath" = _; then
39 AC_MSG_ERROR("Cannot find sed: I need it\!")
40 fi
41
42 AC_PATH_PROG(unamepath, uname)
43 if test "_$unamepath" = _; then
44 system="unknown"
45 else
46 AC_MSG_CHECKING(system type)
47 system=`$unamepath -s`
48 AC_MSG_RESULT($system)
49 if test "$system" = "Linux"; then
50 AC_DEFINE(USING_LINUX)
51 fi
52 if test "$system" = "FreeBSD"; then
53 AC_DEFINE(USING_FREEBSD)
54 fi
55 fi
56
57 dnl *********************************************************************
58 dnl ** configure switches ***********************************************
59 dnl *********************************************************************
60
2786cd4 *** empty log message ***
zed authored
61 AC_ARG_ENABLE(memdebug,
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
62 [ --enable-memdebug enable use of Memory Debug (default: no)],
2786cd4 *** empty log message ***
zed authored
63 memdebug=$enableval, memdebug=no)
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
64
65 AC_ARG_ENABLE(socks,
9534a45 servlist.c: Remove AbleNET, IRCDZone. Add insiderZ.DE, ChatSociety. Upda...
zed authored
66 [ --enable-socks link with SOCKS5 library (default: no)],
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
67 socks=$enableval, socks=no)
68
69 AC_ARG_ENABLE(ipv6,
70 [ --enable-ipv6 enable IPv6 (default: no)],
71 ipv6=$enableval, ipv6=no)
72
5b1af9a *** empty log message ***
zed authored
73 AC_ARG_ENABLE(xft,
74 [ --enable-xft enable use of Xft directly (default: no)],
75 xft=$enableval, xft=no)
76
debc48d *** empty log message ***
zed authored
77 AC_ARG_ENABLE(openssl,
78 [ --enable-openssl[=PATH] enable use of openSSL],
79 openssl=$enableval, openssl=yes)
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
80
81 AC_ARG_ENABLE(gtkfe,
82 [ --disable-gtkfe disable building gtk frontend],
83 gtkfe=$enableval, gtkfe=yes)
84
85 AC_ARG_ENABLE(textfe,
710d0b9 add Comment[lt]. textfe off by default.
zed authored
86 [ --enable-textfe build the text frontend (default: no)],
87 textfe=$enableval, textfe=no)
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
88
7bfa0b1 *** empty log message ***
zed authored
89 dnl AC_ARG_ENABLE(gnome,
90 dnl [ --disable-gnome disable use of gnome],
91 dnl gnome=$enableval, gnome=yes)
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
92
93 AC_ARG_ENABLE(xlib,
94 [ --disable-xlib disable use of xlib (for non X11 systems)],
95 xlib=$enableval, xlib=yes)
96
97 AC_ARG_ENABLE(python,
98 [ --disable-python don't build the python plugin],
99 python=$enableval, python=yes)
100
101 AC_ARG_ENABLE(perl,
102 [ --disable-perl don't build the perl plugin],
103 perl=$enableval, perl=yes)
104
9c9c650 Brand new Perl plugin! (Lian Situ).
zed authored
105 AC_ARG_ENABLE(perl_old,
106 [ --disable-perl_old no backwards compatibility for perl plugin],
107 perl_old=$enableval, perl_old=yes)
108
1749e1b improve tcl detection
zed authored
109 AC_ARG_ENABLE(tcl,
110 [ --enable-tcl[=PATH] directory with Tcl config file: tclConfig.sh],
111 tcl=$enableval, tcl=yes)
08c40c7 *** empty log message ***
zed authored
112
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
113 AC_ARG_ENABLE(plugin,
114 [ --disable-plugin disable plugin support],
115 plugin=$enableval, plugin=yes)
116
d796506 - Add xchat-remote and dbus plugin (Claessens Xavier). Currently require...
zed authored
117 AC_ARG_ENABLE(dbus,
351d785 dbus support default to yes so configure option is --disable-dbus
zdra authored
118 [ --disable-dbus disable DBUS support],
d796506 - Add xchat-remote and dbus plugin (Claessens Xavier). Currently require...
zed authored
119 dbus=$enableval, dbus=yes)
120
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
121 AC_ARG_ENABLE(mmx,
122 [ --disable-mmx disable MMX assembly routines],
123 mmx=$enableval, mmx=yes)
124
c32a1cc xtext: use mit-shm for tinting image.
zed authored
125 AC_ARG_ENABLE(shm,
126 [ --enable-shm enable use of XShm for fast tinting (default: no)],
127 shm=$enableval, shm=no)
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
128
9bf8c08 Add (highly buggy) spelling support.
zed authored
129 AC_ARG_ENABLE(spell,
8b8c626 Fix build when ld is overridden with $LD variable to use a non-GNU ld (e...
zed authored
130 [ --disable-spell disable use of GtkSpell],
9bf8c08 Add (highly buggy) spelling support.
zed authored
131 spell=$enableval, spell=yes)
132
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
133 dnl *********************************************************************
134 dnl ** DEBUG ************************************************************
135 dnl *********************************************************************
136
2786cd4 *** empty log message ***
zed authored
137 if test "$memdebug" = yes; then
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
138 AC_DEFINE(USE_DEBUG)
139 fi
140
141 dnl *********************************************************************
142 dnl ** GLIB *************************************************************
143 dnl *********************************************************************
144
145 AM_PATH_GLIB_2_0(2.0.3, glib=yes, glib=no)
146 if test "$glib" = no; then
147 AC_MSG_ERROR("Cannot find glib")
148 fi
149
150 COMMON_CFLAGS="$GLIB_CFLAGS"
151 COMMON_LIBS="$GLIB_LIBS"
152
153 dnl *********************************************************************
154 dnl ** GTK **************************************************************
155 dnl *********************************************************************
156
01195f8 Bump to 2.5.0dev, require gtk 2.6.
zed authored
157 AM_PATH_GTK_2_0(2.6.0, havegtk=yes, havegtk=no)
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
158
159 if test "$havegtk" = no; then
160 gtkfe=no
161 echo
162 echo Cannot find GTK\! Not building GTK FrontEnd.
163 echo
164 fi
165
166 if test "$gtkfe" != yes; then
167 gnome=no
168 COMMON_LIBS="$GLIB_LIBS"
169 COMMON_CFLAGS="$GLIB_CFLAGS"
170 fi
171
172 dnl *********************************************************************
173 dnl ** GNOME ************************************************************
174 dnl *********************************************************************
175
459e6a4 *** empty log message ***
zed authored
176 GUI_LIBS="$GUI_LIBS $GTK_LIBS"
177 GUI_CFLAGS="$GUI_CFLAGS $GTK_CFLAGS"
178
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
179 gnome=no
4247ca2 *** empty log message ***
zed authored
180 #if test "$gnome" = yes; then
181 # AC_PATH_PROG(pkgconfigpath, pkg-config)
182 # AC_MSG_CHECKING(Gnome2 compile flags)
183 # GNOME_CFLAGS="`$pkgconfigpath libgnome-2.0 --cflags 2>/dev/null`"
184 # if test "_$GNOME_CFLAGS" = _ ; then
185 # gnome=no
186 # AC_MSG_RESULT([Gnome not found, building without it.])
187 # else
188 # GNOME_VER="`$pkgconfigpath libgnome-2.0 --modversion`"
189 # GUI_LIBS="$GUI_LIBS `$pkgconfigpath libgnome-2.0 --libs`"
190 # GUI_CFLAGS="$GUI_CFLAGS $GNOME_CFLAGS"
191 # AC_DEFINE(USE_GNOME)
192 # AC_MSG_RESULT(ok)
193 # fi
194 #fi
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
195
75f552d Install GConf keys to handle irc:// protocol in gnome
zdra authored
196 # GConf
197 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
198
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
199 dnl *********************************************************************
523ced2 text/plugin: Make unused args for print events NULL (previously only 4-3...
zed authored
200 dnl ** XFT **************************************************************
201 dnl *********************************************************************
202
203 if test "$xft" = yes; then
204 AC_PATH_PROG(pkgconfigpath, pkg-config)
205 if $pkgconfigpath xft --exists; then
206 GUI_CFLAGS="$GUI_CFLAGS `$pkgconfigpath xft --cflags`"
207 GUI_LIBS="$GUI_LIBS `$pkgconfigpath xft --libs`"
208 else
209 xft=no
210 oldCPPFLAGS=$CPPFLAGS
211 CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
212 AC_CHECK_HEADERS(X11/Xft/Xft.h, xft=yes)
213 CPPFLAGS=$oldCPPFLAGS
214 fi
215 if test "$xft" = yes; then
216 AC_DEFINE(USE_XFT)
217 fi
218 fi
219
220 dnl *********************************************************************
747557b Solaris changes: add "-L/usr/openwin/lib -lX11" and check libsocket befo...
zed authored
221 dnl ** XLIB *************************************************************
222 dnl *********************************************************************
223
224 if test "$xlib" = yes; then
225 AC_DEFINE(USE_XLIB)
226 if test "$system" = "SunOS"; then
227 LIBS="$LIBS -L/usr/openwin/lib -lX11"
228 fi
c32a1cc xtext: use mit-shm for tinting image.
zed authored
229 else
230 shm=no
747557b Solaris changes: add "-L/usr/openwin/lib -lX11" and check libsocket befo...
zed authored
231 fi
232
233 dnl *********************************************************************
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
234 dnl ** PERL *************************************************************
235 dnl *********************************************************************
236
237 if test "$perl" = yes; then
238 AC_PATH_PROG(perlpath, perl)
239 AC_MSG_CHECKING(for Perl compile flags)
240 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
241 if test "_$PERL_CFLAGS" = _ ; then
242 AC_MSG_RESULT([not found, building without perl.])
243 perl=no
244 else
245 PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts |$sedpath 's/-lgdbm //'`
246 PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-ldb //'`
247 PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-lndbm //'`
248 if test "$system" = "Linux"; then
249 PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-lnsl //'`
250 PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-lposix //'`
251 fi
252 PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-lc //'`
253 AC_MSG_RESULT(ok)
254
9c9c650 Brand new Perl plugin! (Lian Situ).
zed authored
255 # oldLIBS=$LIBS
256 # LIBS="$LIBS $PERL_LDFLAGS"
257 # AC_CHECK_FUNC(eval_pv)
258 # AC_CHECK_FUNC(call_pv)
259 # LIBS=$oldLIBS
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
260
4cf6f21 configure.in: Require perl 5.8.0, as 5.6.x tends to crash in newCONSTSUB...
zed authored
261 AC_MSG_CHECKING(for perl >= 5.8.0)
262 PERL_VER=`$perlpath -e 'print $]>= 5.008?"yes":"no"'`
9c9c650 Brand new Perl plugin! (Lian Situ).
zed authored
263 if test "$PERL_VER" = "yes"; then
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
264 AC_MSG_RESULT(yes)
9c9c650 Brand new Perl plugin! (Lian Situ).
zed authored
265 AC_MSG_CHECKING(if perl plugin will be backward compatible)
266 if test "$perl_old" = "yes"; then
267 AC_MSG_RESULT(yes)
268 AC_DEFINE(OLD_PERL)
269 else
270 AC_MSG_RESULT(no)
271 fi
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
272 else
273 AC_MSG_RESULT(no)
9c9c650 Brand new Perl plugin! (Lian Situ).
zed authored
274 echo "perl version too old, building without perl."
275 perl=no
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
276 fi
277 fi
278 fi
279
280 dnl *********************************************************************
281 dnl ** PYTHON ***********************************************************
282 dnl *********************************************************************
283
284 if test "$python" = yes; then
84a0b26 *** empty log message ***
zed authored
285 AC_PATH_PROG(pythonpath, python2)
286 if test "_$pythonpath" = _ ; then
287 AC_PATH_PROG(pythonpath, python)
288 fi
289 if test "_$pythonpath" = _ ; then
290 python=no
291 else
292 AC_MSG_CHECKING(Python version)
293 changequote(<<, >>)dnl
dfa1b1e Patch python checks [781333].
zed authored
294 PY_VER=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("VERSION")[0];'`
fbf6750 configure.in: python amd64 suse configure.in patch (Mads Martin Joergens...
zed authored
295 PY_LIB=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(standard_lib=1);'`
dfa1b1e Patch python checks [781333].
zed authored
296 PY_INC=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("INCLUDEPY")[0];'`
84a0b26 *** empty log message ***
zed authored
297 $pythonpath -c "import sys; map(int,sys.version[:3].split('.')) >= [2,2] or sys.exit(1)"
298 changequote([, ])dnl
dfa1b1e Patch python checks [781333].
zed authored
299 AC_MSG_RESULT($PY_VER)
84a0b26 *** empty log message ***
zed authored
300 if test "$?" != "1"; then
301 AC_MSG_CHECKING(Python compile flags)
302 PY_PREFIX=`$pythonpath -c 'import sys; print sys.prefix'`
303 PY_EXEC_PREFIX=`$pythonpath -c 'import sys; print sys.exec_prefix'`
dfa1b1e Patch python checks [781333].
zed authored
304 if test -f $PY_INC/Python.h; then
305 PY_LIBS="-L$PY_LIB/config -lpython$PY_VER -lpthread -lutil"
306 PY_CFLAGS="-I$PY_INC"
84a0b26 *** empty log message ***
zed authored
307 AC_MSG_RESULT(ok)
308 else
309 python=no
310 AC_MSG_RESULT([Can't find Python.h])
311 fi
312 else
313 echo "Python too old. Only 2.2 or above is supported."
314 python=no
315 fi
316 fi
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
317 fi
318
319 dnl *********************************************************************
08c40c7 *** empty log message ***
zed authored
320 dnl ** TCL **************************************************************
321 dnl *********************************************************************
322
323 AC_MSG_CHECKING(for location of tclConfig.sh)
1749e1b improve tcl detection
zed authored
324 dirs="$tcl /lib /usr/lib /usr/tcl/lib /usr/local/lib /usr/local/tcl-8.4/lib /usr/local/tcl/lib /opt/lib"
08c40c7 *** empty log message ***
zed authored
325 found=0
1749e1b improve tcl detection
zed authored
326 if test "$tcl" != "no"; then
327 tcl=no
08c40c7 *** empty log message ***
zed authored
328 for try in $dirs; do
329 if test -f $try/tclConfig.sh; then
330 found=1
331 . $try/tclConfig.sh
332 TCL_LIBS="$TCL_LIB_SPEC $TCL_LIBS"
158c280 more tcl tweaks II
zed authored
333 TCL_CFLAGS="-I${TCL_PREFIX}/include $TCL_INCLUDE_SPEC"
334 tcl=yes
335 AC_MSG_RESULT($try/tclConfig.sh)
08c40c7 *** empty log message ***
zed authored
336 break
337 fi
338 done
339 if test "$found" -eq 0 ; then
340 AC_MSG_RESULT([tclConfig.sh not found - use the --enable-tcl option])
341 fi
342 fi
343
344 dnl *********************************************************************
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
345 dnl ** IPv6 *************************************************************
346 dnl *********************************************************************
347
4fb6120 check libsocket before getaddrinfo (might fix ipv6 build on solaris).
zed authored
348 dnl purely for Solaris
349 AC_CHECK_FUNC(select, ,
350 AC_CHECK_LIB(socket, select, ,
351 AC_CHECK_LIB(nsl, select, ,
352 AC_CHECK_LIB(inet, select, ,
353 AC_CHECK_LIB(cposix, select, ,
354 AC_CHECK_LIB(net, select, ,
355 AC_MSG_WARN(i can not find select. you might need to help me)))))))
747557b Solaris changes: add "-L/usr/openwin/lib -lX11" and check libsocket befo...
zed authored
356 AC_CHECK_LIB(socket, select)
4fb6120 check libsocket before getaddrinfo (might fix ipv6 build on solaris).
zed authored
357
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
358 if test "$ipv6" = yes; then
359 AC_CHECK_FUNCS(getaddrinfo, have_getaddrinfo=yes)
360 AC_MSG_CHECKING(whether to enable IPv6 support)
361 if test "$have_getaddrinfo" = yes; then
362 AC_MSG_RESULT(yes)
363 AC_DEFINE(USE_IPV6)
364 else
365 ipv6=no
366 AC_MSG_RESULT(no)
367 fi
368 fi
369
370 dnl *********************************************************************
371 dnl ** OPENSSL **********************************************************
372 dnl *********************************************************************
373
08db2b6 Try pkg-config to find openssl.
zed authored
374 retry=no
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
375 if test "$openssl" != no; then
08db2b6 Try pkg-config to find openssl.
zed authored
376 AC_PATH_PROG(pkgconfigpath, pkg-config)
377 AC_MSG_CHECKING(for openssl through pkg-config)
378 if $pkgconfigpath openssl --exists; then
379 CPPFLAGS="$CPPFLAGS `$pkgconfigpath openssl --cflags`"
380 LIBS="$LIBS `$pkgconfigpath openssl --libs`"
381 AC_DEFINE(USE_OPENSSL)
382 AC_MSG_RESULT(yes)
383 openssl=yes
384 else
385 AC_MSG_RESULT(no)
386 retry=yes
387 fi
388 fi
389
390 if test "$retry" = "yes"; then
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
391 unset openssl_path ac_cv_lib_ssl_SSL_new ac_cv_header_openssl_ssl_h
392 if test "$openssl" != yes; then
393 openssl_path=$openssl
394 fi
395 openssl=no
396 SAVED_LIBS=$LIBS
397 LIBS="$LIBS -lcrypto"
398 if test -n "$openssl_path"; then
399 LIBS="-L$openssl_path/lib $LIBS"
400 fi
401 AC_CHECK_LIB(ssl, SSL_new, have_openssl=yes)
402 LIBS=$SAVED_LIBS
403 if test "$have_openssl" = yes; then
404 SAVED_CPPFLAGS=$CPPFLAGS
405 if test -n "$openssl_path"; then
406 CPPFLAGS="-I$openssl_path/include $CPPFLAGS"
407 fi
408 AC_CHECK_HEADERS(openssl/ssl.h, have_openssl_h=yes)
409 if test "$have_openssl_h" = yes; then
410 openssl=yes
411 AC_DEFINE(USE_OPENSSL)
412 LIBS="$LIBS -lssl -lcrypto"
413 if test -n "$openssl_path"; then
414 LIBS="-L$openssl_path/lib $LIBS"
415 fi
416 else
417 CPPFLAGS=$SAVED_CPPFLAGS
418 fi
419 fi
420 fi
421
422 dnl *********************************************************************
423 dnl ** PLUGIN ***********************************************************
424 dnl *********************************************************************
425
426 if test "$plugin" = yes; then
427 AC_CHECK_FUNCS(dlopen, have_dl=yes)
428 if test "$have_dl" != yes; then
429 AC_CHECK_LIB(dl, dlopen, have_dl=yes)
430 if test "$have_dl" = yes; then
431 LIBS="$LIBS -ldl"
432 fi
433 fi
434 if test "$have_dl" = yes; then
435 AC_DEFINE(USE_PLUGIN)
94c42d0 fix plugin loading on solaris with -Wl,--export-dynamic
zed authored
436 AC_PATH_PROG(pkgconfigpath, pkg-config)
7bfa0b1 *** empty log message ***
zed authored
437 dnl we just need the -Wl,--export-dynamic, but not -lgmodule-2.0
94c42d0 fix plugin loading on solaris with -Wl,--export-dynamic
zed authored
438 RDYNAMIC_FLAGS="`$pkgconfigpath gmodule-2.0 --libs | $sedpath 's/ -lgmodule-2.0//'`"
439 LIBS="$LIBS $RDYNAMIC_FLAGS"
8b8c626 Fix build when ld is overridden with $LD variable to use a non-GNU ld (e...
zed authored
440 if test "$LD" = ""; then
441 VS="`ld --help | grep version-script 2> /dev/null`"
442 else
443 VS="`$LD --help | grep version-script 2> /dev/null`"
444 fi
7bfa0b1 *** empty log message ***
zed authored
445 if test "$VS" != ""; then
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
446 GUI_LIBS="$GUI_LIBS -Wl,--version-script,\$(srcdir)/../version-script"
447 fi
448 else
449 plugin=no
450 fi
451 fi
452
d796506 - Add xchat-remote and dbus plugin (Claessens Xavier). Currently require...
zed authored
453 dnl #######################################################################
454 dnl # Check for DBUS libraries
455 dnl #######################################################################
456
457 if test "x$dbus" = "xyes" ; then
f342b17 Apply some changes made by xchat-gnome.
zdra authored
458 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.35 dbus-glib-1 >= 0.35], dbus=yes, dbus=no)
459 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool, no)
460 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal, no)
461 if test "x$DBUS_BINDING_TOOL" = "xno" || test "x$GLIB_GENMARSHAL" = "xno" ; then
462 dbus="no"
463 fi
d796506 - Add xchat-remote and dbus plugin (Claessens Xavier). Currently require...
zed authored
464 fi
465
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
466 dnl *********************************************************************
9bf8c08 Add (highly buggy) spelling support.
zed authored
467 dnl ** SPELL ************************************************************
468 dnl *********************************************************************
469
470 if test "$spell" = yes ; then
471 PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, [], [
472 AC_MSG_RESULT(no)
473 spell=no
474 ])
475 if test "$spell" = "yes" ; then
476 LIBS="$LIBS $GTKSPELL_LIBS"
477 CFLAGS="$CFLAGS $GTKSPELL_CFLAGS"
478 AC_DEFINE(USE_GTKSPELL)
479 fi
480 fi
481
482
483 dnl *********************************************************************
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
484 dnl ** CONDITIONALS *****************************************************
485 dnl *********************************************************************
486
487 AM_CONDITIONAL(USE_OPENSSL, test "x$openssl" = "xyes")
488 AM_CONDITIONAL(DO_TEXT, test "x$textfe" = "xyes")
489 AM_CONDITIONAL(DO_GTK, test "x$gtkfe" = "xyes")
490 AM_CONDITIONAL(DO_PERL, test "x$perl" = "xyes")
491 AM_CONDITIONAL(DO_PYTHON, test "x$python" = "xyes")
08c40c7 *** empty log message ***
zed authored
492 AM_CONDITIONAL(DO_TCL, test "x$tcl" = "xyes")
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
493 AM_CONDITIONAL(DO_PLUGIN, test "x$plugin" = "xyes")
d796506 - Add xchat-remote and dbus plugin (Claessens Xavier). Currently require...
zed authored
494 AM_CONDITIONAL(DO_DBUS, test "x$dbus" = "xyes")
047717f avoid fails when build without gconf
zdra authored
495 AM_CONDITIONAL(DO_GCONF, test "x$GCONFTOOL" != "xno")
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
496
497 dnl *********************************************************************
498 dnl ** SOCKS5 ***********************************************************
499 dnl *********************************************************************
500
501 if test "$socks" = yes; then
502 socks=no
503 AC_CHECK_LIB(socks5, SOCKSconnect, have_socks=yes)
504 if test "$have_socks" = yes; then
505 AC_CHECK_HEADERS(socks.h, have_socks_h=yes)
506 if test "$have_socks_h" = yes; then
507 socks=yes
508 AC_DEFINE(SOCKS)
509 LIBS="$LIBS -lsocks5"
510 fi
511 fi
512 fi
513
514 dnl *********************************************************************
c32a1cc xtext: use mit-shm for tinting image.
zed authored
515 dnl ** XShm *************************************************************
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
516 dnl *********************************************************************
517
c32a1cc xtext: use mit-shm for tinting image.
zed authored
518 if test "$shm" = yes; then
519 oldl=$LIBS
520 oldc=$CPPFLAGS
521 LIBS="$LIBS `$pkgconfigpath --libs-only-L xft`"
522 CPPFLAGS="$CPPFLAGS `$pkgconfigpath --cflags-only-I xft`"
523 shm=no
524 AC_CHECK_LIB(Xext, XShmAttach, shm=yes)
525 if test "$shm" = yes; then
526 shm=no
527 AC_CHECK_HEADERS(sys/ipc.h, shm=yes)
528 if test "$shm" = yes; then
529 shm=no
530 AC_CHECK_HEADERS(sys/shm.h, shm=yes)
531 fi
532 fi
533
523ced2 text/plugin: Make unused args for print events NULL (previously only 4-3...
zed authored
534 LIBS=$oldl
c32a1cc xtext: use mit-shm for tinting image.
zed authored
535 if test "$shm" = yes; then
fbf6750 configure.in: python amd64 suse configure.in patch (Mads Martin Joergens...
zed authored
536 GUI_LIBS="$GUI_LIBS `$pkgconfigpath --libs-only-L xft` -lX11 -lXext"
c32a1cc xtext: use mit-shm for tinting image.
zed authored
537 AC_DEFINE(USE_SHM)
538 else
539 CPPFLAGS=$oldc
540 fi
541 fi
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
542
543 dnl *********************************************************************
544 dnl ** MMX **************************************************************
545 dnl *********************************************************************
546
547 dnl we don't need mmx on *this* machine, just i386, because
548 dnl it's checked at runtime.
549 if test "$mmx" = "yes"; then
550 case $host_cpu in
551 i386|i486|i586|i686|i786|k6|k7)
552 mmx=yes
553 ;;
554 *)
555 mmx=no
556 esac
7bfa0b1 *** empty log message ***
zed authored
557 if test "$system" = "OpenBSD"; then
558 dnl openbsd fails because mmx_cmod doesn't prefix its symbols with underscore.
559 dnl xtext.o: Undefined symbol `_shade_ximage_15_mmx' referenced from text segment
560 mmx=no
561 fi
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
562 if test "$mmx" = "yes"; then
563 AC_DEFINE(USE_MMX)
564 fi
565 fi
566
567 AM_CONDITIONAL(USE_MMX, test "$mmx" = "yes")
568
569 dnl *********************************************************************
570 dnl ** GCC FLAGS ********************************************************
571 dnl *********************************************************************
572
573 dnl Only use -Wall and -pipe if we have gcc
574 if test "x$GCC" = "xyes"; then
575 if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
576 CFLAGS="$CFLAGS -Wall"
577 fi
578 if test "$system" = "Linux" -o "$system" = "FreeBSD"; then
579 if test -z "`echo "$CFLAGS" | grep "\-pipe" 2> /dev/null`" ; then
580 CFLAGS="$CFLAGS -pipe"
581 fi
582 fi
583 if test -z "`echo "$CFLAGS" | grep "\-g " 2> /dev/null`" ; then
584 CFLAGS="$CFLAGS -g"
585 fi
586 fi
587
e0374f9 --The super dooper bug fix checkin--
zed authored
588 dnl does this compiler support -Wno-pointer-sign ?
0019a09 configure.in: Use -Wno-pointer-sign if possible.
zed authored
589 AC_MSG_CHECKING([if gcc accepts -Wno-pointer-sign ])
590
591 safe_CFLAGS=$CFLAGS
592 CFLAGS="-Wno-pointer-sign"
593
594 AC_TRY_COMPILE(, [
595 int main () { return 0 ; }
596 ],
597 [
598 no_pointer_sign=yes
599 AC_MSG_RESULT([yes])
600 ], [
601 no_pointer_sign=no
602 AC_MSG_RESULT([no])
603 ])
604 CFLAGS=$safe_CFLAGS
605
606 if test x$no_pointer_sign = xyes; then
607 CFLAGS="$CFLAGS -Wno-pointer-sign"
608 fi
609
e0374f9 --The super dooper bug fix checkin--
zed authored
610 dnl does this compiler support -funsigned-char ?
611 AC_MSG_CHECKING([if gcc accepts -funsigned-char ])
612
613 safe_CFLAGS=$CFLAGS
614 CFLAGS="-funsigned-char"
615
616 AC_TRY_COMPILE(, [
617 int main () { return 0 ; }
618 ],
619 [
620 unsigned_char=yes
621 AC_MSG_RESULT([yes])
622 ], [
623 unsigned_char=no
624 AC_MSG_RESULT([no])
625 ])
626 CFLAGS=$safe_CFLAGS
627
628 if test x$unsigned_char = xyes; then
629 CFLAGS="$CFLAGS -funsigned-char"
630 fi
631
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
632 dnl *********************************************************************
633 dnl ** FUNCTIONS/LIBS/CFLAGS ********************************************
634 dnl *********************************************************************
635
55ab1ef Checked in rehashed po files.
zed authored
636 AC_MSG_CHECKING(for modern sigaction)
637 dnl libc5 on linux and FreeBSD 3.x doesn't have siginfo_t
638 dnl and the sa_sigation field.
639 AC_TRY_COMPILE(
640 [#include <signal.h>],
641 [struct sigaction act;
642 siginfo_t *si;
643 act.sa_sigaction = 0;],
644 [
645 AC_MSG_RESULT(yes)
646 AC_DEFINE(USE_SIGACTION)
647 ],
648 AC_MSG_RESULT(no))
649
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
650 AC_PATH_PROG(gdkpixbufcsourcepath, gdk-pixbuf-csource)
651 AC_SUBST(gdkpixbufcsourcepath)
652 if test "$gtkfe" != no -a "_$gdkpixbufcsourcepath" = _; then
653 AC_MSG_ERROR("Cannot find gdk-pixbuf-csource: Install GTK+ 2.0\!")
654 fi
655
656 dnl if we don't have this, use g_snprintf instead
523fcf8 dcc.c: Support 64-bit dcc (untested, will need more tweaks). Randomize p...
zed authored
657 AC_CHECK_FUNCS(snprintf vsnprintf)
658 AC_CHECK_FUNCS(memrchr strtoull atoll)
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
659
660 AC_CHECK_FUNC(gethostbyname, ,
661 AC_CHECK_LIB(resolv, gethostbyname, ,
662 AC_CHECK_LIB(nsl, gethostbyname)))
663
664 AC_CHECK_FUNC(gethostname, , AC_CHECK_LIB(nsl, gethostname))
665
666 dnl necessary for IRIX
667 AC_CHECK_HEADERS(strings.h)
668
669 dnl Check for type in sys/socket.h - from Squid source (GPL)
670 AC_CACHE_CHECK(for socklen_t, ac_cv_type_socklen_t, [
671 AC_EGREP_CPP([socklen_t[^a-zA-Z_0-9]], [#include <sys/types.h>
672 #include <sys/socket.h>
673 #if STDC_HEADERS
674 #include <stdlib.h>
675 #include <stddef.h>
676 #endif],
677 ac_cv_type_socklen_t=yes,
678 ac_cv_type_socklen_t=no)
679 ])
680 if test $ac_cv_type_socklen_t = no; then
681 AC_DEFINE(socklen_t, int)
682 fi
683
f6ef433 Randomized DNS lookups on Mac OS X on hostnames that return multiple IP ...
zed authored
684 dnl Mac OS X and Darwin use lookupd, which caches DNS queries by default
685 AC_EGREP_CPP(lookupd, dnl
686 [#if (defined(__APPLE__) && defined(__MACH__))
687 lookupd
688 #endif], AC_DEFINE([LOOKUPD],1,[Define to 1 if the system uses lookupd]))
689
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
690 dnl freebsd needs this
691 LIBS="$LIBS $INTLLIBS"
3d173b5 *** empty log message ***
zed authored
692 CFLAGS="$CFLAGS $CPPFLAGS"
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
693
694 dnl make these visible to all Makefiles
695 AC_SUBST(GUI_LIBS)
696 AC_SUBST(GUI_CFLAGS)
697 AC_SUBST(COMMON_LIBS)
698 AC_SUBST(COMMON_CFLAGS)
699 AC_SUBST(PERL_CFLAGS)
700 AC_SUBST(PERL_LDFLAGS)
701 AC_SUBST(PY_CFLAGS)
702 AC_SUBST(PY_LIBS)
615cad4 more tcl detection tweaks
zed authored
703 AC_SUBST(TCL_LIBS)
704 AC_SUBST(TCL_CFLAGS)
d796506 - Add xchat-remote and dbus plugin (Claessens Xavier). Currently require...
zed authored
705 AC_SUBST(DBUS_CFLAGS)
706 AC_SUBST(DBUS_LIBS)
707
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
708
709 PLUGIN_INCLUDES='-I$(top_srcdir)/plugins'
710 AC_SUBST(PLUGIN_INCLUDES)
711
c77219d configure.in: Fix resolution of XCHATSHAREDIR and XCHATLIBDIR, especiall...
zed authored
712 dnl for plugin.c and pixmaps.c
713 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
714 test "x$exec_prefix" = xNONE && exec_prefix="$prefix"
715
716 AC_DEFINE_UNQUOTED(PREFIX, "${prefix}")
717
718 XCHATLIBDIR=`eval echo ${libdir}/xchat`
719 AC_DEFINE_UNQUOTED(XCHATLIBDIR, "$XCHATLIBDIR")
720
721 XCHATSHAREDIR=`eval echo ${datadir}/xchat`
722 AC_DEFINE_UNQUOTED(XCHATSHAREDIR, "$XCHATSHAREDIR")
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
723
7e82bfb configure.in: Put back xchatlibdir variable, since the Makefiles in plug...
zed authored
724 dnl for plugins/xxx/Makefile.am
725 xchatlibdir=${libdir}/xchat
726 AC_SUBST(xchatlibdir)
727
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
728 AC_OUTPUT([
729 Makefile
730 src/Makefile
731 src/common/Makefile
732 src/fe-text/Makefile
733 src/fe-gtk/Makefile
734 src/pixmaps/Makefile
735 plugins/Makefile
736 plugins/python/Makefile
737 plugins/perl/Makefile
08c40c7 *** empty log message ***
zed authored
738 plugins/tcl/Makefile
d796506 - Add xchat-remote and dbus plugin (Claessens Xavier). Currently require...
zed authored
739 plugins/dbus/Makefile
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
740 intl/Makefile
741 po/Makefile.in
742 ])
743
744 echo
745 echo xchat $VERSION
746 echo
747 echo Building GTK+ Interface .... : $gtkfe
748 echo Building TEXT Interface .... : $textfe
749 echo
d796506 - Add xchat-remote and dbus plugin (Claessens Xavier). Currently require...
zed authored
750 echo PLUGINS: Perl: $perl Python: $python TCL: $tcl DBUS: $dbus
08c40c7 *** empty log message ***
zed authored
751 echo
9bf8c08 Add (highly buggy) spelling support.
zed authored
752 echo mmx tinting ......... : $mmx\ spelling ............ : $spell
c32a1cc xtext: use mit-shm for tinting image.
zed authored
753 echo XShm tinting ........ : $shm\ plugin interface .... : $plugin
debc48d *** empty log message ***
zed authored
754 if test "$xft" = no; then
c32a1cc xtext: use mit-shm for tinting image.
zed authored
755 echo text backend ........ : pango\ nls/gettext ......... : $USE_NLS
debc48d *** empty log message ***
zed authored
756 else
c32a1cc xtext: use mit-shm for tinting image.
zed authored
757 echo text backend ........ : xft\ nls/gettext ......... : $USE_NLS
debc48d *** empty log message ***
zed authored
758 fi
08c40c7 *** empty log message ***
zed authored
759 echo openssl support ..... : $openssl\ ipv6 support ........ : $ipv6
95863e1 git-svn-id: https://xchat.svn.sourceforge.net/svnroot/xchat@2 893a96be-7...
zed authored
760 echo
761 echo The binary will be installed in $prefix/bin
762 echo
763
764 if test "$gtkfe" = no; then
765 echo Warning: The GTK \(GUI\) frontend will not be built.
766 echo
767 fi
768
769 echo configure complete, now type \'make\' and pray.
770 echo
Something went wrong with that request. Please try again.