Fri, 21 May 2010 14:39:02 +0000
I accidentally removed this entry in 63bcd26a98405d1f5c23fe863b4c93cde0e1f280 :(. Technically this breaks the string freeze, but the string is already in a number of translations and I need it for the installer, so I'm going to be naughty.
| 2129 | 1 | dnl Process this file with autoconf to produce a configure script. |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
2 | AC_PREREQ([2.50]) |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
3 | |
|
16732
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
4 | # UPDATING VERSION NUMBERS FOR RELEASES |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
5 | # |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
6 | # purple_micro_version += 1 |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
7 | # |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
8 | # If any functions have been added to libpurple, Pidgin, or Finch: |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
9 | # purple_micro_version = 0 |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
10 | # purple_minor_version += 1 |
|
16732
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
11 | # purple_lt_current += 1 |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
12 | # |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
13 | # If backwards compatibility has been broken in libpurple, Pidgin, or Finch: |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
14 | # purple_micro_version = 0 |
|
16699
4e0b13d87131
To do libtool soversioning properly, we need to manage lt_current separately and
Richard Laager <rlaager@pidgin.im>
parents:
16655
diff
changeset
|
15 | # purple_minor_version = 0 |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
16 | # purple_major_version += 1; |
|
16732
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
17 | # purple_lt_current += 1 |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
18 | # |
|
16704
fdfda1dda3a0
Preparing for beta 7
Mark Doliner <markdoliner@pidgin.im>
parents:
16655
diff
changeset
|
19 | # purple_version_suffix should be similar to one of the following: |
|
fdfda1dda3a0
Preparing for beta 7
Mark Doliner <markdoliner@pidgin.im>
parents:
16655
diff
changeset
|
20 | # For beta releases: [beta2] |
|
fdfda1dda3a0
Preparing for beta 7
Mark Doliner <markdoliner@pidgin.im>
parents:
16655
diff
changeset
|
21 | # For code under development: [devel] |
|
fdfda1dda3a0
Preparing for beta 7
Mark Doliner <markdoliner@pidgin.im>
parents:
16655
diff
changeset
|
22 | # For production releases: [] |
|
fdfda1dda3a0
Preparing for beta 7
Mark Doliner <markdoliner@pidgin.im>
parents:
16655
diff
changeset
|
23 | # |
|
16738
0960ccbba64f
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents:
16736
diff
changeset
|
24 | # |
| 19044 | 25 | # If any code has changed in libgnt: |
|
16732
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
26 | # gnt_micro_version += 1 |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
27 | # |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
28 | # If any functions have been added to libgnt: |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
29 | # gnt_micro_version = 0 |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
30 | # gnt_minor_version += 1 |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
31 | # gnt_lt_current += 1 |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
32 | # |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
33 | # If backwards compatibility has been broken in libgnt: |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
34 | # gnt_micro_version = 0 |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
35 | # gnt_minor_version = 0 |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
36 | # gnt_major_version += 1; |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
37 | # gnt_lt_current += 1 |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
38 | # |
|
16738
0960ccbba64f
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents:
16736
diff
changeset
|
39 | # gnt_version_suffix should be similar to one of the following: |
|
0960ccbba64f
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents:
16736
diff
changeset
|
40 | # For beta releases: [beta2] |
|
0960ccbba64f
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents:
16736
diff
changeset
|
41 | # For code under development: [devel] |
|
0960ccbba64f
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents:
16736
diff
changeset
|
42 | # For production releases: [] |
|
0960ccbba64f
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents:
16736
diff
changeset
|
43 | # |
|
0960ccbba64f
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents:
16736
diff
changeset
|
44 | # Make sure to update finch/libgnt/configure.ac with libgnt version changes. |
|
0960ccbba64f
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents:
16736
diff
changeset
|
45 | # |
|
26094
54fe78f3e19f
Prep next.minor for, well, the next minor.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
25912
diff
changeset
|
46 | m4_define([purple_lt_current], [7]) |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
47 | m4_define([purple_major_version], [2]) |
|
26094
54fe78f3e19f
Prep next.minor for, well, the next minor.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
25912
diff
changeset
|
48 | m4_define([purple_minor_version], [7]) |
|
30234
22986ef95d31
Post-release fun.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30233
diff
changeset
|
49 | m4_define([purple_micro_version], [1]) |
|
22986ef95d31
Post-release fun.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30233
diff
changeset
|
50 | m4_define([purple_version_suffix], [devel]) |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
51 | m4_define([purple_version], |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
52 | [purple_major_version.purple_minor_version.purple_micro_version]) |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
53 | m4_define([purple_display_version], purple_version[]m4_ifdef([purple_version_suffix],[purple_version_suffix])) |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
54 | |
|
26094
54fe78f3e19f
Prep next.minor for, well, the next minor.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
25912
diff
changeset
|
55 | m4_define([gnt_lt_current], [7]) |
|
18140
3a40ec9ee97d
Bump the major for libgnt for the awesome workspace support.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18125
diff
changeset
|
56 | m4_define([gnt_major_version], [2]) |
|
26094
54fe78f3e19f
Prep next.minor for, well, the next minor.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
25912
diff
changeset
|
57 | m4_define([gnt_minor_version], [7]) |
|
30234
22986ef95d31
Post-release fun.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30233
diff
changeset
|
58 | m4_define([gnt_micro_version], [1]) |
|
22986ef95d31
Post-release fun.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30233
diff
changeset
|
59 | m4_define([gnt_version_suffix], [devel]) |
|
16738
0960ccbba64f
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents:
16736
diff
changeset
|
60 | m4_define([gnt_version], |
|
0960ccbba64f
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents:
16736
diff
changeset
|
61 | [gnt_major_version.gnt_minor_version.gnt_micro_version]) |
|
0960ccbba64f
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents:
16736
diff
changeset
|
62 | m4_define([gnt_display_version], gnt_version[]m4_ifdef([gnt_version_suffix],[gnt_version_suffix])) |
|
16732
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
63 | |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
64 | |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
65 | AC_INIT([pidgin], [purple_display_version], [devel@pidgin.im]) |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
66 | |
|
22780
c8b56750aa67
I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22758
diff
changeset
|
67 | if test `pwd | wc -w` -ne 1; then |
|
c8b56750aa67
I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22758
diff
changeset
|
68 | AC_MSG_ERROR([ |
|
c8b56750aa67
I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22758
diff
changeset
|
69 | You are attempting to build in a path that contains spaces. This |
|
c8b56750aa67
I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22758
diff
changeset
|
70 | will fail. Relocate this source tree to a path that does not contain |
|
c8b56750aa67
I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22758
diff
changeset
|
71 | spaces and run configure again. |
|
c8b56750aa67
I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22758
diff
changeset
|
72 | ]) |
|
c8b56750aa67
I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22758
diff
changeset
|
73 | fi |
|
c8b56750aa67
I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22758
diff
changeset
|
74 | |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
75 | AC_CANONICAL_HOST |
|
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
76 | AC_CONFIG_HEADERS([config.h]) |
|
24512
1b6566df90b5
Explicitly depend on automake >=1.9, and don't warn about GNU Make-isms.
Will Thompson <resiak@pidgin.im>
parents:
24490
diff
changeset
|
77 | AM_INIT_AUTOMAKE([1.9 -Wno-portability dist-bzip2]) |
| 3174 | 78 | |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
79 | PURPLE_MAJOR_VERSION=purple_major_version |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
80 | PURPLE_MINOR_VERSION=purple_minor_version |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
81 | PURPLE_MICRO_VERSION=purple_micro_version |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
82 | PURPLE_VERSION=[purple_display_version] |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
83 | AC_SUBST(PURPLE_MAJOR_VERSION) |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
84 | AC_SUBST(PURPLE_MINOR_VERSION) |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
85 | AC_SUBST(PURPLE_MICRO_VERSION) |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
86 | AC_SUBST(PURPLE_VERSION) |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
87 | |
|
16732
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
88 | PURPLE_LT_VERSION_INFO="purple_lt_current:purple_micro_version:purple_minor_version" |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
89 | AC_SUBST(PURPLE_LT_VERSION_INFO) |
| 2129 | 90 | |
|
16732
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
91 | GNT_MAJOR_VERSION=gnt_major_version |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
92 | GNT_MINOR_VERSION=gnt_minor_version |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
93 | GNT_MICRO_VERSION=gnt_micro_version |
|
16738
0960ccbba64f
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents:
16736
diff
changeset
|
94 | GNT_VERSION=[gnt_display_version] |
|
16732
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
95 | AC_SUBST(GNT_MAJOR_VERSION) |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
96 | AC_SUBST(GNT_MINOR_VERSION) |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
97 | AC_SUBST(GNT_MICRO_VERSION) |
|
16738
0960ccbba64f
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents:
16736
diff
changeset
|
98 | AC_SUBST(GNT_VERSION) |
|
0960ccbba64f
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents:
16736
diff
changeset
|
99 | |
|
16732
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
100 | GNT_LT_VERSION_INFO="gnt_lt_current:gnt_micro_version:gnt_minor_version" |
|
d611379472ea
Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents:
16729
diff
changeset
|
101 | AC_SUBST(GNT_LT_VERSION_INFO) |
|
15498
2ee3112b6f24
This should be the last of the string changes
Sean Egan <seanegan@pidgin.im>
parents:
15495
diff
changeset
|
102 | |
| 2129 | 103 | AC_PATH_PROG(sedpath, sed) |
| 104 | ||
| 8919 | 105 | dnl Storing configure arguments |
| 106 | AC_DEFINE_UNQUOTED(CONFIG_ARGS, "$ac_configure_args", [configure arguments]) | |
| 107 | ||
| 2129 | 108 | dnl Checks for programs. |
| 109 | AC_PROG_CC | |
|
23352
9714223ca7a7
A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents:
23341
diff
changeset
|
110 | AM_PROG_CC_C_O |
| 2129 | 111 | AC_DISABLE_STATIC |
|
23352
9714223ca7a7
A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents:
23341
diff
changeset
|
112 | AC_PROG_LIBTOOL |
| 2129 | 113 | LIBTOOL="$LIBTOOL --silent" |
| 114 | AC_PROG_INSTALL | |
|
15146
915827bf73d3
[gaim-migrate @ 17870]
Gary Kramlich <grim@reaperworld.com>
parents:
15133
diff
changeset
|
115 | PKG_PROG_PKG_CONFIG |
|
23352
9714223ca7a7
A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents:
23341
diff
changeset
|
116 | AC_FUNC_ALLOCA |
|
17006
9681a0900eb2
With this change, if autoconf doesn't find msgfmt, configure will fail
Ethan Blanton <elb@pidgin.im>
parents:
16977
diff
changeset
|
117 | |
|
30263
c570eb3becca
Build fixes on OpenSolaris. Closes #11841.
Brian Lu <brian.lu@sun.com>
parents:
30234
diff
changeset
|
118 | dnl Check for Sun compiler |
|
c570eb3becca
Build fixes on OpenSolaris. Closes #11841.
Brian Lu <brian.lu@sun.com>
parents:
30234
diff
changeset
|
119 | AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) |
|
c570eb3becca
Build fixes on OpenSolaris. Closes #11841.
Brian Lu <brian.lu@sun.com>
parents:
30234
diff
changeset
|
120 | |
| 2129 | 121 | dnl Checks for header files. |
| 122 | AC_HEADER_STDC | |
| 123 | AC_HEADER_SYS_WAIT | |
|
22673
9a01f082c6b0
Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents:
22663
diff
changeset
|
124 | AC_CHECK_HEADERS(arpa/nameser_compat.h fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h regex.h) |
| 2129 | 125 | |
| 126 | dnl Checks for typedefs, structures, and compiler characteristics. | |
| 127 | AC_C_CONST | |
| 128 | AC_STRUCT_TM | |
|
14049
c15c41423e19
[gaim-migrate @ 16559]
Richard Laager <rlaager@pidgin.im>
parents:
13932
diff
changeset
|
129 | AC_CHECK_SIZEOF(time_t, ,[ |
|
c15c41423e19
[gaim-migrate @ 16559]
Richard Laager <rlaager@pidgin.im>
parents:
13932
diff
changeset
|
130 | #include <stdio.h> |
|
c15c41423e19
[gaim-migrate @ 16559]
Richard Laager <rlaager@pidgin.im>
parents:
13932
diff
changeset
|
131 | #include <time.h>]) |
| 2129 | 132 | |
|
12423
e83c899d3be9
[gaim-migrate @ 14730]
Richard Laager <rlaager@pidgin.im>
parents:
12385
diff
changeset
|
133 | AC_C_BIGENDIAN |
|
e83c899d3be9
[gaim-migrate @ 14730]
Richard Laager <rlaager@pidgin.im>
parents:
12385
diff
changeset
|
134 | |
| 2129 | 135 | dnl Checks for library functions. |
| 136 | AC_TYPE_SIGNAL | |
| 137 | AC_FUNC_STRFTIME | |
|
13217
a159125835c0
[gaim-migrate @ 15580]
Richard Laager <rlaager@pidgin.im>
parents:
13180
diff
changeset
|
138 | AC_CHECK_FUNCS(strdup strstr atexit setlocale) |
| 2129 | 139 | dnl Checks for getopt in standard library |
|
7451
41329081eb6d
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
140 | AC_CHECK_FUNCS(getopt_long,, |
|
41329081eb6d
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
141 | [ |
|
41329081eb6d
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
142 | AC_LIBOBJ(getopt) |
|
41329081eb6d
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
143 | AC_LIBOBJ(getopt1) |
|
41329081eb6d
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
144 | ]) |
| 2129 | 145 | |
| 2959 | 146 | dnl Check for inet_aton |
|
13743
0336a209f9d4
[gaim-migrate @ 16152]
Mark Doliner <markdoliner@pidgin.im>
parents:
13736
diff
changeset
|
147 | AC_CHECK_FUNC(inet_aton, , [AC_CHECK_LIB(resolv, inet_aton, , |
|
29832
7dffd69edacb
Standardize on AC_MSG_ERROR.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29823
diff
changeset
|
148 | [AC_MSG_ERROR([inet_aton not found])])]) |
|
11373
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
11356
diff
changeset
|
149 | AC_CHECK_LIB(resolv, __res_query) |
| 4424 | 150 | AC_CHECK_LIB(nsl, gethostent) |
|
13743
0336a209f9d4
[gaim-migrate @ 16152]
Mark Doliner <markdoliner@pidgin.im>
parents:
13736
diff
changeset
|
151 | AC_CHECK_FUNC(socket, , |
|
29832
7dffd69edacb
Standardize on AC_MSG_ERROR.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29823
diff
changeset
|
152 | [AC_CHECK_LIB(socket, socket, , [AC_MSG_ERROR([socket not found])])]) |
| 4424 | 153 | dnl If all goes well, by this point the previous two checks will have |
| 154 | dnl pulled in -lsocket and -lnsl if we need them. | |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
155 | AC_CHECK_FUNC(getaddrinfo, |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
156 | [AC_DEFINE([HAVE_GETADDRINFO], [1], |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
157 | [Define to 1 if you have the getaddrinfo function.])], |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
158 | [AC_CHECK_LIB(socket, getaddrinfo, |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
159 | [AC_DEFINE([HAVE_GETADDRINFO]) LIBS="-lsocket -lsnl $LIBS"], , , -lnsl)]) |
|
23352
9714223ca7a7
A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents:
23341
diff
changeset
|
160 | AC_CHECK_FUNCS(inet_ntop) |
|
29714
8c1f3beb9fdc
network: Use getifaddrs() to enumerate local interfaces/IPs if available.
Paul Aurich <darkrain42@pidgin.im>
parents:
29698
diff
changeset
|
161 | AC_CHECK_FUNCS(getifaddrs) |
| 3150 | 162 | dnl Check for socklen_t (in Unix98) |
| 163 | AC_MSG_CHECKING(for socklen_t) | |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
164 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
165 | #include <sys/types.h> |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
166 | #include <sys/socket.h> |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
167 | socklen_t x; |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
168 | ]], [[]])], [ |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
169 | AC_MSG_RESULT(yes) |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
170 | ], [ |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
171 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
172 | #include <sys/types.h> |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
173 | #include <sys/socket.h> |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
174 | int accept(int, struct sockaddr *, size_t *); |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
175 | ]], [[]])], [ |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
176 | AC_MSG_RESULT(size_t) |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
177 | AC_DEFINE(socklen_t, size_t, [socklen_t size]) |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
178 | ], [ |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
179 | AC_MSG_RESULT(int) |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
180 | AC_DEFINE(socklen_t, int, [socklen_t size]) |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
181 | ]) |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
182 | ]) |
| 3150 | 183 | |
|
23352
9714223ca7a7
A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents:
23341
diff
changeset
|
184 | dnl Some systems do not have sa_len field for struct sockaddr. |
|
9714223ca7a7
A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents:
23341
diff
changeset
|
185 | AC_CHECK_MEMBER([struct sockaddr.sa_len], |
|
9714223ca7a7
A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents:
23341
diff
changeset
|
186 | [AC_DEFINE([HAVE_STRUCT_SOCKADDR_SA_LEN],[1], |
|
9714223ca7a7
A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents:
23341
diff
changeset
|
187 | [Define if struct sockaddr has an sa_len member])],[:], |
|
9714223ca7a7
A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents:
23341
diff
changeset
|
188 | [#include <sys/socket.h>]) |
|
9714223ca7a7
A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents:
23341
diff
changeset
|
189 | |
|
30027
2ab6e591cf72
Add network listen functions that accept a family argument (AF_INET(6?)).
Paul Aurich <darkrain42@pidgin.im>
parents:
29960
diff
changeset
|
190 | dnl Check for v6-only sockets |
|
2ab6e591cf72
Add network listen functions that accept a family argument (AF_INET(6?)).
Paul Aurich <darkrain42@pidgin.im>
parents:
29960
diff
changeset
|
191 | AC_CHECK_DECL([IPV6_V6ONLY], |
|
2ab6e591cf72
Add network listen functions that accept a family argument (AF_INET(6?)).
Paul Aurich <darkrain42@pidgin.im>
parents:
29960
diff
changeset
|
192 | [AC_DEFINE([HAVE_IPV6_V6ONLY],[1], |
|
2ab6e591cf72
Add network listen functions that accept a family argument (AF_INET(6?)).
Paul Aurich <darkrain42@pidgin.im>
parents:
29960
diff
changeset
|
193 | [Define if the IPV6_V6ONLY setsockopt option exists])], |
|
2ab6e591cf72
Add network listen functions that accept a family argument (AF_INET(6?)).
Paul Aurich <darkrain42@pidgin.im>
parents:
29960
diff
changeset
|
194 | [], [#include <netinet/in.h>]) |
|
2ab6e591cf72
Add network listen functions that accept a family argument (AF_INET(6?)).
Paul Aurich <darkrain42@pidgin.im>
parents:
29960
diff
changeset
|
195 | |
|
10622
8faf2d7a4afe
[gaim-migrate @ 12091]
Luke Schierer <lschiere@pidgin.im>
parents:
10620
diff
changeset
|
196 | dnl to prevent the g_stat()/g_unlink() crash, |
|
8faf2d7a4afe
[gaim-migrate @ 12091]
Luke Schierer <lschiere@pidgin.im>
parents:
10620
diff
changeset
|
197 | 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
|
198 | AC_SYS_LARGEFILE |
|
8faf2d7a4afe
[gaim-migrate @ 12091]
Luke Schierer <lschiere@pidgin.im>
parents:
10620
diff
changeset
|
199 | |
|
12038
1d83b5720a65
[gaim-migrate @ 14331]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12036
diff
changeset
|
200 | dnl FreeBSD doesn't have libdl, dlopen is provided by libc |
|
1d83b5720a65
[gaim-migrate @ 14331]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12036
diff
changeset
|
201 | 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
|
202 | |
|
21421
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
203 | AC_MSG_CHECKING(for fileno()) |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
204 | AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
|
21421
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
205 | #include <stdio.h> |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
206 | |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
207 | int main(int argc, char *argv[]) |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
208 | { |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
209 | int fd; |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
210 | |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
211 | fd = fileno(stdout); |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
212 | |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
213 | return !(fd > 0); |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
214 | } |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
215 | ]])], [ |
|
21421
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
216 | AC_MSG_RESULT(yes) |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
217 | AC_DEFINE([HAVE_FILENO], [1], |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
218 | [Define to 1 if your stdio has int fileno(FILE *).]) |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
219 | ], [ |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
220 | AC_MSG_RESULT(no) |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
221 | ], [ |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
222 | # Fallback for Cross Compiling... |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
223 | # This will enable the compatibility code. |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
224 | AC_MSG_RESULT(no) |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
225 | ]) |
|
1d0f0d592011
Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents:
21138
diff
changeset
|
226 | |
|
13153
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
227 | AC_MSG_CHECKING(for the %z format string in strftime()) |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
228 | AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
|
13153
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
229 | #ifdef HAVE_SYS_TIME_H |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
230 | #include <sys/time.h> |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
231 | #endif |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
232 | #include <time.h> |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
233 | #include <stdio.h> |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
234 | |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
235 | int main() |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
236 | { |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
237 | char buf[6]; |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
238 | time_t t = time(NULL); |
|
13743
0336a209f9d4
[gaim-migrate @ 16152]
Mark Doliner <markdoliner@pidgin.im>
parents:
13736
diff
changeset
|
239 | |
|
13153
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
240 | if (strftime(buf, sizeof(buf), "%z", localtime(&t)) != 5) |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
241 | return 1; |
|
13743
0336a209f9d4
[gaim-migrate @ 16152]
Mark Doliner <markdoliner@pidgin.im>
parents:
13736
diff
changeset
|
242 | |
|
13153
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
243 | fprintf(stderr, "strftime(\"%%z\") yields: \"%s\"\n", buf); |
|
13743
0336a209f9d4
[gaim-migrate @ 16152]
Mark Doliner <markdoliner@pidgin.im>
parents:
13736
diff
changeset
|
244 | |
|
13153
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
245 | return !((buf[0] == '-' || buf[0] == '+') && |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
246 | (buf[1] >= '0' && buf[1] <= '9') && |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
247 | (buf[2] >= '0' && buf[2] <= '9') && |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
248 | (buf[3] >= '0' && buf[3] <= '9') && |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
249 | (buf[4] >= '0' && buf[4] <= '9') |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
250 | ); |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
251 | } |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
252 | ]])], [ |
|
13153
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
253 | AC_MSG_RESULT(yes) |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
254 | AC_DEFINE([HAVE_STRFTIME_Z_FORMAT], [1], |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
255 | [Define to 1 if you have a strftime() that supports the %z format string.]) |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
256 | ], [ |
|
13153
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
257 | AC_MSG_RESULT(no) |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
258 | ], [ |
|
13226
92b014d46d83
[gaim-migrate @ 15589]
Richard Laager <rlaager@pidgin.im>
parents:
13217
diff
changeset
|
259 | # Fallback for Cross Compiling... |
|
92b014d46d83
[gaim-migrate @ 15589]
Richard Laager <rlaager@pidgin.im>
parents:
13217
diff
changeset
|
260 | # This will enable the compatibility code. |
|
92b014d46d83
[gaim-migrate @ 15589]
Richard Laager <rlaager@pidgin.im>
parents:
13217
diff
changeset
|
261 | AC_MSG_RESULT(no) |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
262 | ]) |
|
11949
ee1bbb072d4a
[gaim-migrate @ 14240]
Christopher O'Brien <siege@pidgin.im>
parents:
11945
diff
changeset
|
263 | |
| 13720 | 264 | dnl ####################################################################### |
|
29901
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
265 | dnl # Disable creation and installation of translation files |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
266 | dnl ####################################################################### |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
267 | AC_ARG_ENABLE(nls, AC_HELP_STRING([--disable-nls], [disable installation of translation files]), enable_i18n="$enableval", enable_i18n=yes) |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
268 | |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
269 | if test x$enable_i18n = xyes; then |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
270 | AC_PROG_INTLTOOL |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
271 | GETTEXT_PACKAGE=pidgin |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
272 | AC_SUBST(GETTEXT_PACKAGE) |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
273 | |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
274 | |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
275 | # before gettexting, in case iconv matters |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
276 | case "$host_os" in |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
277 | darwin*) |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
278 | AC_CHECK_LIB(resolv, res_query) |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
279 | |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
280 | AC_CHECK_HEADER(CoreFoundation/CoreFoundation.h, [ |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
281 | AC_CHECK_HEADER(IOKit/IOKitLib.h, [ |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
282 | AC_DEFINE(HAVE_IOKIT, 1, [Define if we have IOKit]) |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
283 | LIBS="$LIBS -framework IOKit -framework CoreFoundation" |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
284 | ], []) |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
285 | ], []) |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
286 | |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
287 | AC_MSG_CHECKING([for fink]) |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
288 | if test -d /sw; then |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
289 | AC_MSG_RESULT([found, adding /sw to search paths]) |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
290 | CPPFLAGS="$CPPFLAGS -I/sw/include" |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
291 | LDFLAGS="$LDFLAGS -L/sw/lib" |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
292 | else |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
293 | AC_MSG_RESULT([not found]) |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
294 | fi |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
295 | ;; |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
296 | *) |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
297 | ;; |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
298 | esac |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
299 | |
|
29938
625d8cdeece2
Add a new Bengali-India translation from Runa Bhattacharjee
Mark Doliner <markdoliner@pidgin.im>
parents:
29929
diff
changeset
|
300 | ALL_LINGUAS="af am ar az be@latin bg bn bn_IN bs ca ca@valencia cs da de dz el en_AU en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hu hy id it ja ka km kn ko ku lo lt mk mn mr ms_MY my_MM nb ne nl nn oc or pa pl pt_BR pt ps ro ru si sk sl sq sr sr@latin sv sw ta te th tr uk ur vi xh zh_CN zh_HK zh_TW" |
|
29901
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
301 | AM_GLIB_GNU_GETTEXT |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
302 | |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
303 | dnl If we don't have msgfmt, then po/ is going to fail -- ensure that |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
304 | dnl AM_GLIB_GNU_GETTEXT found it. |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
305 | |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
306 | if test x$MSGFMT = xno -o x$MSGFMT$GMSGFMT$INTLTOOL_MSGFMT = x |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
307 | then |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
308 | AC_MSG_ERROR([ |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
309 | |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
310 | The msgfmt command is required to build libpurple. If it is installed |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
311 | on your system, ensure that it is in your path. If it is not, install |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
312 | GNU gettext to continue. |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
313 | |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
314 | If you have msgfmt installed, but for some reason this error message |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
315 | is still displayed, you have encountered what appears to be a bug in |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
316 | third-party configure macros. Try setting the MSGFMT environment |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
317 | variable to the absolute path to your msgfmt binary and trying |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
318 | configure again, like this: |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
319 | |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
320 | MSGFMT=/path/to/msgfmt ./configure ... |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
321 | ]) |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
322 | fi |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
323 | fi #enable_i18n |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
324 | |
|
dd0bc58418e5
Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29856
diff
changeset
|
325 | dnl ####################################################################### |
|
29493
268ef03f01f5
That was supposed to be glib 2.12.0, not 2.14.0.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29490
diff
changeset
|
326 | dnl # Check for GLib 2.12 (required) |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
327 | dnl ####################################################################### |
|
29493
268ef03f01f5
That was supposed to be glib 2.12.0, not 2.14.0.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29490
diff
changeset
|
328 | PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.12.0 gobject-2.0 gmodule-2.0 gthread-2.0], , [ |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
329 | AC_MSG_RESULT(no) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
330 | AC_MSG_ERROR([ |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
331 | |
|
29710
93188f3147a7
The GLib requirement is 2.12.0, not 2.4.0. Sorry for the re-configure.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29698
diff
changeset
|
332 | You must have GLib 2.12.0 or newer development headers installed to build. |
|
21700
2ac5912cbeb6
Add a note about pkg-config to configure.ac if glib2 headers were not
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21600
diff
changeset
|
333 | |
|
2ac5912cbeb6
Add a note about pkg-config to configure.ac if glib2 headers were not
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21600
diff
changeset
|
334 | If you have these installed already you may need to install pkg-config so |
|
2ac5912cbeb6
Add a note about pkg-config to configure.ac if glib2 headers were not
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21600
diff
changeset
|
335 | I can find them. |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
336 | ])]) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
337 | AC_SUBST(GLIB_CFLAGS) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
338 | AC_SUBST(GLIB_LIBS) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
339 | |
|
23697
299bafcd8eb8
Updates voice and video to use Farsight 2, gets XMPP voice conferences
Michael Ruprecht <maiku@pidgin.im>
parents:
23696
diff
changeset
|
340 | GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0` |
|
299bafcd8eb8
Updates voice and video to use Farsight 2, gets XMPP voice conferences
Michael Ruprecht <maiku@pidgin.im>
parents:
23696
diff
changeset
|
341 | AC_SUBST(GLIB_GENMARSHAL) |
|
299bafcd8eb8
Updates voice and video to use Farsight 2, gets XMPP voice conferences
Michael Ruprecht <maiku@pidgin.im>
parents:
23696
diff
changeset
|
342 | |
|
21106
b85fbef13eed
Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21077
diff
changeset
|
343 | AC_ARG_WITH([extraversion], |
|
b85fbef13eed
Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21077
diff
changeset
|
344 | AC_HELP_STRING([--with-extraversion=STRING], |
|
b85fbef13eed
Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21077
diff
changeset
|
345 | [extra version number to be displayed in Help->About and --help (for packagers)]), |
|
b85fbef13eed
Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21077
diff
changeset
|
346 | EXTRA_VERSION=$withval) |
|
b85fbef13eed
Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21077
diff
changeset
|
347 | |
|
b85fbef13eed
Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21077
diff
changeset
|
348 | if test x"$EXTRA_VERSION" != "x" ; then |
|
b85fbef13eed
Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21077
diff
changeset
|
349 | AC_DEFINE_UNQUOTED(DISPLAY_VERSION, "$VERSION-$EXTRA_VERSION", [display version info]) |
|
b85fbef13eed
Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21077
diff
changeset
|
350 | else |
|
b85fbef13eed
Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21077
diff
changeset
|
351 | AC_DEFINE_UNQUOTED(DISPLAY_VERSION, "$VERSION", [display version info]) |
|
b85fbef13eed
Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21077
diff
changeset
|
352 | fi |
|
b85fbef13eed
Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21077
diff
changeset
|
353 | |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
354 | AC_ARG_ENABLE(missing-dependencies, [AC_HELP_STRING([--disable-missing-dependencies], |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
355 | [skip missing dependencies instead of aborting configure])], |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
356 | force_deps="$enableval", force_deps="yes") |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
357 | |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
358 | AC_ARG_WITH(x, [], |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
359 | with_x="$withval", with_x="yes") |
|
14507
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
360 | AC_ARG_ENABLE(gtkui, [AC_HELP_STRING([--disable-gtkui], |
|
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
361 | [compile without GTK+ user interface])], |
|
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
362 | enable_gtkui="$enableval", enable_gtkui="yes") |
|
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
363 | AC_ARG_ENABLE(consoleui, [AC_HELP_STRING([--disable-consoleui], |
|
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
364 | [compile without console user interface])], |
|
21822
20878ac233be
Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21762
diff
changeset
|
365 | [enable_consoleui=$enableval force_finch=$enableval], [enable_consoleui=yes force_finch=no]) |
|
14507
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
366 | |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
367 | dnl ####################################################################### |
|
28328
22144d7e5f4e
Pidgin 2.7.0 will now require GTK+ 2.10.0 and Glib 2.12.0. Refs #10024.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28327
diff
changeset
|
368 | dnl # Check for GTK+ 2.10 and other things used by the GTK UI |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
369 | dnl ####################################################################### |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
370 | AC_ARG_ENABLE(screensaver, |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
371 | [AC_HELP_STRING([--disable-screensaver], |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
372 | [compile without X screensaver extension (used to detect idleness)])], |
| 14859 | 373 | enable_screensaver="$enableval", enable_screensaver="yes") |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
374 | AC_ARG_ENABLE(sm, |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
375 | [AC_HELP_STRING([--disable-sm], |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
376 | [compile without X session management support])], |
| 14859 | 377 | enable_sm="$enableval", enable_sm="yes") |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
378 | AC_ARG_ENABLE(startup-notification, |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
379 | [AC_HELP_STRING([--disable-startup-notification], |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
380 | [compile without startup notification support])], |
| 14859 | 381 | enable_startup_notification="$enableval", enable_startup_notification="yes") |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
382 | AC_ARG_ENABLE(gtkspell, |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
383 | [AC_HELP_STRING([--disable-gtkspell], |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
384 | [compile without GtkSpell automatic spell checking])], |
| 14859 | 385 | enable_gtkspell="$enableval", enable_gtkspell="yes") |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
386 | AC_ARG_ENABLE(gevolution, |
|
22783
43b697ca2f9e
Make the gevolution plugin disabled by default. Again, if anyone disagrees
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22780
diff
changeset
|
387 | [AC_HELP_STRING([--enable-gevolution], |
|
43b697ca2f9e
Make the gevolution plugin disabled by default. Again, if anyone disagrees
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22780
diff
changeset
|
388 | [compile with the Evolution plugin])], |
|
43b697ca2f9e
Make the gevolution plugin disabled by default. Again, if anyone disagrees
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22780
diff
changeset
|
389 | enable_gevolution="$enableval", enable_gevolution="no") |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
390 | AC_ARG_ENABLE(cap, |
|
22784
36a4d7c64d00
Make the cap plugin disabled by default. As usual, anyone who disagrees or
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22783
diff
changeset
|
391 | [AC_HELP_STRING([--enable-cap], |
|
36a4d7c64d00
Make the cap plugin disabled by default. As usual, anyone who disagrees or
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22783
diff
changeset
|
392 | [compile with Contact Availability Prediction plugin])], |
|
36a4d7c64d00
Make the cap plugin disabled by default. As usual, anyone who disagrees or
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22783
diff
changeset
|
393 | enable_cap="$enableval", enable_cap="no") |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
394 | AC_ARG_ENABLE(gestures, |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
395 | [AC_HELP_STRING([--disable-gestures], |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
396 | [compile without the gestures plugin])], |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
397 | enable_gestures="$enableval", enable_gestures="yes") |
|
14621
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
398 | |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
399 | AC_PATH_XTRA |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
400 | # We can't assume that $x_libraries will be set, because autoconf does not |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
401 | # set it in the case when the X libraries are in a standard place. |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
402 | # Ditto for $x_includes |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
403 | if test X"$x_libraries" = X"" || test X"$x_libraries" = XNONE; then |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
404 | x_libpath_add= |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
405 | else |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
406 | x_libpath_add="-L$x_libraries" |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
407 | fi |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
408 | if test X"$x_includes" = X"" || test X"$x_includes" = XNONE; then |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
409 | x_incpath_add= |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
410 | else |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
411 | x_incpath_add="-I$x_includes" |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
412 | fi |
|
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
413 | |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
414 | if test "x$enable_gtkui" = "xyes" ; then |
|
28328
22144d7e5f4e
Pidgin 2.7.0 will now require GTK+ 2.10.0 and Glib 2.12.0. Refs #10024.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28327
diff
changeset
|
415 | PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.10.0], , [ |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
416 | AC_MSG_RESULT(no) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
417 | AC_MSG_ERROR([ |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
418 | |
|
28328
22144d7e5f4e
Pidgin 2.7.0 will now require GTK+ 2.10.0 and Glib 2.12.0. Refs #10024.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28327
diff
changeset
|
419 | You must have GTK+ 2.10.0 or newer development headers installed to compile |
|
28285
d288a79d7401
applied changes from 72b3be2a12aafc0f3b5367f8ca20a893422d36f6
Mark Doliner <markdoliner@pidgin.im>
parents:
28241
diff
changeset
|
420 | Pidgin. If you want to build only Finch then specify --disable-gtkui when |
|
d288a79d7401
applied changes from 72b3be2a12aafc0f3b5367f8ca20a893422d36f6
Mark Doliner <markdoliner@pidgin.im>
parents:
28241
diff
changeset
|
421 | running configure. |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
422 | ])]) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
423 | |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
424 | AC_SUBST(GTK_CFLAGS) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
425 | AC_SUBST(GTK_LIBS) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
426 | |
|
16291
acbfc9276da1
Fix for using Pango < 1.4, will not have complete RTL support with older
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16287
diff
changeset
|
427 | dnl We only really need Pango >= 1.4 for decent RTL support |
|
21702
37553b232826
The use of lowercase "pango" looks out of place when appended with _CFLAGS
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21701
diff
changeset
|
428 | PKG_CHECK_MODULES(PANGO, [pango >= 1.4.0], |
|
16292
4927daf9501e
Don't error out of ./configure on older pango versions
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16291
diff
changeset
|
429 | AC_DEFINE(HAVE_PANGO14, 1, [Define if we have Pango 1.4 or newer.]),:) |
|
16291
acbfc9276da1
Fix for using Pango < 1.4, will not have complete RTL support with older
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16287
diff
changeset
|
430 | |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
431 | dnl ####################################################################### |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
432 | dnl # Check if we should compile with X support |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
433 | dnl ####################################################################### |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
434 | if test "x$with_x" = "xyes" ; then |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
435 | PKG_CHECK_MODULES(X11, x11, |
|
20069
1c15dda79261
Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20068
diff
changeset
|
436 | [AC_DEFINE(HAVE_X11, 1, [Define to 1 if you have X11])], |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
437 | [AC_MSG_RESULT(no) |
|
20069
1c15dda79261
Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20068
diff
changeset
|
438 | if test "x$x_incpath_add" != "x" -a "x$x_libpath_add" != "x"; then |
|
1c15dda79261
Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20068
diff
changeset
|
439 | X11_LIBS="$x_libpath_add" |
|
1c15dda79261
Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20068
diff
changeset
|
440 | X11_CFLAGS="$x_incpath_add" |
|
1c15dda79261
Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20068
diff
changeset
|
441 | else |
|
29218
bf6fc038a9fa
Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents:
29204
diff
changeset
|
442 | with_x="no" |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
443 | if test "x$force_deps" = "xyes" ; then |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
444 | AC_MSG_ERROR([ |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
445 | X11 development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
446 | Use --without-x if you do not need X11 support. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
447 | ]) |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
448 | fi |
|
20069
1c15dda79261
Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20068
diff
changeset
|
449 | fi |
|
1c15dda79261
Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20068
diff
changeset
|
450 | ]) |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
451 | AC_SUBST(X11_LIBS) |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
452 | AC_SUBST(X11_CFLAGS) |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
453 | else |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
454 | enable_screensaver=no |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
455 | enable_sm=no |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
456 | enable_gestures=no |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
457 | fi |
|
20069
1c15dda79261
Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20068
diff
changeset
|
458 | |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
459 | dnl ####################################################################### |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
460 | dnl # Check for XScreenSaver |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
461 | dnl ####################################################################### |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
462 | if test "x$enable_screensaver" = "xyes" ; then |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
463 | if test "x$with_x" = "xyes" ; then |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
464 | old_LIBS="$LIBS" |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
465 | LIBS="$LIBS $GTK_LIBS $x_libpath_add" |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
466 | XSS_LIBS="" |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
467 | XSS_HEADERS="" |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
468 | AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"],[],[-lX11 -lXext -lm]) |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
469 | AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_LIBS $X_EXTRA_LIBS -lXss"],[],[-lX11 -lXext -lm]) |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
470 | if test "x$XSS_LIBS" != "x"; then |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
471 | oldCPPFLAGS="$CPPFLAGS" |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
472 | CPPFLAGS="$CPPFLAGS $x_incpath_add" |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
473 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
474 | #include <X11/Xlib.h> |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
475 | #include <X11/extensions/scrnsaver.h> |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
476 | ]], [[]])], [], [enable_screensaver=no]) |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
477 | CPPFLAGS="$oldCPPFLAGS" |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
478 | else |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
479 | enable_screensaver=no |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
480 | fi |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
481 | LIBS="$old_LIBS" |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
482 | |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
483 | if test "x$enable_screensaver" = "xyes" ; then |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
484 | AC_DEFINE(USE_SCREENSAVER, 1, [Define if we're using XScreenSaver.]) |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
485 | AC_SUBST(XSS_LIBS) |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
486 | else |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
487 | if test "x$force_deps" = "xyes" ; then |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
488 | AC_MSG_ERROR([ |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
489 | XScreenSaver extension development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
490 | Use --disable-screensaver if you do not need XScreenSaver extension support, |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
491 | this is required for detecting idle time by mouse and keyboard usage. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
492 | ]) |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
493 | fi |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
494 | fi |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
495 | else |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
496 | AC_MSG_ERROR([X support is required to build with XScreenSaver extensions]) |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
497 | fi |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
498 | fi |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
499 | |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
500 | dnl ####################################################################### |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
501 | dnl # Check for X session management libs |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
502 | dnl ####################################################################### |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
503 | if test "x$enable_sm" = "xyes"; then |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
504 | if test "x$with_x" = "xyes" ; then |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
505 | enable_sm=no |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
506 | AC_CHECK_LIB(SM, SmcSaveYourselfDone, found_sm_lib=true, , [$x_libpath_add -lICE]) |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
507 | if test "x$found_sm_lib" = "xtrue"; then |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
508 | oldCPPFLAGS="$CPPFLAGS" |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
509 | CPPFLAGS="$CPPFLAGS $x_incpath_add" |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
510 | AC_CHECK_HEADERS(X11/SM/SMlib.h, SM_LIBS="$x_libpath_add -lSM -lICE" enable_sm=yes) |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
511 | CPPFLAGS="$oldCPPFLAGS" |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
512 | fi |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
513 | |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
514 | if test "x$enable_sm" = "xyes"; then |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
515 | AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.]) |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
516 | AC_SUBST(SM_LIBS) |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
517 | else |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
518 | if test "x$force_deps" = "xyes" ; then |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
519 | AC_MSG_ERROR([ |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
520 | X session management development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
521 | Use --disable-sm if you do not need session management support. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
522 | ]) |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
523 | fi |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
524 | fi |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
525 | else |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
526 | AC_MSG_ERROR([X support is required to build with X session management support]) |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
527 | fi |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
528 | fi |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
529 | |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
530 | dnl ####################################################################### |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
531 | dnl # Check for X11 to allow the gestures plugin |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
532 | dnl ####################################################################### |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
533 | if test "x$enable_gestures" = "xyes"; then |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
534 | if test "x$with_x" = "xno" ; then |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
535 | enable_gestures=no |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
536 | fi |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
537 | fi |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
538 | |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
539 | dnl ####################################################################### |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
540 | dnl # Check for startup notification |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
541 | dnl ####################################################################### |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
542 | if test "x$enable_startup_notification" = "xyes"; then |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
543 | PKG_CHECK_MODULES(STARTUP_NOTIFICATION, [libstartup-notification-1.0 >= 0.5], , [ |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
544 | AC_MSG_RESULT(no) |
|
29218
bf6fc038a9fa
Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents:
29204
diff
changeset
|
545 | enable_startup_notification="no" |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
546 | if test "x$force_deps" = "xyes" ; then |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
547 | AC_MSG_ERROR([ |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
548 | Startup notification development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
549 | Use --disable-startup-notification if you do not need it. |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
550 | ]) |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
551 | fi]) |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
552 | |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
553 | if test "x$enable_startup_notification" = "xyes"; then |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
554 | AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.]) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
555 | AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
556 | AC_SUBST(STARTUP_NOTIFICATION_LIBS) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
557 | fi |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
558 | fi |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
559 | |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
560 | dnl ####################################################################### |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
561 | dnl # Check for GtkSpell |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
562 | dnl ####################################################################### |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
563 | if test "x$enable_gtkspell" = "xyes" ; then |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
564 | PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, , [ |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
565 | AC_MSG_RESULT(no) |
|
29218
bf6fc038a9fa
Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents:
29204
diff
changeset
|
566 | enable_gtkspell="no" |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
567 | if test "x$force_deps" = "xyes" ; then |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
568 | AC_MSG_ERROR([ |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
569 | GtkSpell development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
570 | Use --disable-gtkspell if you do not need it. |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
571 | ]) |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
572 | fi]) |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
573 | if test "x$enable_gtkspell" = "xyes" ; then |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
574 | AC_DEFINE(USE_GTKSPELL, 1, [Define if we're using GtkSpell]) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
575 | AC_SUBST(GTKSPELL_CFLAGS) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
576 | AC_SUBST(GTKSPELL_LIBS) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
577 | fi |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
578 | fi |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
579 | |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
580 | dnl ####################################################################### |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
581 | dnl # Check for stuff needed by the Evolution integration plugin. |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
582 | dnl ####################################################################### |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
583 | if test "x$enable_gevolution" = "xyes"; then |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
584 | evo_deps="libebook-1.2 libedata-book-1.2" |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
585 | PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, , [ |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
586 | AC_MSG_RESULT(yes) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
587 | enable_gevolution="no" |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
588 | ]) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
589 | if test "x$enable_gevolution" = "xno"; then |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
590 | evo_deps="libebook-1.0 libedata-book-1.0" |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
591 | PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, [ |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
592 | enable_gevolution="yes" |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
593 | ], [ |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
594 | AC_MSG_RESULT(yes) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
595 | ]) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
596 | fi |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
597 | if test "x$enable_gevolution" = "xyes"; then |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
598 | AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.]) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
599 | AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
600 | AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS) |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
601 | else |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
602 | if test "x$force_deps" = "xyes" ; then |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
603 | AC_MSG_ERROR([ |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
604 | Evolution development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
605 | Use --disable-gevolution if you do not need it. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
606 | ]) |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
607 | fi |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
608 | fi |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
609 | fi |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
610 | |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
611 | dnl ####################################################################### |
|
14573
7e18a0a07718
[gaim-migrate @ 17231]
Geoff Foster <g-off_@users.sourceforge.net>
parents:
14539
diff
changeset
|
612 | dnl # Check for libsqlite3 (for the Contact Availability Prediction plugin) |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
613 | dnl ####################################################################### |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
614 | if test "x$enable_cap" = "xyes"; then |
|
14733
7e2a1598624d
[gaim-migrate @ 17417]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14666
diff
changeset
|
615 | PKG_CHECK_MODULES(SQLITE3, sqlite3 >= 3.3,,[ |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
616 | AC_MSG_RESULT(no) |
|
29218
bf6fc038a9fa
Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents:
29204
diff
changeset
|
617 | enable_cap="no" |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
618 | if test "x$force_deps" = "xyes" ; then |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
619 | AC_MSG_ERROR([ |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
620 | sqlite3 development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
621 | Use --disable-cap if you do not need the Contact Availability Prediction plugin. |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
622 | ]) |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
623 | fi]) |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
624 | fi |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
625 | |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
626 | |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
627 | else # GTK |
|
14733
7e2a1598624d
[gaim-migrate @ 17417]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14666
diff
changeset
|
628 | enable_cap=no |
|
7e2a1598624d
[gaim-migrate @ 17417]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14666
diff
changeset
|
629 | enable_gevolution=no |
|
7e2a1598624d
[gaim-migrate @ 17417]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14666
diff
changeset
|
630 | enable_gtkspell=no |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
631 | enable_screensaver=no |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
632 | enable_sm=no |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
633 | enable_startup_notification=no |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
634 | fi # GTK |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
635 | |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
636 | AM_CONDITIONAL(ENABLE_GTK, test "x$enable_gtkui" = "xyes") |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
637 | AM_CONDITIONAL(BUILD_GEVOLUTION, test "x$enable_gevolution" = "xyes") |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
638 | AM_CONDITIONAL(ENABLE_CAP, test "x$enable_cap" = "xyes") |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
639 | AM_CONDITIONAL(ENABLE_GESTURES, test "x$enable_gestures" = "xyes") |
|
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
640 | |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
641 | |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
642 | dnl ####################################################################### |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
643 | dnl # Check for ncurses and other things used by the console UI |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
644 | dnl ####################################################################### |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
645 | GNT_LIBS="" |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
646 | GNT_CFLAGS="" |
|
15312
42e2c73b6b9c
[gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15248
diff
changeset
|
647 | AC_ARG_WITH(ncurses-headers, [AC_HELP_STRING([--with-ncurses-headers=DIR], |
|
15909
0ee1e930d385
Rename/update finch man page
Richard Nelson <wabz@pidgin.im>
parents:
15901
diff
changeset
|
648 | [compile finch against the ncurses includes in DIR])], |
|
15312
42e2c73b6b9c
[gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15248
diff
changeset
|
649 | [ac_ncurses_includes="$withval"], [ac_ncurses_includes=""]) |
|
14507
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
650 | if test "x$enable_consoleui" = "xyes"; then |
|
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
651 | AC_CHECK_LIB(ncursesw, initscr, [GNT_LIBS="-lncursesw"], [enable_consoleui=no]) |
|
28300
a4516ae76153
Properly detect libpanel by including ncurses libs in linking test.
Paul Aurich <darkrain42@pidgin.im>
parents:
28285
diff
changeset
|
652 | AC_CHECK_LIB(panelw, update_panels, [GNT_LIBS="$GNT_LIBS -lpanelw"], |
|
a4516ae76153
Properly detect libpanel by including ncurses libs in linking test.
Paul Aurich <darkrain42@pidgin.im>
parents:
28285
diff
changeset
|
653 | [enable_consoleui=no], [$GNT_LIBS]) |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
654 | |
|
14539
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
655 | if test "x$enable_consoleui" = "xyes"; then |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
656 | dnl # Some distros put the headers in ncursesw/, some don't |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
657 | found_ncurses_h=no |
|
15312
42e2c73b6b9c
[gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15248
diff
changeset
|
658 | for location in $ac_ncurses_includes $NCURSES_HEADERS /usr/include/ncursesw /usr/include |
|
14539
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
659 | do |
|
15312
42e2c73b6b9c
[gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15248
diff
changeset
|
660 | f="$location/ncurses.h" |
|
14539
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
661 | AC_CHECK_HEADER($f,[ |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
662 | AC_MSG_CHECKING([if $f supports wide characters]) |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
663 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
|
14539
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
664 | #define _XOPEN_SOURCE_EXTENDED |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
665 | #include <$f> |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
666 | ]], [[ |
|
14539
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
667 | #ifndef get_wch |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
668 | # error get_wch not found! |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
669 | #endif |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
670 | ]])], [ |
|
15332
91c86b5315fb
[gaim-migrate @ 18060]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15312
diff
changeset
|
671 | dir=$location |
|
14539
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
672 | if test x"$dir" != x"." ; then |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
673 | GNT_CFLAGS="-I$dir/" |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
674 | else |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
675 | GNT_CFLAGS="" |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
676 | fi |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
677 | |
|
14539
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
678 | found_ncurses_h=yes |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
679 | AC_MSG_RESULT([yes]) |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
680 | break |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
681 | ], [ |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
682 | AC_MSG_RESULT([no]) |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
683 | ]) |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
684 | ]) |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
685 | done |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
686 | |
|
14539
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
687 | if test x"$found_ncurses_h" = x"no" ; then |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
688 | GNT_LIBS="" |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
689 | GNT_CFLAGS="" |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
690 | enable_consoleui=no |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
691 | fi |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
692 | else |
|
14539
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
693 | # ncursesw was not found. Look for plain old ncurses |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
694 | enable_consoleui=yes |
|
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
695 | AC_CHECK_LIB(ncurses, initscr, [GNT_LIBS="-lncurses"], [enable_consoleui=no]) |
|
28300
a4516ae76153
Properly detect libpanel by including ncurses libs in linking test.
Paul Aurich <darkrain42@pidgin.im>
parents:
28285
diff
changeset
|
696 | AC_CHECK_LIB(panel, update_panels, [GNT_LIBS="$GNT_LIBS -lpanel"], |
|
a4516ae76153
Properly detect libpanel by including ncurses libs in linking test.
Paul Aurich <darkrain42@pidgin.im>
parents:
28285
diff
changeset
|
697 | [enable_consoleui=no], [$GNT_LIBS]) |
|
14539
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
698 | AC_DEFINE(NO_WIDECHAR, 1, [Define to 1 if you don't have wide-character support.]) |
|
15312
42e2c73b6b9c
[gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15248
diff
changeset
|
699 | if test x"$ac_ncurses_includes" != "x"; then |
|
42e2c73b6b9c
[gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15248
diff
changeset
|
700 | GNT_CFLAGS="-I$ac_ncurses_includes" |
|
42e2c73b6b9c
[gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15248
diff
changeset
|
701 | else |
|
42e2c73b6b9c
[gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15248
diff
changeset
|
702 | if test x"$NCURSES_HEADERS" != "x"; then |
|
42e2c73b6b9c
[gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15248
diff
changeset
|
703 | GNT_CFLAGS="-I$NCURSES_HEADERS" |
|
42e2c73b6b9c
[gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15248
diff
changeset
|
704 | fi |
|
42e2c73b6b9c
[gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15248
diff
changeset
|
705 | fi |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
706 | fi |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
707 | fi |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
708 | |
|
21822
20878ac233be
Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21762
diff
changeset
|
709 | if test "x$force_finch" = "xyes" -a "x$enable_consoleui" != "xyes"; then |
|
20878ac233be
Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21762
diff
changeset
|
710 | AC_MSG_ERROR([ |
|
20878ac233be
Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21762
diff
changeset
|
711 | |
|
20878ac233be
Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21762
diff
changeset
|
712 | Finch will not be built. You need to install ncursesw (or ncurses) and its development headers. |
|
20878ac233be
Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21762
diff
changeset
|
713 | |
|
20878ac233be
Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21762
diff
changeset
|
714 | ]) |
|
20878ac233be
Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21762
diff
changeset
|
715 | fi |
|
20878ac233be
Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21762
diff
changeset
|
716 | |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
717 | AC_SUBST(GNT_LIBS) |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
718 | AC_SUBST(GNT_CFLAGS) |
|
14507
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
719 | AM_CONDITIONAL(ENABLE_GNT, test "x$enable_consoleui" = "xyes") |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
720 | |
|
14539
7d5528c864a1
[gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14533
diff
changeset
|
721 | #AC_CHECK_FUNC(wcwidth, [AC_DEFINE([HAVE_WCWIDTH], [1], [Define to 1 if you have wcwidth function.])]) |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
722 | |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
723 | dnl ####################################################################### |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
724 | dnl # Check for LibXML2 (required) |
| 13720 | 725 | dnl ####################################################################### |
|
14621
907c1e7a75a9
[gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14599
diff
changeset
|
726 | PKG_CHECK_MODULES(LIBXML, [libxml-2.0 >= 2.6.0], , [ |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
727 | AC_MSG_RESULT(no) |
|
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
728 | AC_MSG_ERROR([ |
|
16247
f9e1e46abbae
Deal with Gaim in some error messages.
Richard Laager <rlaager@pidgin.im>
parents:
16206
diff
changeset
|
729 | You must have libxml2 >= 2.6.0 development headers installed to build. |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
730 | ])]) |
|
26754
216b79c00415
Print a warning if compiling against libxml2 < 2.6.18 as it may cause XMPP
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26729
diff
changeset
|
731 | PKG_CHECK_EXISTS([libxml-2.0 >= 2.6.18], , [ |
|
216b79c00415
Print a warning if compiling against libxml2 < 2.6.18 as it may cause XMPP
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26729
diff
changeset
|
732 | AC_MSG_WARN([ |
|
216b79c00415
Print a warning if compiling against libxml2 < 2.6.18 as it may cause XMPP
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26729
diff
changeset
|
733 | Versions of libxml2 < 2.6.18 may contain bugs that could cause XMPP messages to be discarded. |
|
216b79c00415
Print a warning if compiling against libxml2 < 2.6.18 as it may cause XMPP
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26729
diff
changeset
|
734 | ])]) |
|
216b79c00415
Print a warning if compiling against libxml2 < 2.6.18 as it may cause XMPP
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26729
diff
changeset
|
735 | |
| 13808 | 736 | AC_SUBST(LIBXML_CFLAGS) |
| 737 | AC_SUBST(LIBXML_LIBS) | |
|
14498
ede839a78714
[gaim-migrate @ 17150]
Mark Doliner <markdoliner@pidgin.im>
parents:
14492
diff
changeset
|
738 | |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
739 | dnl ####################################################################### |
| 14582 | 740 | dnl # GConf schemas |
| 741 | dnl ####################################################################### | |
| 742 | AC_PATH_PROG(GCONFTOOL, gconftool-2, no) | |
| 743 | AM_CONDITIONAL(USE_GCONFTOOL, test "x$GCONFTOOL" != "xno") | |
| 744 | AM_GCONF_SOURCE_2 | |
| 745 | ||
| 746 | dnl ####################################################################### | |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
747 | dnl # Check for GStreamer |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
748 | dnl ####################################################################### |
|
22631
ba53b0eadb20
Revert the dependency on gstreamer-0.10 >= 0.10.10, falling back to the SIGALRM
Will Thompson <resiak@pidgin.im>
parents:
22630
diff
changeset
|
749 | dnl |
|
ba53b0eadb20
Revert the dependency on gstreamer-0.10 >= 0.10.10, falling back to the SIGALRM
Will Thompson <resiak@pidgin.im>
parents:
22630
diff
changeset
|
750 | dnl TODO: Depend on gstreamer >= 0.10.10, and remove the conditional use of |
|
ba53b0eadb20
Revert the dependency on gstreamer-0.10 >= 0.10.10, falling back to the SIGALRM
Will Thompson <resiak@pidgin.im>
parents:
22630
diff
changeset
|
751 | dnl gst_registry_fork_set_enabled. |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
752 | AC_ARG_ENABLE(gstreamer, |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
753 | [AC_HELP_STRING([--disable-gstreamer], [compile without GStreamer audio support])], |
| 14859 | 754 | enable_gst="$enableval", enable_gst="yes") |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
755 | if test "x$enable_gst" != "xno"; then |
|
22631
ba53b0eadb20
Revert the dependency on gstreamer-0.10 >= 0.10.10, falling back to the SIGALRM
Will Thompson <resiak@pidgin.im>
parents:
22630
diff
changeset
|
756 | PKG_CHECK_MODULES(GSTREAMER, [gstreamer-0.10], [ |
|
17638
16ff20de7f03
This patch from QuLogic fixes autoconf such that gstreamer will not be
Ethan Blanton <elb@pidgin.im>
parents:
17451
diff
changeset
|
757 | AC_DEFINE(USE_GSTREAMER, 1, [Use GStreamer for playing sounds]) |
|
16ff20de7f03
This patch from QuLogic fixes autoconf such that gstreamer will not be
Ethan Blanton <elb@pidgin.im>
parents:
17451
diff
changeset
|
758 | AC_SUBST(GSTREAMER_CFLAGS) |
|
16ff20de7f03
This patch from QuLogic fixes autoconf such that gstreamer will not be
Ethan Blanton <elb@pidgin.im>
parents:
17451
diff
changeset
|
759 | AC_SUBST(GSTREAMER_LIBS) |
|
22631
ba53b0eadb20
Revert the dependency on gstreamer-0.10 >= 0.10.10, falling back to the SIGALRM
Will Thompson <resiak@pidgin.im>
parents:
22630
diff
changeset
|
760 | AC_CHECK_LIB(gstreamer-0.10, gst_registry_fork_set_enabled, |
|
ba53b0eadb20
Revert the dependency on gstreamer-0.10 >= 0.10.10, falling back to the SIGALRM
Will Thompson <resiak@pidgin.im>
parents:
22630
diff
changeset
|
761 | [ AC_DEFINE(GST_CAN_DISABLE_FORKING, [], |
|
ba53b0eadb20
Revert the dependency on gstreamer-0.10 >= 0.10.10, falling back to the SIGALRM
Will Thompson <resiak@pidgin.im>
parents:
22630
diff
changeset
|
762 | [Define if gst_registry_fork_set_enabled exists])], |
|
ba53b0eadb20
Revert the dependency on gstreamer-0.10 >= 0.10.10, falling back to the SIGALRM
Will Thompson <resiak@pidgin.im>
parents:
22630
diff
changeset
|
763 | [], [$GSTREAMER_LIBS]) |
|
17638
16ff20de7f03
This patch from QuLogic fixes autoconf such that gstreamer will not be
Ethan Blanton <elb@pidgin.im>
parents:
17451
diff
changeset
|
764 | ], [ |
|
16ff20de7f03
This patch from QuLogic fixes autoconf such that gstreamer will not be
Ethan Blanton <elb@pidgin.im>
parents:
17451
diff
changeset
|
765 | AC_MSG_RESULT(no) |
|
29218
bf6fc038a9fa
Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents:
29204
diff
changeset
|
766 | enable_gst="no" |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
767 | if test "x$force_deps" = "xyes" ; then |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
768 | AC_MSG_ERROR([ |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
769 | GStreamer development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
770 | Use --disable-gstreamer if you do not need GStreamer (sound) support. |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
771 | ]) |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
772 | fi]) |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
773 | fi |
| 13808 | 774 | |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
775 | dnl ####################################################################### |
|
26714
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
776 | dnl # Check for GStreamer Interfaces |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
777 | dnl ####################################################################### |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
778 | if test "x$enable_gst" != "xno"; then |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
779 | AC_ARG_ENABLE(gstreamer-interfaces, |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
780 | [AC_HELP_STRING([--disable-gstreamer-interfaces], [compile without GStreamer interface support])], |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
781 | enable_gstinterfaces="$enableval", enable_gstinterfaces="yes") |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
782 | if test "x$enable_gstinterfaces" != "xno"; then |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
783 | PKG_CHECK_MODULES(GSTINTERFACES, [gstreamer-interfaces-0.10], [ |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
784 | AC_DEFINE(USE_GSTINTERFACES, 1, [Use GStreamer interfaces for X overlay support]) |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
785 | AC_SUBST(GSTINTERFACES_CFLAGS) |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
786 | AC_SUBST(GSTINTERFACES_LIBS) |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
787 | ], [ |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
788 | enable_gstinterfaces="no" |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
789 | ]) |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
790 | fi |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
791 | else |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
792 | enable_gstinterfaces="no" |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
793 | fi |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
794 | |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
795 | dnl ####################################################################### |
|
19881
d80b4d01457e
Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents:
19656
diff
changeset
|
796 | dnl # Check for Farsight |
|
d80b4d01457e
Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents:
19656
diff
changeset
|
797 | dnl ####################################################################### |
|
23703
5fb5502c76c3
Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents:
23702
diff
changeset
|
798 | AC_ARG_ENABLE(farsight, |
|
5fb5502c76c3
Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents:
23702
diff
changeset
|
799 | [AC_HELP_STRING([--disable-farsight], [compile without farsight support])], |
|
19881
d80b4d01457e
Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents:
19656
diff
changeset
|
800 | enable_farsight="$enableval", enable_farsight="yes") |
|
d80b4d01457e
Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents:
19656
diff
changeset
|
801 | if test "x$enable_farsight" != "xno"; then |
|
26729
025bda1bc32f
Bump required Farsight2 version to 0.0.9.
Michael Ruprecht <maiku@pidgin.im>
parents:
26714
diff
changeset
|
802 | PKG_CHECK_MODULES(FARSIGHT, [farsight2-0.10 >= 0.0.9], [ |
|
19881
d80b4d01457e
Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents:
19656
diff
changeset
|
803 | AC_DEFINE(USE_FARSIGHT, 1, [Use Farsight for voice and video]) |
|
d80b4d01457e
Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents:
19656
diff
changeset
|
804 | AC_SUBST(FARSIGHT_CFLAGS) |
|
d80b4d01457e
Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents:
19656
diff
changeset
|
805 | AC_SUBST(FARSIGHT_LIBS) |
|
d80b4d01457e
Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents:
19656
diff
changeset
|
806 | ], [ |
|
d80b4d01457e
Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents:
19656
diff
changeset
|
807 | enable_farsight="no" |
|
d80b4d01457e
Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents:
19656
diff
changeset
|
808 | ]) |
|
d80b4d01457e
Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents:
19656
diff
changeset
|
809 | fi |
|
d80b4d01457e
Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents:
19656
diff
changeset
|
810 | |
|
22648
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22647
diff
changeset
|
811 | dnl ####################################################################### |
|
23703
5fb5502c76c3
Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents:
23702
diff
changeset
|
812 | dnl # Check for Voice and Video support |
|
5fb5502c76c3
Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents:
23702
diff
changeset
|
813 | dnl ####################################################################### |
|
5fb5502c76c3
Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents:
23702
diff
changeset
|
814 | AC_ARG_ENABLE(vv, |
|
5fb5502c76c3
Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents:
23702
diff
changeset
|
815 | [AC_HELP_STRING([--disable-vv], [compile without voice and video support])], |
|
28310
789375153545
Fail the configure script if voice and video dependencies are missing.
Michael Ruprecht <maiku@pidgin.im>
parents:
28302
diff
changeset
|
816 | enable_vv="$enableval", enable_vv="yes") |
|
23703
5fb5502c76c3
Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents:
23702
diff
changeset
|
817 | if test "x$enable_vv" != "xno"; then |
|
26714
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
818 | if test "x$enable_gstreamer" != "xno" -a "x$enable_gstinterfaces" != "xno" -a "x$enable_farsight" != "xno"; then |
|
23703
5fb5502c76c3
Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents:
23702
diff
changeset
|
819 | AC_DEFINE(USE_VV, 1, [Use voice and video]) |
|
5fb5502c76c3
Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents:
23702
diff
changeset
|
820 | else |
|
5fb5502c76c3
Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents:
23702
diff
changeset
|
821 | enable_vv="no" |
|
28310
789375153545
Fail the configure script if voice and video dependencies are missing.
Michael Ruprecht <maiku@pidgin.im>
parents:
28302
diff
changeset
|
822 | if test "x$force_deps" = "xyes"; then |
|
26656
69f29e0c8111
Abort build if we use --enable-vv, and vv-dependencies are not met.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26637
diff
changeset
|
823 | AC_MSG_ERROR([ |
|
26714
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
824 | Dependencies for voice/video were not met. |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
825 | Install the necessary gstreamer and farsight packages first. |
|
0f1f4178f6e7
Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26656
diff
changeset
|
826 | Or use --disable-vv if you do not need voice/video support. |
|
26656
69f29e0c8111
Abort build if we use --enable-vv, and vv-dependencies are not met.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26637
diff
changeset
|
827 | ]) |
|
69f29e0c8111
Abort build if we use --enable-vv, and vv-dependencies are not met.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26637
diff
changeset
|
828 | fi |
|
23703
5fb5502c76c3
Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents:
23702
diff
changeset
|
829 | fi |
|
5fb5502c76c3
Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents:
23702
diff
changeset
|
830 | fi |
|
28334
b2cb15afea3b
Don't compile the VV Config plugin unless VV is actually enabled
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
28310
diff
changeset
|
831 | AM_CONDITIONAL(USE_VV, test "x$enable_gstreamer" != "xno" -a "x$enable_gstinterfaces" != "xno" -a "x$enable_farsight" != "xno") |
|
22648
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22647
diff
changeset
|
832 | |
|
29147
68498038891f
Minor commenting.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29085
diff
changeset
|
833 | dnl ####################################################################### |
|
68498038891f
Minor commenting.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29085
diff
changeset
|
834 | dnl # Check for Internationalized Domain Name support |
|
68498038891f
Minor commenting.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29085
diff
changeset
|
835 | dnl ####################################################################### |
|
68498038891f
Minor commenting.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29085
diff
changeset
|
836 | |
|
27849
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
837 | AC_ARG_ENABLE(idn, |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
838 | [AC_HELP_STRING([--disable-idn], [compile without IDN support])], |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
839 | [enable_idn="$enableval" force_idn=$enableval], [enable_idn="yes" force_idn=no]) |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
840 | if test "x$enable_idn" != "xno"; then |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
841 | PKG_CHECK_MODULES(IDN, libidn >= 0.0.0, [ |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
842 | AC_DEFINE(USE_IDN, 1, [Use GNU Libidn for stringprep and IDN]) |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
843 | AC_SUBST(IDN_CFLAGS) |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
844 | AC_SUBST(IDN_LIBS) |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
845 | ], [ |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
846 | AC_MSG_RESULT(no) |
|
29218
bf6fc038a9fa
Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents:
29204
diff
changeset
|
847 | enable_idn="no" |
|
27849
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
848 | if test "x$force_deps" = "xyes" ; then |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
849 | AC_MSG_ERROR([ |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
850 | GNU Libidn development headers not found. |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
851 | Use --disable-idn if you do not need it. |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
852 | ]) |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
853 | fi |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
854 | ]) |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
855 | fi |
|
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
856 | |
|
19881
d80b4d01457e
Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents:
19656
diff
changeset
|
857 | dnl ####################################################################### |
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
858 | dnl # Check for Meanwhile headers (for Sametime) |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
859 | dnl ####################################################################### |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
860 | AC_ARG_ENABLE(meanwhile, |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
861 | [AC_HELP_STRING([--disable-meanwhile], |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
862 | [compile without meanwhile (required for Sametime support)])], |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
863 | enable_meanwhile="$enableval", enable_meanwhile="yes") |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
864 | if test "x$enable_meanwhile" = "xyes"; then |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
865 | PKG_CHECK_MODULES(MEANWHILE, [meanwhile >= 1.0.0 meanwhile < 2.0.0], [ |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
866 | have_meanwhile="yes" |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
867 | ], [ |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
868 | have_meanwhile="no" |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
869 | if test "x$force_deps" = "xyes" ; then |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
870 | AC_MSG_ERROR([ |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
871 | Meanwhile development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
872 | Use --disable-meanwhile if you do not need meanwhile (Sametime) support. |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
873 | ]) |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
874 | fi]) |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
875 | fi |
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
876 | AC_SUBST(MEANWHILE_CFLAGS) |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
877 | AC_SUBST(MEANWHILE_LIBS) |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
878 | |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
879 | dnl ####################################################################### |
|
19100
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
19044
diff
changeset
|
880 | dnl # Check for Native Avahi headers (for Bonjour) |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
19044
diff
changeset
|
881 | dnl ####################################################################### |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
882 | AC_ARG_ENABLE(avahi, |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
883 | [AC_HELP_STRING([--disable-avahi], |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
884 | [compile without avahi (required for Bonjour support)])], |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
885 | enable_avahi="$enableval", enable_avahi="yes") |
|
28302
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
886 | |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
887 | if test "x$enable_avahi" = "xyes"; then |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
888 | AC_ARG_WITH(avahi-client-includes, [AC_HELP_STRING([--with-avahi-client-includes=DIR], [compile the Bonjour plugin against the Avahi Client includes in DIR])], [ac_avahi_client_includes="$withval"], [ac_avahi_client_includes="no"]) |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
889 | AC_ARG_WITH(avahi-client-libs, [AC_HELP_STRING([--with-avahi-client-libs=DIR], [compile the Bonjour plugin against the Avahi Client libs in DIR])], [ac_avahi_client_libs="$withval"], [ac_avahi_client_libs="no"]) |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
890 | AVAHI_CFLAGS="" |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
891 | AVAHI_LIBS="" |
|
19100
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
19044
diff
changeset
|
892 | |
|
28302
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
893 | dnl Attempt to autodetect Avahi |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
894 | PKG_CHECK_MODULES(AVAHI, [avahi-client avahi-glib], [ |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
895 | avahiincludes="yes" |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
896 | avahilibs="yes" |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
897 | ], [ |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
898 | avahiincludes="no" |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
899 | avahilibs="no" |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
900 | ]) |
|
19100
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
19044
diff
changeset
|
901 | |
|
28302
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
902 | dnl Override AVAHI_CFLAGS if the user specified an include dir |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
903 | if test "$ac_avahi_client_includes" != "no"; then |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
904 | AVAHI_CFLAGS="-I$ac_avahi_client_includes" |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
905 | fi |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
906 | CPPFLAGS_save="$CPPFLAGS" |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
907 | CPPFLAGS="$CPPFLAGS $AVAHI_CFLAGS" |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
908 | AC_CHECK_HEADER(avahi-client/client.h, [avahiincludes=yes], [avahiincludes=no]) |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
909 | CPPFLAGS="$CPPFLAGS $AVAHI_CFLAGS $GLIB_CFLAGS" |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
910 | AC_CHECK_HEADER(avahi-glib/glib-malloc.h, [avahiincludes=yes], [avahiincludes=no]) |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
911 | CPPFLAGS="$CPPFLAGS_save" |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
912 | |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
913 | dnl Override AVAHI_LIBS if the user specified a libs dir |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
914 | if test "$ac_avahi_client_libs" != "no"; then |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
915 | AVAHI_LIBS="-L$ac_avahi_client_libs -lavahi-common -lavahi-client -lavahi-glib " |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
916 | fi |
|
8bee3af43872
Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents:
28300
diff
changeset
|
917 | AC_CHECK_LIB(avahi-client, avahi_client_new, [avahilibs=yes], [avahilibs=no], $AVAHI_LIBS) |
|
19100
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
19044
diff
changeset
|
918 | fi |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
19044
diff
changeset
|
919 | |
|
29218
bf6fc038a9fa
Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents:
29204
diff
changeset
|
920 | if test "x$enable_avahi" = "xyes" -a \( "x$avahiincludes" = "xno" -o "x$avahilibs" = "xno" \); then |
|
bf6fc038a9fa
Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents:
29204
diff
changeset
|
921 | enable_avahi="no" |
|
bf6fc038a9fa
Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents:
29204
diff
changeset
|
922 | if test "x$force_deps" = "xyes"; then |
|
bf6fc038a9fa
Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents:
29204
diff
changeset
|
923 | AC_MSG_ERROR([ |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
924 | avahi development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
925 | Use --disable-avahi if you do not need avahi (Bonjour) support. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
926 | ]) |
|
29218
bf6fc038a9fa
Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents:
29204
diff
changeset
|
927 | fi |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
928 | fi |
|
19100
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
19044
diff
changeset
|
929 | AC_SUBST(AVAHI_CFLAGS) |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
19044
diff
changeset
|
930 | AC_SUBST(AVAHI_LIBS) |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
19044
diff
changeset
|
931 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
19044
diff
changeset
|
932 | |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
933 | dnl ####################################################################### |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
934 | dnl # Check for SILC client includes and libraries |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
935 | dnl ####################################################################### |
|
13733
a11620505037
[gaim-migrate @ 16142]
Mark Doliner <markdoliner@pidgin.im>
parents:
13720
diff
changeset
|
936 | 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
|
937 | 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 | 938 | SILC_CFLAGS="" |
| 8850 | 939 | SILC_LIBS="" |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
940 | have_silc="no" |
| 9905 | 941 | if test -n "$with_silc_includes" || test -n "$with_silc_libs"; then |
| 942 | silc_manual_check="yes" | |
| 943 | else | |
| 944 | silc_manual_check="no" | |
| 8850 | 945 | fi |
| 9905 | 946 | if test "x$silc_manual_check" = "xno"; then |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
947 | PKG_CHECK_MODULES(SILC, [silcclient >= 1.1], [ |
| 9905 | 948 | have_silc="yes" |
| 949 | silcincludes="yes" | |
| 950 | silcclient="yes" | |
|
13171
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
951 | ], [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
952 | have_silc="no" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
953 | ]) |
|
10803
9170a8914af7
[gaim-migrate @ 12450]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10628
diff
changeset
|
954 | if test "x$have_silc" = "xno"; then |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
955 | PKG_CHECK_MODULES(SILC, silcclient, [ |
|
10803
9170a8914af7
[gaim-migrate @ 12450]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10628
diff
changeset
|
956 | have_silc="yes" |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
957 | silc10includes="yes" |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
958 | silc10client="yes" |
|
13171
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
959 | ], [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
960 | have_silc="no" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
961 | ]) |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
962 | dnl If silcclient.pc wasn't found, check for just silc.pc |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
963 | if test "x$have_silc" = "xno"; then |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
964 | PKG_CHECK_MODULES(SILC, silc, [ |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
965 | have_silc="yes" |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
966 | silc10includes="yes" |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
967 | silc10client="yes" |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
968 | ], [ |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
969 | have_silc="no" |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
970 | ]) |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
971 | fi |
|
10803
9170a8914af7
[gaim-migrate @ 12450]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10628
diff
changeset
|
972 | fi |
| 9905 | 973 | else |
| 974 | if test "$ac_silc_includes" != "no"; then | |
| 975 | SILC_CFLAGS="-I$ac_silc_includes" | |
| 976 | fi | |
| 977 | CPPFLAGS_save="$CPPFLAGS" | |
| 978 | CPPFLAGS="$CPPFLAGS $SILC_CFLAGS" | |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
979 | AC_CHECK_HEADER(silc.h, [silcincludes=yes]) |
| 9905 | 980 | CPPFLAGS="$CPPFLAGS_save" |
| 981 | ||
| 982 | if test "$ac_silc_libs" != "no"; then | |
| 983 | SILC_LIBS="-L$ac_silc_libs" | |
| 984 | fi | |
|
12038
1d83b5720a65
[gaim-migrate @ 14331]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12036
diff
changeset
|
985 | SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread $LIBDL" |
| 9905 | 986 | AC_CHECK_LIB(silcclient, silc_client_init, [silcclient=yes], , $SILC_LIBS) |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
987 | |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
988 | if test "x$silcincludes" = "xyes" -a "x$silcclient" = "xyes"; then |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
989 | have_silc="yes" |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
990 | else |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
991 | CPPFLAGS_save="$CPPFLAGS" |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
992 | CPPFLAGS="$CPPFLAGS $SILC_CFLAGS" |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
993 | AC_CHECK_HEADER(silcincludes.h, [silc10includes=yes]) |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
994 | CPPFLAGS="$CPPFLAGS_save" |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
995 | |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
996 | SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread $LIBDL" |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
997 | AC_CHECK_LIB(silcclient, silc_client_init, [silc10client=yes], , $SILC_LIBS) |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
998 | if test "x$silc10includes" = "xyes" -a "x$silc10client" = "xyes"; then |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
999 | have_silc="yes" |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1000 | fi |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1001 | fi |
| 9905 | 1002 | fi |
| 8850 | 1003 | AC_SUBST(SILC_LIBS) |
| 9905 | 1004 | AC_SUBST(SILC_CFLAGS) |
|
12217
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
1005 | dnl SILC Toolkit >= 1.0.1 has a new MIME API |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
1006 | if test "x$silcclient" = "xyes"; then |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1007 | AC_DEFINE(HAVE_SILCMIME_H, 1, [Define if we have silcmime.h]) |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1008 | elif test "x$silc10client" = "xyes"; then |
|
12217
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
1009 | CPPFLAGS_save="$CPPFLAGS" |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
1010 | CPPFLAGS="$CPPFLAGS $SILC_CFLAGS" |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
1011 | AC_MSG_CHECKING(for silcmime.h) |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
1012 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
|
12217
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
1013 | #include <silcincludes.h> |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
1014 | #include <silcmime.h> |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
1015 | ]], [[]])], [ |
|
12217
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
1016 | AC_MSG_RESULT(yes) |
|
13324
8ff1c408ef3e
[gaim-migrate @ 15693]
Richard Laager <rlaager@pidgin.im>
parents:
13320
diff
changeset
|
1017 | 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
|
1018 | ], [ |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
1019 | AC_MSG_RESULT(no) |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
1020 | ]) |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
1021 | CPPFLAGS="$CPPFLAGS_save" |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
1022 | fi |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
1023 | |
| 13318 | 1024 | dnl ####################################################################### |
|
13776
0578ed4d2284
[gaim-migrate @ 16186]
Mark Doliner <markdoliner@pidgin.im>
parents:
13773
diff
changeset
|
1025 | dnl # Check for Gadu-Gadu client includes and libraries |
| 13318 | 1026 | dnl ####################################################################### |
|
13820
52bd6836c49a
[gaim-migrate @ 16250]
Richard Laager <rlaager@pidgin.im>
parents:
13813
diff
changeset
|
1027 | AC_ARG_WITH(gadu-includes, [AC_HELP_STRING([--with-gadu-includes=DIR], [compile the Gadu-Gadu plugin against includes in DIR])], [ac_gadu_includes="$withval"], [ac_gadu_includes="no"]) |
|
52bd6836c49a
[gaim-migrate @ 16250]
Richard Laager <rlaager@pidgin.im>
parents:
13813
diff
changeset
|
1028 | AC_ARG_WITH(gadu-libs, [AC_HELP_STRING([--with-gadu-libs=DIR], [compile the Gadu-Gadu plugin against the libs in DIR])], [ac_gadu_libs="$withval"], [ac_gadu_libs="no"]) |
| 13318 | 1029 | GADU_CFLAGS="" |
| 1030 | GADU_LIBS="" | |
| 1031 | if test -n "$with_gadu_includes" || test -n "$with_gadu_libs"; then | |
| 1032 | gadu_manual_check="yes" | |
| 1033 | else | |
| 1034 | gadu_manual_check="no" | |
| 1035 | fi | |
| 1036 | if test "x$gadu_manual_check" = "xno"; then | |
|
29838
568e4272bc7c
Only accept libgadu >= 1.9.0-rc2 when using pkg-config.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29836
diff
changeset
|
1037 | PKG_CHECK_MODULES(GADU, [libgadu >= 1.9.0-rc2], [ |
| 13318 | 1038 | gadu_includes="yes" |
| 1039 | gadu_libs="yes" | |
| 1040 | ], [ | |
|
26755
5c2c25af0133
Don't print 'no' twice if GADU libs are not found by pkg-config.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26754
diff
changeset
|
1041 | gadu_includes="no" |
| 13318 | 1042 | ]) |
| 1043 | else | |
| 1044 | if test "$ac_gadu_includes" != "no"; then | |
| 1045 | GADU_CFLAGS="-I$ac_gadu_includes" | |
| 1046 | fi | |
| 1047 | CPPFLAGS_save="$CPPFLAGS" | |
| 1048 | CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" | |
| 1049 | AC_CHECK_HEADER(libgadu.h, [gadu_includes=yes]) | |
| 1050 | CPPFLAGS="$CPPFLAGS_save" | |
| 1051 | ||
| 1052 | if test "$ac_gadu_libs" != "no"; then | |
| 1053 | GADU_LIBS="-L$ac_gadu_libs" | |
| 1054 | fi | |
| 1055 | GADU_LIBS="$GADU_LIBS -lgadu" | |
| 1056 | AC_CHECK_LIB(gadu, gg_libgadu_version, [gadu_libs=yes], , $GADU_LIBS) | |
| 1057 | fi | |
|
16736
5b4d366da44e
Filter -Wall from the GADU_CFLAGS. I'll let the libgadu folks know about this.
Richard Laager <rlaager@pidgin.im>
parents:
16732
diff
changeset
|
1058 | GADU_CFLAGS=`echo $GADU_CFLAGS |$sedpath 's/-Wall//'` |
| 13318 | 1059 | |
| 1060 | if test "x$gadu_libs" = "xyes"; then | |
| 1061 | AC_MSG_CHECKING(for libgadu GPL compatibility) | |
| 13466 | 1062 | CPPFLAGS_save="$CPPFLAGS" |
| 1063 | CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" | |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
1064 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <libgadu.h>]], [[ |
|
21493
b8d052f19aad
Some versions of libgadu use __GG_LIBGADU_HAVE_OPENSSL, others use
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21481
diff
changeset
|
1065 | #if defined(__GG_LIBGADU_HAVE_OPENSSL) || defined(GG_CONFIG_HAVE_OPENSSL) |
| 13318 | 1066 | #error "libgadu is not compatible with the GPL when compiled with OpenSSL support." |
| 1067 | #endif | |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
1068 | ]])], [ |
|
29839
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1069 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <libgadu.h>]], [[ |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1070 | #if GG_DEFAULT_PROTOCOL_VERSION < 0x2e |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1071 | #error "Your libgadu version is too old. libpurple requires 1.9.0-rc2 or higher." |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1072 | #endif |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1073 | ]])], [ |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1074 | AC_MSG_RESULT(yes) |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1075 | AC_DEFINE([HAVE_LIBGADU], [1], |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1076 | [Define to 1 if you have libgadu.]) |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1077 | ], [ |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1078 | AC_MSG_RESULT(no) |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1079 | echo |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1080 | echo |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1081 | echo "Your supplied copy of libgadu is too old." |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1082 | echo "Install version 1.9.0-rc2 or newer." |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1083 | echo "Then rerun this ./configure" |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1084 | echo |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1085 | echo "Falling back to using our own copy of libgadu" |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1086 | echo |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1087 | GADU_LIBS="" |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1088 | GADU_CFLAGS="" |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1089 | gadu_libs=no |
|
6817ea4fe466
Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29838
diff
changeset
|
1090 | ]) |
| 13318 | 1091 | ], [ |
| 1092 | AC_MSG_RESULT(no) | |
| 1093 | echo | |
| 1094 | echo | |
| 1095 | echo "libgadu is not compatible with the GPL when compiled with OpenSSL support." | |
|
21493
b8d052f19aad
Some versions of libgadu use __GG_LIBGADU_HAVE_OPENSSL, others use
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21481
diff
changeset
|
1096 | echo "To compile against system libgadu, please recompile libgadu using:" |
| 13318 | 1097 | echo "./autogen.sh --disable-libgadu-openssl --disable-static --enable-shared" |
| 1098 | echo "Then rerun this ./configure" | |
| 1099 | echo | |
|
21493
b8d052f19aad
Some versions of libgadu use __GG_LIBGADU_HAVE_OPENSSL, others use
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21481
diff
changeset
|
1100 | echo "Falling back to using our own copy of libgadu" |
| 13318 | 1101 | echo |
| 1102 | GADU_LIBS="" | |
| 1103 | GADU_CFLAGS="" | |
| 1104 | gadu_libs=no | |
| 1105 | ]) | |
| 13466 | 1106 | CPPFLAGS="$CPPFLAGS_save" |
| 13318 | 1107 | fi |
| 1108 | ||
|
14666
a38d4736ed44
[gaim-migrate @ 17332]
Richard Laager <rlaager@pidgin.im>
parents:
14662
diff
changeset
|
1109 | AM_CONDITIONAL(USE_INTERNAL_LIBGADU, test "x$gadu_libs" != "xyes") |
|
14662
ffa7b2f70a37
[gaim-migrate @ 17327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
14647
diff
changeset
|
1110 | |
|
29856
203c3499753f
Properly display "no" in the configure output when not using external libgadu.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29839
diff
changeset
|
1111 | if test "x$gadu_libs" = "x"; then |
|
203c3499753f
Properly display "no" in the configure output when not using external libgadu.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29839
diff
changeset
|
1112 | gadu_libs=no |
|
203c3499753f
Properly display "no" in the configure output when not using external libgadu.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29839
diff
changeset
|
1113 | fi |
|
203c3499753f
Properly display "no" in the configure output when not using external libgadu.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29839
diff
changeset
|
1114 | |
| 13318 | 1115 | AC_SUBST(GADU_LIBS) |
| 1116 | AC_SUBST(GADU_CFLAGS) | |
| 1117 | ||
| 2129 | 1118 | AC_ARG_ENABLE(distrib,,,enable_distrib=no) |
| 1119 | AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") | |
| 8031 | 1120 | DYNAMIC_PRPLS=all |
|
13733
a11620505037
[gaim-migrate @ 16142]
Mark Doliner <markdoliner@pidgin.im>
parents:
13720
diff
changeset
|
1121 | 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 | 1122 | if test "x$STATIC_PRPLS" != "x" -a "x$DYNAMIC_PRPLS" = "xall"; then |
| 1123 | DYNAMIC_PRPLS="" | |
| 1124 | fi | |
| 1125 | ||
| 2129 | 1126 | if test "x$STATIC_PRPLS" = "xall" ; then |
|
28841
6b9568572bcb
Initial addition of the MXit protocol plugin, provided by the MXit folks
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28693
diff
changeset
|
1127 | STATIC_PRPLS="bonjour gg irc jabber msn myspace mxit novell oscar qq sametime silc simple yahoo zephyr" |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
1128 | fi |
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
1129 | if test "x$have_meanwhile" != "xyes" ; then |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
1130 | STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'` |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
1131 | fi |
|
19100
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
19044
diff
changeset
|
1132 | if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then |
|
21920
3087a567aedf
Update Bonjour prpl to support multiple presence records for the same buddy. Eliminate the Howl backend to avoid having to maintain yet another set of code. References #4187 (more to come to fix the rest of the ticket).
Daniel Atallah <datallah@pidgin.im>
parents:
21915
diff
changeset
|
1133 | STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'` |
| 2129 | 1134 | fi |
| 8852 | 1135 | if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1136 | STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc/silc10/'` |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1137 | fi |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1138 | if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1139 | STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc10//'` |
| 8852 | 1140 | fi |
| 2129 | 1141 | AC_SUBST(STATIC_PRPLS) |
| 1142 | STATIC_LINK_LIBS= | |
| 1143 | extern_init= | |
| 1144 | load_proto= | |
| 1145 | for i in $STATIC_PRPLS ; do | |
|
24609
c119f12de848
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
1146 | dnl Ugly special case for "libsilcpurple.la": |
|
27758
ec0262f7e9a8
zac from the Adium team noticed that the static prpl foo for yahoo was no longer
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27694
diff
changeset
|
1147 | dnl ... and Ugly special case for multi-protocol oscar and yahoo |
|
17669
6effc1eec7fe
This started off as a patch from OpenSolaris to fix compiling with static
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17638
diff
changeset
|
1148 | if test \( "x$i" = "xoscar" -o "x$i" = "xaim" -o "x$i" = "xicq" \) -a "x$static_oscar" != "xyes"; then |
|
24609
c119f12de848
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
1149 | STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/oscar/liboscar.la" |
|
17669
6effc1eec7fe
This started off as a patch from OpenSolaris to fix compiling with static
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17638
diff
changeset
|
1150 | extern_init="$extern_init extern gboolean purple_init_aim_plugin();" |
|
6effc1eec7fe
This started off as a patch from OpenSolaris to fix compiling with static
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17638
diff
changeset
|
1151 | extern_init="$extern_init extern gboolean purple_init_icq_plugin();" |
|
6effc1eec7fe
This started off as a patch from OpenSolaris to fix compiling with static
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17638
diff
changeset
|
1152 | load_proto="$load_proto purple_init_aim_plugin();" |
|
6effc1eec7fe
This started off as a patch from OpenSolaris to fix compiling with static
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17638
diff
changeset
|
1153 | load_proto="$load_proto purple_init_icq_plugin();" |
|
27758
ec0262f7e9a8
zac from the Adium team noticed that the static prpl foo for yahoo was no longer
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27694
diff
changeset
|
1154 | elif test "x$i" = "xyahoo"; then |
|
ec0262f7e9a8
zac from the Adium team noticed that the static prpl foo for yahoo was no longer
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27694
diff
changeset
|
1155 | STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/yahoo/libymsg.la" |
|
ec0262f7e9a8
zac from the Adium team noticed that the static prpl foo for yahoo was no longer
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27694
diff
changeset
|
1156 | extern_init="$extern_init extern gboolean purple_init_yahoo_plugin();" |
|
ec0262f7e9a8
zac from the Adium team noticed that the static prpl foo for yahoo was no longer
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27694
diff
changeset
|
1157 | extern_init="$extern_init extern gboolean purple_init_yahoojp_plugin();" |
|
ec0262f7e9a8
zac from the Adium team noticed that the static prpl foo for yahoo was no longer
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27694
diff
changeset
|
1158 | load_proto="$load_proto purple_init_yahoo_plugin();" |
|
ec0262f7e9a8
zac from the Adium team noticed that the static prpl foo for yahoo was no longer
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27694
diff
changeset
|
1159 | load_proto="$load_proto purple_init_yahoojp_plugin();" |
|
11945
3013d1f6ca43
[gaim-migrate @ 14236]
Mark Doliner <markdoliner@pidgin.im>
parents:
11903
diff
changeset
|
1160 | else |
|
17669
6effc1eec7fe
This started off as a patch from OpenSolaris to fix compiling with static
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17638
diff
changeset
|
1161 | if test "x$i" = "xsilc"; then |
|
24609
c119f12de848
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
1162 | STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib${i}purple.la" |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1163 | elif test "x$i" = "xsilc10"; then |
|
24609
c119f12de848
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
1164 | STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/libsilcpurple.la" |
|
17669
6effc1eec7fe
This started off as a patch from OpenSolaris to fix compiling with static
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17638
diff
changeset
|
1165 | else |
|
24609
c119f12de848
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
1166 | STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib$i.la" |
|
17669
6effc1eec7fe
This started off as a patch from OpenSolaris to fix compiling with static
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17638
diff
changeset
|
1167 | fi |
|
6effc1eec7fe
This started off as a patch from OpenSolaris to fix compiling with static
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17638
diff
changeset
|
1168 | extern_init="$extern_init extern gboolean purple_init_${i}_plugin();" |
|
6effc1eec7fe
This started off as a patch from OpenSolaris to fix compiling with static
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17638
diff
changeset
|
1169 | load_proto="$load_proto purple_init_${i}_plugin();" |
|
11945
3013d1f6ca43
[gaim-migrate @ 14236]
Mark Doliner <markdoliner@pidgin.im>
parents:
11903
diff
changeset
|
1170 | fi |
| 2129 | 1171 | case $i in |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
1172 | bonjour) static_bonjour=yes ;; |
|
13733
a11620505037
[gaim-migrate @ 16142]
Mark Doliner <markdoliner@pidgin.im>
parents:
13720
diff
changeset
|
1173 | gg) static_gg=yes ;; |
|
8637
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1174 | irc) static_irc=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1175 | jabber) static_jabber=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1176 | msn) static_msn=yes ;; |
|
16323
0335752f4bbe
Add MySpace prpl to configure.ac
Jeff Connelly <jeff2@soc.pidgin.im>
parents:
16292
diff
changeset
|
1177 | myspace) static_myspace=yes ;; |
|
28841
6b9568572bcb
Initial addition of the MXit protocol plugin, provided by the MXit folks
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28693
diff
changeset
|
1178 | mxit) static_mxit=yes ;; |
| 8675 | 1179 | novell) static_novell=yes ;; |
|
8637
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1180 | oscar) static_oscar=yes ;; |
|
15478
e0dc5250f702
I think this is what was meant
Nathan Walp <nwalp@pidgin.im>
parents:
15471
diff
changeset
|
1181 | aim) static_oscar=yes ;; |
|
e0dc5250f702
I think this is what was meant
Nathan Walp <nwalp@pidgin.im>
parents:
15471
diff
changeset
|
1182 | icq) static_oscar=yes ;; |
|
15868
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1183 | qq) static_qq=yes ;; |
|
10977
5802457af313
[gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
10975
diff
changeset
|
1184 | sametime) static_sametime=yes ;; |
| 8849 | 1185 | silc) static_silc=yes ;; |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1186 | silc10) static_silc=yes ;; |
|
11182
9cb28f52220f
[gaim-migrate @ 13294]
Mark Doliner <markdoliner@pidgin.im>
parents:
11181
diff
changeset
|
1187 | simple) static_simple=yes ;; |
|
8637
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1188 | yahoo) static_yahoo=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1189 | zephyr) static_zephyr=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1190 | *) echo "Invalid static protocol $i!!" ; exit ;; |
| 2129 | 1191 | esac |
| 1192 | done | |
|
19100
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
19044
diff
changeset
|
1193 | AM_CONDITIONAL(STATIC_BONJOUR, test "x$static_bonjour" = "xyes") |
|
2393
cfef0212506b
[gaim-migrate @ 2406]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2330
diff
changeset
|
1194 | AM_CONDITIONAL(STATIC_GG, test "x$static_gg" = "xyes") |
|
2244
7231c3f80615
[gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2238
diff
changeset
|
1195 | AM_CONDITIONAL(STATIC_IRC, test "x$static_irc" = "xyes") |
|
7231c3f80615
[gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2238
diff
changeset
|
1196 | AM_CONDITIONAL(STATIC_JABBER, test "x$static_jabber" = "xyes") |
|
7231c3f80615
[gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2238
diff
changeset
|
1197 | AM_CONDITIONAL(STATIC_MSN, test "x$static_msn" = "xyes") |
|
16323
0335752f4bbe
Add MySpace prpl to configure.ac
Jeff Connelly <jeff2@soc.pidgin.im>
parents:
16292
diff
changeset
|
1198 | AM_CONDITIONAL(STATIC_MYSPACE, test "x$static_myspace" = "xyes") |
|
28841
6b9568572bcb
Initial addition of the MXit protocol plugin, provided by the MXit folks
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28693
diff
changeset
|
1199 | AM_CONDITIONAL(STATIC_MXIT, test "x$static_mxit" = "xyes") |
| 8675 | 1200 | AM_CONDITIONAL(STATIC_NOVELL, test "x$static_novell" = "xyes") |
|
2244
7231c3f80615
[gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2238
diff
changeset
|
1201 | AM_CONDITIONAL(STATIC_OSCAR, test "x$static_oscar" = "xyes") |
|
13932
4d131bd2b40f
[gaim-migrate @ 16340]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
13845
diff
changeset
|
1202 | AM_CONDITIONAL(STATIC_QQ, test "x$static_qq" = "xyes") |
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
1203 | AM_CONDITIONAL(STATIC_SAMETIME, test "x$static_sametime" = "xyes" -a "x$have_meanwhile" = "xyes") |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1204 | AM_CONDITIONAL(STATIC_SILC, test "x$static_silc" = "xyes" -a "x$have_silc" = "xyes") |
|
11181
e872a55b9524
[gaim-migrate @ 13292]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
11171
diff
changeset
|
1205 | AM_CONDITIONAL(STATIC_SIMPLE, test "x$static_simple" = "xyes") |
|
2244
7231c3f80615
[gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2238
diff
changeset
|
1206 | AM_CONDITIONAL(STATIC_YAHOO, test "x$static_yahoo" = "xyes") |
|
7231c3f80615
[gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2238
diff
changeset
|
1207 | AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes") |
| 2129 | 1208 | AC_SUBST(STATIC_LINK_LIBS) |
|
22104
56970903b8e9
Probe for -Wstrict-prototypes to get some more warnings. I then cleaned up
Richard Laager <rlaager@pidgin.im>
parents:
22053
diff
changeset
|
1209 | AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init static void static_proto_init(void) { $load_proto }, |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
1210 | [Loads static protocol plugin module initialization functions.]) |
| 2129 | 1211 | |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
1212 | 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 | 1213 | if test "x$DYNAMIC_PRPLS" = "xall" ; then |
|
28841
6b9568572bcb
Initial addition of the MXit protocol plugin, provided by the MXit folks
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28693
diff
changeset
|
1214 | DYNAMIC_PRPLS="bonjour gg irc jabber msn myspace mxit novell oscar qq sametime silc simple yahoo zephyr" |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
1215 | fi |
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
1216 | if test "x$have_meanwhile" != "xyes"; then |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
1217 | DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'` |
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
1218 | fi |
|
19100
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
19044
diff
changeset
|
1219 | if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then |
|
21920
3087a567aedf
Update Bonjour prpl to support multiple presence records for the same buddy. Eliminate the Howl backend to avoid having to maintain yet another set of code. References #4187 (more to come to fix the rest of the ticket).
Daniel Atallah <datallah@pidgin.im>
parents:
21915
diff
changeset
|
1220 | DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'` |
| 7373 | 1221 | fi |
| 8852 | 1222 | if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1223 | DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc/silc10/'` |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1224 | fi |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1225 | if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then |
|
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1226 | DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc10//'` |
| 8852 | 1227 | fi |
| 7373 | 1228 | AC_SUBST(DYNAMIC_PRPLS) |
| 1229 | for i in $DYNAMIC_PRPLS ; do | |
| 1230 | case $i in | |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
1231 | bonjour) dynamic_bonjour=yes ;; |
|
8637
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1232 | gg) dynamic_gg=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1233 | irc) dynamic_irc=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1234 | jabber) dynamic_jabber=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1235 | msn) dynamic_msn=yes ;; |
|
16323
0335752f4bbe
Add MySpace prpl to configure.ac
Jeff Connelly <jeff2@soc.pidgin.im>
parents:
16292
diff
changeset
|
1236 | myspace) dynamic_myspace=yes ;; |
|
28841
6b9568572bcb
Initial addition of the MXit protocol plugin, provided by the MXit folks
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28693
diff
changeset
|
1237 | mxit) dynamic_mxit=yes ;; |
| 8675 | 1238 | novell) dynamic_novell=yes ;; |
|
25003
4094ff8a95c7
The DYNAMIC_protocol defines aren't used anywhere.
Richard Laager <rlaager@pidgin.im>
parents:
24689
diff
changeset
|
1239 | null) dynamic_null=yes ;; |
|
8637
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1240 | oscar) dynamic_oscar=yes ;; |
|
15471
ed25e8510145
Allow --dynamic-prpls to recognize aim and icq as synonyms for oscar
Ethan Blanton <elb@pidgin.im>
parents:
15458
diff
changeset
|
1241 | aim) dynamic_oscar=yes ;; |
|
ed25e8510145
Allow --dynamic-prpls to recognize aim and icq as synonyms for oscar
Ethan Blanton <elb@pidgin.im>
parents:
15458
diff
changeset
|
1242 | icq) dynamic_oscar=yes ;; |
|
15868
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1243 | qq) dynamic_qq=yes ;; |
|
10977
5802457af313
[gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
10975
diff
changeset
|
1244 | sametime) dynamic_sametime=yes ;; |
| 8849 | 1245 | silc) dynamic_silc=yes ;; |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
1246 | silc10) dynamic_silc=yes ;; |
|
11181
e872a55b9524
[gaim-migrate @ 13292]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
11171
diff
changeset
|
1247 | simple) dynamic_simple=yes ;; |
|
8637
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1248 | yahoo) dynamic_yahoo=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1249 | zephyr) dynamic_zephyr=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
1250 | *) echo "Invalid dynamic protocol $i!!" ; exit ;; |
| 7373 | 1251 | esac |
| 1252 | done | |
| 1253 | ||
|
14269
cd16418f69e8
[gaim-migrate @ 16881]
Mark Doliner <markdoliner@pidgin.im>
parents:
14268
diff
changeset
|
1254 | AC_ARG_ENABLE(plugins, [AC_HELP_STRING([--disable-plugins], [compile without plugin support])], , enable_plugins=yes) |
|
14502
06af96a5a07d
[gaim-migrate @ 17154]
Mark Doliner <markdoliner@pidgin.im>
parents:
14498
diff
changeset
|
1255 | AC_ARG_WITH(krb4, [AC_HELP_STRING([--with-krb4=PREFIX], [compile Zephyr plugin with Kerberos 4 support])], kerberos="$withval", kerberos="no") |
|
06af96a5a07d
[gaim-migrate @ 17154]
Mark Doliner <markdoliner@pidgin.im>
parents:
14498
diff
changeset
|
1256 | AC_ARG_WITH(zephyr, [AC_HELP_STRING([--with-zephyr=PREFIX], [compile Zephyr plugin against external libzephyr])], zephyr="$withval", zephyr="no") |
| 8849 | 1257 | AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") |
| 2129 | 1258 | |
|
22673
9a01f082c6b0
Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents:
22663
diff
changeset
|
1259 | AC_CHECK_HEADERS(sys/utsname.h) |
| 8849 | 1260 | AC_CHECK_FUNC(uname) |
| 8378 | 1261 | |
|
16591
f135ca1f398d
disapproval of revision '1266a6e5c649b88df9492e37648ddcd08ba3007a'
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16590
diff
changeset
|
1262 | AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes) |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1263 | |
|
24569
5dbd0617a27d
Build everything with the *_DISABLE_DEPRECATED flags set. This allows us
Richard Laager <rlaager@pidgin.im>
parents:
24512
diff
changeset
|
1264 | DEBUG_CFLAGS="$DEBUG_CFLAGS -DPURPLE_DISABLE_DEPRECATED -DPIDGIN_DISABLE_DEPRECATED -DFINCH_DISABLE_DEPRECATED -DGNT_DISABLE_DEPRECATED" |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1265 | if test "x$GCC" = "xyes"; then |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1266 | dnl We enable -Wall later. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1267 | 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
|
1268 | dnl This leads to warnings we don't want. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1269 | CFLAGS=`echo $CFLAGS |$sedpath 's/-Wall//'` |
|
12438
b993017e8f68
[gaim-migrate @ 14745]
Richard Laager <rlaager@pidgin.im>
parents:
12435
diff
changeset
|
1270 | |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1271 | dnl ENABLE WARNINGS SUPPORTED BY THE VERSION OF GCC IN USE |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1272 | dnl |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1273 | dnl Future Possibilities |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1274 | dnl |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1275 | dnl Consider adding -Wbad-function-cast. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1276 | 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
|
1277 | dnl We'd need an intermediate variable. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1278 | dnl |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1279 | dnl Consider adding -Wfloat-equal. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1280 | dnl This leads to warnings with Perl. |
|
15868
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1281 | dnl Perhaps we could write ugly configure magic and pass -Wno-float-equal down to that subdirectory. |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1282 | 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
|
1283 | dnl |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1284 | 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
|
1285 | dnl This is likely non-trivial. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1286 | dnl |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1287 | for newflag in \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1288 | "-Waggregate-return" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1289 | "-Wcast-align" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1290 | "-Wdeclaration-after-statement" \ |
|
16650
43ae29f3d728
Add a couple more CFLAGS to highlight some more warnings and change how we
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16590
diff
changeset
|
1291 | "-Wendif-labels" \ |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1292 | "-Werror-implicit-function-declaration" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1293 | "-Wextra -Wno-sign-compare -Wno-unused-parameter" \ |
|
25136
026dcbacb44e
Turn on -Wformat-security and make it an error with GCC 4.
Richard Laager <rlaager@pidgin.im>
parents:
24689
diff
changeset
|
1294 | "-Wformat-security" \ |
|
026dcbacb44e
Turn on -Wformat-security and make it an error with GCC 4.
Richard Laager <rlaager@pidgin.im>
parents:
24689
diff
changeset
|
1295 | "-Werror=format-security" \ |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1296 | "-Winit-self" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1297 | "-Wmissing-declarations" \ |
|
16650
43ae29f3d728
Add a couple more CFLAGS to highlight some more warnings and change how we
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16590
diff
changeset
|
1298 | "-Wmissing-noreturn" \ |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1299 | "-Wmissing-prototypes" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1300 | "-Wpointer-arith" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1301 | "-Wundef" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1302 | ; do |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1303 | orig_CFLAGS="$CFLAGS" |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1304 | CFLAGS="$CFLAGS $newflag" |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1305 | AC_MSG_CHECKING(for $newflag option to gcc) |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
1306 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1307 | int main() {return 0;} |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
1308 | ]])], [ |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1309 | AC_MSG_RESULT(yes) |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1310 | CFLAGS="$orig_CFLAGS" |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1311 | DEBUG_CFLAGS="$DEBUG_CFLAGS $newflag" |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1312 | ], [ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1313 | AC_MSG_RESULT(no) |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1314 | CFLAGS="$orig_CFLAGS" |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1315 | ]) |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1316 | done |
|
12435
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1317 | |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1318 | if test "x$enable_fortify" = "xyes"; then |
|
12435
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1319 | AC_MSG_CHECKING(for FORTIFY_SOURCE support) |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
1320 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <features.h>]], [[ |
|
12435
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1321 | int main() { |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1322 | #if !(__GNUC_PREREQ (4, 1) \ |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1323 | || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (4, 0)) \ |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1324 | || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (3, 4) \ |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1325 | && __GNUC_MINOR__ == 4 \ |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1326 | && (__GNUC_PATCHLEVEL__ > 2 \ |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1327 | || (__GNUC_PATCHLEVEL__ == 2 && __GNUC_RH_RELEASE__ >= 8)))) |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1328 | #error No FORTIFY_SOURCE support |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1329 | #endif |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1330 | return 0; |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1331 | } |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
1332 | ]])], [ |
|
12435
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1333 | AC_MSG_RESULT(yes) |
|
16650
43ae29f3d728
Add a couple more CFLAGS to highlight some more warnings and change how we
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16590
diff
changeset
|
1334 | DEBUG_CFLAGS="$DEBUG_CFLAGS -Wp,-D_FORTIFY_SOURCE=2" |
|
12435
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1335 | ], [ |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1336 | AC_MSG_RESULT(no) |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1337 | ]) |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1338 | fi |
|
8525
9e4e0635fd3c
[gaim-migrate @ 9264]
Christian Hammond <chipx86@chipx86.com>
parents:
8485
diff
changeset
|
1339 | |
|
12435
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1340 | DEBUG_CFLAGS="-Wall $DEBUG_CFLAGS" |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
1341 | CFLAGS="-g $CFLAGS" |
| 7021 | 1342 | fi |
|
30263
c570eb3becca
Build fixes on OpenSolaris. Closes #11841.
Brian Lu <brian.lu@sun.com>
parents:
30234
diff
changeset
|
1343 | |
|
c570eb3becca
Build fixes on OpenSolaris. Closes #11841.
Brian Lu <brian.lu@sun.com>
parents:
30234
diff
changeset
|
1344 | if test "x$SUNCC" = "xyes"; then |
|
c570eb3becca
Build fixes on OpenSolaris. Closes #11841.
Brian Lu <brian.lu@sun.com>
parents:
30234
diff
changeset
|
1345 | CFLAGS="-features=extensions" |
|
c570eb3becca
Build fixes on OpenSolaris. Closes #11841.
Brian Lu <brian.lu@sun.com>
parents:
30234
diff
changeset
|
1346 | fi |
|
6723
f62d96da133a
[gaim-migrate @ 7250]
Christian Hammond <chipx86@chipx86.com>
parents:
6722
diff
changeset
|
1347 | AC_SUBST(CFLAGS) |
|
f62d96da133a
[gaim-migrate @ 7250]
Christian Hammond <chipx86@chipx86.com>
parents:
6722
diff
changeset
|
1348 | |
|
15976
dbb3ea0b1f7c
Minor 'make dist' fix and check for installed versions of pidgin, not gaim
Mark Doliner <markdoliner@pidgin.im>
parents:
15966
diff
changeset
|
1349 | AC_PATH_PROG(pidginpath, pidgin) |
|
14253
b63ebf84c42b
This is a hand-crafted commit to migrate across subversion revisions
Ethan Blanton <elb@pidgin.im>
parents:
14184
diff
changeset
|
1350 | |
|
8665
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
1351 | dnl ####################################################################### |
|
15610
fc49b3cc8095
Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents:
15600
diff
changeset
|
1352 | dnl # Check for D-Bus libraries |
|
11055
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
1353 | dnl ####################################################################### |
|
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
1354 | |
|
23472
47e62844487f
The DBus and NetworkManager options are enabled by default, so the --help
Richard Laager <rlaager@pidgin.im>
parents:
23352
diff
changeset
|
1355 | AC_ARG_ENABLE(dbus, [AC_HELP_STRING([--disable-dbus], [disable D-Bus support])], , enable_dbus=yes) |
|
47e62844487f
The DBus and NetworkManager options are enabled by default, so the --help
Richard Laager <rlaager@pidgin.im>
parents:
23352
diff
changeset
|
1356 | AC_ARG_ENABLE(nm, [AC_HELP_STRING([--disable-nm], [disable NetworkManager support (requires D-Bus)])], enable_nm=$enableval, enable_nm=yes) |
|
11055
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
1357 | |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
1358 | if test "x$enable_dbus" = "xyes" ; then |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
1359 | AC_CHECK_PROG(enable_dbus, dbus-binding-tool, yes, no) |
|
11055
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
1360 | fi |
|
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
1361 | |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
1362 | if test "x$enable_dbus" = "xyes" ; then |
|
22756
c075c698757b
Fix our D-Bus version requirement
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22755
diff
changeset
|
1363 | PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60], [ |
|
11055
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
1364 | AC_SUBST(DBUS_CFLAGS) |
|
11070
133af4fe08f9
[gaim-migrate @ 13069]
Richard Laager <rlaager@pidgin.im>
parents:
11067
diff
changeset
|
1365 | AC_SUBST(DBUS_LIBS) |
|
133af4fe08f9
[gaim-migrate @ 13069]
Richard Laager <rlaager@pidgin.im>
parents:
11067
diff
changeset
|
1366 | enable_dbus=yes |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
1367 | ], [ |
|
24252
a9e2f64c5287
Report dbus/nm availability correctly
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24244
diff
changeset
|
1368 | enable_dbus=no |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
1369 | if test "x$force_deps" = "xyes" ; then |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1370 | AC_MSG_ERROR([ |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1371 | D-Bus development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1372 | Use --disable-dbus if you do not need D-Bus support. |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
1373 | ]) |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
1374 | fi]) |
|
24243
7c7ffeef8338
Don't check for NetworkManager support when we find out we're not
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
24224
diff
changeset
|
1375 | fi |
| 14758 | 1376 | |
|
23040
13df421b8347
Update configure.ac to properly detect Network Manager (via NetworkManager.h instead of libnm_glib). Also, change the code so that if NetworkManager is dead, we'll assume we're connected to the network and try anyway.
Richard Laager <rlaager@pidgin.im>
parents:
22818
diff
changeset
|
1377 | dnl Check for NetworkManager.h; if we don't have it, oh well |
|
24243
7c7ffeef8338
Don't check for NetworkManager support when we find out we're not
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
24224
diff
changeset
|
1378 | if test "x$enable_dbus" = "xyes" ; then |
|
23040
13df421b8347
Update configure.ac to properly detect Network Manager (via NetworkManager.h instead of libnm_glib). Also, change the code so that if NetworkManager is dead, we'll assume we're connected to the network and try anyway.
Richard Laager <rlaager@pidgin.im>
parents:
22818
diff
changeset
|
1379 | if test "x$enable_nm" = "xyes" ; then |
|
24244
a567e5307e47
Depend on NetworkManager >= 0.5.0 because NetworkManager.h does not
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
24243
diff
changeset
|
1380 | PKG_CHECK_MODULES(NETWORKMANAGER, [NetworkManager >= 0.5.0], [ |
|
23060
db9632a9b374
Use pkg-config to detect NetworkManager. Also, fail if it isn't present,
Richard Laager <rlaager@pidgin.im>
parents:
23040
diff
changeset
|
1381 | AC_SUBST(NETWORKMANAGER_CFLAGS) |
|
db9632a9b374
Use pkg-config to detect NetworkManager. Also, fail if it isn't present,
Richard Laager <rlaager@pidgin.im>
parents:
23040
diff
changeset
|
1382 | AC_SUBST(NETWORKMANAGER_LIBS) |
|
db9632a9b374
Use pkg-config to detect NetworkManager. Also, fail if it isn't present,
Richard Laager <rlaager@pidgin.im>
parents:
23040
diff
changeset
|
1383 | AC_DEFINE(HAVE_NETWORKMANAGER, 1, [Define if we have NetworkManager.]) |
|
db9632a9b374
Use pkg-config to detect NetworkManager. Also, fail if it isn't present,
Richard Laager <rlaager@pidgin.im>
parents:
23040
diff
changeset
|
1384 | ], [ |
|
24252
a9e2f64c5287
Report dbus/nm availability correctly
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24244
diff
changeset
|
1385 | enable_nm=no |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
1386 | if test "x$force_deps" = "xyes" ; then |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
1387 | AC_MSG_ERROR([ |
|
23060
db9632a9b374
Use pkg-config to detect NetworkManager. Also, fail if it isn't present,
Richard Laager <rlaager@pidgin.im>
parents:
23040
diff
changeset
|
1388 | NetworkManager development headers not found. |
|
db9632a9b374
Use pkg-config to detect NetworkManager. Also, fail if it isn't present,
Richard Laager <rlaager@pidgin.im>
parents:
23040
diff
changeset
|
1389 | Use --disable-nm if you do not need NetworkManager support. |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
1390 | ]) |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
1391 | fi]) |
|
15610
fc49b3cc8095
Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents:
15600
diff
changeset
|
1392 | fi |
|
24252
a9e2f64c5287
Report dbus/nm availability correctly
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24244
diff
changeset
|
1393 | else |
|
a9e2f64c5287
Report dbus/nm availability correctly
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24244
diff
changeset
|
1394 | enable_nm=no |
|
11067
b6353889a9ba
[gaim-migrate @ 13048]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11055
diff
changeset
|
1395 | fi |
|
b6353889a9ba
[gaim-migrate @ 13048]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11055
diff
changeset
|
1396 | |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
1397 | dnl ####################################################################### |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
1398 | dnl # Check for Python |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
1399 | dnl ####################################################################### |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
1400 | |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
1401 | dnl Python scripts are used to auto-generate about 3000 lines of C |
|
16247
f9e1e46abbae
Deal with Gaim in some error messages.
Richard Laager <rlaager@pidgin.im>
parents:
16206
diff
changeset
|
1402 | dnl and XML code that wraps (part of) the existing API so that |
|
15610
fc49b3cc8095
Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents:
15600
diff
changeset
|
1403 | dnl it is now accessible through D-Bus. |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
1404 | |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
1405 | dnl Python is only required if --enable-dbus is used, and only for |
|
15946
d40e8847e825
More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15909
diff
changeset
|
1406 | dnl the build process to generate the code, not for running pidgin. |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
1407 | dnl This autogenerated code is system-independent, so in principle we |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
1408 | dnl can generate all of it before shipping. But I thought adding |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
1409 | dnl auto-generated stuff to the repository is inelegant. |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
1410 | dnl Alternatively, these python scripts could be rewritten |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
1411 | dnl in C (brrrr ...). |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
1412 | |
|
12584
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
1413 | AC_ARG_WITH([python], |
| 13773 | 1414 | AC_HELP_STRING([--with-python=PATH], |
|
13733
a11620505037
[gaim-migrate @ 16142]
Mark Doliner <markdoliner@pidgin.im>
parents:
13720
diff
changeset
|
1415 | [which python interpreter to use for dbus code generation]), |
|
12584
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
1416 | PYTHON=$withval) |
|
11356
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
1417 | |
|
29960
e6ca0b8ae3b7
Fix Python overrideability in configure script. Closes #11625.
Brad Smith <brad@comstyle.com>
parents:
29957
diff
changeset
|
1418 | if test "x$enable_dbus" = "xyes" || test "x$enable_consoleui" = "xyes" ; then |
| 13843 | 1419 | if test -z "$PYTHON" -o "x$PYTHON" = "xyes"; then |
|
12584
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
1420 | AC_PATH_PROG([PYTHON], [python], [no]) |
|
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
1421 | fi |
|
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
1422 | |
|
19957
bb636b927e06
Fix the capitalization of the python variable in a configure.ac check, I
Etan Reisner <deryni@pidgin.im>
parents:
19944
diff
changeset
|
1423 | if test x"$PYTHON" = x"no" ; then |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
1424 | AC_MSG_WARN([python interpreter not found in your path]) |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
1425 | enable_dbus=no |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
1426 | fi |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
1427 | |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
1428 | 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
|
1429 | AC_MSG_WARN([python version >= 2.4 required]) |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
1430 | enable_dbus=no |
|
12584
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
1431 | fi |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
1432 | fi |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
1433 | |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1434 | dnl ########################################################################### |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1435 | dnl # Find the D-Bus services dir. |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1436 | dnl # |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1437 | dnl # This is a 3 step process that |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1438 | dnl # |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1439 | 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
|
1440 | dnl # 2. checks if --prefix was given, if so use that. |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1441 | 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
|
1442 | dnl # directories. |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1443 | dnl # |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1444 | 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
|
1445 | 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
|
1446 | dnl # directory searching to keep this situation at a minimum. |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1447 | dnl ########################################################################### |
|
14502
06af96a5a07d
[gaim-migrate @ 17154]
Mark Doliner <markdoliner@pidgin.im>
parents:
14498
diff
changeset
|
1448 | AC_ARG_WITH(dbus-services, [AC_HELP_STRING([--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
|
1449 | |
|
13589
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1450 | DBUS_SERVICES_DIR="" |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1451 | |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1452 | if test x"$enable_dbus" = "xyes" ; then |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1453 | AC_MSG_CHECKING([location of the D-Bus services directory]) |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1454 | if ! test -z "$with_dbus_services" ; then |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1455 | if ! test -d "$with_dbus_services" ; then |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1456 | 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
|
1457 | fi |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1458 | |
|
13589
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1459 | DBUS_SERVICES_DIR="$with_dbus_services" |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1460 | else |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1461 | if test x"$prefix" = x"NONE" ; then |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1462 | 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
|
1463 | dnl # if a prefix is given, we use it. |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1464 | |
|
18742
e13a0ecd3093
Apparently we're not supposed to try to expand $datadir or $libdir from inside
Richard Laager <rlaager@pidgin.im>
parents:
18234
diff
changeset
|
1465 | serviceprefixes="$prefix/share $prefix/lib /usr/share /usr/local/share" |
|
13589
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1466 | DBUS_SERVICES_DIR="" |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1467 | |
|
13589
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1468 | for d in $serviceprefixes ; do |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1469 | dir="$d/dbus-1/services" |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1470 | if test -d $dir ; then |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1471 | DBUS_SERVICES_DIR="$dir" |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1472 | break |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1473 | fi |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1474 | done |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1475 | |
|
13589
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1476 | if test -z $DBUS_SERVICES_DIR ; then |
|
29957
c08b2ab5673b
I hate seeing people use "it's" when "its" is the correct word.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29938
diff
changeset
|
1477 | AC_MSG_ERROR([D-Bus services directory was not found! Please use --with-dbus-services and specify its location.]) |
|
13589
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1478 | fi |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1479 | else |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1480 | DBUS_SERVICES_DIR="$datadir/dbus-1/services" |
|
11903
56ae8af14a0d
[gaim-migrate @ 14194]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
11874
diff
changeset
|
1481 | fi |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1482 | fi |
|
13589
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
1483 | AC_MSG_RESULT([$DBUS_SERVICES_DIR]) |
|
15868
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1484 | AC_DEFINE(HAVE_DBUS, 1, [Define if we are using D-Bus.]) |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1485 | fi |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1486 | AC_SUBST(DBUS_SERVICES_DIR) |
|
11351
c29898b1b746
[gaim-migrate @ 13570]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11318
diff
changeset
|
1487 | |
|
11356
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
1488 | if test "x$enable_dbus" = "xyes" ; then |
|
15610
fc49b3cc8095
Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents:
15600
diff
changeset
|
1489 | echo "Building with D-Bus support" |
|
11356
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
1490 | else |
|
15610
fc49b3cc8095
Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents:
15600
diff
changeset
|
1491 | echo "Building without D-Bus support" |
|
11356
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
1492 | fi |
|
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
1493 | |
|
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
1494 | AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes") |
|
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
1495 | |
|
21915
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1496 | dnl Check for Python headers (currently useful only for libgnt) |
|
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1497 | dnl (Thanks to XChat) |
|
29960
e6ca0b8ae3b7
Fix Python overrideability in configure script. Closes #11625.
Brad Smith <brad@comstyle.com>
parents:
29957
diff
changeset
|
1498 | if test "x$enable_consoleui" = "xyes" -a ! -z "$PYTHON" -a x"$PYTHON" != x"no" ; then |
|
21915
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1499 | AC_MSG_CHECKING(for Python compile flags) |
|
29960
e6ca0b8ae3b7
Fix Python overrideability in configure script. Closes #11625.
Brad Smith <brad@comstyle.com>
parents:
29957
diff
changeset
|
1500 | PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'` |
|
e6ca0b8ae3b7
Fix Python overrideability in configure script. Closes #11625.
Brad Smith <brad@comstyle.com>
parents:
29957
diff
changeset
|
1501 | PY_EXEC_PREFIX=`$PYTHON -c 'import sys ; print sys.exec_prefix'` |
|
21915
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1502 | changequote(<<, >>)dnl |
|
29960
e6ca0b8ae3b7
Fix Python overrideability in configure script. Closes #11625.
Brad Smith <brad@comstyle.com>
parents:
29957
diff
changeset
|
1503 | PY_VERSION=`$PYTHON -c 'import sys ; print sys.version[0:3]'` |
|
e6ca0b8ae3b7
Fix Python overrideability in configure script. Closes #11625.
Brad Smith <brad@comstyle.com>
parents:
29957
diff
changeset
|
1504 | PY_MAJOR=`$PYTHON -c 'import sys ; print sys.version[0:2]'` |
|
21915
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1505 | changequote([, ])dnl |
|
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1506 | if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h -a "$PY_MAJOR" = "2."; then |
|
29834
c0d5d6cc81c1
Make Python compile check look a little nicer.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29833
diff
changeset
|
1507 | AC_MSG_RESULT() |
|
21915
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1508 | AC_CHECK_LIB(pthread, pthread_create, ) |
|
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1509 | AC_CHECK_LIB(util, openpty, ) |
|
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1510 | AC_CHECK_LIB(db, dbopen, ) |
|
29036
6e6e46dd92f3
*** Plucked rev 8afdf9fa3c0c98a6735023230f285152f54c3a79 (f05c54b03e6bbfdbff38c01697fbd353a969e05e):
Daniel Atallah <datallah@pidgin.im>
parents:
29031
diff
changeset
|
1511 | PY_LIBS="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config -lpython$PY_VERSION" |
|
21915
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1512 | PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION" |
|
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1513 | AC_DEFINE(USE_PYTHON, [1], [Define if python headers are available.]) |
|
29834
c0d5d6cc81c1
Make Python compile check look a little nicer.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29833
diff
changeset
|
1514 | dnl Because the above AC_CHECK_LIB get in the way... |
|
c0d5d6cc81c1
Make Python compile check look a little nicer.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29833
diff
changeset
|
1515 | AC_MSG_CHECKING(for Python compile flags) |
|
21915
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1516 | AC_MSG_RESULT(ok) |
|
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1517 | else |
|
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1518 | AC_MSG_RESULT([Can't find Python.h]) |
|
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1519 | PY_LIBS="" |
|
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1520 | PY_CFLAGS="" |
|
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1521 | fi |
|
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1522 | fi |
|
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1523 | AC_SUBST(PY_CFLAGS) |
|
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1524 | AC_SUBST(PY_LIBS) |
|
c08dfd143ca9
Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21912
diff
changeset
|
1525 | |
|
11055
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
1526 | dnl ####################################################################### |
|
11660
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1527 | dnl # Check for Mono support |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1528 | dnl ####################################################################### |
|
15600
393bc032b053
sf patch #1640011, from Celso Pinto
Mark Doliner <markdoliner@pidgin.im>
parents:
15523
diff
changeset
|
1529 | AC_ARG_ENABLE(mono, [AC_HELP_STRING([--enable-mono], [compile with Mono runtime support (experimental)])], , enable_mono=no) |
|
11662
589d19fbb36f
[gaim-migrate @ 13947]
Gary Kramlich <grim@reaperworld.com>
parents:
11660
diff
changeset
|
1530 | if test x"$enable_mono" = x"yes" ; then |
|
15868
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1531 | PKG_CHECK_MODULES(MONO, mono, [ |
|
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1532 | AC_SUBST(MONO_CFLAGS) |
|
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1533 | AC_SUBST(MONO_LIBS) |
|
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1534 | enable_mono=yes |
|
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1535 | ], [ |
|
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1536 | AC_MSG_RESULT(no) |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1537 | AC_MSG_ERROR([ |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1538 | Mono development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1539 | Use --disable-mono if you do not need Mono support. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1540 | ]) |
|
15868
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1541 | ]) |
|
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1542 | if test x"$enable_mono" = x"yes"; then |
|
11660
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1543 | oldLIBS="$LIBS" |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1544 | LIBS="$LIBS $MONO_LIBS" |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1545 | AC_MSG_CHECKING(for libmono) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1546 | AC_CHECK_FUNCS(mono_jit_init, [], enable_mono=no) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1547 | LIBS="$oldLIBS" |
|
13733
a11620505037
[gaim-migrate @ 16142]
Mark Doliner <markdoliner@pidgin.im>
parents:
13720
diff
changeset
|
1548 | |
|
11660
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1549 | oldCPPFLAGS="$CPPFLAGS" |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1550 | CPPFLAGS="$CPPFLAGS $MONO_CFLAGS" |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1551 | AC_CHECK_HEADERS(mono/jit/jit.h, [], enable_mono=no) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1552 | AC_CHECK_HEADERS(mono/metadata/object.h, [], enable_mono=no) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1553 | CPPFLAGS="$oldCPPFLAGS" |
|
13733
a11620505037
[gaim-migrate @ 16142]
Mark Doliner <markdoliner@pidgin.im>
parents:
13720
diff
changeset
|
1554 | |
|
11660
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1555 | AC_DEFINE(ENABLE_MONO, 1, [Define if mono enabled.]) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1556 | fi |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1557 | else |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1558 | MONO_CFLAGS= |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1559 | MONO_LIBS= |
|
11662
589d19fbb36f
[gaim-migrate @ 13947]
Gary Kramlich <grim@reaperworld.com>
parents:
11660
diff
changeset
|
1560 | enable_mono=no |
|
11660
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1561 | fi |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1562 | |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1563 | AC_SUBST(MONO_CFLAGS) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1564 | AC_SUBST(MONO_LIBS) |
|
11662
589d19fbb36f
[gaim-migrate @ 13947]
Gary Kramlich <grim@reaperworld.com>
parents:
11660
diff
changeset
|
1565 | 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
|
1566 | |
|
8665
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
1567 | dnl ####################################################################### |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
1568 | dnl # Check for Perl support |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
1569 | dnl ####################################################################### |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
1570 | AC_ARG_ENABLE(perl, [AC_HELP_STRING([--disable-perl], [compile without perl scripting])], , enable_perl=yes) |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
1571 | |
|
10975
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
1572 | if test "$enable_plugins" = no ; then |
|
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
1573 | enable_perl=no |
|
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
1574 | fi |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1575 | looked_for_perl="no" |
| 2129 | 1576 | if test "$enable_perl" = yes ; then |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1577 | looked_for_perl="yes" |
| 2129 | 1578 | AC_PATH_PROG(perlpath, perl) |
| 1579 | AC_MSG_CHECKING(for Perl compile flags) | |
| 1580 | PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null` | |
| 1581 | if test "_$PERL_CFLAGS" = _ ; then | |
| 1582 | AC_MSG_RESULT([not found, building without perl.]) | |
|
16952
bf250fad9e88
Prevent bogus configure errors if perl isn't found. This isn't major but
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16947
diff
changeset
|
1583 | enable_perl=no |
| 2129 | 1584 | else |
| 1585 | PERL_LIBS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null |$sedpath 's/-lgdbm //'` | |
| 1586 | PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-ldb //'` | |
| 1587 | PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lndbm //'` | |
| 1588 | if test "$system" = "Linux"; then | |
| 1589 | PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lnsl //'` | |
| 1590 | PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lposix //'` | |
| 1591 | fi | |
| 1592 | PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lc //'` | |
| 1593 | AC_MSG_RESULT(ok) | |
| 3931 | 1594 | |
|
6844
c378819cdda4
[gaim-migrate @ 7389]
Christian Hammond <chipx86@chipx86.com>
parents:
6836
diff
changeset
|
1595 | oldLIBS="$LIBS" |
| 3931 | 1596 | LIBS="$LIBS $PERL_LIBS" |
| 1597 | AC_MSG_CHECKING(for libperl) | |
| 1598 | AC_CHECK_FUNCS(perl_run, [], enable_perl=no) | |
|
6844
c378819cdda4
[gaim-migrate @ 7389]
Christian Hammond <chipx86@chipx86.com>
parents:
6836
diff
changeset
|
1599 | LIBS="$oldLIBS" |
|
10460
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
1600 | |
|
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
1601 | oldCPPFLAGS="$CPPFLAGS" |
|
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
1602 | CPPFLAGS="$CPPFLAGS $PERL_CFLAGS" |
|
22663
7e79d04ab088
This broke building perl, finding EXTERN.h breaks without the PERL_CFLAGS
Etan Reisner <deryni@pidgin.im>
parents:
22631
diff
changeset
|
1603 | AC_CHECK_HEADERS(EXTERN.h) |
|
10460
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
1604 | AC_CHECK_HEADERS(perl.h, [], enable_perl=no, |
|
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
1605 | [#if HAVE_EXTERN_H |
|
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
1606 | # include <EXTERN.h> |
|
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
1607 | #endif]) |
|
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
1608 | CPPFLAGS="$oldCPPFLAGS" |
| 2129 | 1609 | fi |
| 1610 | fi | |
| 1611 | ||
| 3931 | 1612 | if test "$enable_perl" = yes ; then |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1613 | AC_PROG_PERL_MODULES(ExtUtils::MakeMaker, , have_makemaker=no) |
| 3931 | 1614 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1615 | if test "x$have_makemaker" = "xno"; then |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1616 | enable_perl=no |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1617 | PERL_CFLAGS= |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1618 | PERL_LIBS= |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1619 | AM_CONDITIONAL(USE_PERL, false) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1620 | AC_MSG_WARN(Compiling perl requires ExtUtils::MakeMaker) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1621 | else |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
1622 | AC_DEFINE(HAVE_PERL, [1], [Compile with support for perl]) |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1623 | AC_SUBST(PERL_CFLAGS) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1624 | AC_SUBST(PERL_LIBS) |
| 12120 | 1625 | AM_CONDITIONAL(USE_PERL, true) |
| 4298 | 1626 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1627 | dnl This is almost definitely wrong, but in case there's |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1628 | dnl something I'm missing, I'll leave it in. |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1629 | AC_CHECK_FUNCS(Perl_eval_pv) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1630 | |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1631 | AC_MSG_CHECKING(for old perl) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1632 | 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
|
1633 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1634 | if test "x$PERL_OLD" = "xyes"; then |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1635 | AC_DEFINE(OLD_PERL, 1, [Define if old perl is installed.]) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1636 | AC_MSG_RESULT(yes) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1637 | else |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1638 | AC_MSG_RESULT(no) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1639 | fi |
|
6586
de66e971fa46
[gaim-migrate @ 7108]
Christian Hammond <chipx86@chipx86.com>
parents:
6535
diff
changeset
|
1640 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1641 | AC_MSG_CHECKING(for DynaLoader.a) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1642 | DYNALOADER_A=`echo $PERL_LDFLAGS | $perlpath -pe 's/^(.* )*([[^ ]]*DynaLoader\.a).*/\2/'` |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1643 | |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1644 | 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
|
1645 | if test -n "$DYNALOADER_A"; then |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1646 | AC_MSG_RESULT(yes) |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1647 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1648 | dnl Find either libperl.a or libperl.so |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1649 | AC_MSG_CHECKING(for libperl.a or libperl.so) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1650 | 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
|
1651 | if test -z "$LIBPERL_A"; then |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1652 | AC_MSG_RESULT(no) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1653 | DYNALOADER_A= |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1654 | else |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1655 | AC_MSG_RESULT(yes) |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1656 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1657 | if test "$LIBPERL_A" = "-lperl"; then |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1658 | LIBPERL_A= |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1659 | fi |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1660 | fi |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1661 | |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1662 | 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
|
1663 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1664 | if test -n "$LIBPERL_A"; then |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1665 | 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
|
1666 | fi |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1667 | |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1668 | AC_SUBST(DYNALOADER_A) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1669 | AC_SUBST(LIBPERL_A) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1670 | else |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1671 | AC_MSG_RESULT(no) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1672 | fi |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1673 | fi |
| 3931 | 1674 | else |
| 1675 | PERL_CFLAGS= | |
| 1676 | PERL_LIBS= | |
|
5232
626c3db309ed
[gaim-migrate @ 5602]
Christian Hammond <chipx86@chipx86.com>
parents:
5229
diff
changeset
|
1677 | AM_CONDITIONAL(USE_PERL, false) |
| 3931 | 1678 | fi |
| 1679 | ||
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
1680 | if test "x$looked_for_perl" = "xyes" -a "x$enable_perl" = "xno" -a "x$force_deps" = "xyes"; then |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1681 | AC_MSG_ERROR([ |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1682 | Perl development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1683 | Use --disable-perl if you do not need Perl scripting support. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1684 | ]) |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1685 | fi |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1686 | |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1687 | dnl ####################################################################### |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1688 | dnl # SSL support |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1689 | dnl # |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1690 | dnl # Thanks go to Evolution for the checks. |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1691 | dnl ####################################################################### |
|
6734
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1692 | |
|
27963
f99a27c539fe
And really fix that --with-system-ssl-certs argument.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27961
diff
changeset
|
1693 | AC_ARG_WITH(system-ssl-certs, [AC_HELP_STRING([--with-system-ssl-certs=<dir>], [directory containing system-wide SSL CA certificates])], [ssl_certificates_dir=$withval]) |
|
23473
df05ffc37ed0
Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents:
23472
diff
changeset
|
1694 | |
|
df05ffc37ed0
Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents:
23472
diff
changeset
|
1695 | SSL_CERTIFICATES_DIR="" |
|
27963
f99a27c539fe
And really fix that --with-system-ssl-certs argument.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27961
diff
changeset
|
1696 | if ! test -z "$ssl_certificates_dir" ; then |
|
29929
dded7d5087b2
Add a more helpful error message if --with-system-ssl-certs is specified
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
29902
diff
changeset
|
1697 | if test "x$ssl_certificates_dir" = "xyes" ; then |
|
dded7d5087b2
Add a more helpful error message if --with-system-ssl-certs is specified
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
29902
diff
changeset
|
1698 | AC_MSG_ERROR([--with-system-ssl-certs requires that a location is specified, eg. --with-system-ssl-certs=/etc/pki/tls/certs]) |
|
dded7d5087b2
Add a more helpful error message if --with-system-ssl-certs is specified
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
29902
diff
changeset
|
1699 | fi |
|
27963
f99a27c539fe
And really fix that --with-system-ssl-certs argument.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27961
diff
changeset
|
1700 | if ! test -d "$ssl_certificates_dir" ; then |
|
f99a27c539fe
And really fix that --with-system-ssl-certs argument.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27961
diff
changeset
|
1701 | AC_MSG_ERROR([$ssl_certificates_dir does not exist, if this is the correct location please make sure that it exists.]) |
|
23473
df05ffc37ed0
Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents:
23472
diff
changeset
|
1702 | fi |
|
27963
f99a27c539fe
And really fix that --with-system-ssl-certs argument.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27961
diff
changeset
|
1703 | SSL_CERTIFICATES_DIR="$ssl_certificates_dir" |
|
23473
df05ffc37ed0
Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents:
23472
diff
changeset
|
1704 | fi |
|
df05ffc37ed0
Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents:
23472
diff
changeset
|
1705 | AC_SUBST(SSL_CERTIFICATES_DIR) |
|
df05ffc37ed0
Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents:
23472
diff
changeset
|
1706 | AM_CONDITIONAL(INSTALL_SSL_CERTIFICATES, test "x$SSL_CERTIFICATES_DIR" = "x") |
|
df05ffc37ed0
Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents:
23472
diff
changeset
|
1707 | |
|
6734
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1708 | dnl These two are inverses of each other <-- stolen from evolution! |
|
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1709 | |
|
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1710 | AC_ARG_ENABLE(gnutls, |
|
22757
7d68e6dcc3dc
Remove a legacy preference for GnuTLS
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22756
diff
changeset
|
1711 | [ --enable-gnutls=[yes,no] attempt to use GnuTLS for SSL support [default=yes]], |
|
6734
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1712 | [enable_gnutls="$enableval"], |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1713 | [enable_gnutls="yes"]) |
|
6734
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1714 | |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1715 | AC_ARG_ENABLE(nss, |
|
13733
a11620505037
[gaim-migrate @ 16142]
Mark Doliner <markdoliner@pidgin.im>
parents:
13720
diff
changeset
|
1716 | [ --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
|
1717 | [enable_nss="$enableval"], |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
1718 | [enable_nss="yes"]) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1719 | |
|
27386
885fcba6bcca
Mention Yahoo in all the places we say "These protocols won't work without SSL"
Paul Aurich <darkrain42@pidgin.im>
parents:
27361
diff
changeset
|
1720 | msg_ssl="None. MSN, Yahoo!, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!" |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1721 | looked_for_gnutls="no" |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1722 | dnl # |
|
13820
52bd6836c49a
[gaim-migrate @ 16250]
Richard Laager <rlaager@pidgin.im>
parents:
13813
diff
changeset
|
1723 | dnl # Check for GnuTLS if it's specified. |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1724 | dnl # |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1725 | if test "x$enable_gnutls" != "xno"; then |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1726 | enable_gnutls="no" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1727 | prefix=`eval echo $prefix` |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1728 | looked_for_gnutls="yes" |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1729 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1730 | AC_ARG_WITH(gnutls-includes, |
|
13820
52bd6836c49a
[gaim-migrate @ 16250]
Richard Laager <rlaager@pidgin.im>
parents:
13813
diff
changeset
|
1731 | [ --with-gnutls-includes=PREFIX location of GnuTLS includes.], |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1732 | [ with_gnutls_includes="$withval" ], |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1733 | [ with_gnutls_includes="$prefix/include" ]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1734 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1735 | have_gnutls_includes="no" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1736 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1737 | if test "x$with_gnutls_includes" != "xno"; then |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1738 | CPPFLAGS_save="$CPPFLAGS" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1739 | |
|
13820
52bd6836c49a
[gaim-migrate @ 16250]
Richard Laager <rlaager@pidgin.im>
parents:
13813
diff
changeset
|
1740 | AC_MSG_CHECKING(for GnuTLS includes) |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1741 | AC_MSG_RESULT("") |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1742 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1743 | CPPFLAGS="$CPPFLAGS -I$with_gnutls_includes" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1744 | AC_CHECK_HEADERS(gnutls/gnutls.h, [ gnutls_includes="yes" ]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1745 | CPPFLAGS="$CPPFLAGS_save" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1746 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1747 | if test "x$gnutls_includes" != "xno" -a \ |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1748 | "x$gnutls_includes" != "x"; then |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1749 | have_gnutls_includes="yes" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1750 | |
|
15868
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1751 | if test "x$with_gnutls_includes" != "xNONE/include"; then |
|
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1752 | GNUTLS_CFLAGS="-I$with_gnutls_includes" |
|
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
1753 | fi |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1754 | else |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1755 | GNUTLS_CFLAGS="" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1756 | fi |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1757 | else |
|
13820
52bd6836c49a
[gaim-migrate @ 16250]
Richard Laager <rlaager@pidgin.im>
parents:
13813
diff
changeset
|
1758 | AC_MSG_CHECKING(for GnuTLS includes) |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1759 | AC_MSG_RESULT(no) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1760 | fi |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1761 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1762 | AC_ARG_WITH(gnutls-libs, |
|
14502
06af96a5a07d
[gaim-migrate @ 17154]
Mark Doliner <markdoliner@pidgin.im>
parents:
14498
diff
changeset
|
1763 | [AC_HELP_STRING([--with-gnutls-libs=PREFIX], [location of GnuTLS libraries.])], |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1764 | [ with_gnutls_libs="$withval" ]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1765 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1766 | if test "x$with_gnutls_libs" != "xno" -a \ |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1767 | "x$have_gnutls_includes" != "xno"; then |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1768 | |
| 14797 | 1769 | LIBS_save="$LIBS" |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1770 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1771 | case $with_gnutls_libs in |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1772 | ""|-L*) ;; |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1773 | *) with_gnutls_libs="-L$with_gnutls_libs" ;; |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1774 | esac |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1775 | |
|
23340
ac3ac8e7652d
A patch from compnerd (Saleem Abdulrasool) to properly name the variables
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23302
diff
changeset
|
1776 | AC_CACHE_CHECK([for GnuTLS libraries], ac_cv_gnutls_libs, |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1777 | [ |
| 14797 | 1778 | LIBS="$LIBS $with_gnutls_libs -lgnutls -lgcrypt" |
|
23340
ac3ac8e7652d
A patch from compnerd (Saleem Abdulrasool) to properly name the variables
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23302
diff
changeset
|
1779 | AC_TRY_LINK_FUNC(gnutls_init, ac_cv_gnutls_libs="yes", ac_cv_gnutls_libs="no") |
| 14797 | 1780 | LIBS="$LIBS_save" |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1781 | ]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1782 | |
|
23340
ac3ac8e7652d
A patch from compnerd (Saleem Abdulrasool) to properly name the variables
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23302
diff
changeset
|
1783 | if test "x$ac_cv_gnutls_libs" != "xno"; then |
|
13820
52bd6836c49a
[gaim-migrate @ 16250]
Richard Laager <rlaager@pidgin.im>
parents:
13813
diff
changeset
|
1784 | AC_DEFINE(HAVE_GNUTLS, 1, [Define if you have GnuTLS]) |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1785 | AC_DEFINE(HAVE_SSL) |
|
13820
52bd6836c49a
[gaim-migrate @ 16250]
Richard Laager <rlaager@pidgin.im>
parents:
13813
diff
changeset
|
1786 | msg_gnutls="GnuTLS" |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1787 | GNUTLS_LIBS="$with_gnutls_libs -lgnutls -lgcrypt" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1788 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1789 | enable_gnutls="yes" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1790 | else |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1791 | GNUTLS_CFLAGS="" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1792 | GNUTLS_LIBS="" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1793 | fi |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1794 | else |
|
13820
52bd6836c49a
[gaim-migrate @ 16250]
Richard Laager <rlaager@pidgin.im>
parents:
13813
diff
changeset
|
1795 | AC_MSG_CHECKING(for GnuTLS libraries) |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1796 | AC_MSG_RESULT(no) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1797 | fi |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1798 | else |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1799 | GNUTLS_CFLAGS="" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1800 | GNUTLS_LIBS="" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1801 | fi |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1802 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1803 | AC_SUBST(GNUTLS_CFLAGS) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1804 | AC_SUBST(GNUTLS_LIBS) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1805 | |
|
25643
04831cc56f5a
Use _set_default_priority on gnutls versions lacking _priority_set_direct.
Ethan Blanton <elb@pidgin.im>
parents:
25427
diff
changeset
|
1806 | if test "x$enable_gnutls" = "xyes"; then |
|
30041
cd31a67de2c0
configure.ac: Check for gnutls_priority_set.
Paul Aurich <darkrain42@pidgin.im>
parents:
30027
diff
changeset
|
1807 | AC_MSG_CHECKING(for gnutls_priority_set_direct and gnutls_priority_set) |
|
25643
04831cc56f5a
Use _set_default_priority on gnutls versions lacking _priority_set_direct.
Ethan Blanton <elb@pidgin.im>
parents:
25427
diff
changeset
|
1808 | LIBS_save="$LIBS" |
|
04831cc56f5a
Use _set_default_priority on gnutls versions lacking _priority_set_direct.
Ethan Blanton <elb@pidgin.im>
parents:
25427
diff
changeset
|
1809 | LIBS="$LIBS $GNUTLS_LIBS" |
|
04831cc56f5a
Use _set_default_priority on gnutls versions lacking _priority_set_direct.
Ethan Blanton <elb@pidgin.im>
parents:
25427
diff
changeset
|
1810 | CPPFLAGS_save="$CPPFLAGS" |
|
04831cc56f5a
Use _set_default_priority on gnutls versions lacking _priority_set_direct.
Ethan Blanton <elb@pidgin.im>
parents:
25427
diff
changeset
|
1811 | CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS" |
|
27694
ccab35c75f3a
Fix some quoting for AC_LANG_PROGRAM.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
27692
diff
changeset
|
1812 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>]], |
|
30041
cd31a67de2c0
configure.ac: Check for gnutls_priority_set.
Paul Aurich <darkrain42@pidgin.im>
parents:
30027
diff
changeset
|
1813 | [[gnutls_session s; gnutls_priority_set_direct(s, NULL, NULL); gnutls_priority_set(s, NULL);]])], |
|
25643
04831cc56f5a
Use _set_default_priority on gnutls versions lacking _priority_set_direct.
Ethan Blanton <elb@pidgin.im>
parents:
25427
diff
changeset
|
1814 | [AC_DEFINE([HAVE_GNUTLS_PRIORITY_FUNCS], 1, |
|
04831cc56f5a
Use _set_default_priority on gnutls versions lacking _priority_set_direct.
Ethan Blanton <elb@pidgin.im>
parents:
25427
diff
changeset
|
1815 | [Define if your gnutls has gnutls_priority_set_direct and friends]) |
|
04831cc56f5a
Use _set_default_priority on gnutls versions lacking _priority_set_direct.
Ethan Blanton <elb@pidgin.im>
parents:
25427
diff
changeset
|
1816 | AC_MSG_RESULT(yes)], |
|
04831cc56f5a
Use _set_default_priority on gnutls versions lacking _priority_set_direct.
Ethan Blanton <elb@pidgin.im>
parents:
25427
diff
changeset
|
1817 | [AC_MSG_RESULT(no)]) |
|
04831cc56f5a
Use _set_default_priority on gnutls versions lacking _priority_set_direct.
Ethan Blanton <elb@pidgin.im>
parents:
25427
diff
changeset
|
1818 | CPPFLAGS="$CPPFLAGS_save" |
|
04831cc56f5a
Use _set_default_priority on gnutls versions lacking _priority_set_direct.
Ethan Blanton <elb@pidgin.im>
parents:
25427
diff
changeset
|
1819 | LIBS="$LIBS_save" |
|
04831cc56f5a
Use _set_default_priority on gnutls versions lacking _priority_set_direct.
Ethan Blanton <elb@pidgin.im>
parents:
25427
diff
changeset
|
1820 | fi |
|
04831cc56f5a
Use _set_default_priority on gnutls versions lacking _priority_set_direct.
Ethan Blanton <elb@pidgin.im>
parents:
25427
diff
changeset
|
1821 | |
|
28654
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1822 | if test "x$enable_gnutls" = "xyes"; then |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1823 | AC_MSG_CHECKING(for GNUTLS_CERT_INSECURE_ALGORITHM) |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1824 | LIBS_save="$LIBS" |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1825 | LIBS="$LIBS $GNUTLS_LIBS" |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1826 | CPPFLAGS_save="$CPPFLAGS" |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1827 | CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS" |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1828 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>]], |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1829 | [[unsigned int verify = GNUTLS_CERT_INSECURE_ALGORITHM;]])], |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1830 | [AC_DEFINE([HAVE_GNUTLS_CERT_INSECURE_ALGORITHM], 1, |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1831 | [Define if your gnutls has the GNUTLS_CERT_INSECURE_ALGORITHM flag]) |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1832 | AC_MSG_RESULT(yes)], |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1833 | [AC_MSG_RESULT(no)]) |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1834 | CPPFLAGS="$CPPFLAGS_save" |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1835 | LIBS="$LIBS_save" |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1836 | fi |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1837 | |
|
4be5f3da3edb
Check in the configure.ac check to go along with that #ifdef... Refs #10412.
Paul Aurich <darkrain42@pidgin.im>
parents:
28510
diff
changeset
|
1838 | |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1839 | AM_CONDITIONAL(USE_GNUTLS, test "x$enable_gnutls" = "xyes") |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1840 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1841 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1842 | dnl # |
|
13820
52bd6836c49a
[gaim-migrate @ 16250]
Richard Laager <rlaager@pidgin.im>
parents:
13813
diff
changeset
|
1843 | dnl # Check for NSS if it's specified, or if GnuTLS checks failed. |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1844 | dnl # |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1845 | looked_for_nss="no" |
|
7155
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1846 | if test "x$enable_nss" != "xno"; then |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
1847 | looked_for_nss="yes" |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1848 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1849 | AC_ARG_WITH(nspr-includes, |
|
14502
06af96a5a07d
[gaim-migrate @ 17154]
Mark Doliner <markdoliner@pidgin.im>
parents:
14498
diff
changeset
|
1850 | [AC_HELP_STRING([--with-nspr-includes=PREFIX], [specify location of Mozilla nspr4 includes.])], |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1851 | [with_nspr_includes="$withval"]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1852 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1853 | AC_ARG_WITH(nspr-libs, |
|
14502
06af96a5a07d
[gaim-migrate @ 17154]
Mark Doliner <markdoliner@pidgin.im>
parents:
14498
diff
changeset
|
1854 | [AC_HELP_STRING([--with-nspr-libs=PREFIX], [specify location of Mozilla nspr4 libs.])], |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1855 | [with_nspr_libs="$withval"]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1856 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1857 | AC_ARG_WITH(nss-includes, |
|
14502
06af96a5a07d
[gaim-migrate @ 17154]
Mark Doliner <markdoliner@pidgin.im>
parents:
14498
diff
changeset
|
1858 | [AC_HELP_STRING([--with-nss-includes=PREFIX], [specify location of Mozilla nss3 includes.])], |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1859 | [with_nss_includes="$withval"]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1860 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1861 | AC_ARG_WITH(nss-libs, |
|
14502
06af96a5a07d
[gaim-migrate @ 17154]
Mark Doliner <markdoliner@pidgin.im>
parents:
14498
diff
changeset
|
1862 | [AC_HELP_STRING([--with-nss-libs=PREFIX], [specify location of Mozilla nss3 libs.])], |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1863 | [with_nss_libs="$withval"]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1864 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1865 | |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1866 | if test -n "$with_nspr_includes" || test -n "$with_nspr_libs" || \ |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1867 | test -n "$with_nss_includes" || test -n "$with_nss_libs" || |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1868 | test "x$enable_nss" = "xstatic"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1869 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1870 | nss_manual_check="yes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1871 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1872 | nss_manual_check="no" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1873 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1874 | |
|
6738
aa797bcc69dd
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1875 | enable_nss="no" |
|
aa797bcc69dd
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1876 | |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1877 | if test "x$nss_manual_check" = "xno"; then |
|
12507
9c4e2db872fd
[gaim-migrate @ 14819]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12502
diff
changeset
|
1878 | if `$PKG_CONFIG --exists mozilla-nss`; then |
|
13171
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1879 | PKG_CHECK_MODULES(NSS, mozilla-nss, [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1880 | have_nss="yes" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1881 | ], [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1882 | AC_MSG_RESULT(no) |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1883 | have_nss="no" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1884 | ]) |
|
12507
9c4e2db872fd
[gaim-migrate @ 14819]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12502
diff
changeset
|
1885 | mozilla_nspr="mozilla-nspr" |
|
9c4e2db872fd
[gaim-migrate @ 14819]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12502
diff
changeset
|
1886 | mozilla_nss="mozilla-nss" |
|
21832
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1887 | elif `$PKG_CONFIG --exists nss`; then |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1888 | PKG_CHECK_MODULES(NSS, nss, [ |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1889 | have_nss="yes" |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1890 | ], [ |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1891 | AC_MSG_RESULT(no) |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1892 | have_nss="no" |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1893 | ]) |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1894 | mozilla_nspr="nspr" |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1895 | mozilla_nss="nss" |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1896 | elif `$PKG_CONFIG --exists microb-engine-nss`; then |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1897 | PKG_CHECK_MODULES(NSS, microb-engine-nss, [ |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1898 | have_nss="yes" |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1899 | ], [ |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1900 | AC_MSG_RESULT(no) |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1901 | have_nss="no" |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1902 | ]) |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1903 | mozilla_nspr="mozilla-nspr" |
|
0f9c51f91e66
NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or
Will Thompson <resiak@pidgin.im>
parents:
21822
diff
changeset
|
1904 | mozilla_nss="microb-engine-nss" |
|
12507
9c4e2db872fd
[gaim-migrate @ 14819]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12502
diff
changeset
|
1905 | fi |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1906 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1907 | if test "x$have_nss" = "xyes"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1908 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1909 | 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
|
1910 | AC_DEFINE(HAVE_SSL, 1, [Define if you have SSL]) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1911 | |
|
7155
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1912 | msg_nss="Mozilla NSS" |
|
6738
aa797bcc69dd
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1913 | enable_nss="yes" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1914 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1915 | nss_manual_check="yes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1916 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1917 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1918 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1919 | if test "x$nss_manual_check" = "xyes"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1920 | mozilla_nss="" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1921 | have_nspr_includes="no" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1922 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1923 | if test "x$with_nspr_includes" != "xno"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1924 | CPPFLAGS_save=$CPPFLAGS |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1925 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1926 | AC_MSG_CHECKING(for Mozilla nspr4 includes in $with_nspr_includes) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1927 | AC_MSG_RESULT("") |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1928 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1929 | CPPFLAGS="$CPPFLAGS -I$with_nspr_includes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1930 | AC_CHECK_HEADERS(nspr.h prio.h, [ moz_nspr_includes="yes" ]) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1931 | CPPFLAGS=$CPPFLAGS_save |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1932 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1933 | if test "x$moz_nspr_includes" != "xno" -a \ |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1934 | "x$moz_nspr_includes" != "x"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1935 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1936 | have_nspr_includes="yes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1937 | NSPR_CFLAGS="-I$with_nspr_includes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1938 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1939 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1940 | AC_MSG_CHECKING(for Mozilla nspr4 includes) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1941 | AC_MSG_RESULT(no) |
|
7087
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1942 | |
|
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1943 | enable_nss="no" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1944 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1945 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1946 | have_nspr_libs="no" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1947 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1948 | if test "x$with_nspr_libs" != "xno" -a \ |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1949 | "x$have_nspr_includes" != "xno"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1950 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1951 | CFLAGS_save=$CFLAGS |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1952 | LDFLAGS_save=$LDFLAGS |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1953 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1954 | if test "$enable_nss" = "static"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1955 | if test -z "$with_nspr_libs"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1956 | AC_MSG_ERROR( |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1957 | [Static linkage requested, but path to nspr libraries not set.] |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1958 | [Please specify the path to libnspr4.a] |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1959 | [Example: --with-nspr-libs=/usr/lib]) |
|
7087
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1960 | |
|
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1961 | enable_nss="no" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1962 | else |
|
12038
1d83b5720a65
[gaim-migrate @ 14331]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12036
diff
changeset
|
1963 | 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
|
1964 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1965 | else |
|
12038
1d83b5720a65
[gaim-migrate @ 14331]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12036
diff
changeset
|
1966 | nsprlibs="$LIBDL -lplc4 -lplds4 -lnspr4 $PTHREAD_LIB" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1967 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1968 | |
|
23340
ac3ac8e7652d
A patch from compnerd (Saleem Abdulrasool) to properly name the variables
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23302
diff
changeset
|
1969 | AC_CACHE_CHECK([for Mozilla nspr libraries], ac_cv_moz_nspr_libs, |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1970 | [ |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1971 | LIBS_save=$LIBS |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1972 | CFLAGS="$CFLAGS $NSPR_CFLAGS" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1973 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1974 | LIBS="$nsprlibs" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1975 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1976 | if test "x$with_nspr_libs" != "x"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1977 | LDFLAGS="$LDFLAGS -L$with_nspr_libs" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1978 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1979 | LDFLAGS="$LDFLAGS" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1980 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1981 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1982 | AC_TRY_LINK_FUNC(PR_Init, |
|
23340
ac3ac8e7652d
A patch from compnerd (Saleem Abdulrasool) to properly name the variables
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23302
diff
changeset
|
1983 | [ac_cv_moz_nspr_libs="yes"], |
|
ac3ac8e7652d
A patch from compnerd (Saleem Abdulrasool) to properly name the variables
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23302
diff
changeset
|
1984 | [ac_cv_moz_nspr_libs="no"]) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1985 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1986 | CFLAGS=$CFLAGS_save |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1987 | LDFLAGS=$LDFLAGS_save |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1988 | LIBS=$LIBS_save |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1989 | ]) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1990 | |
|
23340
ac3ac8e7652d
A patch from compnerd (Saleem Abdulrasool) to properly name the variables
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23302
diff
changeset
|
1991 | if test "x$ac_cv_moz_nspr_libs" != "xno"; then |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1992 | have_nspr_libs="yes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1993 | NSPR_LIBS="-L$with_nspr_libs $nsprlibs" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1994 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1995 | NSPR_CFLAGS="" |
|
7087
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1996 | enable_nss="no" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1997 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1998 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1999 | AC_MSG_CHECKING(for Mozilla nspr4 libraries) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2000 | AC_MSG_RESULT(no) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2001 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2002 | |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
2003 | have_nss_includes="no" |
|
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
2004 | |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2005 | if test "x$with_nss_includes" != "xno" -a \ |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2006 | "x$have_nspr_libs" != "xno"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2007 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2008 | CPPFLAGS_save=$CPPFLAGS |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2009 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2010 | AC_MSG_CHECKING(for Mozilla nss3 includes in $with_nss_includes) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2011 | AC_MSG_RESULT("") |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2012 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2013 | if test "x$with_nspr_includes" != "x"; then |
| 6990 | 2014 | CPPFLAGS="$CPPFLAGS -I$with_nspr_includes -I$with_nss_includes" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2015 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2016 | CPPFLAGS="$CPPFLAGS -I$with_nss_includes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2017 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2018 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2019 | AC_CHECK_HEADERS(nss.h ssl.h smime.h, |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
2020 | [moz_nss_includes="yes"], |
|
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
2021 | [moz_nss_includes="no"]) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2022 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2023 | CPPFLAGS=$CPPFLAGS_save |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2024 | |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
2025 | if test "x$moz_nss_includes" = "xyes"; then |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2026 | have_nss_includes="yes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2027 | NSS_CFLAGS="-I$with_nss_includes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2028 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2029 | NSPR_CFLAGS="" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2030 | NSPR_LIBS="" |
|
7252
71e4a6a902af
[gaim-migrate @ 7829]
Christian Hammond <chipx86@chipx86.com>
parents:
7233
diff
changeset
|
2031 | enable_nss="no" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2032 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2033 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2034 | AC_MSG_CHECKING(for Mozilla nss3 includes) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2035 | AC_MSG_RESULT(no) |
|
7087
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
2036 | enable_nss="no" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2037 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2038 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2039 | if test "x$with_nss_libs" != "xno" -a \ |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2040 | "x$have_nss_includes" != "xno"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2041 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2042 | LDFLAGS_save=$LDFLAGS |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2043 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2044 | if test "$enable_nss" = "static"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2045 | if test -z "$with_nss_libs"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2046 | AC_MSG_ERROR( |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2047 | [Static linkage requested, but path to nss libraries not set.] |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2048 | [Please specify the path to libnss3.a] |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2049 | [Example: --with-nspr-libs=/usr/lib/mozilla]) |
|
7087
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
2050 | enable_nss="no" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2051 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2052 | 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
|
2053 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2054 | case "$host" in |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2055 | *solaris*) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2056 | nsslibs="$nsslibs $with_nss_libs/libfreeb1.a" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2057 | ;; |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2058 | esac |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2059 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2060 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2061 | nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2062 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2063 | |
|
23340
ac3ac8e7652d
A patch from compnerd (Saleem Abdulrasool) to properly name the variables
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23302
diff
changeset
|
2064 | AC_CACHE_CHECK([for Mozilla nss libraries], ac_cv_moz_nss_libs, |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2065 | [ |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2066 | LIBS_save=$LIBS |
| 14797 | 2067 | LDFLAGS="$LDFLAGS -L$with_nspr_libs -L$with_nss_libs" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2068 | LIBS="$nsslibs $nsprlibs" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2069 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2070 | AC_TRY_LINK_FUNC(NSS_Init, |
|
23340
ac3ac8e7652d
A patch from compnerd (Saleem Abdulrasool) to properly name the variables
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23302
diff
changeset
|
2071 | [ac_cv_moz_nss_libs="yes"], |
|
ac3ac8e7652d
A patch from compnerd (Saleem Abdulrasool) to properly name the variables
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23302
diff
changeset
|
2072 | [ac_cv_moz_nss_libs="no"]) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2073 | |
|
23340
ac3ac8e7652d
A patch from compnerd (Saleem Abdulrasool) to properly name the variables
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23302
diff
changeset
|
2074 | if test "x$ac_cv_moz_nss_libs" = "xno"; then |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2075 | nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3" |
|
27848
a52e369d98c6
Strip trailing whitespace.
Paul Aurich <darkrain42@pidgin.im>
parents:
27758
diff
changeset
|
2076 | LDFLAGS="$LDFLAGS -L$with_nspr_libs -L$with_nss_libs" |
| 14797 | 2077 | LIBS="$LIBS $nsslibs" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2078 | AC_TRY_LINK_FUNC(NSS_Init, |
|
23340
ac3ac8e7652d
A patch from compnerd (Saleem Abdulrasool) to properly name the variables
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23302
diff
changeset
|
2079 | [ac_cv_moz_nss_libs="yes"], |
|
ac3ac8e7652d
A patch from compnerd (Saleem Abdulrasool) to properly name the variables
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23302
diff
changeset
|
2080 | [ac_cv_moz_nss_libs="no"]) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2081 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2082 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2083 | LDFLAGS=$LDFLAGS_save |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2084 | LIBS=$LIBS_save |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2085 | ]) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2086 | |
|
23340
ac3ac8e7652d
A patch from compnerd (Saleem Abdulrasool) to properly name the variables
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23302
diff
changeset
|
2087 | if test "x$ac_cv_moz_nss_libs" != "xno"; then |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2088 | AC_DEFINE(HAVE_NSS) |
|
6734
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
2089 | AC_DEFINE(HAVE_SSL) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2090 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2091 | NSS_LIBS="-L$with_nss_libs $nsslibs" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2092 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2093 | if test "$enable_nss" = "static"; then |
|
7155
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
2094 | msg_nss="Mozilla NSS (static)" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2095 | else |
|
7155
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
2096 | msg_nss="Mozilla NSS" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2097 | fi |
|
6738
aa797bcc69dd
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
2098 | |
|
aa797bcc69dd
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
2099 | enable_nss="yes" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2100 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2101 | NSS_CFLAGS="" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2102 | NSPR_CFLAGS="" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2103 | NSPR_LIBS="" |
|
7087
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
2104 | enable_nss="no" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2105 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2106 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2107 | AC_MSG_CHECKING(for Mozilla nss libraries) |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
2108 | AC_MSG_RESULT(no) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2109 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2110 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2111 | NSS_CFLAGS="$NSPR_CFLAGS $NSS_CFLAGS" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2112 | NSS_LIBS="$NSPR_LIBS $NSS_LIBS" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2113 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2114 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2115 | AC_SUBST(NSS_CFLAGS) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2116 | AC_SUBST(NSS_LIBS) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2117 | fi |
|
27848
a52e369d98c6
Strip trailing whitespace.
Paul Aurich <darkrain42@pidgin.im>
parents:
27758
diff
changeset
|
2118 | |
|
6738
aa797bcc69dd
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
2119 | AM_CONDITIONAL(USE_NSS, test "x$enable_nss" = "xyes") |
|
aa797bcc69dd
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
2120 | |
|
7155
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
2121 | 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
|
2122 | msg_ssl="$msg_nss and $msg_gnutls" |
|
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
2123 | elif test "x$msg_nss" != "x"; then |
|
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
2124 | msg_ssl=$msg_nss |
|
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
2125 | elif test "x$msg_gnutls" != "x"; then |
|
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
2126 | msg_ssl=$msg_gnutls |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
2127 | elif test "x$looked_for_gnutls" = "xyes" -a "x$looked_for_nss" = "xyes" -a "x$force_deps" = "xyes" ; then |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2128 | AC_MSG_ERROR([ |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2129 | Neither GnuTLS or NSS SSL development headers found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2130 | Use --disable-nss --disable-gnutls if you do not need SSL support. |
|
27386
885fcba6bcca
Mention Yahoo in all the places we say "These protocols won't work without SSL"
Paul Aurich <darkrain42@pidgin.im>
parents:
27361
diff
changeset
|
2131 | MSN, Yahoo!, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable! |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2132 | ]) |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
2133 | elif test "x$looked_for_gnutls" = "xyes" -a "x$force_deps" = "xyes" ; then |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2134 | AC_MSG_ERROR([ |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2135 | GnuTLS SSL development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2136 | Use --disable-gnutls if you do not need SSL support. |
|
27386
885fcba6bcca
Mention Yahoo in all the places we say "These protocols won't work without SSL"
Paul Aurich <darkrain42@pidgin.im>
parents:
27361
diff
changeset
|
2137 | MSN, Yahoo!, Novell Groupwise and Google Talk will not work without SSL support. |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2138 | ]) |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
2139 | elif test "x$looked_for_nss" = "xyes" -a "x$force_deps" = "xyes" ; then |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2140 | AC_MSG_ERROR([ |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2141 | NSS SSL development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2142 | Use --disable-nss if you do not need SSL support. |
|
27386
885fcba6bcca
Mention Yahoo in all the places we say "These protocols won't work without SSL"
Paul Aurich <darkrain42@pidgin.im>
parents:
27361
diff
changeset
|
2143 | MSN, Yahoo!, Novell Groupwise and Google Talk will not work without SSL support. |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2144 | ]) |
|
7155
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
2145 | fi |
|
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
2146 | |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2147 | dnl ####################################################################### |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2148 | dnl # Check for Tcl |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2149 | dnl ####################################################################### |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2150 | AC_ARG_ENABLE(tcl, [AC_HELP_STRING([--disable-tcl], |
| 14859 | 2151 | [compile without Tcl scripting])], enable_tcl="$enableval", enable_tcl="yes") |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2152 | AC_ARG_WITH(tclconfig, [AC_HELP_STRING([--with-tclconfig=DIR], |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2153 | [directory containing tclConfig.sh])]) |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2154 | |
|
10975
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
2155 | if test "$enable_plugins" = no; then |
|
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
2156 | enable_tcl=no |
|
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
2157 | fi |
|
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
2158 | |
| 6694 | 2159 | if test "$enable_tcl" = yes; then |
| 2160 | AC_MSG_CHECKING([for tclConfig.sh]) | |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2161 | TCLCONFIG=no |
| 6710 | 2162 | TCLCONFIGDIRS="/usr/lib \ |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2163 | /usr/lib64 \ |
|
24071
0abe49c5b324
Fix finding TCL headers with latest TCL
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23881
diff
changeset
|
2164 | /usr/lib/tcl8.5 \ |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2165 | /usr/lib/tcl8.4 \ |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2166 | /usr/lib/tcl8.3 \ |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2167 | /usr/lib/tcl8.2 \ |
|
24071
0abe49c5b324
Fix finding TCL headers with latest TCL
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23881
diff
changeset
|
2168 | /usr/lib64/tcl8.5 \ |
|
0abe49c5b324
Fix finding TCL headers with latest TCL
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23881
diff
changeset
|
2169 | /usr/lib64/tcl8.4 \ |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2170 | /System/Library/Tcl/8.3 \ |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2171 | /usr/local/lib" |
| 6710 | 2172 | for dir in $with_tclconfig $TCLCONFIGDIRS; do |
| 6694 | 2173 | if test -f $dir/tclConfig.sh; then |
| 2174 | TCLCONFIG=$dir/tclConfig.sh | |
| 2175 | AC_MSG_RESULT([yes ($TCLCONFIG)]) | |
|
29835
d8e197726e12
Stop looking for tcl/tkConfig.sh after the first result, since I think it
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29834
diff
changeset
|
2176 | break |
| 6694 | 2177 | fi |
| 2178 | done | |
| 6697 | 2179 | if test "$TCLCONFIG" = "no"; then |
| 6694 | 2180 | AC_MSG_RESULT([no]) |
| 2181 | enable_tcl=no | |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
2182 | if test "x$force_deps" = "xyes" ; then |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
2183 | AC_MSG_ERROR([ |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2184 | Tcl development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2185 | Use --disable-tcl if you do not need Tcl scripting support. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2186 | ]) |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
2187 | fi |
| 6694 | 2188 | else |
| 2189 | . $TCLCONFIG | |
| 6709 | 2190 | AC_MSG_CHECKING([Tcl version compatability]) |
| 7822 | 2191 | if test "$TCL_MAJOR_VERSION" -ne 8 -o "$TCL_MINOR_VERSION" -lt 3; then |
| 2192 | AC_MSG_RESULT([bad, $TCL_VERSION found but 8.3 or later required]) | |
| 6709 | 2193 | enable_tcl=no |
| 2194 | else | |
| 2195 | AC_MSG_RESULT([ok, $TCL_VERSION]) | |
| 2196 | eval "TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"" | |
| 2197 | AC_MSG_CHECKING([for Tcl linkability]) | |
| 6713 | 2198 | oldCPPFLAGS=$CPPFLAGS |
| 7351 | 2199 | CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC -I$TCL_PREFIX/include" |
| 6709 | 2200 | oldLIBS=$LIBS |
| 2201 | LIBS="$LIBS $TCL_LIB_SPEC" | |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
2202 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <tcl.h>]], |
|
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
2203 | [[Tcl_Interp *interp=NULL; Tcl_Init(interp)]])], |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2204 | [AC_MSG_RESULT([yes]);enable_tcl=yes], |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2205 | [AC_MSG_RESULT([no]);enable_tcl=no]) |
| 6713 | 2206 | CPPFLAGS="$oldCPPFLAGS" |
| 6709 | 2207 | LIBS="$oldLIBS" |
| 2208 | fi | |
| 6694 | 2209 | fi |
| 2210 | fi | |
| 2211 | ||
| 2212 | if test "$enable_tcl" = yes; then | |
| 2213 | AM_CONDITIONAL(USE_TCL, true) | |
| 2214 | TCL_LIBS=$TCL_LIB_SPEC | |
|
14504
88f6b47296a9
[gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents:
14503
diff
changeset
|
2215 | AC_DEFINE(HAVE_TCL, [1], [Compile with support for the Tcl toolkit]) |
| 6694 | 2216 | AC_SUBST(TCL_LIBS) |
| 7351 | 2217 | TCL_CFLAGS="$TCL_INCLUDE_SPEC -I$TCL_PREFIX/include" |
| 6717 | 2218 | if test "x$GCC" = "xyes"; then |
| 2219 | TCL_CFLAGS="$TCL_CFLAGS -fno-strict-aliasing" | |
| 2220 | fi | |
| 6712 | 2221 | AC_SUBST(TCL_CFLAGS) |
| 6694 | 2222 | else |
| 2223 | AM_CONDITIONAL(USE_TCL, false) | |
| 2224 | fi | |
| 2225 | ||
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2226 | dnl ####################################################################### |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2227 | dnl # Check for Tk |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2228 | dnl ####################################################################### |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2229 | AC_ARG_ENABLE(tk, [AC_HELP_STRING([--disable-tk], |
| 14859 | 2230 | [compile without Tcl support for Tk])], enable_tk="$enableval", enable_tk="yes") |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2231 | AC_ARG_WITH(tkconfig, [AC_HELP_STRING([--with-tkconfig=DIR], |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2232 | [directory containing tkConfig.sh])]) |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2233 | |
| 6694 | 2234 | if test "$enable_tcl" = yes -a "$enable_tk" = yes; then |
| 2235 | AC_MSG_CHECKING([for tkConfig.sh]) | |
| 2236 | TKCONFIG=no | |
| 6715 | 2237 | TKCONFIGDIRS="/usr/lib \ |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2238 | /usr/lib64 \ |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2239 | /usr/lib/tk8.4 \ |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2240 | /usr/lib/tk8.3 \ |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2241 | /usr/lib/tk8.2 \ |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2242 | /usr/local/lib" |
| 6715 | 2243 | for dir in $with_tkconfig $TKCONFIGDIRS; do |
| 6694 | 2244 | if test -f $dir/tkConfig.sh; then |
| 2245 | TKCONFIG=$dir/tkConfig.sh | |
| 2246 | AC_MSG_RESULT([yes ($TKCONFIG)]) | |
|
29835
d8e197726e12
Stop looking for tcl/tkConfig.sh after the first result, since I think it
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29834
diff
changeset
|
2247 | break |
| 6694 | 2248 | fi |
| 2249 | done | |
| 2250 | if test "$TKCONFIG" = "no"; then | |
| 2251 | AC_MSG_RESULT([no]) | |
| 2252 | enable_tk=no | |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
2253 | if test "x$force_deps" = "xyes" ; then |
|
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
2254 | AC_MSG_ERROR([ |
|
22758
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2255 | Tk development headers not found. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2256 | Use --disable-tk if you do not need Tk scripting support. |
|
ba0bee0e8f61
Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22757
diff
changeset
|
2257 | ]) |
|
23571
1a323da99332
Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23548
diff
changeset
|
2258 | fi |
| 6694 | 2259 | else |
| 2260 | . $TKCONFIG | |
| 2261 | eval "TK_LIB_SPEC=\"$TK_LIB_SPEC\"" | |
| 2262 | AC_MSG_CHECKING([for Tk linkability]) | |
| 6716 | 2263 | oldCPPFLAGS=$CPPFLAGS |
| 2264 | CPPFLAGS="$CPPFLAGS $TCL_CFLAGS" | |
| 6694 | 2265 | oldLIBS=$LIBS |
| 2266 | LIBS="$LIBS $TCL_LIB_SPEC $TK_LIB_SPEC" | |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
2267 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <tk.h>]], |
|
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
2268 | [[Tcl_Interp *interp=NULL; Tcl_Init(interp); Tk_Init(interp);]])], |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2269 | [AC_MSG_RESULT([yes]);enable_tk=yes], |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2270 | [AC_MSG_RESULT([no]);enable_tk=no]) |
| 6716 | 2271 | CPPFLAGS="$oldCPPFLAGS" |
| 6694 | 2272 | LIBS="$oldLIBS" |
| 2273 | fi | |
| 6710 | 2274 | else |
| 2275 | enable_tk=no | |
| 6694 | 2276 | fi |
| 2277 | ||
| 2278 | if test "$enable_tk" = yes; then | |
| 2279 | AM_CONDITIONAL(USE_TK, true) | |
| 2280 | AC_DEFINE(HAVE_TK, [1], [Compile with support for the Tk toolkit]) | |
| 2281 | TK_LIBS=$TK_LIB_SPEC | |
| 2282 | AC_SUBST(TK_LIBS) | |
| 2283 | else | |
| 2284 | AM_CONDITIONAL(USE_TK, false) | |
| 2285 | fi | |
| 2286 | ||
| 2129 | 2287 | if test "$ac_cv_cygwin" = yes ; then |
| 2288 | LDADD="$LDADD -static" | |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
2289 | AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
2290 | fi |
| 2129 | 2291 | |
|
6360
c2bfe65b200c
[gaim-migrate @ 6864]
Robert McQueen <robot101@debian.org>
parents:
6321
diff
changeset
|
2292 | AC_SUBST(DEBUG_CFLAGS) |
| 2129 | 2293 | AC_SUBST(LDADD) |
| 2294 | AC_SUBST(LIBS) | |
| 2295 | ||
| 2296 | if test "x$enable_plugins" = "xyes" ; then | |
|
15885
01f2c945c63c
who knew that --disable-plugins still worked?! Also, some completely untested support for aim:buddyicon, which I'll look at more tomorrow
Sean Egan <seanegan@pidgin.im>
parents:
15878
diff
changeset
|
2297 | AC_DEFINE(PURPLE_PLUGINS, 1, [Define if plugins are enabled.]) |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2298 | AM_CONDITIONAL(PLUGINS, true) |
|
21466
491faf2e1fe4
Make purple.h a generated file so plugins can just include this and never
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21465
diff
changeset
|
2299 | PLUGINS_DEFINE="#define PURPLE_PLUGINS 1" |
| 2129 | 2300 | else |
|
3411
e9d50336f9c3
[gaim-migrate @ 3430]
Christian Hammond <chipx86@chipx86.com>
parents:
3408
diff
changeset
|
2301 | AM_CONDITIONAL(PLUGINS, false) |
|
21466
491faf2e1fe4
Make purple.h a generated file so plugins can just include this and never
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21465
diff
changeset
|
2302 | PLUGINS_DEFINE="#undef PURPLE_PLUGINS" |
| 2129 | 2303 | fi |
|
21466
491faf2e1fe4
Make purple.h a generated file so plugins can just include this and never
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21465
diff
changeset
|
2304 | AC_SUBST(PLUGINS_DEFINE) |
| 2129 | 2305 | |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2306 | dnl ####################################################################### |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2307 | dnl # Check for Cyrus-SASL (for Jabber) |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2308 | dnl ####################################################################### |
| 2129 | 2309 | dnl AC_CHECK_SIZEOF(short) |
| 2310 | AC_CHECK_FUNCS(snprintf connect) | |
| 12508 | 2311 | AC_SUBST(SASL_LIBS) |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
2312 | 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) |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2313 | if test "x$enable_cyrus_sasl" = "xyes" ; then |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2314 | AC_CHECK_LIB(sasl2, sasl_client_init, [ |
|
28855
c5bc85f9c00e
jabber: Factor the SASL auth methods into their own files.
Paul Aurich <darkrain42@pidgin.im>
parents:
28693
diff
changeset
|
2315 | AM_CONDITIONAL(USE_CYRUS_SASL, true) |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2316 | AC_DEFINE(HAVE_CYRUS_SASL, [1], [Define to 1 if Cyrus SASL is present]) |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2317 | SASL_LIBS=-"lsasl2" |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2318 | ], [ |
|
28855
c5bc85f9c00e
jabber: Factor the SASL auth methods into their own files.
Paul Aurich <darkrain42@pidgin.im>
parents:
28693
diff
changeset
|
2319 | AM_CONDITIONAL(USE_CYRUS_SASL, false) |
|
29832
7dffd69edacb
Standardize on AC_MSG_ERROR.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29823
diff
changeset
|
2320 | AC_MSG_ERROR([Cyrus SASL library not found]) |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2321 | ]) |
|
28855
c5bc85f9c00e
jabber: Factor the SASL auth methods into their own files.
Paul Aurich <darkrain42@pidgin.im>
parents:
28693
diff
changeset
|
2322 | else |
|
c5bc85f9c00e
jabber: Factor the SASL auth methods into their own files.
Paul Aurich <darkrain42@pidgin.im>
parents:
28693
diff
changeset
|
2323 | AM_CONDITIONAL(USE_CYRUS_SASL, false) |
| 12508 | 2324 | fi |
| 2129 | 2325 | |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2326 | dnl ####################################################################### |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2327 | dnl # Check for Kerberos (for Zephyr) |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2328 | dnl ####################################################################### |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
2329 | AC_DEFINE(ZEPHYR_INT32, long, [Size of an int32.]) |
| 2129 | 2330 | AC_SUBST(KRB4_CFLAGS) |
| 2331 | AC_SUBST(KRB4_LDFLAGS) | |
| 2332 | AC_SUBST(KRB4_LIBS) | |
| 2333 | if test "$kerberos" != "no" ; then | |
| 2334 | if test "$kerberos" != "yes" ; then | |
| 2335 | KRB4_CFLAGS="-I${kerberos}/include" | |
| 2336 | if test -d "$kerberos/include/kerberosIV" ; then | |
| 2337 | KRB4_CFLAGS="$KRB4_CFLAGS -I${kerberos}/include/kerberosIV" | |
| 2338 | fi | |
| 2339 | KRB4_LDFLAGS="-L${kerberos}/lib" | |
| 2340 | elif test -d /usr/local/include/kerberosIV ; then | |
| 2341 | KRB4_CFLAGS="-I/usr/local/include/kerberosIV" | |
| 2342 | elif test -d /usr/include/kerberosIV ; then | |
| 2343 | KRB4_CFLAGS="-I/usr/include/kerberosIV" | |
| 2344 | fi | |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
2345 | AC_DEFINE(ZEPHYR_USES_KERBEROS, 1, [Define if kerberos should be used in Zephyr.]) |
| 2129 | 2346 | |
| 2347 | orig_LDFLAGS="$LDFLAGS" | |
| 2348 | LDFLAGS="$LDFLAGS $KRB4_LDFLAGS" | |
| 2349 | AC_CHECK_LIB(krb4, krb_rd_req, | |
| 2350 | [KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"], | |
| 2351 | [AC_CHECK_LIB(krb, krb_rd_req, | |
| 2352 | [KRB4_LIBS="-lkrb -ldes"], | |
|
29832
7dffd69edacb
Standardize on AC_MSG_ERROR.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29823
diff
changeset
|
2353 | [AC_MSG_ERROR([Kerberos 4 libraries not found])], |
| 2129 | 2354 | -ldes)], |
| 2355 | -ldes425 -lkrb5 -lk5crypto -lcom_err) | |
| 2356 | orig_LIBS="$LIBS" | |
| 2357 | LIBS="$LIBS $KRB4_LIBS" | |
| 2358 | AC_CHECK_FUNCS(krb_set_key krb_rd_req krb_get_lrealm) | |
| 2359 | AC_CHECK_FUNCS(krb_get_err_text krb_log) | |
| 2360 | LIBS="$orig_LIBS" | |
| 2361 | LDFLAGS="$orig_LDFLAGS" | |
| 2362 | fi | |
| 6150 | 2363 | |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2364 | dnl ####################################################################### |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2365 | dnl # Check for external libzephyr |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2366 | dnl ####################################################################### |
| 8378 | 2367 | AC_SUBST(ZEPHYR_CFLAGS) |
| 2368 | AC_SUBST(ZEPHYR_LDFLAGS) | |
| 2369 | AC_SUBST(ZEPHYR_LIBS) | |
| 2370 | if test "$zephyr" != "no" ; then | |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2371 | if test "$zephyr" != "yes" ; then |
|
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2372 | ZEPHYR_CFLAGS="-I${zephyr}/include" |
| 8378 | 2373 | ZEPHYR_LDFLAGS="-L${zephyr}/lib" |
| 2374 | elif test -d /usr/athena/include/zephyr ; then | |
| 2375 | ZEPHYR_CFLAGS="-I/usr/athena/include" | |
| 2376 | elif test -d /usr/include/zephyr ; then | |
|
12034
e40d6191f530
[gaim-migrate @ 14327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12032
diff
changeset
|
2377 | ZEPHYR_CFLAGS="-I/usr/include" |
|
e40d6191f530
[gaim-migrate @ 14327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12032
diff
changeset
|
2378 | elif test -d /usr/local/include/zephyr ; then |
|
e40d6191f530
[gaim-migrate @ 14327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12032
diff
changeset
|
2379 | ZEPHYR_CFLAGS="-I/usr/local/include" |
| 8378 | 2380 | fi |
|
13733
a11620505037
[gaim-migrate @ 16142]
Mark Doliner <markdoliner@pidgin.im>
parents:
13720
diff
changeset
|
2381 | AC_DEFINE(LIBZEPHYR_EXT, 1 , [Define if external libzephyr should be used.]) |
| 8378 | 2382 | AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") |
| 2383 | orig_LDFLAGS="$LDFLAGS" | |
| 2384 | LDFLAGS="$LDFLAGS $ZEPHYR_LDFLAGS" | |
| 2385 | AC_CHECK_LIB(zephyr, ZInitialize, | |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2386 | [ZEPHYR_LIBS="-lzephyr"], |
|
29832
7dffd69edacb
Standardize on AC_MSG_ERROR.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29823
diff
changeset
|
2387 | [AC_MSG_ERROR([Zephyr libraries not found])], |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2388 | -lzephyr) |
| 8378 | 2389 | orig_LIBS="$LIBS" |
| 2390 | LIBS="$orig_LIBS" | |
| 2391 | LDFLAGS="$orig_LDFLAGS" | |
| 2392 | fi | |
| 2393 | ||
| 6150 | 2394 | AC_MSG_CHECKING(for me pot o' gold) |
| 2395 | AC_MSG_RESULT(no) | |
| 2129 | 2396 | AC_CHECK_FUNCS(gethostid lrand48) |
| 2397 | AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf) | |
|
22673
9a01f082c6b0
Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents:
22663
diff
changeset
|
2398 | AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h) |
|
9a01f082c6b0
Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents:
22663
diff
changeset
|
2399 | AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h) |
|
9a01f082c6b0
Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents:
22663
diff
changeset
|
2400 | AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h) |
|
9a01f082c6b0
Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents:
22663
diff
changeset
|
2401 | AC_CHECK_HEADERS(termios.h) |
|
22629
46e2adbfc4af
Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents:
22565
diff
changeset
|
2402 | |
|
46e2adbfc4af
Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents:
22565
diff
changeset
|
2403 | # sys/sysctl.h on OpenBSD 4.2 requires sys/param.h |
|
23518
228c316f1323
Some header inclusion fixes to help on NetBSD/FreeBSD.
Richard Laager <rlaager@pidgin.im>
parents:
23492
diff
changeset
|
2404 | # sys/sysctl.h on FreeBSD requires sys/types.h |
|
22673
9a01f082c6b0
Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents:
22663
diff
changeset
|
2405 | AC_CHECK_HEADERS(sys/param.h) |
|
22629
46e2adbfc4af
Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents:
22565
diff
changeset
|
2406 | AC_CHECK_HEADERS(sys/sysctl.h, [], [], |
|
46e2adbfc4af
Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents:
22565
diff
changeset
|
2407 | [[ |
|
23518
228c316f1323
Some header inclusion fixes to help on NetBSD/FreeBSD.
Richard Laager <rlaager@pidgin.im>
parents:
23492
diff
changeset
|
2408 | #include <sys/types.h> |
|
22629
46e2adbfc4af
Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents:
22565
diff
changeset
|
2409 | #ifdef HAVE_PARAM_H |
|
46e2adbfc4af
Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents:
22565
diff
changeset
|
2410 | # include <sys/param.h> |
|
46e2adbfc4af
Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents:
22565
diff
changeset
|
2411 | #endif |
|
46e2adbfc4af
Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents:
22565
diff
changeset
|
2412 | ]]) |
|
46e2adbfc4af
Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents:
22565
diff
changeset
|
2413 | |
|
22673
9a01f082c6b0
Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents:
22663
diff
changeset
|
2414 | AC_CHECK_HEADERS(sys/socket.h) |
|
3194
9404dfabed94
[gaim-migrate @ 3211]
Jim Seymour <jseymour@users.sourceforge.net>
parents:
3191
diff
changeset
|
2415 | AC_VAR_TIMEZONE_EXTERNALS |
| 2129 | 2416 | |
|
14533
18965bbec457
[gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents:
14507
diff
changeset
|
2417 | AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff, |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
2418 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
|
14533
18965bbec457
[gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents:
14507
diff
changeset
|
2419 | #include <time.h> |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
2420 | ]], [[ |
|
14533
18965bbec457
[gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents:
14507
diff
changeset
|
2421 | struct tm tm; |
|
18965bbec457
[gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents:
14507
diff
changeset
|
2422 | tm.tm_gmtoff = 1; |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
2423 | ]])], [ac_cv_struct_tm_gmtoff=yes], [ac_cv_struct_tm_gmtoff=no])) |
|
14533
18965bbec457
[gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents:
14507
diff
changeset
|
2424 | if test $ac_cv_struct_tm_gmtoff = yes; then |
|
18965bbec457
[gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents:
14507
diff
changeset
|
2425 | AC_DEFINE(HAVE_TM_GMTOFF, 1, [Define if you have a tm_gmtoff member in struct tm]) |
|
18965bbec457
[gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents:
14507
diff
changeset
|
2426 | fi |
|
18965bbec457
[gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents:
14507
diff
changeset
|
2427 | |
|
29341
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2428 | AC_CACHE_CHECK([whether va_lists can be copied by value], ac_cv_va_val_copy,[ |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
2429 | AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdarg.h> |
|
29341
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2430 | #include <stdlib.h> |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2431 | void f (int i, ...) { |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2432 | va_list args1, args2; |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2433 | va_start (args1, i); |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2434 | args2 = args1; |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2435 | if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2436 | exit (1); |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2437 | va_end (args1); va_end (args2); |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2438 | } |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2439 | int main() { |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2440 | f (0, 42); |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2441 | return 0; |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
2442 | }]])], |
|
29341
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2443 | [ac_cv_va_val_copy=yes], |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2444 | [ac_cv_va_val_copy=no], |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2445 | [ac_cv_va_val_copy=yes]) |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2446 | ]) |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2447 | |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2448 | if test "x$ac_cv_va_val_copy" = "xno"; then |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2449 | AC_DEFINE(VA_COPY_AS_ARRAY, 1, ['va_lists' cannot be copied as values]) |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2450 | fi |
|
8df545432476
disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents:
29340
diff
changeset
|
2451 | |
|
10925
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2452 | dnl ####################################################################### |
| 15102 | 2453 | dnl # Check for check |
| 2454 | dnl ####################################################################### | |
|
23341
dfb174f1430a
A patch from compnerd (Saleem Abdulrasool) to remove a use of the
Saleem Abdulrasool <compnerd@compnerd.org>
parents:
23340
diff
changeset
|
2455 | PKG_CHECK_MODULES(CHECK, [check >= 0.9.4], , [AC_MSG_RESULT([no, testing is disabled])]) |
|
15868
7013bc2fca16
minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15834
diff
changeset
|
2456 | AM_CONDITIONAL(HAVE_CHECK, [test "x$CHECK_LIBS" != "x"]) |
| 15102 | 2457 | AC_SUBST(CHECK_CFLAGS) |
| 2458 | AC_SUBST(CHECK_LIBS) | |
| 2459 | ||
| 2460 | dnl ####################################################################### | |
|
22717
5dd7255ae41f
I'm tired of installing pixmap data that almost never changes. I'm so tired of
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22673
diff
changeset
|
2461 | dnl # Disable pixmap installation |
|
5dd7255ae41f
I'm tired of installing pixmap data that almost never changes. I'm so tired of
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22673
diff
changeset
|
2462 | dnl ####################################################################### |
|
22817
f8a97e000798
Attempt to make it a bit more obvious that people need to have half a clue
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22784
diff
changeset
|
2463 | AC_ARG_ENABLE(pixmaps-install, AC_HELP_STRING([--disable-pixmaps-install], [disable installation of pixmap files - Pidgin still needs them!]), enable_pixmaps="$enableval", enable_pixmaps=yes) |
|
22717
5dd7255ae41f
I'm tired of installing pixmap data that almost never changes. I'm so tired of
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22673
diff
changeset
|
2464 | |
|
5dd7255ae41f
I'm tired of installing pixmap data that almost never changes. I'm so tired of
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22673
diff
changeset
|
2465 | AM_CONDITIONAL(INSTALL_PIXMAPS, test "x$enable_pixmaps" = "xyes") |
|
5dd7255ae41f
I'm tired of installing pixmap data that almost never changes. I'm so tired of
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22673
diff
changeset
|
2466 | |
|
22723
134bf06fdb6d
For the few of us who wanted it, I bring back --disable-nls! It may not be
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22717
diff
changeset
|
2467 | AM_CONDITIONAL(INSTALL_I18N, test "x$enable_i18n" = "xyes") |
|
134bf06fdb6d
For the few of us who wanted it, I bring back --disable-nls! It may not be
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22717
diff
changeset
|
2468 | |
|
134bf06fdb6d
For the few of us who wanted it, I bring back --disable-nls! It may not be
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22717
diff
changeset
|
2469 | dnl ####################################################################### |
|
14503
bb719a93d9e1
[gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents:
14502
diff
changeset
|
2470 | dnl # Check for Doxygen and dot (part of GraphViz) |
|
10925
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2471 | dnl ####################################################################### |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2472 | AC_ARG_ENABLE(doxygen, |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2473 | [AC_HELP_STRING([--disable-doxygen], |
|
25407
090423051623
We default doxygen, dot, and devhelp to being enabled so make configure print
Etan Reisner <deryni@pidgin.im>
parents:
25381
diff
changeset
|
2474 | [disable documentation with doxygen])], |
| 14859 | 2475 | enable_doxygen="$enableval", enable_doxygen="yes") |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2476 | AC_ARG_ENABLE(dot, |
|
25407
090423051623
We default doxygen, dot, and devhelp to being enabled so make configure print
Etan Reisner <deryni@pidgin.im>
parents:
25381
diff
changeset
|
2477 | [AC_HELP_STRING([--disable-dot], |
|
090423051623
We default doxygen, dot, and devhelp to being enabled so make configure print
Etan Reisner <deryni@pidgin.im>
parents:
25381
diff
changeset
|
2478 | [disable graphs in doxygen via 'dot'])], |
| 14859 | 2479 | enable_dot="$enableval", enable_dot="yes") |
|
20987
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2480 | AC_ARG_ENABLE(devhelp, |
|
25407
090423051623
We default doxygen, dot, and devhelp to being enabled so make configure print
Etan Reisner <deryni@pidgin.im>
parents:
25381
diff
changeset
|
2481 | [AC_HELP_STRING([--disable-devhelp], |
|
090423051623
We default doxygen, dot, and devhelp to being enabled so make configure print
Etan Reisner <deryni@pidgin.im>
parents:
25381
diff
changeset
|
2482 | [disable building index for devhelp documentation browser])], |
|
20987
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2483 | enable_devhelp="$enableval", enable_devhelp="yes") |
|
10925
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2484 | |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2485 | if test "x$enable_doxygen" = xyes; then |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2486 | AC_CHECK_PROG(DOXYGEN, doxygen, true, false) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2487 | if test $DOXYGEN = false; then |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2488 | AC_MSG_WARN([*** Doxygen not found, docs will not be available]) |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2489 | enable_doxygen="no" |
|
10925
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2490 | else |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2491 | 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
|
2492 | |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2493 | if test "x$enable_dot" = "xyes"; then |
|
10925
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2494 | AC_CHECK_PROG(DOT, dot, true, false) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2495 | |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2496 | if test $DOT = false; then |
|
11318
13fa1d5134f3
[gaim-migrate @ 13521]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
11308
diff
changeset
|
2497 | enable_dot="no"; |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2498 | AC_MSG_WARN([*** GraphViz dot not found, docs will not have graphs]) |
|
10925
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2499 | else |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2500 | 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
|
2501 | fi |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2502 | fi |
|
20987
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2503 | |
|
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2504 | if test "x$enable_devhelp" = "xyes"; then |
|
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2505 | AC_CHECK_PROG(XSLTPROC, xsltproc, true, false) |
|
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2506 | |
|
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2507 | if test $XSLTPROC = false; then |
|
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2508 | enable_devhelp="no"; |
|
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2509 | AC_MSG_WARN([*** xsltproc not found; devhelp index will not be created]) |
|
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2510 | else |
|
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2511 | AC_DEFINE_UNQUOTED(HAVE_XSLTPROC, 1, [whether or not we have xsltproc for devhelp index]) |
|
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2512 | fi |
|
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2513 | fi |
|
10925
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2514 | fi |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2515 | else |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2516 | enable_dot="no" |
|
20987
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2517 | enable_devhelp="no" |
|
10925
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2518 | fi |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2519 | |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2520 | AC_SUBST(enable_doxygen) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2521 | AC_SUBST(enable_dot) |
|
20987
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2522 | AC_SUBST(enable_devhelp) |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2523 | AM_CONDITIONAL(HAVE_DOXYGEN, test "x$enable_doxygen" = "xyes") |
|
20987
89f5ef90c79e
Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents:
20957
diff
changeset
|
2524 | AM_CONDITIONAL(HAVE_XSLTPROC, test "x$enable_devhelp" = "xyes") |
|
10925
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
2525 | |
|
14507
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
2526 | AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug], |
|
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
2527 | [compile with debugging support])], , enable_debug=no) |
|
17062
7f0a31be8f7c
Remove the fatal asserts. If you think they helped you find and fix bugs, you can use 'G_DEBUG=fatal_warnings pidgin' to get back the crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17006
diff
changeset
|
2528 | |
|
14507
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
2529 | if test "x$enable_debug" = "xyes" ; then |
|
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
2530 | AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) |
|
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
2531 | fi |
|
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
2532 | |
|
18705
ee878f1aa32b
Some lines to the auto-thingies to aid in libgnt building standalone
Eric Polino <aluink@pidgin.im>
parents:
18292
diff
changeset
|
2533 | AM_CONDITIONAL(PURPLE_AVAILABLE, true) |
|
ee878f1aa32b
Some lines to the auto-thingies to aid in libgnt building standalone
Eric Polino <aluink@pidgin.im>
parents:
18292
diff
changeset
|
2534 | |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
2535 | AC_CONFIG_FILES([Makefile |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
2536 | Doxyfile |
|
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
2537 | doc/Makefile |
|
15633
a199751d1c05
Patch from Kevin Stange to allow autogen to run successfully. Yeah just look at the diff...
Gary Kramlich <grim@reaperworld.com>
parents:
15610
diff
changeset
|
2538 | doc/pidgin.1 |
|
15909
0ee1e930d385
Rename/update finch man page
Richard Nelson <wabz@pidgin.im>
parents:
15901
diff
changeset
|
2539 | doc/finch.1 |
|
11147
67309baf4c84
[gaim-migrate @ 13226]
Gary Kramlich <grim@reaperworld.com>
parents:
11146
diff
changeset
|
2540 | m4macros/Makefile |
|
15966
cf2b67eaa153
Change some stuff from gaim to pidgin
Mark Doliner <markdoliner@pidgin.im>
parents:
15946
diff
changeset
|
2541 | pidgin.apspec |
|
15435
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2542 | pidgin/Makefile |
|
15671
cbff05c2d691
Add stuff for pkg-config
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15661
diff
changeset
|
2543 | pidgin/pidgin.pc |
|
15946
d40e8847e825
More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15909
diff
changeset
|
2544 | pidgin/pidgin-uninstalled.pc |
|
29678
1c628e63e507
Add pidgin-2 and purple-2 .pc variants
Will Thompson <resiak@pidgin.im>
parents:
29665
diff
changeset
|
2545 | pidgin/pidgin-2.pc |
|
1c628e63e507
Add pidgin-2 and purple-2 .pc variants
Will Thompson <resiak@pidgin.im>
parents:
29665
diff
changeset
|
2546 | pidgin/pidgin-2-uninstalled.pc |
|
15435
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2547 | pidgin/pixmaps/Makefile |
| 19385 | 2548 | pidgin/pixmaps/emotes/default/24/Makefile |
| 15441 | 2549 | pidgin/pixmaps/emotes/none/Makefile |
|
24689
d9db6c50ac6f
Make the small smiley theme actually work.
Richard Laager <rlaager@pidgin.im>
parents:
24609
diff
changeset
|
2550 | pidgin/pixmaps/emotes/small/16/Makefile |
|
15435
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2551 | pidgin/plugins/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2552 | pidgin/plugins/cap/Makefile |
|
27217
7509acac49de
Convert the disco browser to a plugin. Refs #556
Paul Aurich <darkrain42@pidgin.im>
parents:
27047
diff
changeset
|
2553 | pidgin/plugins/disco/Makefile |
|
15435
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2554 | pidgin/plugins/gestures/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2555 | pidgin/plugins/gevolution/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2556 | pidgin/plugins/musicmessaging/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2557 | pidgin/plugins/perl/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2558 | pidgin/plugins/perl/common/Makefile.PL |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2559 | pidgin/plugins/ticker/Makefile |
|
15673
7f2c84ae63b0
Add the example nullclient here.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15671
diff
changeset
|
2560 | libpurple/example/Makefile |
|
15435
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2561 | libpurple/gconf/Makefile |
|
15671
cbff05c2d691
Add stuff for pkg-config
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15661
diff
changeset
|
2562 | libpurple/purple.pc |
|
15946
d40e8847e825
More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15909
diff
changeset
|
2563 | libpurple/purple-uninstalled.pc |
|
29678
1c628e63e507
Add pidgin-2 and purple-2 .pc variants
Will Thompson <resiak@pidgin.im>
parents:
29665
diff
changeset
|
2564 | libpurple/purple-2.pc |
|
1c628e63e507
Add pidgin-2 and purple-2 .pc variants
Will Thompson <resiak@pidgin.im>
parents:
29665
diff
changeset
|
2565 | libpurple/purple-2-uninstalled.pc |
|
15435
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2566 | libpurple/plugins/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2567 | libpurple/plugins/mono/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2568 | libpurple/plugins/mono/api/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2569 | libpurple/plugins/mono/loader/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2570 | libpurple/plugins/perl/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2571 | libpurple/plugins/perl/common/Makefile.PL |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2572 | libpurple/plugins/ssl/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2573 | libpurple/plugins/tcl/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2574 | libpurple/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2575 | libpurple/protocols/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2576 | libpurple/protocols/bonjour/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2577 | libpurple/protocols/gg/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2578 | libpurple/protocols/irc/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2579 | libpurple/protocols/jabber/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2580 | libpurple/protocols/msn/Makefile |
|
16323
0335752f4bbe
Add MySpace prpl to configure.ac
Jeff Connelly <jeff2@soc.pidgin.im>
parents:
16292
diff
changeset
|
2581 | libpurple/protocols/myspace/Makefile |
|
28841
6b9568572bcb
Initial addition of the MXit protocol plugin, provided by the MXit folks
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28693
diff
changeset
|
2582 | libpurple/protocols/mxit/Makefile |
|
15435
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2583 | libpurple/protocols/novell/Makefile |
|
17451
02adeb73ed3b
this patch adds nullprpl, a mock protocol plugin, to the libpurple/protocols
Ryan Barrett <ryanbarrett@users.sourceforge.net>
parents:
17384
diff
changeset
|
2584 | libpurple/protocols/null/Makefile |
|
15435
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2585 | libpurple/protocols/oscar/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2586 | libpurple/protocols/qq/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2587 | libpurple/protocols/sametime/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2588 | libpurple/protocols/silc/Makefile |
|
17675
e7069bf1de1a
Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17669
diff
changeset
|
2589 | libpurple/protocols/silc10/Makefile |
|
15435
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2590 | libpurple/protocols/simple/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2591 | libpurple/protocols/yahoo/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2592 | libpurple/protocols/zephyr/Makefile |
|
4b933b06d75e
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents:
15421
diff
changeset
|
2593 | libpurple/tests/Makefile |
|
21466
491faf2e1fe4
Make purple.h a generated file so plugins can just include this and never
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21465
diff
changeset
|
2594 | libpurple/purple.h |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16650
diff
changeset
|
2595 | libpurple/version.h |
| 18292 | 2596 | share/sounds/Makefile |
|
19355
a15de14b4ad1
- Fix the autoconf/automake stuff so that the ca-certs work
William Ehlhardt <williamehlhardt@gmail.com>
parents:
19318
diff
changeset
|
2597 | share/ca-certs/Makefile |
|
20892
bace1e693fd3
pkg-config shizzle for finch.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20771
diff
changeset
|
2598 | finch/finch.pc |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15875
diff
changeset
|
2599 | finch/Makefile |
|
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15875
diff
changeset
|
2600 | finch/libgnt/Makefile |
|
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15875
diff
changeset
|
2601 | finch/libgnt/gnt.pc |
|
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15875
diff
changeset
|
2602 | finch/libgnt/wms/Makefile |
|
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15875
diff
changeset
|
2603 | finch/plugins/Makefile |
| 6954 | 2604 | po/Makefile.in |
|
15946
d40e8847e825
More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15909
diff
changeset
|
2605 | pidgin.spec |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
2606 | ]) |
|
29833
191ef3a49890
Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29832
diff
changeset
|
2607 | AC_OUTPUT |
| 2129 | 2608 | |
| 2609 | echo | |
| 2610 | echo $PACKAGE $VERSION | |
| 2611 | ||
| 2612 | echo | |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2613 | echo Build GTK+ 2.x UI............. : $enable_gtkui |
|
14507
7d7ad2b8c3f8
[gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents:
14506
diff
changeset
|
2614 | echo Build console UI.............. : $enable_consoleui |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
2615 | echo Build for X11................. : $with_x |
| 2129 | 2616 | echo |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
19651
diff
changeset
|
2617 | echo Enable Gestures............... : $enable_gestures |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2618 | echo Protocols to build dynamically : $DYNAMIC_PRPLS |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2619 | echo Protocols to link statically.. : $STATIC_PRPLS |
| 2129 | 2620 | echo |
| 13720 | 2621 | echo Build with GStreamer support.. : $enable_gst |
|
15610
fc49b3cc8095
Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents:
15600
diff
changeset
|
2622 | echo Build with D-Bus support...... : $enable_dbus |
|
23703
5fb5502c76c3
Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents:
23702
diff
changeset
|
2623 | echo Build with voice and video.... : $enable_vv |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2624 | if test "x$enable_dbus" = "xyes" ; then |
|
15610
fc49b3cc8095
Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents:
15600
diff
changeset
|
2625 | eval eval echo D-Bus services directory...... : $DBUS_SERVICES_DIR |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2626 | fi |
|
27849
7f7428cb8309
When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents:
27848
diff
changeset
|
2627 | echo Build with GNU Libidn......... : $enable_idn |
|
23040
13df421b8347
Update configure.ac to properly detect Network Manager (via NetworkManager.h instead of libnm_glib). Also, change the code so that if NetworkManager is dead, we'll assume we're connected to the network and try anyway.
Richard Laager <rlaager@pidgin.im>
parents:
22818
diff
changeset
|
2628 | echo Build with NetworkManager..... : $enable_nm |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2629 | echo SSL Library/Libraries......... : $msg_ssl |
|
23473
df05ffc37ed0
Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents:
23472
diff
changeset
|
2630 | if test "x$SSL_CERTIFICATES_DIR" != "x" ; then |
|
df05ffc37ed0
Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents:
23472
diff
changeset
|
2631 | eval eval echo SSL CA certificates directory. : $SSL_CERTIFICATES_DIR |
|
df05ffc37ed0
Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents:
23472
diff
changeset
|
2632 | fi |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2633 | echo Build with Cyrus SASL support. : $enable_cyrus_sasl |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2634 | echo Use kerberos 4 with zephyr.... : $kerberos |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2635 | echo Use external libzephyr........ : $zephyr |
|
29751
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29722
diff
changeset
|
2636 | echo Use external libgadu.......... : $gadu_libs |
|
22717
5dd7255ae41f
I'm tired of installing pixmap data that almost never changes. I'm so tired of
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22673
diff
changeset
|
2637 | echo Install pixmaps............... : $enable_pixmaps |
|
22723
134bf06fdb6d
For the few of us who wanted it, I bring back --disable-nls! It may not be
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22717
diff
changeset
|
2638 | echo Install translations.......... : $enable_i18n |
|
14506
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2639 | echo Has you....................... : yes |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2640 | echo |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2641 | echo Use XScreenSaver Extension.... : $enable_screensaver |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2642 | echo Use X Session Management...... : $enable_sm |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2643 | echo Use startup notification...... : $enable_startup_notification |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2644 | echo Build with GtkSpell support... : $enable_gtkspell |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2645 | echo |
|
0c47b596fede
[gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents:
14504
diff
changeset
|
2646 | echo Build with plugin support..... : $enable_plugins |
|
11660
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
2647 | echo Build with Mono support....... : $enable_mono |
|
2725
a844d0964552
[gaim-migrate @ 2738]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2711
diff
changeset
|
2648 | echo Build with Perl support....... : $enable_perl |
| 6694 | 2649 | echo Build with Tcl support........ : $enable_tcl |
| 2650 | echo Build with Tk support......... : $enable_tk | |
| 2129 | 2651 | echo |
|
2725
a844d0964552
[gaim-migrate @ 2738]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2711
diff
changeset
|
2652 | echo Print debugging messages...... : $enable_debug |
| 2129 | 2653 | echo |
|
15946
d40e8847e825
More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15909
diff
changeset
|
2654 | eval eval echo Pidgin will be installed in $bindir. |
|
15976
dbb3ea0b1f7c
Minor 'make dist' fix and check for installed versions of pidgin, not gaim
Mark Doliner <markdoliner@pidgin.im>
parents:
15966
diff
changeset
|
2655 | if test "x$pidginpath" != "x" ; then |
|
dbb3ea0b1f7c
Minor 'make dist' fix and check for installed versions of pidgin, not gaim
Mark Doliner <markdoliner@pidgin.im>
parents:
15966
diff
changeset
|
2656 | echo Warning: You have an old copy of Pidgin at $pidginpath. |
| 2129 | 2657 | fi |
|
22818
bdcf442fc564
I'm an idiot and forgot to escape my apostrophe. This took *way* too long
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22817
diff
changeset
|
2658 | if test "x$enable_pixmaps" = "xno" ; then |
|
22817
f8a97e000798
Attempt to make it a bit more obvious that people need to have half a clue
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22784
diff
changeset
|
2659 | echo |
|
f8a97e000798
Attempt to make it a bit more obvious that people need to have half a clue
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22784
diff
changeset
|
2660 | echo Warning: You have disabled the installation of pixmap data, but Pidgin |
|
29902
c2506a6741cb
Small wording tweak and add a warning about the effects of --disable-nls.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29901
diff
changeset
|
2661 | echo still requires installed pixmaps. Be sure you know what you are doing. |
|
c2506a6741cb
Small wording tweak and add a warning about the effects of --disable-nls.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29901
diff
changeset
|
2662 | fi |
|
c2506a6741cb
Small wording tweak and add a warning about the effects of --disable-nls.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29901
diff
changeset
|
2663 | if test "x$enable_i18n" = "xno" ; then |
|
c2506a6741cb
Small wording tweak and add a warning about the effects of --disable-nls.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29901
diff
changeset
|
2664 | echo |
|
c2506a6741cb
Small wording tweak and add a warning about the effects of --disable-nls.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29901
diff
changeset
|
2665 | echo Warning: You have disabled the building and intallation of translation |
|
c2506a6741cb
Small wording tweak and add a warning about the effects of --disable-nls.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29901
diff
changeset
|
2666 | echo data. This will prevent building pidgin.desktop and the GConf schemas. |
|
c2506a6741cb
Small wording tweak and add a warning about the effects of --disable-nls.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29901
diff
changeset
|
2667 | echo Be sure you know what you are doing. |
|
22817
f8a97e000798
Attempt to make it a bit more obvious that people need to have half a clue
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22784
diff
changeset
|
2668 | fi |
| 2129 | 2669 | echo |
| 2670 | echo configure complete, now type \'make\' | |
| 2671 | echo | |
|
22818
bdcf442fc564
I'm an idiot and forgot to escape my apostrophe. This took *way* too long
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22817
diff
changeset
|
2672 |