annotate plugins/crazychat/configure.ac @ 13131:47ecef83e2e1

[gaim-migrate @ 15493] A lot of our conversation code assumes that conv->account != NULL. This is a completely invalid assumption. If you have a conversation open on an account, and you delete the account, Gaim should leave the conversation window open and set the account to NULL and handle everything appropriately. Currently it does not, and that makes me a little unhappy. To reproduce this: 1. Open a conversation with someone 2. Delete the account that you're sending messages from 3. Watch the assertion failures scroll by in the debug window committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 06 Feb 2006 05:43:09 +0000
parents 4d8023465af4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1 dnl Process this file with autoconf to produce a configure script.
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
2 AC_INIT([gaim], [2.0.0cvs], [gaim-devel@lists.sourceforge.net])
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
3 AC_CANONICAL_SYSTEM
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
4 AM_CONFIG_HEADER(config.h)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
5 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
6
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
7 AC_PREREQ([2.50])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
8
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
9 AC_PATH_PROG(sedpath, sed)
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
10
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
11 dnl Storing configure arguments
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
12 AC_DEFINE_UNQUOTED(CONFIG_ARGS, "$ac_configure_args", [configure arguments])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
13
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
14 dnl Checks for programs.
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
15 AC_PROG_CC
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
16 AC_DISABLE_STATIC
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
17 AM_PROG_LIBTOOL
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
18 LIBTOOL="$LIBTOOL --silent"
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
19 AC_PROG_INSTALL
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
20
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
21 # Check for debug
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
22 AC_ARG_ENABLE(debug,
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
23 [AC_HELP_STRING([--enable-debug], [enable debugging])],
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
24 [case "${enableval}" in
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
25 yes) debug=true ;;
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
26 no) debug=false ;;
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
27 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
28 esac
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
29 test -z "${enableval}" || debug=false],[debug=true])
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
30 AM_CONDITIONAL(ENABLE_DEBUG, test x$debug = xtrue)
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
31
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
32 # Check for disabling Quicktime
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
33 AC_ARG_ENABLE(qt,
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
34 [AC_HELP_STRING([--disable-qt], [disable Quicktime])],
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
35 [case "${enableval}" in
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
36 yes) qt=true ;;
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
37 no) qt=false ;;
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
38 *) AC_MSG_ERROR(bad value ${enableval} for --disable-qt) ;;
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
39 esac
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
40 test -z "${enableval}" || qt=true],[qt=false])
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
41 AM_CONDITIONAL(DISABLE_QT, test x$qt = xtrue)
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
42
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
43 # Check for disabling Quicktime
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
44 AC_ARG_ENABLE(md,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
45 [AC_HELP_STRING([--disable-models], [disable Model Loading and Drawing])],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
46 [case "${enableval}" in
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
47 yes) md=true ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
48 no) md=false ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
49 *) AC_MSG_ERROR(bad value ${enableval} for --disable-models) ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
50 esac
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
51 test -z "${enableval}" || md=true],[md=false])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
52 AM_CONDITIONAL(DISABLE_MODELS, test x$qt = xtrue)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
53
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
54
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
55 # before gettexting, in case iconv matters
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
56 case "$host_os" in
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
57 darwin*)
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
58 AC_MSG_CHECKING([for fink])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
59 if test -d /sw; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
60 AC_MSG_RESULT([found, adding /sw to search paths])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
61 CFLAGS="$CFLAGS -I/sw/include"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
62 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
63 AC_MSG_RESULT([not found])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
64 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
65 ;;
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
66 *)
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
67 ;;
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
68 esac
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
69
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
70 ALL_LINGUAS="am az bg ca cs da de en_AU en_CA en_GB es et fi fr gl gu he hi hu it ja ka ko lt mk my_MM nb nl nn pa pl pt_BR pt ro ru sk sl sq sr sr@Latn sv te tr uk vi xh zh_CN zh_TW"
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
71 AM_GNU_GETTEXT_VERSION(0.10.40)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
72 AM_GNU_GETTEXT
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
73
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
74 dnl we don't use autobreak on cygwin!!
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
75 dnl AC_CYGWIN
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
76
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
77 dnl Checks for header files.
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
78 AC_HEADER_STDC
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
79 AC_HEADER_SYS_WAIT
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
80 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h regex.h)
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
81
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
82 dnl Checks for typedefs, structures, and compiler characteristics.
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
83 AC_C_CONST
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
84 AC_STRUCT_TM
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
85
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
86 dnl Checks for library functions.
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
87 AC_TYPE_SIGNAL
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
88 AC_FUNC_STRFTIME
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
89 AC_CHECK_FUNCS(strdup strstr atexit)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
90 dnl Checks for getopt in standard library
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
91 AC_CHECK_FUNCS(getopt_long,,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
92 [
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
93 AC_LIBOBJ(getopt)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
94 AC_LIBOBJ(getopt1)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
95 ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
96
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
97 dnl Check for inet_aton
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
98 AC_CHECK_FUNC(inet_aton, , [AC_CHECK_LIB(resolv, inet_aton, ,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
99 [AC_ERROR(inet_aton not found)])])
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
100 AC_CHECK_LIB(resolv, __res_query)
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
101 AC_CHECK_LIB(nsl, gethostent)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
102 AC_CHECK_FUNC(socket, ,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
103 [AC_CHECK_LIB(socket, socket, , [AC_ERROR([socket not found])])])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
104 dnl If all goes well, by this point the previous two checks will have
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
105 dnl pulled in -lsocket and -lnsl if we need them.
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
106 AC_CHECK_FUNC(getaddrinfo, [AC_DEFINE([HAVE_GETADDRINFO], [1],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
107 [Define to 1 if you have the getaddrinfo function.])],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
108 [AC_CHECK_LIB(socket, getaddrinfo,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
109 [AC_DEFINE([HAVE_GETADDRINFO]) LIBS="-lsocket -lsnl $LIBS"], , , -lnsl)])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
110
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
111 dnl Check for socklen_t (in Unix98)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
112 AC_MSG_CHECKING(for socklen_t)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
113 AC_TRY_COMPILE([
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
114 #include <sys/types.h>
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
115 #include <sys/socket.h>
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
116 socklen_t x;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
117 ], [],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
118 [
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
119 AC_MSG_RESULT(yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
120 ], [
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
121 AC_TRY_COMPILE([
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
122 #include <sys/types.h>
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
123 #include <sys/socket.h>
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
124 int accept(int, struct sockaddr *, size_t *);
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
125 ], [], [
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
126 AC_MSG_RESULT(size_t)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
127 AC_DEFINE(socklen_t, size_t, [socklen_t size])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
128 ], [
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
129 AC_MSG_RESULT(int)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
130 AC_DEFINE(socklen_t, int, [socklen_t size])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
131 ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
132 ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
133
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
134 dnl to prevent the g_stat()/g_unlink() crash,
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
135 dnl (09:50:07) Robot101: LSchiere2: it's easy. +LC_SYS_LARGEFILE somewhere in configure.ac
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
136 AC_SYS_LARGEFILE
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
137
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
138
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
139
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
140 dnl #######################################################################
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
141 dnl # Check for Howl headers (for Bonjour)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
142 dnl #######################################################################
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
143 AC_ARG_WITH(howl-includes, [AC_HELP_STRING([--with-howl-includes=DIR], [Compile the Bonjour plugin against the Howl includes in DIR])], [ac_howl_includes="$withval"], [ac_howl_includes="no"])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
144 AC_ARG_WITH(howl-libs, [AC_HELP_STRING([--with-howl-libs=DIR], [Compile the Bonjour plugin against the Howl libs in DIR])], [ac_howl_libs="$withval"], [ac_howl_libs="no"])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
145 HOWL_CFLAGS=""
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
146 HOWL_LIBS=""
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
147
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
148 dnl Attempt to autodetect Howl
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
149 PKG_CHECK_MODULES(HOWL, howl,
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
150 [howlincludes="yes" howllibs="yes"],
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
151 [howlincludes="no" howllibs="no"])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
152
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
153 dnl Override HOWL_CFLAGS if the user specified an include dir
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
154 if test "$ac_howl_includes" != "no"; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
155 HOWL_CFLAGS="-I$ac_howl_includes"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
156 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
157 CPPFLAGS_save="$CPPFLAGS"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
158 CPPFLAGS="$CPPFLAGS $HOWL_CFLAGS"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
159 AC_CHECK_HEADER(howl.h, [howlincludes=yes], [howlincludes=no])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
160 CPPFLAGS="$CPPFLAGS_save"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
161
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
162 dnl Override HOWL_LIBS if the user specified a libs dir
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
163 if test "$ac_howl_libs" != "no"; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
164 HOWL_LIBS="-L$ac_howl_libs"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
165 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
166 AC_CHECK_LIB(howl, sw_discovery_init, [howllibs=yes], [howllibs=no], $HOWL_LIBS)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
167
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
168 AC_SUBST(HOWL_CFLAGS)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
169 AC_SUBST(HOWL_LIBS)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
170
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
171
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
172
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
173 dnl #######################################################################
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
174 dnl # Check for SILC client includes and libraries
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
175 dnl #######################################################################
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
176 AC_ARG_WITH(silc-includes, [AC_HELP_STRING([--with-silc-includes=DIR], [Compile the SILC plugin against includes in DIR])], [ac_silc_includes="$withval"], [ac_silc_includes="no"])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
177 AC_ARG_WITH(silc-libs, [AC_HELP_STRING([--with-silc-libs=DIR], [Compile the SILC plugin against the SILC libs in DIR])], [ac_silc_libs="$withval"], [ac_silc_libs="no"])
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
178 SILC_CFLAGS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
179 SILC_LIBS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
180 if test -n "$with_silc_includes" || test -n "$with_silc_libs"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
181 silc_manual_check="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
182 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
183 silc_manual_check="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
184 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
185 if test "x$silc_manual_check" = "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
186 PKG_CHECK_MODULES(SILC, silcclient, [
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
187 have_silc="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
188 silcincludes="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
189 silcclient="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
190 ], have_silc="no")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
191 dnl If silcclient.pc wasn't found, check for just silc.pc
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
192 if test "x$have_silc" = "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
193 PKG_CHECK_MODULES(SILC, silc, [
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
194 have_silc="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
195 silcincludes="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
196 silcclient="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
197 ], have_silc="no")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
198 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
199 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
200 if test "$ac_silc_includes" != "no"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
201 SILC_CFLAGS="-I$ac_silc_includes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
202 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
203 CPPFLAGS_save="$CPPFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
204 CPPFLAGS="$CPPFLAGS $SILC_CFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
205 AC_CHECK_HEADER(silcincludes.h, [silcincludes=yes])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
206 CPPFLAGS="$CPPFLAGS_save"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
207
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
208 if test "$ac_silc_libs" != "no"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
209 SILC_LIBS="-L$ac_silc_libs"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
210 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
211 SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread -ldl"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
212 AC_CHECK_LIB(silcclient, silc_client_init, [silcclient=yes], , $SILC_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
213 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
214 AC_SUBST(SILC_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
215 AC_SUBST(SILC_CFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
216
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
217
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
218
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
219 AC_ARG_ENABLE(distrib,,,enable_distrib=no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
220 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
221 AC_ARG_ENABLE(prpls, [ --disable-prpls don't build dynamic protocol plugins],,enable_prpls=yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
222 DYNAMIC_PRPLS=all
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
223 AC_ARG_WITH(static-prpls, [ --with-static-prpls link in certain protocols statically],[STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`],STATIC_PRPLS="")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
224 if test "x$STATIC_PRPLS" != "x" -a "x$DYNAMIC_PRPLS" = "xall"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
225 DYNAMIC_PRPLS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
226 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
227
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
228 if test "x$STATIC_PRPLS" = "xall" ; then
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
229 STATIC_PRPLS="bonjour gg irc jabber msn napster novell oscar sametime silc simple yahoo zephyr"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
230 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
231 if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
232 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'`
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
233 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
234 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
235 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc//'`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
236 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
237 AC_SUBST(STATIC_PRPLS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
238 STATIC_LINK_LIBS=
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
239 extern_init=
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
240 load_proto=
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
241 for i in $STATIC_PRPLS ; do
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
242 STATIC_LINK_LIBS="$STATIC_LINK_LIBS protocols/$i/lib$i.a"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
243 extern_init="$extern_init extern gboolean gaim_init_${i}_plugin();"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
244 load_proto="$load_proto gaim_init_${i}_plugin();"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
245 case $i in
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
246 bonjour) static_bonjour=yes ;;
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
247 gg) static_gg=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
248 irc) static_irc=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
249 jabber) static_jabber=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
250 msn) static_msn=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
251 napster) static_napster=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
252 novell) static_novell=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
253 oscar) static_oscar=yes ;;
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
254 sametime) static_sametime=yes ;;
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
255 silc) static_silc=yes ;;
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
256 simple) static_simple=yes ;;
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
257 toc) static_toc=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
258 yahoo) static_yahoo=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
259 zephyr) static_zephyr=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
260 *) echo "Invalid static protocol $i!!" ; exit ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
261 esac
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
262 done
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
263 AM_CONDITIONAL(STATIC_BONJOUR, test "x$static_bonjour" = "xyes" -a "x$howlincludes" = "xyes" -a "x$howllibs" = "xyes")
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
264 AM_CONDITIONAL(STATIC_GG, test "x$static_gg" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
265 AM_CONDITIONAL(STATIC_IRC, test "x$static_irc" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
266 AM_CONDITIONAL(STATIC_JABBER, test "x$static_jabber" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
267 AM_CONDITIONAL(STATIC_MSN, test "x$static_msn" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
268 AM_CONDITIONAL(STATIC_NAPSTER, test "x$static_napster" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
269 AM_CONDITIONAL(STATIC_NOVELL, test "x$static_novell" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
270 AM_CONDITIONAL(STATIC_OSCAR, test "x$static_oscar" = "xyes")
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
271 AM_CONDITIONAL(STATIC_SAMETIME, test "x$static_sametime" = "xyes")
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
272 AM_CONDITIONAL(STATIC_SILC, test "x$static_silc" = "xyes" -a "x$silcincludes" = "xyes" -a "x$silcclient" = "xyes")
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
273 AM_CONDITIONAL(STATIC_SIMPLE, test "x$static_simple" = "xyes")
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
274 AM_CONDITIONAL(STATIC_TOC, test "x$static_toc" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
275 AM_CONDITIONAL(STATIC_YAHOO, test "x$static_yahoo" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
276 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
277 AC_SUBST(STATIC_LINK_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
278 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init void static_proto_init() { $load_proto },
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
279 [Loads static protocol plugin module initialization functions.])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
280
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
281 AC_ARG_WITH(dynamic_prpls, [AC_HELP_STRING([--with-dynamic-prpls], [specify which protocols to build dynamically])], [DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`])
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
282 if test "x$DYNAMIC_PRPLS" = "xall" ; then
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
283 DYNAMIC_PRPLS="bonjour gg irc jabber msn napster novell oscar sametime silc simple yahoo zephyr"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
284 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
285 if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
286 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'`
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
287 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
288 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
289 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc//'`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
290 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
291 AC_SUBST(DYNAMIC_PRPLS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
292 for i in $DYNAMIC_PRPLS ; do
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
293 case $i in
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
294 bonjour) dynamic_bonjour=yes ;;
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
295 gg) dynamic_gg=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
296 irc) dynamic_irc=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
297 jabber) dynamic_jabber=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
298 msn) dynamic_msn=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
299 napster) dynamic_napster=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
300 novell) dynamic_novell=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
301 oscar) dynamic_oscar=yes ;;
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
302 sametime) dynamic_sametime=yes ;;
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
303 silc) dynamic_silc=yes ;;
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
304 simple) dynamic_simple=yes ;;
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
305 toc) dynamic_toc=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
306 yahoo) dynamic_yahoo=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
307 zephyr) dynamic_zephyr=yes ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
308 *) echo "Invalid dynamic protocol $i!!" ; exit ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
309 esac
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
310 done
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
311 AM_CONDITIONAL(DYNAMIC_BONJOUR, test "x$dynamic_bonjour" = "xyes" -a "x$bonjourincludes" = "xyes" -a "x$bonjourclient" = "xyes")
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
312 AM_CONDITIONAL(DYNAMIC_GG, test "x$dynamic_gg" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
313 AM_CONDITIONAL(DYNAMIC_IRC, test "x$dynamic_irc" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
314 AM_CONDITIONAL(DYNAMIC_JABBER, test "x$dynamic_jabber" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
315 AM_CONDITIONAL(DYNAMIC_MSN, test "x$dynamic_msn" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
316 AM_CONDITIONAL(DYNAMIC_NAPSTER, test "x$dynamic_napster" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
317 AM_CONDITIONAL(DYNAMIC_NOVELL, test "x$dynamic_novell" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
318 AM_CONDITIONAL(DYNAMIC_OSCAR, test "x$dynamic_oscar" = "xyes")
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
319 AM_CONDITIONAL(DYNAMIC_SAMETIME, test "x$dynamic_sametime" = "xyes")
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
320 AM_CONDITIONAL(DYNAMIC_SILC, test "x$dynamic_silc" = "xyes" -a "x$silcincludes" = "xyes" -a "x$silcclient" = "xyes")
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
321 AM_CONDITIONAL(DYNAMIC_SIMPLE, test "x$dynamic_simple" = "xyes")
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
322 AM_CONDITIONAL(DYNAMIC_TOC, test "x$dynamic_toc" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
323 AM_CONDITIONAL(DYNAMIC_YAHOO, test "x$dynamic_yahoo" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
324 AM_CONDITIONAL(DYNAMIC_ZEPHYR, test "x$dynamic_zephyr" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
325
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
326 AC_ARG_ENABLE(audio, [ --disable-audio compile without libao/libaudiofile for sound playing],,enable_audio=yes)
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
327 AC_ARG_ENABLE(mono, [ --disable-mono compile without Mono runtime support],,enable_mono=yes)
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
328 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
329 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
330 AC_ARG_ENABLE(tcl, [ --disable-tcl compile without Tcl scripting],,enable_tcl=yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
331 AC_ARG_WITH(tclconfig, [ --with-tclconfig=DIR directory containing tclConfig.sh])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
332 AC_ARG_ENABLE(tk, [ --disable-tk compile without Tcl support for Tk],,enable_tk=yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
333 AC_ARG_WITH(tkconfig, [ --with-tkconfig=DIR directory containing tkConfig.sh])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
334 AC_ARG_ENABLE(gtkspell, [ --disable-gtkspell compile without GtkSpell automatic spell checking],,enable_gtkspell=yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
335 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
336 AC_ARG_ENABLE(deprecated, [ --disable-deprecated compile without deprecated API usage],,enable_deprecated=yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
337 AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
338 AC_ARG_ENABLE(sm, [ --disable-sm compile without X session management support],,enable_sm=yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
339 AC_ARG_WITH(krb4, [ --with-krb4=PREFIX Compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
340 AC_ARG_WITH(zephyr, [ --with-zephyr=PREFIX Compile Zephyr plugin against external libzephyr],zephyr="$withval",zephyr="no")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
341 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
342
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
343 AC_CHECK_HEADER(sys/utsname.h)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
344 AC_CHECK_FUNC(uname)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
345
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
346 if test "$enable_debug" = yes ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
347 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
348 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
349
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
350 if test "x$enable_deprecated" = no; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
351 DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
352 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
353
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
354 if test "x$GCC" = "xyes"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
355 CFLAGS="$CFLAGS -Wall -g3"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
356 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
357 AC_SUBST(CFLAGS)
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
358
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
359 AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR([
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
360 *** GLib 2.0 is required to build Gaim; please make sure you have the GLib
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
361 *** development headers installed. The latest version of GLib is
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
362 *** always available at http://www.gtk.org/.]))
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
363 AM_PATH_GTK_2_0(2.0.0,,AC_MSG_ERROR([
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
364 *** GTK+ 2.0 is required to build Gaim; please make sure you have the GTK+
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
365 *** development headers installed. The latest version of GTK+ is
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
366 *** always available at http://www.gtk.org/.]))
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
367 dnl charlie addition for crazychat
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
368 AM_PATH_GTKGLEXT_1_0(1.0.0,[echo "$GTKGLEXT_LIBS"],AC_MSG_ERROR([
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
369 *** gtkglext is required to build CrazyChat; please make sure you have the
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
370 *** gtkglext development headers installed.]))
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
371 dnl endcharlie
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
372
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
373 AC_PATH_PROG(gaimpath, gaim)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
374 AC_SUBST(GTK_CFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
375 AC_SUBST(GLIB_CFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
376 dnl charlie, gtkglext
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
377 AC_SUBST(GTKGLEXT_CFLAGS)
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
378 dnl endcharlie
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
379
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
380 AC_PATH_XTRA
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
381 # We can't assume that $x_libraries will be set, because autoconf does not
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
382 # set it in the case when the X libraries are in a standard place.
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
383 # Ditto for $x_includes
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
384 if test X"$x_libraries" = X"" ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
385 x_libpath_add=
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
386 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
387 x_libpath_add="-L$x_libraries"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
388 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
389 if test X"$x_includes" = X"" ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
390 x_incpath_add=
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
391 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
392 x_incpath_add="-I$x_includes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
393 fi
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
394 dnl #######################################################################
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
395 dnl # Check for DBUS libraries
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
396 dnl #######################################################################
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
397
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
398 AC_ARG_ENABLE(dbus, [ --enable-dbus enable DBUS support],,enable_dbus=no)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
399
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
400 if test "x$enable_dbus" = "xyes" ; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
401 AC_CHECK_PROG(enable_dbus, dbus-binding-tool, yes, no)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
402 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
403
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
404 if test "x$enable_dbus" = "xyes" ; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
405 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.35 dbus-glib-1 >= 0.35],
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
406 [
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
407 AC_SUBST(DBUS_CFLAGS)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
408 AC_SUBST(DBUS_LIBS)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
409 enable_dbus=yes
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
410 ],
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
411 [
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
412 enable_dbus=no
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
413 ])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
414 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
415
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
416 dnl Why do we need python?
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
417
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
418 dnl Python scripts are used to auto-generate about 3000 lines of C
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
419 dnl and XML code that wraps (part of) the existing Gaim API so that
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
420 dnl it is now accessible through DBUS.
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
421
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
422 dnl Python is only required if --enable-dbus is used, and only for
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
423 dnl the build process to generate the code, not for running gaim.
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
424 dnl This autogenerated code is system-independent, so in principle we
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
425 dnl can generate all of it before shipping. But I thought adding
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
426 dnl auto-generated stuff to the CVS is inelegant. Alternatively,
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
427 dnl these python scripts could be rewritten in C (brrrr ...).
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
428
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
429
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
430 if test "x$enable_dbus" = "xyes" ; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
431 AC_PATH_PROG([PYTHON], [python], [no])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
432 if test "x$PYTHON" = "xno" ; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
433 AC_MSG_WARN([python interpreter not found in your path])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
434 enable_dbus=no
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
435 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
436 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
437
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
438 if test "x$enable_dbus" = "xyes" ; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
439 if $PYTHON -c "import sys; sys.exit(sys.version[[:3]] >= '2.4')" ; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
440 AC_MSG_WARN([python version >= 2.4 required])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
441 enable_dbus=no
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
442 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
443 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
444
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
445 dnl Here we locate the directory containing DBus .service files for
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
446 dnl the session bus. Adapted from the guifications project.
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
447
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
448 AC_ARG_WITH(dbus-session-dir, [ --with-dbus-session-dir=<dir> Location of the D-BUS session directory.])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
449
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
450 if test "x$enable_dbus" = "xyes" ; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
451 AC_MSG_CHECKING([location of the D-BUS session directory])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
452 if ! test -z "$with_dbus_session_dir"; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
453 if ! test -d "$with_dbus_session_dir"; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
454 AC_MSG_WARN([$with_dbus_session_dir does not exist, if this is the correct location please make sure that it exists.])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
455 enable_dbus=no
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
456 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
457
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
458 DBUS_SESSION_DIR="$with_dbus_session_dir"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
459 else
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
460 dnl # add more to this as needed
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
461 servicesprefixes="$DATADIR $LIBDIR /usr/share /usr/local/share"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
462 DBUS_SESSION_DIR=""
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
463
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
464 for p in $servicesprefixes; do
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
465 dir="$p/dbus-1/services"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
466 if test -d $dir; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
467 DBUS_SESSION_DIR="$dir"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
468 break
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
469 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
470 done
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
471
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
472 if test -z $DBUS_SESSION_DIR; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
473 AC_MSG_WARN([D-BUS session directory was not found! Please use --with-dbus-session-dir and specify its location.])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
474 enable_dbus=no
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
475 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
476 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
477
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
478
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
479 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
480
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
481 if test "x$enable_dbus" = "xyes" ; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
482 AC_MSG_RESULT([$DBUS_SESSION_DIR])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
483 AC_SUBST(DBUS_SESSION_DIR)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
484 AC_DEFINE(HAVE_DBUS, 1, [Define if we are re using DBUS.])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
485 echo "Building with DBUS support"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
486 else
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
487 echo "Building without DBUS support"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
488 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
489
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
490 AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes")
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
491
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
492
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
493
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
494
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
495
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
496
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
497 dnl #######################################################################
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
498 dnl # Check for startup notification
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
499 dnl #######################################################################
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
500 AC_ARG_ENABLE(startup-notification, [ --disable-startup-notification compile without startup notification support],,enable_startup_notification=yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
501
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
502 if test "x$enable_startup_notification" = "xyes"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
503 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
504 [
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
505 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
506 echo "Building with libstartup-notification"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
507 enable_startup_notification=yes
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
508 ],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
509 [
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
510 echo "Building without libstartup-notification"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
511 enable_startup_notification=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
512 ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
513
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
514 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
515 AC_SUBST(STARTUP_NOTIFICATION_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
516 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
517
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
518
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
519 dnl #######################################################################
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
520 dnl # Check for stuff needed by the evolution integration plugin.
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
521 dnl #######################################################################
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
522 build_gevo=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
523 AC_ARG_ENABLE(gevolution, [ --disable-gevolution compile without the Gaim-Evolution plugin],,enable_gevolution=yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
524
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
525 if test "x$enable_gevolution" = "xyes"; then
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
526 evo_deps="libebook-1.2 libedata-book-1.2"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
527 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, [
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
528 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
529 build_gevo=yes
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
530 ], build_gevo=no)
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
531 if test "x$build_gevo" = "xno"; then
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
532 evo_deps="libebook-1.0 libedata-book-1.0"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
533 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, [
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
534 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
535 build_gevo=yes
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
536 ], build_gevo=no)
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
537 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
538
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
539 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
540 AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
541 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
542
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
543 AM_CONDITIONAL(BUILD_GEVOLUTION, test "x$build_gevo" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
544
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
545 dnl #######################################################################
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
546 dnl # Check for XScreenSaver
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
547 dnl #######################################################################
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
548 if test "x$enable_xss" = "xyes" ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
549 old_LIBS="$LIBS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
550 LIBS="$LIBS $GTK_LIBS $x_libpath_add"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
551 XSS_LIBS="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
552 XSS_HEADERS="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
553 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"],[],[-lX11 -lXext -lm])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
554 AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_LIBS $X_EXTRA_LIBS -lXss"],[],[-lX11 -lXext -lm])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
555 if test \! "$XSS_LIBS" = "no"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
556 oldCPPFLAGS="$CPPFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
557 CPPFLAGS="$CPPFLAGS $x_incpath_add"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
558 AC_TRY_COMPILE([
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
559 #include <X11/Xlib.h>
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
560 #include <X11/extensions/scrnsaver.h>
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
561 ],[],[
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
562 AC_DEFINE(USE_SCREENSAVER, 1, [Define if we're using XScreenSaver.])],[enable_xss=no]
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
563 )
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
564 CPPFLAGS="$oldCPPFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
565 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
566 XSS_LIBS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
567 enable_xss=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
568 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
569 LIBS="$old_LIBS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
570 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
571 XSS_LIBS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
572 enable_xss=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
573 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
574 AC_SUBST(XSS_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
575
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
576
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
577 dnl #######################################################################
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
578 dnl # Check for X session management libs
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
579 dnl #######################################################################
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
580 if test "x$enable_sm" = "xyes"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
581 enable_sm=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
582 AC_CHECK_LIB(SM, SmcSaveYourselfDone, found_sm_lib=true, , [$x_libpath_add -lICE])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
583 if test "$found_sm_lib" = "true"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
584 oldCPPFLAGS="$CPPFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
585 CPPFLAGS="$CPPFLAGS $x_incpath_add"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
586 AC_CHECK_HEADERS(X11/SM/SMlib.h, SM_LIBS="$x_libpath_add -lSM -lICE" enable_sm=yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
587 CPPFLAGS="$oldCPPFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
588 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
589 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
590 SM_LIBS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
591 enable_sm=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
592 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
593 AC_SUBST(SM_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
594 if test "$enable_sm" = "yes"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
595 AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
596 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
597
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
598
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
599 AC_DEFUN([GC_TM_GMTOFF],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
600 [AC_REQUIRE([AC_STRUCT_TM])dnl
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
601 AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
602 [AC_TRY_COMPILE([#include <sys/types.h>
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
603 #include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_gmtoff;],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
604 ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
605 if test "$ac_cv_struct_tm_gmtoff" = yes; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
606 AC_DEFINE(HAVE_TM_GMTOFF, 1, [tm_gmtoff is available.])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
607 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
608 ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
609
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
610 GC_TM_GMTOFF
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
611
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
612 dnl #######################################################################
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
613 dnl # Check for Mono support
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
614 dnl #######################################################################
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
615
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
616 if test x"$enable_mono" = x"yes" ; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
617 AC_MSG_CHECKING(for Mono compile flags)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
618 MONO_CFLAGS=`pkg-config --cflags mono 2> /dev/null`
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
619 if test $? != 0 ; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
620 AC_MSG_RESULT([not found, building without mono.])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
621 MONO_CFLAGS=
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
622 MONO_LIBS=
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
623 enable_mono=no
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
624 else
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
625 MONO_LIBS=`pkg-config --libs mono 2> /dev/null`
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
626 AC_MSG_RESULT(ok)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
627
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
628 oldLIBS="$LIBS"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
629 LIBS="$LIBS $MONO_LIBS"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
630 AC_MSG_CHECKING(for libmono)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
631 AC_CHECK_FUNCS(mono_jit_init, [], enable_mono=no)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
632 LIBS="$oldLIBS"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
633
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
634 oldCPPFLAGS="$CPPFLAGS"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
635 CPPFLAGS="$CPPFLAGS $MONO_CFLAGS"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
636 AC_CHECK_HEADERS(mono/jit/jit.h, [], enable_mono=no)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
637 AC_CHECK_HEADERS(mono/metadata/object.h, [], enable_mono=no)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
638 CPPFLAGS="$oldCPPFLAGS"
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
639
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
640 AC_DEFINE(ENABLE_MONO, 1, [Define if mono enabled.])
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
641 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
642 else
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
643 MONO_CFLAGS=
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
644 MONO_LIBS=
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
645 enable_mono=no
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
646 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
647
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
648 AC_SUBST(MONO_CFLAGS)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
649 AC_SUBST(MONO_LIBS)
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
650 AM_CONDITIONAL(USE_MONO, test x"$enable_mono" = x"yes")
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
651
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
652 dnl #######################################################################
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
653 dnl # Check for Perl support
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
654 dnl #######################################################################
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
655 if test "$enable_plugins" = no ; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
656 enable_perl=no
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
657 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
658
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
659 if test "$enable_perl" = yes ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
660 AC_PATH_PROG(perlpath, perl)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
661 AC_MSG_CHECKING(for Perl compile flags)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
662 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
663 if test "_$PERL_CFLAGS" = _ ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
664 AC_MSG_RESULT([not found, building without perl.])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
665 enable_perl = no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
666 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
667 PERL_LIBS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null |$sedpath 's/-lgdbm //'`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
668 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-ldb //'`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
669 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lndbm //'`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
670 if test "$system" = "Linux"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
671 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lnsl //'`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
672 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lposix //'`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
673 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
674 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lc //'`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
675 AC_MSG_RESULT(ok)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
676
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
677 oldLIBS="$LIBS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
678 LIBS="$LIBS $PERL_LIBS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
679 AC_MSG_CHECKING(for libperl)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
680 AC_CHECK_FUNCS(perl_run, [], enable_perl=no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
681 LIBS="$oldLIBS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
682
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
683 oldCPPFLAGS="$CPPFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
684 CPPFLAGS="$CPPFLAGS $PERL_CFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
685 AC_CHECK_HEADERS(EXTERN.h)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
686 AC_CHECK_HEADERS(perl.h, [], enable_perl=no,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
687 [#if HAVE_EXTERN_H
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
688 # include <EXTERN.h>
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
689 #endif])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
690 CPPFLAGS="$oldCPPFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
691 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
692 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
693
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
694 if test "$enable_perl" = yes ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
695 AC_PROG_PERL_MODULES(ExtUtils::MakeMaker, , have_makemaker=no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
696
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
697 if test "x$have_makemaker" = "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
698 enable_perl=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
699 PERL_CFLAGS=
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
700 PERL_LIBS=
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
701 AM_CONDITIONAL(USE_PERL, false)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
702 AC_MSG_WARN(Compiling perl requires ExtUtils::MakeMaker)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
703 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
704 AC_SUBST(PERL_CFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
705 AC_SUBST(PERL_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
706 AM_CONDITIONAL(USE_PERL, test "x$enable_perl" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
707
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
708 dnl This is almost definitely wrong, but in case there's
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
709 dnl something I'm missing, I'll leave it in.
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
710 AC_CHECK_FUNCS(Perl_eval_pv)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
711
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
712 AC_MSG_CHECKING(for old perl)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
713 PERL_OLD=`$perlpath -e 'if($]<5.006){printf"yes\n";}else{printf"no\n";}'`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
714
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
715 if test "x$PERL_OLD" = "xyes"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
716 AC_DEFINE(OLD_PERL, 1, [Define if old perl is installed.])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
717 AC_MSG_RESULT(yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
718 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
719 AC_MSG_RESULT(no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
720 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
721
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
722 if test "x$prefix" != "xNONE"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
723 prefix=`eval echo $prefix`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
724 PERL_MM_PARAMS="INSTALLDIRS=vendor PREFIX=$prefix"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
725 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
726
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
727 AC_ARG_WITH(perl-lib,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
728 [ --with-perl-lib=[site|vendor|DIR] Specify where to install the
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
729 Perl libraries for gaim. Default is site.],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
730 [
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
731 if test "x$withval" = xsite; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
732 PERL_MM_PARAMS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
733 elif test "x$withval" = xvendor; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
734 if test -z "`$perlpath -v | grep '5\.0'`"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
735 PERL_MM_PARAMS="INSTALLDIRS=vendor"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
736 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
737 PERL_MM_PARAMS="INSTALLDIRS=vendor PREFIX=`perl -e 'use Config; print $Config{prefix}'`"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
738 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
739 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
740 PERL_MM_PARAMS="INSTALLDIRS=vendor PREFIX=$withval"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
741 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
742 ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
743
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
744 AC_SUBST(PERL_MM_PARAMS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
745
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
746 AC_MSG_CHECKING(for DynaLoader.a)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
747 DYNALOADER_A=`echo $PERL_LDFLAGS | $perlpath -pe 's/^(.* )*([[^ ]]*DynaLoader\.a).*/\2/'`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
748
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
749 dnl Don't check libperl.a if dynaloader.a wasn't found.
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
750 if test -n "$DYNALOADER_A"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
751 AC_MSG_RESULT(yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
752
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
753 dnl Find either libperl.a or libperl.so
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
754 AC_MSG_CHECKING(for libperl.a or libperl.so)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
755 LIBPERL_A=`echo "$PERL_LDFLAGS -L/usr/lib"|$perlpath -e 'foreach (split(/ /, <STDIN>)) { if (/^-L(.*)/) { my $dir=$1; if (\`ls $dir/libperl.so* 2>/dev/null\`) { print "-lperl"; last; }; if (-e "$dir/libperl.a") { print "$dir/libperl.a"; last } } };'`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
756 if test -z "$LIBPERL_A"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
757 AC_MSG_RESULT(no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
758 DYNALOADER_A=
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
759 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
760 AC_MSG_RESULT(yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
761
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
762 if test "$LIBPERL_A" = "-lperl"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
763 LIBPERL_A=
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
764 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
765 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
766
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
767 PERL_LIBS=`echo $PERL_LIBS | $perlpath -pe 's/^(.* )*[[^ ]]*DynaLoader\.a/\1libperl_dynaloader.la/'`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
768
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
769 if test -n "$LIBPERL_A"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
770 PERL_LIBS=`echo $PERL_LDFLAGS | $sedpath -e 's/-lperl /libperl_orig.la /' -e 's/-lperl$/libperl_orig.la$/'`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
771 fi
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
772
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
773 AC_SUBST(DYNALOADER_A)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
774 AC_SUBST(LIBPERL_A)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
775 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
776 AC_MSG_RESULT(no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
777 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
778 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
779 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
780 PERL_CFLAGS=
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
781 PERL_LIBS=
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
782 AM_CONDITIONAL(USE_PERL, false)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
783 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
784
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
785 dnl #######################################################################
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
786 dnl # SSL support
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
787 dnl #
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
788 dnl # Thanks go to Evolution for the checks.
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
789 dnl #######################################################################
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
790
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
791 dnl These two are inverses of each other <-- stolen from evolution!
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
792
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
793 AC_ARG_ENABLE(gnutls,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
794 [ --enable-gnutls=[yes,no] Attempt to use GNUTLS for SSL support (preferred) [default=yes]],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
795 [enable_gnutls="$enableval"],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
796 [enable_gnutls="yes"])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
797
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
798 AC_ARG_ENABLE(nss,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
799 [ --enable-nss=[yes,no,static] Attempt to use Mozilla libnss for SSL support [default=yes]],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
800 [enable_nss="$enableval"],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
801 [enable_nss="yes"])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
802
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
803 msg_ssl="None"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
804
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
805 dnl #
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
806 dnl # Check for GNUTLS if it's specified.
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
807 dnl #
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
808 if test "x$enable_gnutls" != "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
809 enable_gnutls="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
810 prefix=`eval echo $prefix`
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
811
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
812 AC_ARG_WITH(gnutls-includes,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
813 [ --with-gnutls-includes=PREFIX Location of GNUTLS includes.],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
814 [ with_gnutls_includes="$withval" ],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
815 [ with_gnutls_includes="$prefix/include" ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
816
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
817 have_gnutls_includes="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
818
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
819 if test "x$with_gnutls_includes" != "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
820 CPPFLAGS_save="$CPPFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
821
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
822 AC_MSG_CHECKING(for GNUTLS includes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
823 AC_MSG_RESULT("")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
824
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
825 CPPFLAGS="$CPPFLAGS -I$with_gnutls_includes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
826 AC_CHECK_HEADERS(gnutls/gnutls.h, [ gnutls_includes="yes" ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
827 CPPFLAGS="$CPPFLAGS_save"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
828
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
829 if test "x$gnutls_includes" != "xno" -a \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
830 "x$gnutls_includes" != "x"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
831 have_gnutls_includes="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
832
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
833 GNUTLS_CFLAGS="-I$with_gnutls_includes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
834 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
835 GNUTLS_CFLAGS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
836 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
837 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
838 AC_MSG_CHECKING(for GNUTLS includes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
839 AC_MSG_RESULT(no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
840 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
841
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
842 AC_ARG_WITH(gnutls-libs,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
843 [ --with-gnutls-libs=PREFIX Location of GNUTLS libraries.],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
844 [ with_gnutls_libs="$withval" ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
845
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
846 if test "x$with_gnutls_libs" != "xno" -a \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
847 "x$have_gnutls_includes" != "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
848
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
849 LDFLAGS_save="$LDFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
850
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
851 case $with_gnutls_libs in
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
852 ""|-L*) ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
853 *) with_gnutls_libs="-L$with_gnutls_libs" ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
854 esac
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
855
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
856 AC_CACHE_CHECK([for GNUTLS libraries], gnutls_libs,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
857 [
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
858 LDFLAGS="$LDFLAGS $with_gnutls_libs -lgnutls -lgcrypt"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
859 AC_TRY_LINK_FUNC(gnutls_init, gnutls_libs="yes", gnutls_libs="no")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
860 LDFLAGS="$LDFLAGS_save"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
861 ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
862
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
863 if test "x$gnutls_libs" != "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
864 AC_DEFINE(HAVE_GNUTLS, 1, [Define if you have GNUTLS])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
865 AC_DEFINE(HAVE_SSL)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
866 msg_gnutls="GNUTLS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
867 GNUTLS_LIBS="$with_gnutls_libs -lgnutls -lgcrypt"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
868
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
869 enable_gnutls="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
870 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
871 GNUTLS_CFLAGS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
872 GNUTLS_LIBS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
873 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
874 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
875 AC_MSG_CHECKING(for GNUTLS libraries)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
876 AC_MSG_RESULT(no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
877 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
878 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
879 GNUTLS_CFLAGS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
880 GNUTLS_LIBS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
881 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
882
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
883 AC_SUBST(GNUTLS_CFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
884 AC_SUBST(GNUTLS_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
885
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
886 AM_CONDITIONAL(USE_GNUTLS, test "x$enable_gnutls" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
887
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
888
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
889 dnl #
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
890 dnl # Check for NSS if it's specified, or if GNUTLS checks failed.
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
891 dnl #
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
892 if test "x$enable_nss" != "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
893
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
894 AC_ARG_WITH(nspr-includes,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
895 [ --with-nspr-includes=PREFIX Specify location of Mozilla nspr4 includes.],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
896 [with_nspr_includes="$withval"])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
897
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
898 AC_ARG_WITH(nspr-libs,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
899 [ --with-nspr-libs=PREFIX Specify location of Mozilla nspr4 libs.],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
900 [with_nspr_libs="$withval"])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
901
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
902 AC_ARG_WITH(nss-includes,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
903 [ --with-nss-includes=PREFIX Specify location of Mozilla nss3 includes.],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
904 [with_nss_includes="$withval"])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
905
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
906 AC_ARG_WITH(nss-libs,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
907 [ --with-nss-libs=PREFIX Specify location of Mozilla nss3 libs.],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
908 [with_nss_libs="$withval"])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
909
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
910
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
911 if test -n "$with_nspr_includes" || test -n "$with_nspr_libs" || \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
912 test -n "$with_nss_includes" || test -n "$with_nss_libs" ||
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
913 test "x$enable_nss" = "xstatic"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
914
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
915 nss_manual_check="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
916 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
917 nss_manual_check="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
918 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
919
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
920 enable_nss="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
921
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
922 if test "x$nss_manual_check" = "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
923 PKG_CHECK_MODULES(NSS, mozilla-nss, have_nss="yes", have_nss="no")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
924
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
925 if test "x$have_nss" = "xyes"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
926 mozilla_nspr="mozilla-nspr"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
927 mozilla_nss="mozilla-nss"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
928
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
929 AC_DEFINE(HAVE_NSS, 1, [Define if you have Mozilla NSS])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
930 AC_DEFINE(HAVE_SSL, 1, [Define if you have SSL])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
931
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
932 msg_nss="Mozilla NSS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
933 enable_nss="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
934 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
935 nss_manual_check="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
936 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
937 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
938
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
939 if test "x$nss_manual_check" = "xyes"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
940 mozilla_nss=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
941 have_nspr_includes="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
942
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
943 if test "x$with_nspr_includes" != "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
944 CPPFLAGS_save=$CPPFLAGS
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
945
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
946 AC_MSG_CHECKING(for Mozilla nspr4 includes in $with_nspr_includes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
947 AC_MSG_RESULT("")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
948
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
949 CPPFLAGS="$CPPFLAGS -I$with_nspr_includes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
950 AC_CHECK_HEADERS(nspr.h prio.h, [ moz_nspr_includes="yes" ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
951 CPPFLAGS=$CPPFLAGS_save
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
952
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
953 if test "x$moz_nspr_includes" != "xno" -a \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
954 "x$moz_nspr_includes" != "x"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
955
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
956 have_nspr_includes="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
957 NSPR_CFLAGS="-I$with_nspr_includes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
958 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
959 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
960 AC_MSG_CHECKING(for Mozilla nspr4 includes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
961 AC_MSG_RESULT(no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
962
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
963 enable_nss="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
964 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
965
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
966 have_nspr_libs="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
967
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
968 if test "x$with_nspr_libs" != "xno" -a \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
969 "x$have_nspr_includes" != "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
970
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
971 CFLAGS_save=$CFLAGS
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
972 LDFLAGS_save=$LDFLAGS
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
973
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
974 if test "$enable_nss" = "static"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
975 if test -z "$with_nspr_libs"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
976 AC_MSG_ERROR(
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
977 [Static linkage requested, but path to nspr libraries not set.]
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
978 [Please specify the path to libnspr4.a]
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
979 [Example: --with-nspr-libs=/usr/lib])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
980
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
981 enable_nss="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
982 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
983 nsprlibs="-ldl $with_nspr_libs/libplc4.a $with_nspr_libs/libplds4.a $with_nspr_libs/libnspr4.a $PTHREAD_LIB"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
984 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
985 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
986 nsprlibs="-ldl -lplc4 -lplds4 -lnspr4 $PTHREAD_LIB"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
987 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
988
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
989 AC_CACHE_CHECK([for Mozilla nspr libraries], moz_nspr_libs,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
990 [
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
991 LIBS_save=$LIBS
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
992 CFLAGS="$CFLAGS $NSPR_CFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
993
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
994 LIBS="$nsprlibs"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
995
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
996 if test "x$with_nspr_libs" != "x"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
997 LDFLAGS="$LDFLAGS -L$with_nspr_libs"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
998 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
999 LDFLAGS="$LDFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1000 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1001
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1002 AC_TRY_LINK_FUNC(PR_Init,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1003 [moz_nspr_libs="yes"],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1004 [moz_nspr_libs="no"])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1005
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1006 CFLAGS=$CFLAGS_save
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1007 LDFLAGS=$LDFLAGS_save
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1008 LIBS=$LIBS_save
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1009 ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1010
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1011 if test "x$moz_nspr_libs" != "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1012 have_nspr_libs="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1013 NSPR_LIBS="-L$with_nspr_libs $nsprlibs"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1014 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1015 NSPR_CFLAGS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1016 enable_nss="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1017 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1018 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1019 AC_MSG_CHECKING(for Mozilla nspr4 libraries)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1020 AC_MSG_RESULT(no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1021 fi
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
1022
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1023 have_nss_includes="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1024
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1025 if test "x$with_nss_includes" != "xno" -a \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1026 "x$have_nspr_libs" != "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1027
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1028 CPPFLAGS_save=$CPPFLAGS
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1029
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1030 AC_MSG_CHECKING(for Mozilla nss3 includes in $with_nss_includes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1031 AC_MSG_RESULT("")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1032
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1033 if test "x$with_nspr_includes" != "x"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1034 CPPFLAGS="$CPPFLAGS -I$with_nspr_includes -I$with_nss_includes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1035 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1036 CPPFLAGS="$CPPFLAGS -I$with_nss_includes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1037 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1038
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1039 AC_CHECK_HEADERS(nss.h ssl.h smime.h,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1040 [moz_nss_includes="yes"],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1041 [moz_nss_includes="no"])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1042
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1043 CPPFLAGS=$CPPFLAGS_save
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1044
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1045 if test "x$moz_nss_includes" = "xyes"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1046 have_nss_includes="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1047 NSS_CFLAGS="-I$with_nss_includes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1048 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1049 NSPR_CFLAGS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1050 NSPR_LIBS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1051 enable_nss="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1052 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1053 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1054 AC_MSG_CHECKING(for Mozilla nss3 includes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1055 AC_MSG_RESULT(no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1056 enable_nss="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1057 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1058
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1059 if test "x$with_nss_libs" != "xno" -a \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1060 "x$have_nss_includes" != "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1061
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1062 LDFLAGS_save=$LDFLAGS
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1063
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1064 if test "$enable_nss" = "static"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1065 if test -z "$with_nss_libs"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1066 AC_MSG_ERROR(
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1067 [Static linkage requested, but path to nss libraries not set.]
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1068 [Please specify the path to libnss3.a]
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1069 [Example: --with-nspr-libs=/usr/lib/mozilla])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1070 enable_nss="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1071 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1072 nsslibs="-ldb1 $with_nss_libs/libnssckfw.a $with_nss_libs/libasn1.a $with_nss_libs/libcrmf.a $with_nss_libs/libswfci.a $with_nss_libs/libjar.a $with_nss_libs/libpkcs12.a $with_nss_libs/libpkcs7.a $with_nss_libs/libpki1.a $with_nss_libs/libsmime.a $with_nss_libs/libssl.a $with_nss_libs/libnss.a $with_nss_libs/libpk11wrap.a $with_nss_libs/libsoftokn.a $with_nss_libs/libfreebl.a $with_nss_libs/libnsspki.a $with_nss_libs/libnssdev.a $with_nss_libs/libcryptohi.a $with_nss_libs/libcerthi.a $with_nss_libs/libcertdb.a $with_nss_libs/libsecutil.a $with_nss_libs/libnssb.a"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1073
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1074 case "$host" in
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1075 *solaris*)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1076 nsslibs="$nsslibs $with_nss_libs/libfreeb1.a"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1077 ;;
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1078 esac
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1079 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1080 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1081 nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1082 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1083
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1084 AC_CACHE_CHECK([for Mozilla nss libraries], moz_nss_libs,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1085 [
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1086 LIBS_save=$LIBS
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1087 LDFLAGS="$LDFLAGS -L$with_nspr_libs $nsprlibs -L$with_nss_libs $nsslibs"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1088 LIBS="$nsslibs $nsprlibs"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1089
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1090 AC_TRY_LINK_FUNC(NSS_Init,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1091 [moz_nss_libs="yes"],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1092 [moz_nss_libs="no"])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1093
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1094 if test "x$moz_nss_libs" = "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1095 nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1096 LDFLAGS="$LDFLAGS -L$with_nspr_libs $nsprlibs -L$with_nss_libs $nsslibs"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1097 AC_TRY_LINK_FUNC(NSS_Init,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1098 [moz_nss_libs="yes"],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1099 [moz_nss_libs="no"])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1100 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1101
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1102 LDFLAGS=$LDFLAGS_save
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1103 LIBS=$LIBS_save
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1104 ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1105
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1106 if test "x$moz_nss_libs" != "xno"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1107 AC_DEFINE(HAVE_NSS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1108 AC_DEFINE(HAVE_SSL)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1109
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1110 NSS_LIBS="-L$with_nss_libs $nsslibs"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1111
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1112 if test "$enable_nss" = "static"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1113 msg_nss="Mozilla NSS (static)"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1114 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1115 msg_nss="Mozilla NSS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1116 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1117
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1118 enable_nss="yes"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1119 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1120 NSS_CFLAGS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1121 NSPR_CFLAGS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1122 NSPR_LIBS=""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1123 enable_nss="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1124 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1125 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1126 AC_MSG_CHECKING(for Mozilla nss libraries)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1127 AC_MSG_RESULT(no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1128 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1129
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1130 NSS_CFLAGS="$NSPR_CFLAGS $NSS_CFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1131 NSS_LIBS="$NSPR_LIBS $NSS_LIBS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1132 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1133
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1134 AC_SUBST(NSS_CFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1135 AC_SUBST(NSS_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1136 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1137
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1138 AM_CONDITIONAL(USE_NSS, test "x$enable_nss" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1139
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1140 if test "x$msg_nss" != "x" -a "x$msg_gnutls" != "x"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1141 msg_ssl="$msg_nss and $msg_gnutls"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1142 elif test "x$msg_nss" != "x"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1143 msg_ssl=$msg_nss
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1144 elif test "x$msg_gnutls" != "x"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1145 msg_ssl=$msg_gnutls
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1146 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1147
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1148 dnl Check for Tcl
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1149 if test "$enable_plugins" = no; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1150 enable_tcl=no
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1151 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1152
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1153 if test "$enable_tcl" = yes; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1154 AC_MSG_CHECKING([for tclConfig.sh])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1155 TCLCONFIG=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1156 TCLCONFIGDIRS="/usr/lib \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1157 /usr/lib/tcl8.4 \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1158 /usr/lib/tcl8.3 \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1159 /usr/lib/tcl8.2 \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1160 /System/Library/Tcl/8.3 \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1161 /usr/local/lib"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1162 for dir in $with_tclconfig $TCLCONFIGDIRS; do
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1163 if test -f $dir/tclConfig.sh; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1164 TCLCONFIG=$dir/tclConfig.sh
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1165 AC_MSG_RESULT([yes ($TCLCONFIG)])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1166 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1167 done
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1168 if test "$TCLCONFIG" = "no"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1169 AC_MSG_RESULT([no])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1170 enable_tcl=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1171 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1172 . $TCLCONFIG
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1173 AC_MSG_CHECKING([Tcl version compatability])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1174 if test "$TCL_MAJOR_VERSION" -ne 8 -o "$TCL_MINOR_VERSION" -lt 3; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1175 AC_MSG_RESULT([bad, $TCL_VERSION found but 8.3 or later required])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1176 enable_tcl=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1177 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1178 AC_MSG_RESULT([ok, $TCL_VERSION])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1179 eval "TCL_LIB_SPEC=\"$TCL_LIB_SPEC\""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1180 AC_MSG_CHECKING([for Tcl linkability])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1181 oldCPPFLAGS=$CPPFLAGS
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1182 CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC -I$TCL_PREFIX/include"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1183 oldLIBS=$LIBS
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1184 LIBS="$LIBS $TCL_LIB_SPEC"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1185 AC_TRY_LINK([#include <tcl.h>],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1186 [Tcl_Interp *interp; Tcl_Init(interp)],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1187 [AC_MSG_RESULT([yes]);enable_tcl=yes],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1188 [AC_MSG_RESULT([no]);enable_tcl=no])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1189 CPPFLAGS="$oldCPPFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1190 LIBS="$oldLIBS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1191 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1192 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1193 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1194
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1195 if test "$enable_tcl" = yes; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1196 AM_CONDITIONAL(USE_TCL, true)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1197 TCL_LIBS=$TCL_LIB_SPEC
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1198 AC_SUBST(TCL_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1199 AC_DEFINE(HAVE_TCL, [1], [Compile with support for the Tcl toolkit])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1200 TCL_CFLAGS="$TCL_INCLUDE_SPEC -I$TCL_PREFIX/include"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1201 if test "x$GCC" = "xyes"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1202 TCL_CFLAGS="$TCL_CFLAGS -fno-strict-aliasing"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1203 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1204 AC_SUBST(TCL_CFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1205 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1206 AM_CONDITIONAL(USE_TCL, false)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1207 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1208
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1209 dnl Check for Tk
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1210 if test "$enable_tcl" = yes -a "$enable_tk" = yes; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1211 AC_MSG_CHECKING([for tkConfig.sh])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1212 TKCONFIG=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1213 TKCONFIGDIRS="/usr/lib \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1214 /usr/lib/tk8.4 \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1215 /usr/lib/tk8.3 \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1216 /usr/lib/tk8.2 \
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1217 /usr/local/lib"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1218 for dir in $with_tkconfig $TKCONFIGDIRS; do
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1219 if test -f $dir/tkConfig.sh; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1220 TKCONFIG=$dir/tkConfig.sh
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1221 AC_MSG_RESULT([yes ($TKCONFIG)])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1222 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1223 done
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1224 if test "$TKCONFIG" = "no"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1225 AC_MSG_RESULT([no])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1226 enable_tk=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1227 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1228 . $TKCONFIG
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1229 eval "TK_LIB_SPEC=\"$TK_LIB_SPEC\""
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1230 AC_MSG_CHECKING([for Tk linkability])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1231 oldCPPFLAGS=$CPPFLAGS
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1232 CPPFLAGS="$CPPFLAGS $TCL_CFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1233 oldLIBS=$LIBS
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1234 LIBS="$LIBS $TCL_LIB_SPEC $TK_LIB_SPEC"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1235 AC_TRY_LINK([#include <tk.h>], [Tcl_Interp *interp; Tcl_Init(interp); Tk_Init(interp);],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1236 [AC_MSG_RESULT([yes]);enable_tk=yes],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1237 [AC_MSG_RESULT([no]);enable_tk=no])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1238 CPPFLAGS="$oldCPPFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1239 LIBS="$oldLIBS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1240 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1241 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1242 enable_tk=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1243 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1244
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1245 if test "$enable_tk" = yes; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1246 AM_CONDITIONAL(USE_TK, true)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1247 AC_DEFINE(HAVE_TK, [1], [Compile with support for the Tk toolkit])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1248 TK_LIBS=$TK_LIB_SPEC
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1249 AC_SUBST(TK_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1250 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1251 AM_CONDITIONAL(USE_TK, false)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1252 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1253
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1254 dnl Thanks, Evan.
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1255 if test "$enable_gtkspell" = yes ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1256 PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, , enable_gtkspell=no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1257 if test "$enable_gtkspell" = "yes" ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1258 AC_SUBST(GTKSPELL_CFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1259 AC_SUBST(GTKSPELL_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1260 AC_DEFINE(USE_GTKSPELL,,[do we have gtkspell?])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1261 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1262 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1263
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1264 if test "$enable_audio" = yes ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1265 GAIM_PATH_AO(found_ao_lib=true)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1266
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1267 AM_PATH_AUDIOFILE([0.2.0], found_af_lib=true)
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
1268
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1269 if test "$found_ao_lib" = "true" -a "$found_af_lib" = "true"; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1270 SOUND_LIBS="$SOUND_LIBS $AO_LIBS $AUDIOFILE_LIBS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1271 AC_SUBST(SOUND_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1272 AC_DEFINE(USE_AO, 1, [Define if we're using libao and libaudiofile for sound playing])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1273 enable_audio=yes
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1274 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1275 enable_audio=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1276 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1277 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1278 enable_audio=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1279 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1280
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1281 if test "$ac_cv_cygwin" = yes ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1282 LDADD="$LDADD -static"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1283 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1284 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1285
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1286 AC_SUBST(DEBUG_CFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1287 AC_SUBST(LDADD)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1288 AC_SUBST(LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1289
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1290 if test "x$enable_plugins" = "xyes" ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1291 AC_DEFINE(GAIM_PLUGINS, 1, [Define if plugins are enabled.])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1292 AM_CONDITIONAL(PLUGINS, test "x$enable_plugins" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1293 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1294 AM_CONDITIONAL(PLUGINS, false)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1295 enable_plugins=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1296 enable_prpls=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1297 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1298
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1299 if test "x$enable_prpls" = "xyes" ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1300 AM_CONDITIONAL(PRPLS, test "x$enable_plugins" = "xyes")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1301 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1302 AM_CONDITIONAL(PRPLS, false)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1303 enable_prpls=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1304 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1305
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1306 dnl checks for icqlib--do we still need these?
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1307 AC_CHECK_HEADERS(asm/byteorder.h byteswap.h endian.h machine/endian.h arpa/nameser_compat.h)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1308 AC_CHECK_FUNCS(bswap_32 bswap_16)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1309 AC_C_BIGENDIAN
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1310
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1311 dnl checks for jabber
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1312 dnl AC_CHECK_SIZEOF(short)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1313 AC_CHECK_FUNCS(snprintf connect)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1314
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1315 dnl checks for zephyr
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1316 AC_DEFINE(ZEPHYR_INT32, long, [Size of an int32.])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1317 AC_SUBST(KRB4_CFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1318 AC_SUBST(KRB4_LDFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1319 AC_SUBST(KRB4_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1320 if test "$kerberos" != "no" ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1321 if test "$kerberos" != "yes" ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1322 KRB4_CFLAGS="-I${kerberos}/include"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1323 if test -d "$kerberos/include/kerberosIV" ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1324 KRB4_CFLAGS="$KRB4_CFLAGS -I${kerberos}/include/kerberosIV"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1325 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1326 KRB4_LDFLAGS="-L${kerberos}/lib"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1327 elif test -d /usr/local/include/kerberosIV ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1328 KRB4_CFLAGS="-I/usr/local/include/kerberosIV"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1329 elif test -d /usr/include/kerberosIV ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1330 KRB4_CFLAGS="-I/usr/include/kerberosIV"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1331 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1332 AC_DEFINE(ZEPHYR_USES_KERBEROS, 1, [Define if kerberos should be used in Zephyr.])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1333
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1334 orig_LDFLAGS="$LDFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1335 LDFLAGS="$LDFLAGS $KRB4_LDFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1336 AC_CHECK_LIB(krb4, krb_rd_req,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1337 [KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1338 [AC_CHECK_LIB(krb, krb_rd_req,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1339 [KRB4_LIBS="-lkrb -ldes"],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1340 [AC_ERROR(Kerberos 4 libraries not found)],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1341 -ldes)],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1342 -ldes425 -lkrb5 -lk5crypto -lcom_err)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1343 orig_LIBS="$LIBS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1344 LIBS="$LIBS $KRB4_LIBS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1345 AC_CHECK_FUNCS(krb_set_key krb_rd_req krb_get_lrealm)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1346 AC_CHECK_FUNCS(krb_get_err_text krb_log)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1347 LIBS="$orig_LIBS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1348 LDFLAGS="$orig_LDFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1349 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1350
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1351 dnl checks for an external libzephyr
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1352 AC_SUBST(ZEPHYR_CFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1353 AC_SUBST(ZEPHYR_LDFLAGS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1354 AC_SUBST(ZEPHYR_LIBS)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1355 if test "$zephyr" != "no" ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1356 if test "$zephyr" != "yes" ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1357 ZEPHYR_CFLAGS="-I${zephyr}/include"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1358 ZEPHYR_LDFLAGS="-L${zephyr}/lib"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1359 elif test -d /usr/athena/include/zephyr ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1360 ZEPHYR_CFLAGS="-I/usr/athena/include"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1361 elif test -d /usr/include/zephyr ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1362 ZEPHYR_CFLAGS="-I/usr/include"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1363 elif test -d /usr/local/include/zephyr ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1364 ZEPHYR_CFLAGS="-I/usr/local/include"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1365 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1366 AC_DEFINE(LIBZEPHYR_EXT, 1 , [Define if external libzephyr should be used.])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1367 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno")
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1368 orig_LDFLAGS="$LDFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1369 LDFLAGS="$LDFLAGS $ZEPHYR_LDFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1370 AC_CHECK_LIB(zephyr, ZInitialize,
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1371 [ZEPHYR_LIBS="-lzephyr"],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1372 [AC_ERROR(Zephyr libraries not found)],
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1373 -lzephyr)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1374 orig_LIBS="$LIBS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1375 LIBS="$orig_LIBS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1376 LDFLAGS="$orig_LDFLAGS"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1377 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1378
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1379 AM_BINRELOC
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1380
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1381 AC_MSG_CHECKING(for me pot o' gold)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1382 AC_MSG_RESULT(no)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1383 AC_CHECK_FUNCS(gethostid lrand48)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1384 AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1385 AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1386 AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1387 AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1388 AC_CHECK_HEADERS(termios.h)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1389 AC_VAR_TIMEZONE_EXTERNALS
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
1390
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1391 dnl #######################################################################
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1392 dnl # Doxygen Stuff
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1393 dnl #######################################################################
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1394 AC_ARG_ENABLE(doxygen, [ --enable-doxygen enable documentation with doxygen],,enable_doxygen=yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1395 AC_ARG_ENABLE(dot, [ --enable-dot enable graphs in doxygen via 'dot'],,enable_dot=yes)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1396
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1397 if test "x$enable_doxygen" = xyes; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1398 AC_CHECK_PROG(DOXYGEN, doxygen, true, false)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1399 if test $DOXYGEN = false; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1400 AC_MSG_WARN([*** doxygen not found, docs will not be available])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1401 enable_doxygen=no
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1402 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1403 AC_DEFINE_UNQUOTED(HAVE_DOXYGEN, 1, [whether or not we have doxygen])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1404
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1405 if test "x$enable_dot" = xyes; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1406 AC_CHECK_PROG(DOT, dot, true, false)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1407
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1408 if test $DOT = false; then
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1409 enable_dot="no";
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1410 AC_MSG_WARN([*** dot not found, graphs will not be available])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1411 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1412 AC_DEFINE_UNQUOTED(HAVE_DOT, 1, [whether or not we have dot])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1413 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1414 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1415 AC_MSG_WARN([*** dot not found, graphs will not be available])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1416 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1417 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1418 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1419 enable_dot="no"
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1420 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1421
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1422 if test "x$enable_doxygen" = xyes; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1423 AM_CONDITIONAL(HAVE_DOXYGEN, true)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1424 else
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1425 AM_CONDITIONAL(HAVE_DOXYGEN, false)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1426 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1427
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1428 AC_SUBST(enable_doxygen)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1429 AC_SUBST(enable_dot)
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1430
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1431 AC_CONFIG_COMMANDS_PRE([
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1432 if test -e VERSION; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1433 cp -p VERSION VERSION.ac-save
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1434 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1435 ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1436
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1437 AC_CONFIG_COMMANDS_POST([
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1438 cmp VERSION VERSION.ac-save || touch -r VERSION.ac-save VERSION
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1439 rm -f VERSION.ac-save
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1440 ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1441
11218
ed017b9c532d [gaim-migrate @ 13350]
Charlie Stockman <chuckleberry>
parents:
diff changeset
1442 AC_OUTPUT([Makefile
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1443 Doxyfile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1444 gaim.apspec
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1445 doc/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1446 doc/gaim.1
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1447 intl/Makefile
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1448 m4macros/Makefile
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1449 pixmaps/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1450 pixmaps/smileys/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1451 pixmaps/smileys/default/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1452 pixmaps/smileys/none/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1453 pixmaps/status/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1454 pixmaps/status/default/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1455 plugins/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1456 plugins/docklet/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1457 plugins/crazychat/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1458 plugins/gevolution/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1459 plugins/gestures/Makefile
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1460 plugins/mono/Makefile
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1461 plugins/mono/api/Makefile
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1462 plugins/mono/loader/Makefile
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1463 plugins/musicmessaging/Makefile
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1464 plugins/perl/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1465 plugins/perl/common/Makefile.PL
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1466 plugins/ssl/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1467 plugins/tcl/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1468 plugins/ticker/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1469 po/Makefile.in
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1470 sounds/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1471 src/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1472 src/protocols/Makefile
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1473 src/protocols/bonjour/Makefile
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1474 src/protocols/gg/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1475 src/protocols/irc/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1476 src/protocols/jabber/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1477 src/protocols/msn/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1478 src/protocols/napster/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1479 src/protocols/novell/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1480 src/protocols/oscar/Makefile
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1481 src/protocols/sametime/Makefile
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1482 src/protocols/sametime/meanwhile/Makefile
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1483 src/protocols/silc/Makefile
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1484 src/protocols/simple/Makefile
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1485 src/protocols/toc/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1486 src/protocols/yahoo/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1487 src/protocols/zephyr/Makefile
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1488 gaim.pc
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1489 gaim.spec
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1490 ])
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1491
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1492 echo
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1493 echo $PACKAGE $VERSION
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1494
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1495 echo
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1496 echo Build Protocol Plugins........ : $enable_prpls
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1497 echo Protocols to link statically.. : $STATIC_PRPLS
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1498 echo Protocols to build dynamically : $DYNAMIC_PRPLS
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1499 echo
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1500 echo UI Library.................... : GTK+ 2.x
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1501 echo SSL Library/Libraries......... : $msg_ssl
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1502 echo
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1503 echo Build with Plugin support..... : $enable_plugins
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1504 echo Build with Mono support....... : $enable_mono
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1505 echo Build with Perl support....... : $enable_perl
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1506 echo Build with Tcl support........ : $enable_tcl
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1507 echo Build with Tk support......... : $enable_tk
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1508 echo Build with Audio support...... : $enable_audio
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1509 echo Build with GtkSpell support... : $enable_gtkspell
11695
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1510 echo Build with DBUS support....... : $enable_dbus
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1511 if test x$enable_dbus = xyes ; then
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1512 echo DBUS session directory........ : $DBUS_SESSION_DIR
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1513 fi
a23b55e23754 [gaim-migrate @ 13981]
Mark Doliner <mark@kingant.net>
parents: 11223
diff changeset
1514 echo Has you....................... : yes
11223
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1515 echo
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1516 echo Use kerberos 4 with zephyr.... : $kerberos
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1517 echo Use external libzephyr........ : $zephyr
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1518 echo
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1519 echo Use XScreenSaver Extension.... : $enable_xss
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1520 echo Use X Session Management...... : $enable_sm
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1521 echo Use startup notification.......: $enable_startup_notification
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1522 echo
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1523 echo Print debugging messages...... : $enable_debug
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1524 echo
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1525 eval eval echo Gaim will be installed in $bindir.
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1526 if test "x$gaimpath" != "x" ; then
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1527 echo Warning: You have an old copy of gaim at $gaimpath.
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1528 fi
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1529 echo
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1530 echo configure complete, now type \'make\'
d424c3bbac8d [gaim-migrate @ 13356]
Charlie Stockman <chuckleberry>
parents: 11218
diff changeset
1531 echo