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