Mercurial > pidgin
annotate configure.ac @ 13808:34d086c78a0d
[gaim-migrate @ 16234]
Use libxml2 on win32 too.
This increases the installer size by ~400K (oh well).
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 08 Jun 2006 15:13:39 +0000 |
parents | 25e63008d3bb |
children | cd93e6e90044 |
rev | line source |
---|---|
2129 | 1 dnl Process this file with autoconf to produce a configure script. |
13632 | 2 AC_INIT([gaim], [2.0.0dev], [gaim-devel@lists.sourceforge.net]) |
8849 | 3 AC_CANONICAL_SYSTEM |
2129 | 4 AM_CONFIG_HEADER(config.h) |
8485 | 5 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) |
3174 | 6 |
7 AC_PREREQ([2.50]) | |
2129 | 8 |
9 AC_PATH_PROG(sedpath, sed) | |
10 | |
8919 | 11 dnl Storing configure arguments |
12 AC_DEFINE_UNQUOTED(CONFIG_ARGS, "$ac_configure_args", [configure arguments]) | |
13 | |
2129 | 14 dnl Checks for programs. |
15 AC_PROG_CC | |
16 AC_DISABLE_STATIC | |
17 AM_PROG_LIBTOOL | |
18 LIBTOOL="$LIBTOOL --silent" | |
19 AC_PROG_INSTALL | |
13179
5adc0c9da9f3
[gaim-migrate @ 15542]
Richard Laager <rlaager@wiktel.com>
parents:
13174
diff
changeset
|
20 AC_PROG_INTLTOOL |
5adc0c9da9f3
[gaim-migrate @ 15542]
Richard Laager <rlaager@wiktel.com>
parents:
13174
diff
changeset
|
21 GETTEXT_PACKAGE=gaim |
5adc0c9da9f3
[gaim-migrate @ 15542]
Richard Laager <rlaager@wiktel.com>
parents:
13174
diff
changeset
|
22 AC_SUBST(GETTEXT_PACKAGE) |
2129 | 23 |
7603 | 24 # before gettexting, in case iconv matters |
25 case "$host_os" in | |
26 darwin*) | |
12685
e9f279f0ef02
[gaim-migrate @ 15028]
Richard Laager <rlaager@wiktel.com>
parents:
12678
diff
changeset
|
27 AC_CHECK_LIB(resolv, res_query) |
13323
723f5b7ef6a2
[gaim-migrate @ 15693]
Richard Laager <rlaager@wiktel.com>
parents:
13319
diff
changeset
|
28 |
723f5b7ef6a2
[gaim-migrate @ 15693]
Richard Laager <rlaager@wiktel.com>
parents:
13319
diff
changeset
|
29 AC_CHECK_HEADER(CoreFoundation/CoreFoundation.h, [ |
723f5b7ef6a2
[gaim-migrate @ 15693]
Richard Laager <rlaager@wiktel.com>
parents:
13319
diff
changeset
|
30 AC_CHECK_HEADER(IOKit/IOKitLib.h, [ |
723f5b7ef6a2
[gaim-migrate @ 15693]
Richard Laager <rlaager@wiktel.com>
parents:
13319
diff
changeset
|
31 AC_DEFINE(HAVE_IOKIT, 1, [Define if we have IOKit]) |
723f5b7ef6a2
[gaim-migrate @ 15693]
Richard Laager <rlaager@wiktel.com>
parents:
13319
diff
changeset
|
32 LIBS="$LIBS -framework IOKit -framework CoreFoundation" |
723f5b7ef6a2
[gaim-migrate @ 15693]
Richard Laager <rlaager@wiktel.com>
parents:
13319
diff
changeset
|
33 ], []) |
723f5b7ef6a2
[gaim-migrate @ 15693]
Richard Laager <rlaager@wiktel.com>
parents:
13319
diff
changeset
|
34 ], []) |
723f5b7ef6a2
[gaim-migrate @ 15693]
Richard Laager <rlaager@wiktel.com>
parents:
13319
diff
changeset
|
35 |
7603 | 36 AC_MSG_CHECKING([for fink]) |
37 if test -d /sw; then | |
38 AC_MSG_RESULT([found, adding /sw to search paths]) | |
12698
e5f79b206d7e
[gaim-migrate @ 15041]
Richard Laager <rlaager@wiktel.com>
parents:
12685
diff
changeset
|
39 CPPFLAGS="$CPPFLAGS -I/sw/include" |
12685
e9f279f0ef02
[gaim-migrate @ 15028]
Richard Laager <rlaager@wiktel.com>
parents:
12678
diff
changeset
|
40 LDFLAGS="$LDFLAGS -L/sw/lib" |
7603 | 41 else |
42 AC_MSG_RESULT([not found]) | |
43 fi | |
44 ;; | |
45 *) | |
46 ;; | |
47 esac | |
2129 | 48 |
13734
760528340ee3
[gaim-migrate @ 16145]
Luke Schierer <lschiere@pidgin.im>
parents:
13731
diff
changeset
|
49 ALL_LINGUAS="am az bg bn bs ca ca@valencia cs da de el en_AU en_CA en_GB es et eu fa fi fr gl gu he hi hu it ja ka ko ku lt mk my_MM nb nl nn pa pl pt_BR pt ro ru sk sl sq sr sr@Latn sv ta te th tr uk vi xh zh_CN zh_TW" |
13179
5adc0c9da9f3
[gaim-migrate @ 15542]
Richard Laager <rlaager@wiktel.com>
parents:
13174
diff
changeset
|
50 AM_GLIB_GNU_GETTEXT |
2129 | 51 |
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6321
diff
changeset
|
52 dnl we don't use autobreak on cygwin!! |
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6321
diff
changeset
|
53 dnl AC_CYGWIN |
2129 | 54 |
55 dnl Checks for header files. | |
56 AC_HEADER_STDC | |
57 AC_HEADER_SYS_WAIT | |
12561
e8314f98b870
[gaim-migrate @ 14880]
Richard Laager <rlaager@wiktel.com>
parents:
12547
diff
changeset
|
58 AC_CHECK_HEADERS(arpa/nameser_compat.h fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h regex.h) |
2129 | 59 |
60 dnl Checks for typedefs, structures, and compiler characteristics. | |
61 AC_C_CONST | |
62 AC_STRUCT_TM | |
63 | |
12423
692467ea6244
[gaim-migrate @ 14730]
Richard Laager <rlaager@wiktel.com>
parents:
12385
diff
changeset
|
64 AC_C_BIGENDIAN |
692467ea6244
[gaim-migrate @ 14730]
Richard Laager <rlaager@wiktel.com>
parents:
12385
diff
changeset
|
65 |
2129 | 66 dnl Checks for library functions. |
67 AC_TYPE_SIGNAL | |
68 AC_FUNC_STRFTIME | |
13216
0ce20e0a1396
[gaim-migrate @ 15580]
Richard Laager <rlaager@wiktel.com>
parents:
13179
diff
changeset
|
69 AC_CHECK_FUNCS(strdup strstr atexit setlocale) |
2129 | 70 dnl Checks for getopt in standard library |
7451
81959bd9fe1f
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
71 AC_CHECK_FUNCS(getopt_long,, |
81959bd9fe1f
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
72 [ |
81959bd9fe1f
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
73 AC_LIBOBJ(getopt) |
81959bd9fe1f
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
74 AC_LIBOBJ(getopt1) |
81959bd9fe1f
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
75 ]) |
2129 | 76 |
2959 | 77 dnl Check for inet_aton |
13741 | 78 AC_CHECK_FUNC(inet_aton, , [AC_CHECK_LIB(resolv, inet_aton, , |
2959 | 79 [AC_ERROR(inet_aton not found)])]) |
11373 | 80 AC_CHECK_LIB(resolv, __res_query) |
4424 | 81 AC_CHECK_LIB(nsl, gethostent) |
13741 | 82 AC_CHECK_FUNC(socket, , |
4424 | 83 [AC_CHECK_LIB(socket, socket, , [AC_ERROR([socket not found])])]) |
84 dnl If all goes well, by this point the previous two checks will have | |
85 dnl pulled in -lsocket and -lnsl if we need them. | |
86 AC_CHECK_FUNC(getaddrinfo, [AC_DEFINE([HAVE_GETADDRINFO], [1], | |
87 [Define to 1 if you have the getaddrinfo function.])], | |
88 [AC_CHECK_LIB(socket, getaddrinfo, | |
89 [AC_DEFINE([HAVE_GETADDRINFO]) LIBS="-lsocket -lsnl $LIBS"], , , -lnsl)]) | |
2959 | 90 |
3150 | 91 dnl Check for socklen_t (in Unix98) |
92 AC_MSG_CHECKING(for socklen_t) | |
3662
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
93 AC_TRY_COMPILE([ |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
94 #include <sys/types.h> |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
95 #include <sys/socket.h> |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
96 socklen_t x; |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
97 ], [], |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
98 [ |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
99 AC_MSG_RESULT(yes) |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
100 ], [ |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
101 AC_TRY_COMPILE([ |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
102 #include <sys/types.h> |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
103 #include <sys/socket.h> |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
104 int accept(int, struct sockaddr *, size_t *); |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
105 ], [], [ |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
106 AC_MSG_RESULT(size_t) |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
107 AC_DEFINE(socklen_t, size_t, [socklen_t size]) |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
108 ], [ |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
109 AC_MSG_RESULT(int) |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
110 AC_DEFINE(socklen_t, int, [socklen_t size]) |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
111 ]) |
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
112 ]) |
3150 | 113 |
10622
78a43d6e1801
[gaim-migrate @ 12091]
Luke Schierer <lschiere@pidgin.im>
parents:
10620
diff
changeset
|
114 dnl to prevent the g_stat()/g_unlink() crash, |
78a43d6e1801
[gaim-migrate @ 12091]
Luke Schierer <lschiere@pidgin.im>
parents:
10620
diff
changeset
|
115 dnl (09:50:07) Robot101: LSchiere2: it's easy. +LC_SYS_LARGEFILE somewhere in configure.ac |
78a43d6e1801
[gaim-migrate @ 12091]
Luke Schierer <lschiere@pidgin.im>
parents:
10620
diff
changeset
|
116 AC_SYS_LARGEFILE |
78a43d6e1801
[gaim-migrate @ 12091]
Luke Schierer <lschiere@pidgin.im>
parents:
10620
diff
changeset
|
117 |
12038 | 118 dnl FreeBSD doesn't have libdl, dlopen is provided by libc |
119 AC_CHECK_FUNC(dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")]) | |
11579 | 120 |
13152
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
121 AC_MSG_CHECKING(for the %z format string in strftime()) |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
122 AC_TRY_RUN([ |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
123 #ifdef HAVE_SYS_TIME_H |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
124 #include <sys/time.h> |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
125 #endif |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
126 #include <time.h> |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
127 #include <stdio.h> |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
128 |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
129 int main() |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
130 { |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
131 char buf[6]; |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
132 time_t t = time(NULL); |
13741 | 133 |
13152
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
134 if (strftime(buf, sizeof(buf), "%z", localtime(&t)) != 5) |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
135 return 1; |
13741 | 136 |
13152
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
137 fprintf(stderr, "strftime(\"%%z\") yields: \"%s\"\n", buf); |
13741 | 138 |
13152
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
139 return !((buf[0] == '-' || buf[0] == '+') && |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
140 (buf[1] >= '0' && buf[1] <= '9') && |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
141 (buf[2] >= '0' && buf[2] <= '9') && |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
142 (buf[3] >= '0' && buf[3] <= '9') && |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
143 (buf[4] >= '0' && buf[4] <= '9') |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
144 ); |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
145 } |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
146 ], |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
147 [ |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
148 AC_MSG_RESULT(yes) |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
149 AC_DEFINE([HAVE_STRFTIME_Z_FORMAT], [1], |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
150 [Define to 1 if you have a strftime() that supports the %z format string.]) |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
151 ], |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
152 [ |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
153 AC_MSG_RESULT(no) |
13225
b50a8da7a87d
[gaim-migrate @ 15589]
Richard Laager <rlaager@wiktel.com>
parents:
13216
diff
changeset
|
154 ], |
b50a8da7a87d
[gaim-migrate @ 15589]
Richard Laager <rlaager@wiktel.com>
parents:
13216
diff
changeset
|
155 [ |
b50a8da7a87d
[gaim-migrate @ 15589]
Richard Laager <rlaager@wiktel.com>
parents:
13216
diff
changeset
|
156 # Fallback for Cross Compiling... |
b50a8da7a87d
[gaim-migrate @ 15589]
Richard Laager <rlaager@wiktel.com>
parents:
13216
diff
changeset
|
157 # This will enable the compatibility code. |
b50a8da7a87d
[gaim-migrate @ 15589]
Richard Laager <rlaager@wiktel.com>
parents:
13216
diff
changeset
|
158 AC_MSG_RESULT(no) |
13152
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
159 ] |
4bb701a8736f
[gaim-migrate @ 15515]
Richard Laager <rlaager@wiktel.com>
parents:
13032
diff
changeset
|
160 ) |
11949
47e1723a89d7
[gaim-migrate @ 14240]
Christopher O'Brien <siege@pidgin.im>
parents:
11945
diff
changeset
|
161 |
13718 | 162 dnl ####################################################################### |
163 dnl # GStreamer | |
164 dnl ####################################################################### | |
165 enable_gst=yes | |
166 PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10, ,enable_gst=no) | |
167 AC_SUBST(GSTREAMER_CFLAGS) | |
168 AC_SUBST(GSTREAMER_LIBS) | |
13774 | 169 AC_ARG_ENABLE(gstreamer,[ --disable-gstreamer compile without GStreamer audio support],enable_gst=no) |
13718 | 170 if test "x$enable_gst" = "xyes"; then |
171 AC_DEFINE(USE_GSTREAMER, 1, [Use GStreamer for making sounds]) | |
172 fi | |
11579 | 173 |
13806 | 174 dnl ################# |
175 dnl # LibXML2 | |
176 dnl ################# | |
177 enable_libxml=yes | |
178 PKG_CHECK_MODULES(LIBXML, libxml-2.0, ,enable_libxml=no) | |
179 AC_SUBST(LIBXML_CFLAGS) | |
180 AC_SUBST(LIBXML_LIBS) | |
181 if test "x$enable_libxml" = "xyes"; then | |
182 AC_DEFINE(HAVE_LIBXML, 1, [Use libxml2 for xml parsing]) | |
183 fi | |
184 | |
11579 | 185 dnl ####################################################################### |
12496
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
186 dnl # Check for Meanwhile headers (for Sametime) |
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
187 dnl ####################################################################### |
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
188 PKG_CHECK_MODULES(MEANWHILE, |
13170
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
189 [meanwhile >= 1.0.0 meanwhile < 2.0.0], [ |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
190 have_meanwhile="yes" |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
191 ], [ |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
192 AC_MSG_RESULT(no) |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
193 have_meanwhile="no" |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
194 ]) |
12496
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
195 AC_SUBST(MEANWHILE_CFLAGS) |
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
196 AC_SUBST(MEANWHILE_LIBS) |
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
197 |
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
198 |
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
199 |
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
200 dnl ####################################################################### |
11579 | 201 dnl # Check for Howl headers (for Bonjour) |
202 dnl ####################################################################### | |
13731 | 203 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"]) |
204 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"]) | |
11579 | 205 HOWL_CFLAGS="" |
206 HOWL_LIBS="" | |
207 | |
13746 | 208 dnl Attempt to autodetect avahi-compat-howl |
209 PKG_CHECK_MODULES(HOWL, avahi-compat-howl, [ | |
13170
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
210 howlincludes="yes" |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
211 howllibs="yes" |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
212 ], [ |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
213 AC_MSG_RESULT(no) |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
214 howlincludes="no" |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
215 howllibs="no" |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
216 ]) |
11579 | 217 |
13746 | 218 dnl Attempt to autodetect Howl |
219 if test "x$howlincludes" = "xno"; then | |
220 PKG_CHECK_MODULES(HOWL, howl, [ | |
221 howlincludes="yes" | |
222 howllibs="yes" | |
223 ], [ | |
224 AC_MSG_RESULT(no) | |
225 howlincludes="no" | |
226 howllibs="no" | |
227 ]) | |
228 fi | |
229 | |
11579 | 230 dnl Override HOWL_CFLAGS if the user specified an include dir |
231 if test "$ac_howl_includes" != "no"; then | |
232 HOWL_CFLAGS="-I$ac_howl_includes" | |
233 fi | |
234 CPPFLAGS_save="$CPPFLAGS" | |
235 CPPFLAGS="$CPPFLAGS $HOWL_CFLAGS" | |
236 AC_CHECK_HEADER(howl.h, [howlincludes=yes], [howlincludes=no]) | |
237 CPPFLAGS="$CPPFLAGS_save" | |
238 | |
239 dnl Override HOWL_LIBS if the user specified a libs dir | |
240 if test "$ac_howl_libs" != "no"; then | |
13746 | 241 HOWL_LIBS="-L$ac_howl_libs -lhowl" |
11579 | 242 fi |
243 AC_CHECK_LIB(howl, sw_discovery_init, [howllibs=yes], [howllibs=no], $HOWL_LIBS) | |
244 | |
245 AC_SUBST(HOWL_CFLAGS) | |
246 AC_SUBST(HOWL_LIBS) | |
247 | |
248 | |
249 | |
250 dnl ####################################################################### | |
251 dnl # Check for SILC client includes and libraries | |
252 dnl ####################################################################### | |
13731 | 253 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"]) |
254 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"]) | |
9905 | 255 SILC_CFLAGS="" |
8850 | 256 SILC_LIBS="" |
9905 | 257 if test -n "$with_silc_includes" || test -n "$with_silc_libs"; then |
258 silc_manual_check="yes" | |
259 else | |
260 silc_manual_check="no" | |
8850 | 261 fi |
9905 | 262 if test "x$silc_manual_check" = "xno"; then |
10803 | 263 PKG_CHECK_MODULES(SILC, silcclient, [ |
9905 | 264 have_silc="yes" |
265 silcincludes="yes" | |
266 silcclient="yes" | |
13170
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
267 ], [ |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
268 AC_MSG_RESULT(no) |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
269 have_silc="no" |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
270 ]) |
10803 | 271 dnl If silcclient.pc wasn't found, check for just silc.pc |
272 if test "x$have_silc" = "xno"; then | |
273 PKG_CHECK_MODULES(SILC, silc, [ | |
274 have_silc="yes" | |
275 silcincludes="yes" | |
276 silcclient="yes" | |
13170
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
277 ], [ |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
278 AC_MSG_RESULT(no) |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
279 have_silc="no" |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
280 ]) |
10803 | 281 fi |
9905 | 282 else |
283 if test "$ac_silc_includes" != "no"; then | |
284 SILC_CFLAGS="-I$ac_silc_includes" | |
285 fi | |
286 CPPFLAGS_save="$CPPFLAGS" | |
287 CPPFLAGS="$CPPFLAGS $SILC_CFLAGS" | |
288 AC_CHECK_HEADER(silcincludes.h, [silcincludes=yes]) | |
289 CPPFLAGS="$CPPFLAGS_save" | |
290 | |
291 if test "$ac_silc_libs" != "no"; then | |
292 SILC_LIBS="-L$ac_silc_libs" | |
293 fi | |
12038 | 294 SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread $LIBDL" |
9905 | 295 AC_CHECK_LIB(silcclient, silc_client_init, [silcclient=yes], , $SILC_LIBS) |
296 fi | |
8850 | 297 AC_SUBST(SILC_LIBS) |
9905 | 298 AC_SUBST(SILC_CFLAGS) |
12217 | 299 dnl SILC Toolkit >= 1.0.1 has a new MIME API |
300 if test "x$silcclient" = "xyes"; then | |
301 CPPFLAGS_save="$CPPFLAGS" | |
302 CPPFLAGS="$CPPFLAGS $SILC_CFLAGS" | |
303 AC_MSG_CHECKING(for silcmime.h) | |
304 AC_TRY_COMPILE([ | |
305 #include <silcincludes.h> | |
306 #include <silcmime.h> | |
307 ], [], [ | |
308 AC_MSG_RESULT(yes) | |
13323
723f5b7ef6a2
[gaim-migrate @ 15693]
Richard Laager <rlaager@wiktel.com>
parents:
13319
diff
changeset
|
309 AC_DEFINE(HAVE_SILCMIME_H, 1, [Define if we have silcmime.h]) |
12217 | 310 ], [ |
311 AC_MSG_RESULT(no) | |
312 ]) | |
313 CPPFLAGS="$CPPFLAGS_save" | |
314 fi | |
11579 | 315 |
316 | |
13317
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
317 dnl ####################################################################### |
13774 | 318 dnl # Check for Gadu-Gadu client includes and libraries |
13317
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
319 dnl ####################################################################### |
13774 | 320 AC_ARG_WITH(gadu-includes, [AC_HELP_STRING([--with-gadu-includes=DIR], [compile the GaduGadu plugin against includes in DIR])], [ac_gadu_includes="$withval"], [ac_gadu_includes="no"]) |
321 AC_ARG_WITH(gadu-libs, [AC_HELP_STRING([--with-gadu-libs=DIR], [compile the GaduGadu plugin against the libs in DIR])], [ac_gadu_libs="$withval"], [ac_gadu_libs="no"]) | |
13317
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
322 GADU_CFLAGS="" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
323 GADU_LIBS="" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
324 if test -n "$with_gadu_includes" || test -n "$with_gadu_libs"; then |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
325 gadu_manual_check="yes" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
326 else |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
327 gadu_manual_check="no" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
328 fi |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
329 if test "x$gadu_manual_check" = "xno"; then |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
330 PKG_CHECK_MODULES(GADU, libgadu, [ |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
331 gadu_includes="yes" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
332 gadu_libs="yes" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
333 ], [ |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
334 AC_MSG_RESULT(no) |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
335 ]) |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
336 else |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
337 if test "$ac_gadu_includes" != "no"; then |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
338 GADU_CFLAGS="-I$ac_gadu_includes" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
339 fi |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
340 CPPFLAGS_save="$CPPFLAGS" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
341 CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
342 AC_CHECK_HEADER(libgadu.h, [gadu_includes=yes]) |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
343 CPPFLAGS="$CPPFLAGS_save" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
344 |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
345 if test "$ac_gadu_libs" != "no"; then |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
346 GADU_LIBS="-L$ac_gadu_libs" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
347 fi |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
348 GADU_LIBS="$GADU_LIBS -lgadu" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
349 AC_CHECK_LIB(gadu, gg_libgadu_version, [gadu_libs=yes], , $GADU_LIBS) |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
350 fi |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
351 |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
352 if test "x$gadu_libs" = "xyes"; then |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
353 AC_MSG_CHECKING(for libgadu GPL compatibility) |
13465 | 354 CPPFLAGS_save="$CPPFLAGS" |
355 CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" | |
13319
d5bfc701e1e5
[gaim-migrate @ 15688]
Richard Laager <rlaager@wiktel.com>
parents:
13317
diff
changeset
|
356 AC_TRY_COMPILE([#include <libgadu.h>], [ |
13317
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
357 #ifdef __GG_LIBGADU_HAVE_OPENSSL |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
358 #error "libgadu is not compatible with the GPL when compiled with OpenSSL support." |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
359 #endif |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
360 ], [ |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
361 AC_MSG_RESULT(yes) |
13319
d5bfc701e1e5
[gaim-migrate @ 15688]
Richard Laager <rlaager@wiktel.com>
parents:
13317
diff
changeset
|
362 AC_DEFINE([HAVE_LIBGADU], [1], |
d5bfc701e1e5
[gaim-migrate @ 15688]
Richard Laager <rlaager@wiktel.com>
parents:
13317
diff
changeset
|
363 [Define to 1 if you have libgadu.]) |
13317
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
364 ], [ |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
365 AC_MSG_RESULT(no) |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
366 echo |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
367 echo |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
368 echo "libgadu is not compatible with the GPL when compiled with OpenSSL support." |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
369 echo "Please recompile libgadu using:" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
370 echo "./autogen.sh --disable-libgadu-openssl --disable-static --enable-shared" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
371 echo "Then rerun this ./configure" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
372 echo |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
373 echo |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
374 GADU_LIBS="" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
375 GADU_CFLAGS="" |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
376 gadu_libs=no |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
377 ]) |
13465 | 378 CPPFLAGS="$CPPFLAGS_save" |
13317
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
379 fi |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
380 |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
381 AC_SUBST(GADU_LIBS) |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
382 AC_SUBST(GADU_CFLAGS) |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
383 |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
384 |
2129 | 385 AC_ARG_ENABLE(distrib,,,enable_distrib=no) |
386 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") | |
387 AC_ARG_ENABLE(prpls, [ --disable-prpls don't build dynamic protocol plugins],,enable_prpls=yes) | |
8031 | 388 DYNAMIC_PRPLS=all |
13731 | 389 AC_ARG_WITH(static-prpls, [AC_HELP_STRING([--with-static-prpls], [Link to certain protocols statically])], [STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`], [STATIC_PRPLS=""]) |
8031 | 390 if test "x$STATIC_PRPLS" != "x" -a "x$DYNAMIC_PRPLS" = "xall"; then |
391 DYNAMIC_PRPLS="" | |
392 fi | |
393 | |
2129 | 394 if test "x$STATIC_PRPLS" = "xall" ; then |
11778
a13143b46c28
[gaim-migrate @ 14069]
Gary Kramlich <grim@reaperworld.com>
parents:
11720
diff
changeset
|
395 STATIC_PRPLS="bonjour gg irc jabber msn novell oscar sametime silc simple yahoo zephyr" |
11579 | 396 fi |
12496
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
397 if test "x$have_meanwhile" != "xyes" ; then |
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
398 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'` |
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
399 fi |
11579 | 400 if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then |
401 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'` | |
2129 | 402 fi |
8852 | 403 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then |
8854 | 404 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc//'` |
8852 | 405 fi |
13317
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
406 if test "x$gadu_libs" != "xyes"; then |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
407 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/gg//'` |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
408 fi |
2129 | 409 AC_SUBST(STATIC_PRPLS) |
410 STATIC_LINK_LIBS= | |
411 extern_init= | |
412 load_proto= | |
413 for i in $STATIC_PRPLS ; do | |
11945 | 414 dnl Ugly special case for "libsilcgaim.a": |
415 if test "x$i" = "xsilc"; then | |
416 STATIC_LINK_LIBS="$STATIC_LINK_LIBS protocols/$i/lib${i}gaim.a" | |
417 else | |
418 STATIC_LINK_LIBS="$STATIC_LINK_LIBS protocols/$i/lib$i.a" | |
419 fi | |
5449 | 420 extern_init="$extern_init extern gboolean gaim_init_${i}_plugin();" |
421 load_proto="$load_proto gaim_init_${i}_plugin();" | |
2129 | 422 case $i in |
11579 | 423 bonjour) static_bonjour=yes ;; |
13731 | 424 gg) static_gg=yes ;; |
8637 | 425 irc) static_irc=yes ;; |
426 jabber) static_jabber=yes ;; | |
427 msn) static_msn=yes ;; | |
8675 | 428 novell) static_novell=yes ;; |
8637 | 429 oscar) static_oscar=yes ;; |
10977
2ce8ec01a064
[gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
10975
diff
changeset
|
430 sametime) static_sametime=yes ;; |
8849 | 431 silc) static_silc=yes ;; |
11182 | 432 simple) static_simple=yes ;; |
8637 | 433 toc) static_toc=yes ;; |
434 yahoo) static_yahoo=yes ;; | |
435 zephyr) static_zephyr=yes ;; | |
436 *) echo "Invalid static protocol $i!!" ; exit ;; | |
2129 | 437 esac |
438 done | |
11579 | 439 AM_CONDITIONAL(STATIC_BONJOUR, test "x$static_bonjour" = "xyes" -a "x$howlincludes" = "xyes" -a "x$howllibs" = "xyes") |
2393
a7ecfd3f7714
[gaim-migrate @ 2406]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2330
diff
changeset
|
440 AM_CONDITIONAL(STATIC_GG, test "x$static_gg" = "xyes") |
2244
a647590a0979
[gaim-migrate @ 2254]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2238
diff
changeset
|
441 AM_CONDITIONAL(STATIC_IRC, test "x$static_irc" = "xyes") |
a647590a0979
[gaim-migrate @ 2254]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2238
diff
changeset
|
442 AM_CONDITIONAL(STATIC_JABBER, test "x$static_jabber" = "xyes") |
a647590a0979
[gaim-migrate @ 2254]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2238
diff
changeset
|
443 AM_CONDITIONAL(STATIC_MSN, test "x$static_msn" = "xyes") |
8675 | 444 AM_CONDITIONAL(STATIC_NOVELL, test "x$static_novell" = "xyes") |
2244
a647590a0979
[gaim-migrate @ 2254]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2238
diff
changeset
|
445 AM_CONDITIONAL(STATIC_OSCAR, test "x$static_oscar" = "xyes") |
12496
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
446 AM_CONDITIONAL(STATIC_SAMETIME, test "x$static_sametime" = "xyes" -a "x$have_meanwhile" = "xyes") |
8851 | 447 AM_CONDITIONAL(STATIC_SILC, test "x$static_silc" = "xyes" -a "x$silcincludes" = "xyes" -a "x$silcclient" = "xyes") |
11181 | 448 AM_CONDITIONAL(STATIC_SIMPLE, test "x$static_simple" = "xyes") |
2244
a647590a0979
[gaim-migrate @ 2254]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2238
diff
changeset
|
449 AM_CONDITIONAL(STATIC_TOC, test "x$static_toc" = "xyes") |
a647590a0979
[gaim-migrate @ 2254]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2238
diff
changeset
|
450 AM_CONDITIONAL(STATIC_YAHOO, test "x$static_yahoo" = "xyes") |
a647590a0979
[gaim-migrate @ 2254]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2238
diff
changeset
|
451 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes") |
2129 | 452 AC_SUBST(STATIC_LINK_LIBS) |
11862 | 453 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init static void static_proto_init() { $load_proto }, |
3662
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
454 [Loads static protocol plugin module initialization functions.]) |
2129 | 455 |
11579 | 456 AC_ARG_WITH(dynamic_prpls, [AC_HELP_STRING([--with-dynamic-prpls], [specify which protocols to build dynamically])], [DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`]) |
7373
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
457 if test "x$DYNAMIC_PRPLS" = "xall" ; then |
11778
a13143b46c28
[gaim-migrate @ 14069]
Gary Kramlich <grim@reaperworld.com>
parents:
11720
diff
changeset
|
458 DYNAMIC_PRPLS="bonjour gg irc jabber msn novell oscar sametime silc simple yahoo zephyr" |
11579 | 459 fi |
12496
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
460 if test "x$have_meanwhile" != "xyes"; then |
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
461 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'` |
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
462 fi |
11579 | 463 if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then |
464 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'` | |
7373
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
465 fi |
8852 | 466 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then |
8854 | 467 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc//'` |
8852 | 468 fi |
13317
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
469 if test "x$gadu_libs" != "xyes"; then |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
470 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/gg//'` |
41747a38a1a8
[gaim-migrate @ 15686]
Richard Laager <rlaager@wiktel.com>
parents:
13293
diff
changeset
|
471 fi |
7373
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
472 AC_SUBST(DYNAMIC_PRPLS) |
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
473 for i in $DYNAMIC_PRPLS ; do |
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
474 case $i in |
11579 | 475 bonjour) dynamic_bonjour=yes ;; |
8637 | 476 gg) dynamic_gg=yes ;; |
477 irc) dynamic_irc=yes ;; | |
478 jabber) dynamic_jabber=yes ;; | |
479 msn) dynamic_msn=yes ;; | |
8675 | 480 novell) dynamic_novell=yes ;; |
8637 | 481 oscar) dynamic_oscar=yes ;; |
10977
2ce8ec01a064
[gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
10975
diff
changeset
|
482 sametime) dynamic_sametime=yes ;; |
8849 | 483 silc) dynamic_silc=yes ;; |
11181 | 484 simple) dynamic_simple=yes ;; |
8637 | 485 toc) dynamic_toc=yes ;; |
486 yahoo) dynamic_yahoo=yes ;; | |
487 zephyr) dynamic_zephyr=yes ;; | |
488 *) echo "Invalid dynamic protocol $i!!" ; exit ;; | |
7373
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
489 esac |
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
490 done |
11579 | 491 AM_CONDITIONAL(DYNAMIC_BONJOUR, test "x$dynamic_bonjour" = "xyes" -a "x$bonjourincludes" = "xyes" -a "x$bonjourclient" = "xyes") |
7373
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
492 AM_CONDITIONAL(DYNAMIC_GG, test "x$dynamic_gg" = "xyes") |
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
493 AM_CONDITIONAL(DYNAMIC_IRC, test "x$dynamic_irc" = "xyes") |
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
494 AM_CONDITIONAL(DYNAMIC_JABBER, test "x$dynamic_jabber" = "xyes") |
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
495 AM_CONDITIONAL(DYNAMIC_MSN, test "x$dynamic_msn" = "xyes") |
8675 | 496 AM_CONDITIONAL(DYNAMIC_NOVELL, test "x$dynamic_novell" = "xyes") |
7373
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
497 AM_CONDITIONAL(DYNAMIC_OSCAR, test "x$dynamic_oscar" = "xyes") |
12496
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
498 AM_CONDITIONAL(DYNAMIC_SAMETIME, test "x$dynamic_sametime" = "xyes" -a "x$have_meanwhile" = "xyes") |
8852 | 499 AM_CONDITIONAL(DYNAMIC_SILC, test "x$dynamic_silc" = "xyes" -a "x$silcincludes" = "xyes" -a "x$silcclient" = "xyes") |
11181 | 500 AM_CONDITIONAL(DYNAMIC_SIMPLE, test "x$dynamic_simple" = "xyes") |
7373
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
501 AM_CONDITIONAL(DYNAMIC_TOC, test "x$dynamic_toc" = "xyes") |
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
502 AM_CONDITIONAL(DYNAMIC_YAHOO, test "x$dynamic_yahoo" = "xyes") |
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
503 AM_CONDITIONAL(DYNAMIC_ZEPHYR, test "x$dynamic_zephyr" = "xyes") |
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
504 |
12600
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
505 AC_ARG_ENABLE(mono, [ --enable-mono compile with Mono runtime support],,enable_mono=no) |
2129 | 506 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) |
507 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes) | |
12286
255e6912607b
[gaim-migrate @ 14590]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12263
diff
changeset
|
508 AC_ARG_ENABLE(tcl, [ --disable-tcl compile without Tcl scripting],,enable_tcl=yes) |
6694 | 509 AC_ARG_WITH(tclconfig, [ --with-tclconfig=DIR directory containing tclConfig.sh]) |
510 AC_ARG_ENABLE(tk, [ --disable-tk compile without Tcl support for Tk],,enable_tk=yes) | |
511 AC_ARG_WITH(tkconfig, [ --with-tkconfig=DIR directory containing tkConfig.sh]) | |
3802 | 512 AC_ARG_ENABLE(gtkspell, [ --disable-gtkspell compile without GtkSpell automatic spell checking],,enable_gtkspell=yes) |
2430
0ba75351a01b
[gaim-migrate @ 2443]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2416
diff
changeset
|
513 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) |
12600
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
514 AC_ARG_ENABLE(fatal-asserts, [ --enable-fatal-asserts make assertions fatal (useful for debugging)],,enable_fatal_asserts=no) |
12384
718106aec3d4
[gaim-migrate @ 14690]
Richard Laager <rlaager@wiktel.com>
parents:
12374
diff
changeset
|
515 dnl We know Gaim won't compile with deprecated APIs disabled. |
718106aec3d4
[gaim-migrate @ 14690]
Richard Laager <rlaager@wiktel.com>
parents:
12374
diff
changeset
|
516 dnl We have no desire to support two different versions of the |
718106aec3d4
[gaim-migrate @ 14690]
Richard Laager <rlaager@wiktel.com>
parents:
12374
diff
changeset
|
517 dnl same code when it's not necessary, so we're sticking with |
718106aec3d4
[gaim-migrate @ 14690]
Richard Laager <rlaager@wiktel.com>
parents:
12374
diff
changeset
|
518 dnl the deprecated APIs in many cases. |
718106aec3d4
[gaim-migrate @ 14690]
Richard Laager <rlaager@wiktel.com>
parents:
12374
diff
changeset
|
519 dnl This option is being left in case things change. |
718106aec3d4
[gaim-migrate @ 14690]
Richard Laager <rlaager@wiktel.com>
parents:
12374
diff
changeset
|
520 dnl AC_ARG_ENABLE(deprecated, [ --disable-deprecated compile without deprecated API usage],,enable_deprecated=yes) |
12600
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
521 AC_ARG_ENABLE(fortify, [ --disable-fortify compile without FORTIFY_SOURCE support],,enable_fortify=yes) |
2129 | 522 AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes) |
4157 | 523 AC_ARG_ENABLE(sm, [ --disable-sm compile without X session management support],,enable_sm=yes) |
12034 | 524 AC_ARG_WITH(krb4, [ --with-krb4=PREFIX compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no") |
525 AC_ARG_WITH(zephyr, [ --with-zephyr=PREFIX compile Zephyr plugin against external libzephyr],zephyr="$withval",zephyr="no") | |
8849 | 526 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") |
2129 | 527 |
8849 | 528 AC_CHECK_HEADER(sys/utsname.h) |
529 AC_CHECK_FUNC(uname) | |
8378 | 530 |
12600
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
531 if test "x$enable_debug" = "xyes" ; then |
8525
d8dfab355d2c
[gaim-migrate @ 9264]
Christian Hammond <chipx86@chipx86.com>
parents:
8485
diff
changeset
|
532 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) |
13741 | 533 enable_fatal_asserts="yes" |
12600
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
534 fi |
12435
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
535 |
12600
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
536 if test "x$enable_fatal_asserts" = "xyes" ; then |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
537 AC_DEFINE(GAIM_FATAL_ASSERTS, 1, [Define to make assertions fatal (useful for debugging).]) |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
538 fi |
12435
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
539 |
12600
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
540 if test "x$enable_deprecated" = "xno"; then |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
541 DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
542 fi |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
543 |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
544 if test "x$GCC" = "xyes"; then |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
545 dnl We enable -Wall later. |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
546 dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags. |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
547 dnl This leads to warnings we don't want. |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
548 CFLAGS=`echo $CFLAGS |$sedpath 's/-Wall//'` |
12438
3ac0000247e9
[gaim-migrate @ 14745]
Richard Laager <rlaager@wiktel.com>
parents:
12435
diff
changeset
|
549 |
12600
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
550 dnl ENABLE WARNINGS SUPPORTED BY THE VERSION OF GCC IN USE |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
551 dnl |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
552 dnl Future Possibilities |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
553 dnl |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
554 dnl Consider adding -Wbad-function-cast. |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
555 dnl This leads to spurious warnings using GPOINTER_TO_INT(), et al. directly on a function call. |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
556 dnl We'd need an intermediate variable. |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
557 dnl |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
558 dnl Consider adding -Wfloat-equal. |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
559 dnl This leads to warnings with Perl. |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
560 dnl Perhaps we could write ugly configure magic and pass -Wno-float-equal down to that subdirectory. |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
561 dnl On the other hand, it's probably actually broken, so maybe the Perl folks should fix that? |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
562 dnl |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
563 dnl Consider removing -Wno-sign-compare (from the -Wextra set) and fixing all those cases. |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
564 dnl This is likely non-trivial. |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
565 dnl |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
566 for newflag in \ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
567 "-Waggregate-return" \ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
568 "-Wcast-align" \ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
569 "-Wdeclaration-after-statement" \ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
570 "-Werror-implicit-function-declaration" \ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
571 "-Wextra -Wno-sign-compare -Wno-unused-parameter" \ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
572 "-Winit-self" \ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
573 "-Wmissing-declarations" \ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
574 "-Wmissing-prototypes" \ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
575 "-Wnested-externs" \ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
576 "-Wpointer-arith" \ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
577 "-Wundef" \ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
578 ; do |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
579 orig_CFLAGS="$CFLAGS" |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
580 CFLAGS="$CFLAGS $newflag" |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
581 AC_MSG_CHECKING(for $newflag option to gcc) |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
582 AC_TRY_COMPILE([], [ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
583 int main() {return 0;} |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
584 ], [ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
585 AC_MSG_RESULT(yes) |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
586 CFLAGS="$orig_CFLAGS" |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
587 DEBUG_CFLAGS="$DEBUG_CFLAGS $newflag" |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
588 ], [ |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
589 AC_MSG_RESULT(no) |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
590 CFLAGS="$orig_CFLAGS" |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
591 ]) |
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
592 done |
12435
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
593 |
12600
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
594 if test "x$enable_fortify" = "xyes"; then |
12435
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
595 AC_MSG_CHECKING(for FORTIFY_SOURCE support) |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
596 AC_TRY_COMPILE([#include <features.h>], [ |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
597 int main() { |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
598 #if !(__GNUC_PREREQ (4, 1) \ |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
599 || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (4, 0)) \ |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
600 || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (3, 4) \ |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
601 && __GNUC_MINOR__ == 4 \ |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
602 && (__GNUC_PATCHLEVEL__ > 2 \ |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
603 || (__GNUC_PATCHLEVEL__ == 2 && __GNUC_RH_RELEASE__ >= 8)))) |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
604 #error No FORTIFY_SOURCE support |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
605 #endif |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
606 return 0; |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
607 } |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
608 ], [ |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
609 AC_MSG_RESULT(yes) |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
610 DEBUG_CFLAGS="$DEBUG_CFLAGS -D_FORTIFY_SOURCE=2" |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
611 ], [ |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
612 AC_MSG_RESULT(no) |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
613 ]) |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
614 fi |
8525
d8dfab355d2c
[gaim-migrate @ 9264]
Christian Hammond <chipx86@chipx86.com>
parents:
8485
diff
changeset
|
615 |
12435
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
616 DEBUG_CFLAGS="-Wall $DEBUG_CFLAGS" |
8f98014a4e7d
[gaim-migrate @ 14742]
Richard Laager <rlaager@wiktel.com>
parents:
12423
diff
changeset
|
617 CFLAGS="-g $CFLAGS" |
7021 | 618 fi |
6723
296c45dd9a51
[gaim-migrate @ 7250]
Christian Hammond <chipx86@chipx86.com>
parents:
6722
diff
changeset
|
619 AC_SUBST(CFLAGS) |
296c45dd9a51
[gaim-migrate @ 7250]
Christian Hammond <chipx86@chipx86.com>
parents:
6722
diff
changeset
|
620 |
3551 | 621 AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR([ |
3425 | 622 *** GLib 2.0 is required to build Gaim; please make sure you have the GLib |
2129 | 623 *** development headers installed. The latest version of GLib is |
624 *** always available at http://www.gtk.org/.])) | |
3551 | 625 AM_PATH_GTK_2_0(2.0.0,,AC_MSG_ERROR([ |
3425 | 626 *** GTK+ 2.0 is required to build Gaim; please make sure you have the GTK+ |
2129 | 627 *** development headers installed. The latest version of GTK+ is |
10626
06f5cc17cddc
[gaim-migrate @ 12101]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10622
diff
changeset
|
628 *** always available at http://www.gtk.org/.])) |
2129 | 629 |
3425 | 630 AC_PATH_PROG(gaimpath, gaim) |
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6321
diff
changeset
|
631 AC_SUBST(GTK_CFLAGS) |
6371
8f94cce8faa5
[gaim-migrate @ 6876]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
632 AC_SUBST(GLIB_CFLAGS) |
2129 | 633 |
4884 | 634 AC_PATH_XTRA |
5344 | 635 # We can't assume that $x_libraries will be set, because autoconf does not |
636 # set it in the case when the X libraries are in a standard place. | |
637 # Ditto for $x_includes | |
12502 | 638 if test X"$x_libraries" = X"" || test X"$x_libraries" = XNONE; then |
5344 | 639 x_libpath_add= |
640 else | |
641 x_libpath_add="-L$x_libraries" | |
642 fi | |
12502 | 643 if test X"$x_includes" = X"" || test X"$x_includes" = XNONE; then |
5344 | 644 x_incpath_add= |
645 else | |
646 x_incpath_add="-I$x_includes" | |
647 fi | |
4157 | 648 |
8665
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
649 dnl ####################################################################### |
11055 | 650 dnl # Check for DBUS libraries |
651 dnl ####################################################################### | |
652 | |
12499 | 653 AC_ARG_ENABLE(dbus, [ --enable-dbus enable DBUS support],,enable_dbus=yes) |
11055 | 654 |
11146 | 655 if test "x$enable_dbus" = "xyes" ; then |
11055 | 656 AC_CHECK_PROG(enable_dbus, dbus-binding-tool, yes, no) |
657 fi | |
658 | |
11146 | 659 if test "x$enable_dbus" = "xyes" ; then |
13731 | 660 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.35 dbus-glib-1 >= 0.35], |
11055 | 661 [ |
662 AC_SUBST(DBUS_CFLAGS) | |
11070
fdb8ba7a4857
[gaim-migrate @ 13069]
Richard Laager <rlaager@wiktel.com>
parents:
11067
diff
changeset
|
663 AC_SUBST(DBUS_LIBS) |
fdb8ba7a4857
[gaim-migrate @ 13069]
Richard Laager <rlaager@wiktel.com>
parents:
11067
diff
changeset
|
664 enable_dbus=yes |
11067 | 665 ], |
666 [ | |
13170
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
667 AC_MSG_RESULT(no) |
11067 | 668 enable_dbus=no |
11055 | 669 ]) |
11067 | 670 fi |
671 | |
13731 | 672 dnl Why do we need python? |
11146 | 673 |
674 dnl Python scripts are used to auto-generate about 3000 lines of C | |
675 dnl and XML code that wraps (part of) the existing Gaim API so that | |
676 dnl it is now accessible through DBUS. | |
677 | |
678 dnl Python is only required if --enable-dbus is used, and only for | |
679 dnl the build process to generate the code, not for running gaim. | |
680 dnl This autogenerated code is system-independent, so in principle we | |
681 dnl can generate all of it before shipping. But I thought adding | |
13632 | 682 dnl auto-generated stuff to the repository is inelegant. |
683 dnl Alternatively, these python scripts could be rewritten | |
684 dnl in C (brrrr ...). | |
11146 | 685 |
12584
8e15977b9705
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
686 AC_ARG_WITH([python], |
13771
463259ea22ff
[gaim-migrate @ 16183]
Etan Reisner <pidgin@unreliablesource.net>
parents:
13746
diff
changeset
|
687 AC_HELP_STRING([--with-python=PATH], |
13731 | 688 [which python interpreter to use for dbus code generation]), |
12584
8e15977b9705
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
689 PYTHON=$withval) |
11356 | 690 |
11146 | 691 if test "x$enable_dbus" = "xyes" ; then |
12584
8e15977b9705
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
692 if test -z "$PYTHON" ; then |
8e15977b9705
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
693 AC_PATH_PROG([PYTHON], [python], [no]) |
8e15977b9705
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
694 fi |
8e15977b9705
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
695 |
8e15977b9705
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
696 if test x"$python" = x"no" ; then |
11146 | 697 AC_MSG_WARN([python interpreter not found in your path]) |
698 enable_dbus=no | |
699 fi | |
700 fi | |
701 | |
702 if test "x$enable_dbus" = "xyes" ; then | |
703 if $PYTHON -c "import sys; sys.exit(sys.version[[:3]] >= '2.4')" ; then | |
704 AC_MSG_WARN([python version >= 2.4 required]) | |
705 enable_dbus=no | |
12584
8e15977b9705
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
706 fi |
11146 | 707 fi |
708 | |
13490
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
709 dnl ########################################################################### |
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
710 dnl # Find the D-Bus services dir. |
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
711 dnl # |
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
712 dnl # This is a 3 step process that |
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
713 dnl # |
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
714 dnl # 1. checks if --with-dbus-services was set, if so use that. |
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
715 dnl # 2. checks if --prefix was given, if so use that. |
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
716 dnl # 3. fallbacks to installing into what should be the correct system |
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
717 dnl # directories. |
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
718 dnl # |
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
719 dnl # This is still prone to error if one of the legacy directories exist |
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
720 dnl # although a newer dbus is installed. But I have tried to order the |
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
721 dnl # directory searching to keep this situation at a minimum. |
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
722 dnl ########################################################################### |
13731 | 723 AC_ARG_WITH(dbus-services, [ --with-dbus-services=<dir> where the D-Bus services directory is located.]) |
11351 | 724 |
13588
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
725 DBUS_SERVICES_DIR="" |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
726 |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
727 if test x"$enable_dbus" = "xyes" ; then |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
728 AC_MSG_CHECKING([location of the D-Bus services directory]) |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
729 if ! test -z "$with_dbus_services" ; then |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
730 if ! test -d "$with_dbus_services" ; then |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
731 AC_MSG_ERROR([$with_dbus_services does not exist, if this is the correct location please make sure that it exists.]) |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
732 fi |
13490
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
733 |
13588
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
734 DBUS_SERVICES_DIR="$with_dbus_services" |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
735 else |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
736 if test x"$prefix" = x"NONE" ; then |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
737 dnl # no prefix given, so we look for the correct dbus system paths. |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
738 dnl # if a prefix is given, we use it. |
13490
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
739 |
13588
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
740 serviceprefixes="$datadir $libdir /usr/share /usr/local/share" |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
741 DBUS_SERVICES_DIR="" |
13490
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
742 |
13588
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
743 for d in $serviceprefixes ; do |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
744 dir="$d/dbus-1/services" |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
745 if test -d $dir ; then |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
746 DBUS_SERVICES_DIR="$dir" |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
747 break |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
748 fi |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
749 done |
13490
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
750 |
13588
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
751 if test -z $DBUS_SERVICES_DIR ; then |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
752 AC_MSG_ERROR([D-Bus services directory was not found! Please use --with-dbus-services and specify it's location.]) |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
753 fi |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
754 else |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
755 DBUS_SERVICES_DIR="$datadir/dbus-1/services" |
11903 | 756 fi |
13490
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
757 fi |
13588
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
758 AC_MSG_RESULT([$DBUS_SERVICES_DIR]) |
bbf2e601be82
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13574
diff
changeset
|
759 AC_DEFINE(HAVE_DBUS, 1, [Define if we are re using DBUS.]) |
13490
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
760 fi |
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
761 AC_SUBST(DBUS_SERVICES_DIR) |
11351 | 762 |
11356 | 763 if test "x$enable_dbus" = "xyes" ; then |
764 echo "Building with DBUS support" | |
765 else | |
766 echo "Building without DBUS support" | |
767 fi | |
768 | |
769 AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes") | |
770 | |
11055 | 771 dnl ####################################################################### |
8665
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
772 dnl # Check for startup notification |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
773 dnl ####################################################################### |
13731 | 774 AC_ARG_ENABLE(startup-notification, [AC_HELP_STRING([--disable-startup-notification], [compile without startup notification support])], , enable_startup_notification=yes) |
7168
282887c9e3dc
[gaim-migrate @ 7735]
Christian Hammond <chipx86@chipx86.com>
parents:
7155
diff
changeset
|
775 |
8665
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
776 if test "x$enable_startup_notification" = "xyes"; then |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
777 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5, |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
778 [ |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
779 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.]) |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
780 enable_startup_notification=yes |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
781 ], |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
782 [ |
13170
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
783 AC_MSG_RESULT(no) |
8665
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
784 enable_startup_notification=no |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
785 ]) |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
786 |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
787 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
788 AC_SUBST(STARTUP_NOTIFICATION_LIBS) |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
789 fi |
7168
282887c9e3dc
[gaim-migrate @ 7735]
Christian Hammond <chipx86@chipx86.com>
parents:
7155
diff
changeset
|
790 |
8089 | 791 |
8665
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
792 dnl ####################################################################### |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
793 dnl # Check for stuff needed by the evolution integration plugin. |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
794 dnl ####################################################################### |
8089 | 795 build_gevo=no |
8665
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
796 AC_ARG_ENABLE(gevolution, [ --disable-gevolution compile without the Gaim-Evolution plugin],,enable_gevolution=yes) |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
797 |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
798 if test "x$enable_gevolution" = "xyes"; then |
11694 | 799 evo_deps="libebook-1.2 libedata-book-1.2" |
10835 | 800 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, [ |
801 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.]) | |
802 build_gevo=yes | |
13170
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
803 ], [ |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
804 AC_MSG_RESULT(yes) |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
805 build_gevo=no |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
806 ]) |
10835 | 807 if test "x$build_gevo" = "xno"; then |
11694 | 808 evo_deps="libebook-1.0 libedata-book-1.0" |
10835 | 809 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, [ |
810 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.]) | |
811 build_gevo=yes | |
13170
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
812 ], [ |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
813 AC_MSG_RESULT(yes) |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
814 build_gevo=no |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
815 ]) |
10835 | 816 fi |
8089 | 817 |
8665
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
818 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS) |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
819 AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS) |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
820 fi |
8089 | 821 |
822 AM_CONDITIONAL(BUILD_GEVOLUTION, test "x$build_gevo" = "xyes") | |
823 | |
8665
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
824 dnl ####################################################################### |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
825 dnl # Check for XScreenSaver |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
826 dnl ####################################################################### |
2129 | 827 if test "x$enable_xss" = "xyes" ; then |
2182
665e1dbeb8da
[gaim-migrate @ 2192]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2181
diff
changeset
|
828 old_LIBS="$LIBS" |
5344 | 829 LIBS="$LIBS $GTK_LIBS $x_libpath_add" |
2129 | 830 XSS_LIBS="no" |
831 XSS_HEADERS="no" | |
4884 | 832 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"],[],[-lX11 -lXext -lm]) |
833 AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_LIBS $X_EXTRA_LIBS -lXss"],[],[-lX11 -lXext -lm]) | |
2129 | 834 if test \! "$XSS_LIBS" = "no"; then |
6844
ffc40208c1e9
[gaim-migrate @ 7389]
Christian Hammond <chipx86@chipx86.com>
parents:
6836
diff
changeset
|
835 oldCPPFLAGS="$CPPFLAGS" |
10608 | 836 CPPFLAGS="$CPPFLAGS $x_incpath_add" |
2129 | 837 AC_TRY_COMPILE([ |
4884 | 838 #include <X11/Xlib.h> |
2129 | 839 #include <X11/extensions/scrnsaver.h> |
4884 | 840 ],[],[ |
841 AC_DEFINE(USE_SCREENSAVER, 1, [Define if we're using XScreenSaver.])],[enable_xss=no] | |
842 ) | |
6844
ffc40208c1e9
[gaim-migrate @ 7389]
Christian Hammond <chipx86@chipx86.com>
parents:
6836
diff
changeset
|
843 CPPFLAGS="$oldCPPFLAGS" |
2129 | 844 else |
845 XSS_LIBS="" | |
846 enable_xss=no | |
847 fi | |
2182
665e1dbeb8da
[gaim-migrate @ 2192]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2181
diff
changeset
|
848 LIBS="$old_LIBS" |
2129 | 849 else |
850 XSS_LIBS="" | |
851 enable_xss=no | |
852 fi | |
853 AC_SUBST(XSS_LIBS) | |
854 | |
855 | |
8665
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
856 dnl ####################################################################### |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
857 dnl # Check for X session management libs |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
858 dnl ####################################################################### |
4157 | 859 if test "x$enable_sm" = "xyes"; then |
860 enable_sm=no | |
5344 | 861 AC_CHECK_LIB(SM, SmcSaveYourselfDone, found_sm_lib=true, , [$x_libpath_add -lICE]) |
4157 | 862 if test "$found_sm_lib" = "true"; then |
6844
ffc40208c1e9
[gaim-migrate @ 7389]
Christian Hammond <chipx86@chipx86.com>
parents:
6836
diff
changeset
|
863 oldCPPFLAGS="$CPPFLAGS" |
10608 | 864 CPPFLAGS="$CPPFLAGS $x_incpath_add" |
5344 | 865 AC_CHECK_HEADERS(X11/SM/SMlib.h, SM_LIBS="$x_libpath_add -lSM -lICE" enable_sm=yes) |
6844
ffc40208c1e9
[gaim-migrate @ 7389]
Christian Hammond <chipx86@chipx86.com>
parents:
6836
diff
changeset
|
866 CPPFLAGS="$oldCPPFLAGS" |
4157 | 867 fi |
868 else | |
869 SM_LIBS="" | |
870 enable_sm=no | |
871 fi | |
872 AC_SUBST(SM_LIBS) | |
873 if test "$enable_sm" = "yes"; then | |
874 AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.]) | |
875 fi | |
876 | |
877 | |
8992 | 878 AC_DEFUN([GC_TM_GMTOFF], |
3203 | 879 [AC_REQUIRE([AC_STRUCT_TM])dnl |
880 AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff, | |
881 [AC_TRY_COMPILE([#include <sys/types.h> | |
882 #include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_gmtoff;], | |
883 ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)]) | |
884 if test "$ac_cv_struct_tm_gmtoff" = yes; then | |
3662
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
885 AC_DEFINE(HAVE_TM_GMTOFF, 1, [tm_gmtoff is available.]) |
3203 | 886 fi |
887 ]) | |
888 | |
889 GC_TM_GMTOFF | |
890 | |
11660
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
891 dnl ####################################################################### |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
892 dnl # Check for Mono support |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
893 dnl ####################################################################### |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
894 |
11662
4117f696638e
[gaim-migrate @ 13947]
Gary Kramlich <grim@reaperworld.com>
parents:
11660
diff
changeset
|
895 if test x"$enable_mono" = x"yes" ; then |
11660
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
896 AC_MSG_CHECKING(for Mono compile flags) |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
897 MONO_CFLAGS=`pkg-config --cflags mono 2> /dev/null` |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
898 if test $? != 0 ; then |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
899 AC_MSG_RESULT([not found, building without mono.]) |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
900 MONO_CFLAGS= |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
901 MONO_LIBS= |
11662
4117f696638e
[gaim-migrate @ 13947]
Gary Kramlich <grim@reaperworld.com>
parents:
11660
diff
changeset
|
902 enable_mono=no |
11660
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
903 else |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
904 MONO_LIBS=`pkg-config --libs mono 2> /dev/null` |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
905 AC_MSG_RESULT(ok) |
13731 | 906 |
11660
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
907 oldLIBS="$LIBS" |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
908 LIBS="$LIBS $MONO_LIBS" |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
909 AC_MSG_CHECKING(for libmono) |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
910 AC_CHECK_FUNCS(mono_jit_init, [], enable_mono=no) |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
911 LIBS="$oldLIBS" |
13731 | 912 |
11660
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
913 oldCPPFLAGS="$CPPFLAGS" |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
914 CPPFLAGS="$CPPFLAGS $MONO_CFLAGS" |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
915 AC_CHECK_HEADERS(mono/jit/jit.h, [], enable_mono=no) |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
916 AC_CHECK_HEADERS(mono/metadata/object.h, [], enable_mono=no) |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
917 CPPFLAGS="$oldCPPFLAGS" |
13731 | 918 |
11660
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
919 AC_DEFINE(ENABLE_MONO, 1, [Define if mono enabled.]) |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
920 fi |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
921 else |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
922 MONO_CFLAGS= |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
923 MONO_LIBS= |
11662
4117f696638e
[gaim-migrate @ 13947]
Gary Kramlich <grim@reaperworld.com>
parents:
11660
diff
changeset
|
924 enable_mono=no |
11660
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
925 fi |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
926 |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
927 AC_SUBST(MONO_CFLAGS) |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
928 AC_SUBST(MONO_LIBS) |
11662
4117f696638e
[gaim-migrate @ 13947]
Gary Kramlich <grim@reaperworld.com>
parents:
11660
diff
changeset
|
929 AM_CONDITIONAL(USE_MONO, test x"$enable_mono" = x"yes") |
3203 | 930 |
8665
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
931 dnl ####################################################################### |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
932 dnl # Check for Perl support |
8c4f33ffe17c
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
933 dnl ####################################################################### |
10975
e5f99cbcda9c
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
934 if test "$enable_plugins" = no ; then |
e5f99cbcda9c
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
935 enable_perl=no |
e5f99cbcda9c
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
936 fi |
e5f99cbcda9c
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
937 |
2129 | 938 if test "$enable_perl" = yes ; then |
939 AC_PATH_PROG(perlpath, perl) | |
940 AC_MSG_CHECKING(for Perl compile flags) | |
941 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null` | |
942 if test "_$PERL_CFLAGS" = _ ; then | |
943 AC_MSG_RESULT([not found, building without perl.]) | |
944 enable_perl = no | |
945 else | |
946 PERL_LIBS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null |$sedpath 's/-lgdbm //'` | |
947 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-ldb //'` | |
948 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lndbm //'` | |
949 if test "$system" = "Linux"; then | |
950 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lnsl //'` | |
951 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lposix //'` | |
952 fi | |
953 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lc //'` | |
954 AC_MSG_RESULT(ok) | |
3931 | 955 |
6844
ffc40208c1e9
[gaim-migrate @ 7389]
Christian Hammond <chipx86@chipx86.com>
parents:
6836
diff
changeset
|
956 oldLIBS="$LIBS" |
3931 | 957 LIBS="$LIBS $PERL_LIBS" |
958 AC_MSG_CHECKING(for libperl) | |
959 AC_CHECK_FUNCS(perl_run, [], enable_perl=no) | |
6844
ffc40208c1e9
[gaim-migrate @ 7389]
Christian Hammond <chipx86@chipx86.com>
parents:
6836
diff
changeset
|
960 LIBS="$oldLIBS" |
10460 | 961 |
962 oldCPPFLAGS="$CPPFLAGS" | |
963 CPPFLAGS="$CPPFLAGS $PERL_CFLAGS" | |
964 AC_CHECK_HEADERS(EXTERN.h) | |
965 AC_CHECK_HEADERS(perl.h, [], enable_perl=no, | |
966 [#if HAVE_EXTERN_H | |
967 # include <EXTERN.h> | |
968 #endif]) | |
969 CPPFLAGS="$oldCPPFLAGS" | |
2129 | 970 fi |
971 fi | |
972 | |
3931 | 973 if test "$enable_perl" = yes ; then |
7200
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
974 AC_PROG_PERL_MODULES(ExtUtils::MakeMaker, , have_makemaker=no) |
3931 | 975 |
7200
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
976 if test "x$have_makemaker" = "xno"; then |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
977 enable_perl=no |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
978 PERL_CFLAGS= |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
979 PERL_LIBS= |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
980 AM_CONDITIONAL(USE_PERL, false) |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
981 AC_MSG_WARN(Compiling perl requires ExtUtils::MakeMaker) |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
982 else |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
983 AC_SUBST(PERL_CFLAGS) |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
984 AC_SUBST(PERL_LIBS) |
12120
b8c5b67a5475
[gaim-migrate @ 14420]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12067
diff
changeset
|
985 AM_CONDITIONAL(USE_PERL, true) |
b8c5b67a5475
[gaim-migrate @ 14420]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12067
diff
changeset
|
986 AC_DEFINE(HAVE_PERL, [1], [Compile with support for perl]) |
4298 | 987 |
7200
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
988 dnl This is almost definitely wrong, but in case there's |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
989 dnl something I'm missing, I'll leave it in. |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
990 AC_CHECK_FUNCS(Perl_eval_pv) |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
991 |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
992 AC_MSG_CHECKING(for old perl) |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
993 PERL_OLD=`$perlpath -e 'if($]<5.006){printf"yes\n";}else{printf"no\n";}'` |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
994 |
7200
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
995 if test "x$PERL_OLD" = "xyes"; then |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
996 AC_DEFINE(OLD_PERL, 1, [Define if old perl is installed.]) |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
997 AC_MSG_RESULT(yes) |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
998 else |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
999 AC_MSG_RESULT(no) |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1000 fi |
6586
c3388f361bdf
[gaim-migrate @ 7108]
Christian Hammond <chipx86@chipx86.com>
parents:
6535
diff
changeset
|
1001 |
7200
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1002 if test "x$prefix" != "xNONE"; then |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1003 prefix=`eval echo $prefix` |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1004 PERL_MM_PARAMS="INSTALLDIRS=vendor PREFIX=$prefix" |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1005 fi |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1006 |
7200
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1007 AC_ARG_WITH(perl-lib, |
13731 | 1008 [ --with-perl-lib=[site|vendor|DIR] specify where to install the |
12034 | 1009 Perl libraries for gaim. Default is site.], |
7200
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1010 [ |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1011 if test "x$withval" = xsite; then |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1012 PERL_MM_PARAMS="" |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1013 elif test "x$withval" = xvendor; then |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1014 if test -z "`$perlpath -v | grep '5\.0'`"; then |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1015 PERL_MM_PARAMS="INSTALLDIRS=vendor" |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1016 else |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1017 PERL_MM_PARAMS="INSTALLDIRS=vendor PREFIX=`perl -e 'use Config; print $Config{prefix}'`" |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1018 fi |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1019 else |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1020 PERL_MM_PARAMS="INSTALLDIRS=vendor PREFIX=$withval" |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1021 fi |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1022 ]) |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1023 |
7200
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1024 AC_SUBST(PERL_MM_PARAMS) |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1025 |
7200
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1026 AC_MSG_CHECKING(for DynaLoader.a) |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1027 DYNALOADER_A=`echo $PERL_LDFLAGS | $perlpath -pe 's/^(.* )*([[^ ]]*DynaLoader\.a).*/\2/'` |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1028 |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1029 dnl Don't check libperl.a if dynaloader.a wasn't found. |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1030 if test -n "$DYNALOADER_A"; then |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1031 AC_MSG_RESULT(yes) |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1032 |
7200
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1033 dnl Find either libperl.a or libperl.so |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1034 AC_MSG_CHECKING(for libperl.a or libperl.so) |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1035 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 } } };'` |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1036 if test -z "$LIBPERL_A"; then |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1037 AC_MSG_RESULT(no) |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1038 DYNALOADER_A= |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1039 else |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1040 AC_MSG_RESULT(yes) |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1041 |
7200
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1042 if test "$LIBPERL_A" = "-lperl"; then |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1043 LIBPERL_A= |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1044 fi |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1045 fi |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1046 |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1047 PERL_LIBS=`echo $PERL_LIBS | $perlpath -pe 's/^(.* )*[[^ ]]*DynaLoader\.a/\1libperl_dynaloader.la/'` |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1048 |
7200
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1049 if test -n "$LIBPERL_A"; then |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1050 PERL_LIBS=`echo $PERL_LDFLAGS | $sedpath -e 's/-lperl /libperl_orig.la /' -e 's/-lperl$/libperl_orig.la$/'` |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1051 fi |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1052 |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1053 AC_SUBST(DYNALOADER_A) |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1054 AC_SUBST(LIBPERL_A) |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1055 else |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1056 AC_MSG_RESULT(no) |
2ddd145c9420
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1057 fi |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1058 fi |
3931 | 1059 else |
1060 PERL_CFLAGS= | |
1061 PERL_LIBS= | |
5232
2d58a9a46292
[gaim-migrate @ 5602]
Christian Hammond <chipx86@chipx86.com>
parents:
5229
diff
changeset
|
1062 AM_CONDITIONAL(USE_PERL, false) |
3931 | 1063 fi |
1064 | |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1065 dnl ####################################################################### |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1066 dnl # SSL support |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1067 dnl # |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1068 dnl # Thanks go to Evolution for the checks. |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1069 dnl ####################################################################### |
6734
bf77a7db61c2
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1070 |
bf77a7db61c2
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1071 dnl These two are inverses of each other <-- stolen from evolution! |
bf77a7db61c2
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1072 |
bf77a7db61c2
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1073 AC_ARG_ENABLE(gnutls, |
13731 | 1074 [ --enable-gnutls=[yes,no] attempt to use GNUTLS for SSL support (preferred) [default=yes]], |
6734
bf77a7db61c2
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1075 [enable_gnutls="$enableval"], |
6757
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1076 [enable_gnutls="yes"]) |
6734
bf77a7db61c2
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1077 |
6757
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1078 AC_ARG_ENABLE(nss, |
13731 | 1079 [ --enable-nss=[yes,no,static] attempt to use Mozilla libnss for SSL support [default=yes]], |
6757
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1080 [enable_nss="$enableval"], |
6968 | 1081 [enable_nss="yes"]) |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1082 |
12678 | 1083 msg_ssl="None (MSN will not work without SSL!)" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1084 |
6757
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1085 dnl # |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1086 dnl # Check for GNUTLS if it's specified. |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1087 dnl # |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1088 if test "x$enable_gnutls" != "xno"; then |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1089 enable_gnutls="no" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1090 prefix=`eval echo $prefix` |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1091 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1092 AC_ARG_WITH(gnutls-includes, |
13731 | 1093 [ --with-gnutls-includes=PREFIX location of GNUTLS includes.], |
6757
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1094 [ with_gnutls_includes="$withval" ], |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1095 [ with_gnutls_includes="$prefix/include" ]) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1096 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1097 have_gnutls_includes="no" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1098 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1099 if test "x$with_gnutls_includes" != "xno"; then |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1100 CPPFLAGS_save="$CPPFLAGS" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1101 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1102 AC_MSG_CHECKING(for GNUTLS includes) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1103 AC_MSG_RESULT("") |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1104 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1105 CPPFLAGS="$CPPFLAGS -I$with_gnutls_includes" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1106 AC_CHECK_HEADERS(gnutls/gnutls.h, [ gnutls_includes="yes" ]) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1107 CPPFLAGS="$CPPFLAGS_save" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1108 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1109 if test "x$gnutls_includes" != "xno" -a \ |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1110 "x$gnutls_includes" != "x"; then |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1111 have_gnutls_includes="yes" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1112 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1113 GNUTLS_CFLAGS="-I$with_gnutls_includes" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1114 else |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1115 GNUTLS_CFLAGS="" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1116 fi |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1117 else |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1118 AC_MSG_CHECKING(for GNUTLS includes) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1119 AC_MSG_RESULT(no) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1120 fi |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1121 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1122 AC_ARG_WITH(gnutls-libs, |
13731 | 1123 [ --with-gnutls-libs=PREFIX location of GNUTLS libraries.], |
6757
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1124 [ with_gnutls_libs="$withval" ]) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1125 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1126 if test "x$with_gnutls_libs" != "xno" -a \ |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1127 "x$have_gnutls_includes" != "xno"; then |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1128 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1129 LDFLAGS_save="$LDFLAGS" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1130 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1131 case $with_gnutls_libs in |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1132 ""|-L*) ;; |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1133 *) with_gnutls_libs="-L$with_gnutls_libs" ;; |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1134 esac |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1135 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1136 AC_CACHE_CHECK([for GNUTLS libraries], gnutls_libs, |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1137 [ |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1138 LDFLAGS="$LDFLAGS $with_gnutls_libs -lgnutls -lgcrypt" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1139 AC_TRY_LINK_FUNC(gnutls_init, gnutls_libs="yes", gnutls_libs="no") |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1140 LDFLAGS="$LDFLAGS_save" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1141 ]) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1142 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1143 if test "x$gnutls_libs" != "xno"; then |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1144 AC_DEFINE(HAVE_GNUTLS, 1, [Define if you have GNUTLS]) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1145 AC_DEFINE(HAVE_SSL) |
7155
6448e0163d7b
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1146 msg_gnutls="GNUTLS" |
6757
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1147 GNUTLS_LIBS="$with_gnutls_libs -lgnutls -lgcrypt" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1148 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1149 enable_gnutls="yes" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1150 else |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1151 GNUTLS_CFLAGS="" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1152 GNUTLS_LIBS="" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1153 fi |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1154 else |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1155 AC_MSG_CHECKING(for GNUTLS libraries) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1156 AC_MSG_RESULT(no) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1157 fi |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1158 else |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1159 GNUTLS_CFLAGS="" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1160 GNUTLS_LIBS="" |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1161 fi |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1162 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1163 AC_SUBST(GNUTLS_CFLAGS) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1164 AC_SUBST(GNUTLS_LIBS) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1165 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1166 AM_CONDITIONAL(USE_GNUTLS, test "x$enable_gnutls" = "xyes") |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1167 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1168 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1169 dnl # |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1170 dnl # Check for NSS if it's specified, or if GNUTLS checks failed. |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1171 dnl # |
7155
6448e0163d7b
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1172 if test "x$enable_nss" != "xno"; then |
6757
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1173 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1174 AC_ARG_WITH(nspr-includes, |
13731 | 1175 [ --with-nspr-includes=PREFIX specify location of Mozilla nspr4 includes.], |
6757
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1176 [with_nspr_includes="$withval"]) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1177 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1178 AC_ARG_WITH(nspr-libs, |
13731 | 1179 [ --with-nspr-libs=PREFIX specify location of Mozilla nspr4 libs.], |
6757
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1180 [with_nspr_libs="$withval"]) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1181 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1182 AC_ARG_WITH(nss-includes, |
13731 | 1183 [ --with-nss-includes=PREFIX specify location of Mozilla nss3 includes.], |
6757
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1184 [with_nss_includes="$withval"]) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1185 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1186 AC_ARG_WITH(nss-libs, |
13731 | 1187 [ --with-nss-libs=PREFIX specify location of Mozilla nss3 libs.], |
6757
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1188 [with_nss_libs="$withval"]) |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1189 |
ddee8d7daf1b
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1190 |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1191 if test -n "$with_nspr_includes" || test -n "$with_nspr_libs" || \ |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1192 test -n "$with_nss_includes" || test -n "$with_nss_libs" || |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1193 test "x$enable_nss" = "xstatic"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1194 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1195 nss_manual_check="yes" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1196 else |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1197 nss_manual_check="no" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1198 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1199 |
6738
6c95f01aaf49
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1200 enable_nss="no" |
6c95f01aaf49
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1201 |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1202 if test "x$nss_manual_check" = "xno"; then |
12507 | 1203 if `$PKG_CONFIG --exists mozilla-nss`; then |
13170
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
1204 PKG_CHECK_MODULES(NSS, mozilla-nss, [ |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
1205 have_nss="yes" |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
1206 ], [ |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
1207 AC_MSG_RESULT(no) |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
1208 have_nss="no" |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
1209 ]) |
12507 | 1210 mozilla_nspr="mozilla-nspr" |
1211 mozilla_nss="mozilla-nss" | |
1212 else | |
1213 if `$PKG_CONFIG --exists nss`; then | |
13170
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
1214 PKG_CHECK_MODULES(NSS, nss, [ |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
1215 have_nss="yes" |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
1216 ], [ |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
1217 AC_MSG_RESULT(no) |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
1218 ]) |
12507 | 1219 mozilla_nspr="nspr" |
1220 mozilla_nss="nss" | |
1221 fi | |
1222 fi | |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1223 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1224 if test "x$have_nss" = "xyes"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1225 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1226 AC_DEFINE(HAVE_NSS, 1, [Define if you have Mozilla NSS]) |
6734
bf77a7db61c2
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1227 AC_DEFINE(HAVE_SSL, 1, [Define if you have SSL]) |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1228 |
7155
6448e0163d7b
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1229 msg_nss="Mozilla NSS" |
6738
6c95f01aaf49
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1230 enable_nss="yes" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1231 else |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1232 nss_manual_check="yes" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1233 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1234 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1235 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1236 if test "x$nss_manual_check" = "xyes"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1237 mozilla_nss="" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1238 have_nspr_includes="no" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1239 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1240 if test "x$with_nspr_includes" != "xno"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1241 CPPFLAGS_save=$CPPFLAGS |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1242 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1243 AC_MSG_CHECKING(for Mozilla nspr4 includes in $with_nspr_includes) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1244 AC_MSG_RESULT("") |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1245 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1246 CPPFLAGS="$CPPFLAGS -I$with_nspr_includes" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1247 AC_CHECK_HEADERS(nspr.h prio.h, [ moz_nspr_includes="yes" ]) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1248 CPPFLAGS=$CPPFLAGS_save |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1249 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1250 if test "x$moz_nspr_includes" != "xno" -a \ |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1251 "x$moz_nspr_includes" != "x"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1252 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1253 have_nspr_includes="yes" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1254 NSPR_CFLAGS="-I$with_nspr_includes" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1255 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1256 else |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1257 AC_MSG_CHECKING(for Mozilla nspr4 includes) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1258 AC_MSG_RESULT(no) |
7087
bbf7f4604140
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1259 |
bbf7f4604140
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1260 enable_nss="no" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1261 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1262 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1263 have_nspr_libs="no" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1264 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1265 if test "x$with_nspr_libs" != "xno" -a \ |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1266 "x$have_nspr_includes" != "xno"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1267 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1268 CFLAGS_save=$CFLAGS |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1269 LDFLAGS_save=$LDFLAGS |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1270 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1271 if test "$enable_nss" = "static"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1272 if test -z "$with_nspr_libs"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1273 AC_MSG_ERROR( |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1274 [Static linkage requested, but path to nspr libraries not set.] |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1275 [Please specify the path to libnspr4.a] |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1276 [Example: --with-nspr-libs=/usr/lib]) |
7087
bbf7f4604140
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1277 |
bbf7f4604140
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1278 enable_nss="no" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1279 else |
12038 | 1280 nsprlibs="$LIBDL $with_nspr_libs/libplc4.a $with_nspr_libs/libplds4.a $with_nspr_libs/libnspr4.a $PTHREAD_LIB" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1281 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1282 else |
12038 | 1283 nsprlibs="$LIBDL -lplc4 -lplds4 -lnspr4 $PTHREAD_LIB" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1284 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1285 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1286 AC_CACHE_CHECK([for Mozilla nspr libraries], moz_nspr_libs, |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1287 [ |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1288 LIBS_save=$LIBS |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1289 CFLAGS="$CFLAGS $NSPR_CFLAGS" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1290 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1291 LIBS="$nsprlibs" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1292 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1293 if test "x$with_nspr_libs" != "x"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1294 LDFLAGS="$LDFLAGS -L$with_nspr_libs" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1295 else |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1296 LDFLAGS="$LDFLAGS" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1297 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1298 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1299 AC_TRY_LINK_FUNC(PR_Init, |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1300 [moz_nspr_libs="yes"], |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1301 [moz_nspr_libs="no"]) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1302 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1303 CFLAGS=$CFLAGS_save |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1304 LDFLAGS=$LDFLAGS_save |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1305 LIBS=$LIBS_save |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1306 ]) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1307 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1308 if test "x$moz_nspr_libs" != "xno"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1309 have_nspr_libs="yes" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1310 NSPR_LIBS="-L$with_nspr_libs $nsprlibs" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1311 else |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1312 NSPR_CFLAGS="" |
7087
bbf7f4604140
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1313 enable_nss="no" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1314 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1315 else |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1316 AC_MSG_CHECKING(for Mozilla nspr4 libraries) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1317 AC_MSG_RESULT(no) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1318 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1319 |
6968 | 1320 have_nss_includes="no" |
1321 | |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1322 if test "x$with_nss_includes" != "xno" -a \ |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1323 "x$have_nspr_libs" != "xno"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1324 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1325 CPPFLAGS_save=$CPPFLAGS |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1326 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1327 AC_MSG_CHECKING(for Mozilla nss3 includes in $with_nss_includes) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1328 AC_MSG_RESULT("") |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1329 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1330 if test "x$with_nspr_includes" != "x"; then |
6990 | 1331 CPPFLAGS="$CPPFLAGS -I$with_nspr_includes -I$with_nss_includes" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1332 else |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1333 CPPFLAGS="$CPPFLAGS -I$with_nss_includes" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1334 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1335 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1336 AC_CHECK_HEADERS(nss.h ssl.h smime.h, |
6968 | 1337 [moz_nss_includes="yes"], |
1338 [moz_nss_includes="no"]) | |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1339 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1340 CPPFLAGS=$CPPFLAGS_save |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1341 |
6968 | 1342 if test "x$moz_nss_includes" = "xyes"; then |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1343 have_nss_includes="yes" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1344 NSS_CFLAGS="-I$with_nss_includes" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1345 else |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1346 NSPR_CFLAGS="" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1347 NSPR_LIBS="" |
7252
1a808d72caff
[gaim-migrate @ 7829]
Christian Hammond <chipx86@chipx86.com>
parents:
7233
diff
changeset
|
1348 enable_nss="no" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1349 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1350 else |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1351 AC_MSG_CHECKING(for Mozilla nss3 includes) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1352 AC_MSG_RESULT(no) |
7087
bbf7f4604140
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1353 enable_nss="no" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1354 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1355 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1356 if test "x$with_nss_libs" != "xno" -a \ |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1357 "x$have_nss_includes" != "xno"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1358 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1359 LDFLAGS_save=$LDFLAGS |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1360 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1361 if test "$enable_nss" = "static"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1362 if test -z "$with_nss_libs"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1363 AC_MSG_ERROR( |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1364 [Static linkage requested, but path to nss libraries not set.] |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1365 [Please specify the path to libnss3.a] |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1366 [Example: --with-nspr-libs=/usr/lib/mozilla]) |
7087
bbf7f4604140
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1367 enable_nss="no" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1368 else |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1369 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" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1370 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1371 case "$host" in |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1372 *solaris*) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1373 nsslibs="$nsslibs $with_nss_libs/libfreeb1.a" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1374 ;; |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1375 esac |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1376 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1377 else |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1378 nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1379 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1380 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1381 AC_CACHE_CHECK([for Mozilla nss libraries], moz_nss_libs, |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1382 [ |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1383 LIBS_save=$LIBS |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1384 LDFLAGS="$LDFLAGS -L$with_nspr_libs $nsprlibs -L$with_nss_libs $nsslibs" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1385 LIBS="$nsslibs $nsprlibs" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1386 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1387 AC_TRY_LINK_FUNC(NSS_Init, |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1388 [moz_nss_libs="yes"], |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1389 [moz_nss_libs="no"]) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1390 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1391 if test "x$moz_nss_libs" = "xno"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1392 nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1393 LDFLAGS="$LDFLAGS -L$with_nspr_libs $nsprlibs -L$with_nss_libs $nsslibs" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1394 AC_TRY_LINK_FUNC(NSS_Init, |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1395 [moz_nss_libs="yes"], |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1396 [moz_nss_libs="no"]) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1397 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1398 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1399 LDFLAGS=$LDFLAGS_save |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1400 LIBS=$LIBS_save |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1401 ]) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1402 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1403 if test "x$moz_nss_libs" != "xno"; then |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1404 AC_DEFINE(HAVE_NSS) |
6734
bf77a7db61c2
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1405 AC_DEFINE(HAVE_SSL) |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1406 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1407 NSS_LIBS="-L$with_nss_libs $nsslibs" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1408 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1409 if test "$enable_nss" = "static"; then |
7155
6448e0163d7b
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1410 msg_nss="Mozilla NSS (static)" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1411 else |
7155
6448e0163d7b
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1412 msg_nss="Mozilla NSS" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1413 fi |
6738
6c95f01aaf49
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1414 |
6c95f01aaf49
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1415 enable_nss="yes" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1416 else |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1417 NSS_CFLAGS="" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1418 NSPR_CFLAGS="" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1419 NSPR_LIBS="" |
7087
bbf7f4604140
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1420 enable_nss="no" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1421 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1422 else |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1423 AC_MSG_CHECKING(for Mozilla nss libraries) |
6968 | 1424 AC_MSG_RESULT(no) |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1425 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1426 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1427 NSS_CFLAGS="$NSPR_CFLAGS $NSS_CFLAGS" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1428 NSS_LIBS="$NSPR_LIBS $NSS_LIBS" |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1429 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1430 |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1431 AC_SUBST(NSS_CFLAGS) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1432 AC_SUBST(NSS_LIBS) |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1433 fi |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1434 |
6738
6c95f01aaf49
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1435 AM_CONDITIONAL(USE_NSS, test "x$enable_nss" = "xyes") |
6c95f01aaf49
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1436 |
7155
6448e0163d7b
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1437 if test "x$msg_nss" != "x" -a "x$msg_gnutls" != "x"; then |
6448e0163d7b
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1438 msg_ssl="$msg_nss and $msg_gnutls" |
6448e0163d7b
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1439 elif test "x$msg_nss" != "x"; then |
6448e0163d7b
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1440 msg_ssl=$msg_nss |
6448e0163d7b
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1441 elif test "x$msg_gnutls" != "x"; then |
6448e0163d7b
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1442 msg_ssl=$msg_gnutls |
6448e0163d7b
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1443 fi |
6448e0163d7b
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1444 |
6694 | 1445 dnl Check for Tcl |
10975
e5f99cbcda9c
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
1446 if test "$enable_plugins" = no; then |
e5f99cbcda9c
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
1447 enable_tcl=no |
e5f99cbcda9c
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
1448 fi |
e5f99cbcda9c
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
1449 |
6694 | 1450 if test "$enable_tcl" = yes; then |
1451 AC_MSG_CHECKING([for tclConfig.sh]) | |
1452 TCLCONFIG=no | |
6710 | 1453 TCLCONFIGDIRS="/usr/lib \ |
13569
73dc01e3b81a
[gaim-migrate @ 15948]
Richard Laager <rlaager@wiktel.com>
parents:
13560
diff
changeset
|
1454 /usr/lib64 \ |
6710 | 1455 /usr/lib/tcl8.4 \ |
1456 /usr/lib/tcl8.3 \ | |
1457 /usr/lib/tcl8.2 \ | |
7596 | 1458 /System/Library/Tcl/8.3 \ |
6710 | 1459 /usr/local/lib" |
1460 for dir in $with_tclconfig $TCLCONFIGDIRS; do | |
6694 | 1461 if test -f $dir/tclConfig.sh; then |
1462 TCLCONFIG=$dir/tclConfig.sh | |
1463 AC_MSG_RESULT([yes ($TCLCONFIG)]) | |
1464 fi | |
1465 done | |
6697 | 1466 if test "$TCLCONFIG" = "no"; then |
6694 | 1467 AC_MSG_RESULT([no]) |
1468 enable_tcl=no | |
1469 else | |
1470 . $TCLCONFIG | |
6709 | 1471 AC_MSG_CHECKING([Tcl version compatability]) |
7822 | 1472 if test "$TCL_MAJOR_VERSION" -ne 8 -o "$TCL_MINOR_VERSION" -lt 3; then |
1473 AC_MSG_RESULT([bad, $TCL_VERSION found but 8.3 or later required]) | |
6709 | 1474 enable_tcl=no |
1475 else | |
1476 AC_MSG_RESULT([ok, $TCL_VERSION]) | |
1477 eval "TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"" | |
1478 AC_MSG_CHECKING([for Tcl linkability]) | |
6713 | 1479 oldCPPFLAGS=$CPPFLAGS |
7351 | 1480 CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC -I$TCL_PREFIX/include" |
6709 | 1481 oldLIBS=$LIBS |
1482 LIBS="$LIBS $TCL_LIB_SPEC" | |
1483 AC_TRY_LINK([#include <tcl.h>], | |
11999
ea5e84686331
[gaim-migrate @ 14292]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11955
diff
changeset
|
1484 [Tcl_Interp *interp=NULL; Tcl_Init(interp)], |
6734
bf77a7db61c2
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1485 [AC_MSG_RESULT([yes]);enable_tcl=yes], |
bf77a7db61c2
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1486 [AC_MSG_RESULT([no]);enable_tcl=no]) |
6713 | 1487 CPPFLAGS="$oldCPPFLAGS" |
6709 | 1488 LIBS="$oldLIBS" |
1489 fi | |
6694 | 1490 fi |
1491 fi | |
1492 | |
1493 if test "$enable_tcl" = yes; then | |
1494 AM_CONDITIONAL(USE_TCL, true) | |
1495 TCL_LIBS=$TCL_LIB_SPEC | |
1496 AC_SUBST(TCL_LIBS) | |
10628 | 1497 AC_DEFINE(HAVE_TCL, [1], [Compile with support for the Tcl toolkit]) |
7351 | 1498 TCL_CFLAGS="$TCL_INCLUDE_SPEC -I$TCL_PREFIX/include" |
6717 | 1499 if test "x$GCC" = "xyes"; then |
1500 TCL_CFLAGS="$TCL_CFLAGS -fno-strict-aliasing" | |
1501 fi | |
6712 | 1502 AC_SUBST(TCL_CFLAGS) |
6694 | 1503 else |
1504 AM_CONDITIONAL(USE_TCL, false) | |
1505 fi | |
1506 | |
1507 dnl Check for Tk | |
1508 if test "$enable_tcl" = yes -a "$enable_tk" = yes; then | |
1509 AC_MSG_CHECKING([for tkConfig.sh]) | |
1510 TKCONFIG=no | |
6715 | 1511 TKCONFIGDIRS="/usr/lib \ |
13569
73dc01e3b81a
[gaim-migrate @ 15948]
Richard Laager <rlaager@wiktel.com>
parents:
13560
diff
changeset
|
1512 /usr/lib64 \ |
73dc01e3b81a
[gaim-migrate @ 15948]
Richard Laager <rlaager@wiktel.com>
parents:
13560
diff
changeset
|
1513 /usr/lib/tk8.4 \ |
6715 | 1514 /usr/lib/tk8.3 \ |
1515 /usr/lib/tk8.2 \ | |
1516 /usr/local/lib" | |
1517 for dir in $with_tkconfig $TKCONFIGDIRS; do | |
6694 | 1518 if test -f $dir/tkConfig.sh; then |
1519 TKCONFIG=$dir/tkConfig.sh | |
1520 AC_MSG_RESULT([yes ($TKCONFIG)]) | |
1521 fi | |
1522 done | |
1523 if test "$TKCONFIG" = "no"; then | |
1524 AC_MSG_RESULT([no]) | |
1525 enable_tk=no | |
1526 else | |
1527 . $TKCONFIG | |
1528 eval "TK_LIB_SPEC=\"$TK_LIB_SPEC\"" | |
1529 AC_MSG_CHECKING([for Tk linkability]) | |
6716 | 1530 oldCPPFLAGS=$CPPFLAGS |
1531 CPPFLAGS="$CPPFLAGS $TCL_CFLAGS" | |
6694 | 1532 oldLIBS=$LIBS |
1533 LIBS="$LIBS $TCL_LIB_SPEC $TK_LIB_SPEC" | |
11999
ea5e84686331
[gaim-migrate @ 14292]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11955
diff
changeset
|
1534 AC_TRY_LINK([#include <tk.h>], |
ea5e84686331
[gaim-migrate @ 14292]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11955
diff
changeset
|
1535 [Tcl_Interp *interp=NULL; Tcl_Init(interp); Tk_Init(interp);], |
6694 | 1536 [AC_MSG_RESULT([yes]);enable_tk=yes], |
1537 [AC_MSG_RESULT([no]);enable_tk=no]) | |
6716 | 1538 CPPFLAGS="$oldCPPFLAGS" |
6694 | 1539 LIBS="$oldLIBS" |
1540 fi | |
6710 | 1541 else |
1542 enable_tk=no | |
6694 | 1543 fi |
1544 | |
1545 if test "$enable_tk" = yes; then | |
1546 AM_CONDITIONAL(USE_TK, true) | |
1547 AC_DEFINE(HAVE_TK, [1], [Compile with support for the Tk toolkit]) | |
1548 TK_LIBS=$TK_LIB_SPEC | |
1549 AC_SUBST(TK_LIBS) | |
1550 else | |
1551 AM_CONDITIONAL(USE_TK, false) | |
1552 fi | |
1553 | |
3802 | 1554 dnl Thanks, Evan. |
1555 if test "$enable_gtkspell" = yes ; then | |
13174 | 1556 PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, [], [ |
13170
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
1557 AC_MSG_RESULT(no) |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
1558 enable_gtkspell=no |
5d5e9c65fa42
[gaim-migrate @ 15533]
Richard Laager <rlaager@wiktel.com>
parents:
13152
diff
changeset
|
1559 ]) |
3802 | 1560 if test "$enable_gtkspell" = "yes" ; then |
1561 AC_SUBST(GTKSPELL_CFLAGS) | |
12067
e859c1663a27
[gaim-migrate @ 14362]
Richard Laager <rlaager@wiktel.com>
parents:
12061
diff
changeset
|
1562 AC_SUBST(GTKSPELL_LIBS) |
6734
bf77a7db61c2
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1563 AC_DEFINE(USE_GTKSPELL,,[do we have gtkspell?]) |
3802 | 1564 fi |
1565 fi | |
1566 | |
2129 | 1567 if test "$ac_cv_cygwin" = yes ; then |
1568 LDADD="$LDADD -static" | |
3662
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
1569 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1570 fi |
2129 | 1571 |
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6321
diff
changeset
|
1572 AC_SUBST(DEBUG_CFLAGS) |
2129 | 1573 AC_SUBST(LDADD) |
1574 AC_SUBST(LIBS) | |
1575 | |
1576 if test "x$enable_plugins" = "xyes" ; then | |
3662
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
1577 AC_DEFINE(GAIM_PLUGINS, 1, [Define if plugins are enabled.]) |
2129 | 1578 AM_CONDITIONAL(PLUGINS, test "x$enable_plugins" = "xyes") |
1579 else | |
3411
5df423e0bca8
[gaim-migrate @ 3430]
Christian Hammond <chipx86@chipx86.com>
parents:
3408
diff
changeset
|
1580 AM_CONDITIONAL(PLUGINS, false) |
2129 | 1581 enable_plugins=no |
1582 enable_prpls=no | |
1583 fi | |
1584 | |
1585 if test "x$enable_prpls" = "xyes" ; then | |
1586 AM_CONDITIONAL(PRPLS, test "x$enable_plugins" = "xyes") | |
1587 else | |
3411
5df423e0bca8
[gaim-migrate @ 3430]
Christian Hammond <chipx86@chipx86.com>
parents:
3408
diff
changeset
|
1588 AM_CONDITIONAL(PRPLS, false) |
2129 | 1589 enable_prpls=no |
1590 fi | |
1591 | |
1592 dnl checks for jabber | |
1593 dnl AC_CHECK_SIZEOF(short) | |
1594 AC_CHECK_FUNCS(snprintf connect) | |
12508 | 1595 AC_SUBST(SASL_LIBS) |
12600
e856f985a0b9
[gaim-migrate @ 14934]
Richard Laager <rlaager@wiktel.com>
parents:
12584
diff
changeset
|
1596 AC_ARG_ENABLE(cyrus-sasl, AC_HELP_STRING([--enable-cyrus-sasl], [enable Cyrus SASL support for jabberd]), enable_cyrus_sasl=$enableval, enable_cyrus_sasl=no) |
12508 | 1597 if test "x-$enable_cyrus_sasl" = "x-yes" ; then |
1598 AC_CHECK_LIB(sasl2, sasl_client_init, [AC_DEFINE(HAVE_CYRUS_SASL, [1], [Define to 1 if Cyrus SASL is present]) SASL_LIBS=-"lsasl2"], [AC_ERROR(Cyrus SASL library not found)]) | |
1599 fi | |
2129 | 1600 |
1601 dnl checks for zephyr | |
3662
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
1602 AC_DEFINE(ZEPHYR_INT32, long, [Size of an int32.]) |
2129 | 1603 AC_SUBST(KRB4_CFLAGS) |
1604 AC_SUBST(KRB4_LDFLAGS) | |
1605 AC_SUBST(KRB4_LIBS) | |
1606 if test "$kerberos" != "no" ; then | |
1607 if test "$kerberos" != "yes" ; then | |
1608 KRB4_CFLAGS="-I${kerberos}/include" | |
1609 if test -d "$kerberos/include/kerberosIV" ; then | |
1610 KRB4_CFLAGS="$KRB4_CFLAGS -I${kerberos}/include/kerberosIV" | |
1611 fi | |
1612 KRB4_LDFLAGS="-L${kerberos}/lib" | |
1613 elif test -d /usr/local/include/kerberosIV ; then | |
1614 KRB4_CFLAGS="-I/usr/local/include/kerberosIV" | |
1615 elif test -d /usr/include/kerberosIV ; then | |
1616 KRB4_CFLAGS="-I/usr/include/kerberosIV" | |
1617 fi | |
3662
4fcd36091737
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
1618 AC_DEFINE(ZEPHYR_USES_KERBEROS, 1, [Define if kerberos should be used in Zephyr.]) |
2129 | 1619 |
1620 orig_LDFLAGS="$LDFLAGS" | |
1621 LDFLAGS="$LDFLAGS $KRB4_LDFLAGS" | |
1622 AC_CHECK_LIB(krb4, krb_rd_req, | |
1623 [KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"], | |
1624 [AC_CHECK_LIB(krb, krb_rd_req, | |
1625 [KRB4_LIBS="-lkrb -ldes"], | |
1626 [AC_ERROR(Kerberos 4 libraries not found)], | |
1627 -ldes)], | |
1628 -ldes425 -lkrb5 -lk5crypto -lcom_err) | |
1629 orig_LIBS="$LIBS" | |
1630 LIBS="$LIBS $KRB4_LIBS" | |
1631 AC_CHECK_FUNCS(krb_set_key krb_rd_req krb_get_lrealm) | |
1632 AC_CHECK_FUNCS(krb_get_err_text krb_log) | |
1633 LIBS="$orig_LIBS" | |
1634 LDFLAGS="$orig_LDFLAGS" | |
1635 fi | |
6150 | 1636 |
8378 | 1637 dnl checks for an external libzephyr |
1638 AC_SUBST(ZEPHYR_CFLAGS) | |
1639 AC_SUBST(ZEPHYR_LDFLAGS) | |
1640 AC_SUBST(ZEPHYR_LIBS) | |
1641 if test "$zephyr" != "no" ; then | |
1642 if test "$zephyr" != "yes" ; then | |
1643 ZEPHYR_CFLAGS="-I${zephyr}/include" | |
1644 ZEPHYR_LDFLAGS="-L${zephyr}/lib" | |
1645 elif test -d /usr/athena/include/zephyr ; then | |
1646 ZEPHYR_CFLAGS="-I/usr/athena/include" | |
1647 elif test -d /usr/include/zephyr ; then | |
12034 | 1648 ZEPHYR_CFLAGS="-I/usr/include" |
1649 elif test -d /usr/local/include/zephyr ; then | |
1650 ZEPHYR_CFLAGS="-I/usr/local/include" | |
8378 | 1651 fi |
13731 | 1652 AC_DEFINE(LIBZEPHYR_EXT, 1 , [Define if external libzephyr should be used.]) |
8378 | 1653 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") |
1654 orig_LDFLAGS="$LDFLAGS" | |
1655 LDFLAGS="$LDFLAGS $ZEPHYR_LDFLAGS" | |
1656 AC_CHECK_LIB(zephyr, ZInitialize, | |
1657 [ZEPHYR_LIBS="-lzephyr"], | |
1658 [AC_ERROR(Zephyr libraries not found)], | |
1659 -lzephyr) | |
1660 orig_LIBS="$LIBS" | |
1661 LIBS="$orig_LIBS" | |
1662 LDFLAGS="$orig_LDFLAGS" | |
1663 fi | |
1664 | |
10245 | 1665 AM_BINRELOC |
8378 | 1666 |
6150 | 1667 AC_MSG_CHECKING(for me pot o' gold) |
1668 AC_MSG_RESULT(no) | |
2129 | 1669 AC_CHECK_FUNCS(gethostid lrand48) |
1670 AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf) | |
1671 AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h) | |
1672 AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h) | |
1673 AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h) | |
1674 AC_CHECK_HEADERS(termios.h) | |
3194 | 1675 AC_VAR_TIMEZONE_EXTERNALS |
2129 | 1676 |
10925
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1677 dnl ####################################################################### |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1678 dnl # Doxygen Stuff |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1679 dnl ####################################################################### |
13731 | 1680 AC_ARG_ENABLE(doxygen, [AC_HELP_STRING([--enable-doxygen], [enable documentation with doxygen])],,enable_doxygen=yes) |
1681 AC_ARG_ENABLE(dot, [AC_HELP_STRING([--enable-dot], [enable graphs in doxygen via 'dot'])],,enable_dot=yes) | |
10925
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1682 |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1683 if test "x$enable_doxygen" = xyes; then |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1684 AC_CHECK_PROG(DOXYGEN, doxygen, true, false) |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1685 if test $DOXYGEN = false; then |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1686 AC_MSG_WARN([*** doxygen not found, docs will not be available]) |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1687 enable_doxygen=no |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1688 else |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1689 AC_DEFINE_UNQUOTED(HAVE_DOXYGEN, 1, [whether or not we have doxygen]) |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1690 |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1691 if test "x$enable_dot" = xyes; then |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1692 AC_CHECK_PROG(DOT, dot, true, false) |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1693 |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1694 if test $DOT = false; then |
11318 | 1695 enable_dot="no"; |
10925
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1696 AC_MSG_WARN([*** dot not found, graphs will not be available]) |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1697 else |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1698 AC_DEFINE_UNQUOTED(HAVE_DOT, 1, [whether or not we have dot]) |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1699 fi |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1700 else |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1701 AC_MSG_WARN([*** dot not found, graphs will not be available]) |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1702 fi |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1703 fi |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1704 else |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1705 enable_dot="no" |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1706 fi |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1707 |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1708 if test "x$enable_doxygen" = xyes; then |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1709 AM_CONDITIONAL(HAVE_DOXYGEN, true) |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1710 else |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1711 AM_CONDITIONAL(HAVE_DOXYGEN, false) |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1712 fi |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1713 |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1714 AC_SUBST(enable_doxygen) |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1715 AC_SUBST(enable_dot) |
993db24dae16
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1716 |
9146
769d6b6a483c
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1717 AC_CONFIG_COMMANDS_PRE([ |
769d6b6a483c
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1718 if test -e VERSION; then |
769d6b6a483c
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1719 cp -p VERSION VERSION.ac-save |
769d6b6a483c
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1720 fi |
769d6b6a483c
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1721 ]) |
769d6b6a483c
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1722 |
769d6b6a483c
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1723 AC_CONFIG_COMMANDS_POST([ |
769d6b6a483c
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1724 cmp VERSION VERSION.ac-save || touch -r VERSION.ac-save VERSION |
9147
2e2eaa5b6249
[gaim-migrate @ 9931]
Christian Hammond <chipx86@chipx86.com>
parents:
9146
diff
changeset
|
1725 rm -f VERSION.ac-save |
9146
769d6b6a483c
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1726 ]) |
9144
ffff69d81bf4
[gaim-migrate @ 9928]
Christian Hammond <chipx86@chipx86.com>
parents:
9137
diff
changeset
|
1727 |
2129 | 1728 AC_OUTPUT([Makefile |
6968 | 1729 Doxyfile |
10362 | 1730 gaim.apspec |
13490
40c5d0508a1a
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13465
diff
changeset
|
1731 gaim.service |
6968 | 1732 doc/Makefile |
6954 | 1733 doc/gaim.1 |
11147
616feca04ada
[gaim-migrate @ 13226]
Gary Kramlich <grim@reaperworld.com>
parents:
11146
diff
changeset
|
1734 m4macros/Makefile |
6968 | 1735 pixmaps/Makefile |
6954 | 1736 pixmaps/smileys/Makefile |
1737 pixmaps/smileys/default/Makefile | |
8836 | 1738 pixmaps/smileys/none/Makefile |
6954 | 1739 pixmaps/status/Makefile |
1740 pixmaps/status/default/Makefile | |
1741 plugins/Makefile | |
1742 plugins/docklet/Makefile | |
8089 | 1743 plugins/gevolution/Makefile |
6954 | 1744 plugins/gestures/Makefile |
11660
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
1745 plugins/mono/Makefile |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
1746 plugins/mono/api/Makefile |
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
1747 plugins/mono/loader/Makefile |
11087
9e45c457e05a
[gaim-migrate @ 13107]
Christian Muise <christian.muise@gmail.com>
parents:
11082
diff
changeset
|
1748 plugins/musicmessaging/Makefile |
6954 | 1749 plugins/perl/Makefile |
1750 plugins/perl/common/Makefile.PL | |
7016
aa619031193b
[gaim-migrate @ 7579]
Christian Hammond <chipx86@chipx86.com>
parents:
7012
diff
changeset
|
1751 plugins/ssl/Makefile |
6954 | 1752 plugins/tcl/Makefile |
1753 plugins/ticker/Makefile | |
1754 po/Makefile.in | |
1755 sounds/Makefile | |
1756 src/Makefile | |
1757 src/protocols/Makefile | |
11579 | 1758 src/protocols/bonjour/Makefile |
6954 | 1759 src/protocols/gg/Makefile |
1760 src/protocols/irc/Makefile | |
1761 src/protocols/jabber/Makefile | |
1762 src/protocols/msn/Makefile | |
1763 src/protocols/napster/Makefile | |
9144
ffff69d81bf4
[gaim-migrate @ 9928]
Christian Hammond <chipx86@chipx86.com>
parents:
9137
diff
changeset
|
1764 src/protocols/novell/Makefile |
6954 | 1765 src/protocols/oscar/Makefile |
10977
2ce8ec01a064
[gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
10975
diff
changeset
|
1766 src/protocols/sametime/Makefile |
8850 | 1767 src/protocols/silc/Makefile |
11181 | 1768 src/protocols/simple/Makefile |
6954 | 1769 src/protocols/toc/Makefile |
1770 src/protocols/yahoo/Makefile | |
1771 src/protocols/zephyr/Makefile | |
9364 | 1772 gaim.pc |
6954 | 1773 gaim.spec |
6968 | 1774 ]) |
2129 | 1775 |
1776 echo | |
1777 echo $PACKAGE $VERSION | |
1778 | |
1779 echo | |
2725
f3c094e78609
[gaim-migrate @ 2738]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2711
diff
changeset
|
1780 echo Build Protocol Plugins........ : $enable_prpls |
f3c094e78609
[gaim-migrate @ 2738]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2711
diff
changeset
|
1781 echo Protocols to link statically.. : $STATIC_PRPLS |
7373
1dbf83536d83
[gaim-migrate @ 7968]
Christian Hammond <chipx86@chipx86.com>
parents:
7351
diff
changeset
|
1782 echo Protocols to build dynamically : $DYNAMIC_PRPLS |
2129 | 1783 echo |
10814
364a2ef907ae
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10803
diff
changeset
|
1784 echo UI Library.................... : GTK+ 2.x |
7155
6448e0163d7b
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1785 echo SSL Library/Libraries......... : $msg_ssl |
2129 | 1786 echo |
13718 | 1787 echo Build with GStreamer support.. : $enable_gst |
2725
f3c094e78609
[gaim-migrate @ 2738]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2711
diff
changeset
|
1788 echo Build with Plugin support..... : $enable_plugins |
11660
a3302d271199
[gaim-migrate @ 13945]
Gary Kramlich <grim@reaperworld.com>
parents:
11645
diff
changeset
|
1789 echo Build with Mono support....... : $enable_mono |
2725
f3c094e78609
[gaim-migrate @ 2738]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2711
diff
changeset
|
1790 echo Build with Perl support....... : $enable_perl |
6694 | 1791 echo Build with Tcl support........ : $enable_tcl |
1792 echo Build with Tk support......... : $enable_tk | |
4561 | 1793 echo Build with GtkSpell support... : $enable_gtkspell |
11055 | 1794 echo Build with DBUS support....... : $enable_dbus |
11351 | 1795 if test x$enable_dbus = xyes ; then |
13503
d568877d3b40
[gaim-migrate @ 15879]
Etan Reisner <pidgin@unreliablesource.net>
parents:
13502
diff
changeset
|
1796 eval echo DBUS servies directory........ : $DBUS_SERVICES_DIR |
11351 | 1797 fi |
12584
8e15977b9705
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
1798 echo Build with Cyrus SASL support. : $enable_cyrus_sasl |
10140 | 1799 echo Has you....................... : yes |
3802 | 1800 echo |
12508 | 1801 echo |
8378 | 1802 echo Use kerberos 4 with zephyr.... : $kerberos |
1803 echo Use external libzephyr........ : $zephyr | |
1804 echo | |
2725
f3c094e78609
[gaim-migrate @ 2738]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2711
diff
changeset
|
1805 echo Use XScreenSaver Extension.... : $enable_xss |
4157 | 1806 echo Use X Session Management...... : $enable_sm |
7168
282887c9e3dc
[gaim-migrate @ 7735]
Christian Hammond <chipx86@chipx86.com>
parents:
7155
diff
changeset
|
1807 echo Use startup notification.......: $enable_startup_notification |
2129 | 1808 echo |
2725
f3c094e78609
[gaim-migrate @ 2738]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2711
diff
changeset
|
1809 echo Print debugging messages...... : $enable_debug |
2129 | 1810 echo |
2452
824e1afefdd3
[gaim-migrate @ 2465]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2436
diff
changeset
|
1811 eval eval echo Gaim will be installed in $bindir. |
2129 | 1812 if test "x$gaimpath" != "x" ; then |
1813 echo Warning: You have an old copy of gaim at $gaimpath. | |
1814 fi | |
1815 echo | |
1816 echo configure complete, now type \'make\' | |
1817 echo |