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