Mercurial > pidgin.yaz
annotate configure.in @ 2090:b66aca8e8dce
[gaim-migrate @ 2100]
change ../config.h to <config.h> because that's better. change from GdkInput functions to GaimInput for reasons mentioned elsewhere.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 31 Jul 2001 23:23:40 +0000 |
parents | 424a40f12a6c |
children | 3ce77b547cf2 |
rev | line source |
---|---|
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
1 dnl Process this file with autoconf to produce a configure script. |
0 | 2 AC_INIT(src/aim.c) |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
3 AM_CONFIG_HEADER(config.h) |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
4 AM_INIT_AUTOMAKE([gaim], [0.11.0]) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
5 |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
6 AC_PATH_PROG(sedpath, sed) |
0 | 7 |
8 dnl Checks for programs. | |
1863
bf2434d36e54
[gaim-migrate @ 1873]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1783
diff
changeset
|
9 AC_PROG_CC |
bf2434d36e54
[gaim-migrate @ 1873]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1783
diff
changeset
|
10 AC_DISABLE_STATIC |
0 | 11 AM_PROG_LIBTOOL |
1556
22532a7e5fbf
[gaim-migrate @ 1566]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1551
diff
changeset
|
12 LIBTOOL="$LIBTOOL --silent" |
0 | 13 AC_PROG_INSTALL |
14 | |
932
13bdc97d433e
[gaim-migrate @ 942]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
923
diff
changeset
|
15 |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
16 ALL_LINGUAS="de es fr ko ru zh_CN" |
347
d64101dc5c7e
[gaim-migrate @ 357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
338
diff
changeset
|
17 AM_GNU_GETTEXT |
0 | 18 |
19 AC_CYGWIN | |
20 | |
21 | |
22 dnl Checks for header files. | |
23 AC_HEADER_STDC | |
24 AC_HEADER_SYS_WAIT | |
614
a3e32af35b30
[gaim-migrate @ 624]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
606
diff
changeset
|
25 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h locale.h signal.h) |
212
89c9334d3484
[gaim-migrate @ 222]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
174
diff
changeset
|
26 |
0 | 27 dnl Checks for typedefs, structures, and compiler characteristics. |
28 AC_C_CONST | |
29 AC_STRUCT_TM | |
30 | |
31 dnl Checks for library functions. | |
32 AC_TYPE_SIGNAL | |
33 AC_FUNC_STRFTIME | |
640
2c0a7d245bd2
[gaim-migrate @ 650]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
614
diff
changeset
|
34 AC_CHECK_FUNCS(socket strdup strstr atexit getaddrinfo) |
932
13bdc97d433e
[gaim-migrate @ 942]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
923
diff
changeset
|
35 AC_TRY_COMPILE(sys/socket.h, typedef unsigned int socklen_t;, AC_DEFINE(NEED_SOCKLEN_T),) |
0 | 36 |
991
3dbc2cd326e2
[gaim-migrate @ 1001]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
37 dnl Checks for getopt in standard library |
3dbc2cd326e2
[gaim-migrate @ 1001]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
38 AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] ) |
3dbc2cd326e2
[gaim-migrate @ 1001]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
39 AC_SUBST(LIBOBJS) |
3dbc2cd326e2
[gaim-migrate @ 1001]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
40 |
0 | 41 dnl This is a bad, bad hack. I am a bad, bad man. |
1094
3deadbe50737
[gaim-migrate @ 1104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1054
diff
changeset
|
42 CFLAGS="$CFLAGS -I/usr/local/include -I/opt/include -I\$(top_srcdir)" |
0 | 43 |
547
8086ed233742
[gaim-migrate @ 557]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
529
diff
changeset
|
44 AC_ARG_ENABLE(distrib,,,enable_distrib=no) |
8086ed233742
[gaim-migrate @ 557]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
529
diff
changeset
|
45 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") |
1024
66481301d972
[gaim-migrate @ 1034]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
991
diff
changeset
|
46 AC_ARG_ENABLE(multi, [ --disable-multi disable multiple connections],,enable_multi=yes) |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
47 AC_ARG_ENABLE(prpls, [ --disable-prpls don't build dynamic protocol plugins],,enable_prpls=yes) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
48 AC_ARG_WITH(static-prpls, [ --with-static-prpls link in certain protocols statically],[STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`],STATIC_PRPLS="oscar toc") |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
49 if test "x$STATIC_PRPLS" = "xall" ; then |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
50 STATIC_PRPLS="icq irc jabber msn napster oscar toc yahoo zephyr" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
51 fi |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
52 AC_SUBST(STATIC_PRPLS) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
53 STATIC_LINK_LIBS= |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
54 extern_init= |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
55 load_proto= |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
56 for i in $STATIC_PRPLS ; do |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
57 STATIC_LINK_LIBS="$STATIC_LINK_LIBS protocols/$i/lib$i.a" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
58 extern_init="$extern_init extern void ${i}_init(struct prpl *);" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
59 load_proto="$load_proto load_protocol(${i}_init, sizeof(struct prpl));" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
60 case $i in |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
61 icq) AM_CONDITIONAL(STATIC_ICQ, true) ;; |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
62 irc) AM_CONDITIONAL(STATIC_IRC, true) ;; |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
63 jabber) AM_CONDITIONAL(STATIC_JABBER, true) ;; |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
64 msn) AM_CONDITIONAL(STATIC_MSN, true) ;; |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
65 napster) AM_CONDITIONAL(STATIC_NAPSTER, true) ;; |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
66 oscar) AM_CONDITIONAL(STATIC_OSCAR, true) ;; |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
67 toc) AM_CONDITIONAL(STATIC_TOC, true) ;; |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
68 yahoo) AM_CONDITIONAL(STATIC_YAHOO, true) ;; |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
69 zephyr) AM_CONDITIONAL(STATIC_ZEPHYR, true) ;; |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
70 *) echo "Invalid static protocol $i!!" ; exit ;; |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
71 esac |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
72 done |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
73 AC_SUBST(STATIC_LINK_LIBS) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
74 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init void static_proto_init() { $load_proto }) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
75 |
1024
66481301d972
[gaim-migrate @ 1034]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
991
diff
changeset
|
76 AC_ARG_ENABLE(gnome, [ --disable-gnome compile without Gnome bits],,enable_gnome=yes) |
1906
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
77 AC_ARG_ENABLE(pixbuf, [ --disable-pixbuf compile without GdkPixbuf (needed for Buddy Icons)],,enable_pixbuf=yes) |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
78 AC_ARG_ENABLE(panel, [ --enable-panel compile as a GNOME applet],,enable_panel=$enable_distrib) |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
79 |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
80 AM_CONDITIONAL(GNOMEAPPLET, test "x$enable_panel" = "xyes") |
1024
66481301d972
[gaim-migrate @ 1034]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
991
diff
changeset
|
81 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],,enable_esd=yes) |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
82 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],,enable_nas=no) |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
83 |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
84 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) |
1024
66481301d972
[gaim-migrate @ 1034]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
991
diff
changeset
|
85 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes) |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
86 |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
87 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) |
1154
938d9cd76148
[gaim-migrate @ 1164]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1152
diff
changeset
|
88 AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes) |
1700
1e0fa7e130d0
[gaim-migrate @ 1710]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1671
diff
changeset
|
89 AC_ARG_WITH(krb4, [ --with-krb4=PREFIX Compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no") |
0 | 90 |
91 if test "$enable_debug" = yes ; then | |
402
943248245f32
[gaim-migrate @ 412]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
386
diff
changeset
|
92 CFLAGS="$CFLAGS -Wall -g" |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
93 AC_DEFINE(DEBUG) |
0 | 94 fi |
95 | |
529
e6ba7ab7c349
[gaim-migrate @ 539]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
510
diff
changeset
|
96 if test "x$enable_gnome" = "xyes" ; then |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
97 if test "x$enable_panel" = "xyes" ; then |
1904
7af8b0fb931a
[gaim-migrate @ 1914]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1903
diff
changeset
|
98 GNOME_INIT(applets) |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
99 GNOME_X_CHECKS |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
100 CFLAGS="$CFLAGS $GNOME_INCLUDEDIR" |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
101 AC_DEFINE(USE_APPLET) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
102 AC_DEFINE(USE_GNOME) |
1906
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
103 LIBS="$LIBS $GTK_LIBS $GNOME_LIBDIR $GNOME_APPLETS_LIBS $GNOMEUI_LIBS" |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
104 AC_PATH_PROG(gaimpath, gaim_applet) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
105 else |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
106 AC_PATH_PROG(gnomepath, gnome-config) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
107 AC_MSG_CHECKING(for Gnome compile flags) |
1906
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
108 GNOME_CFLAGS=`$gnomepath gnomeui --cflags 2>/dev/null` |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
109 if test "x$GNOME_CFLAGS" = "x" ; then |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
110 enable_gnome=no |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
111 AC_MSG_RESULT([Gnome not found, building without it.]) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
112 else |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
113 GNOME_VER=`$gnomepath --version |$sedpath 's/gnome-libs //' 2>/dev/null` |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
114 GNOME_MAJOR=`echo $GNOME_VER |$sedpath 's/\([[0-9]*]*\).\([[0-9]*]*\).\([[0-9]*]*\)/\1/' 2>/dev/null` |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
115 if test "x$GNOME_MAJOR" = "x0" ; then |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
116 enable_gnome = no |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
117 AC_MSG_RESULT([old Gnome found, building without it.]) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
118 else |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
119 AC_MSG_RESULT(ok) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
120 CFLAGS="$CFLAGS $GNOME_CFLAGS" |
1906
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
121 LIBS="$LIBS `$gnomepath gnomeui --libs 2>/dev/null`" |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
122 AC_DEFINE(USE_GNOME) |
606
eaab8abda2c0
[gaim-migrate @ 616]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
598
diff
changeset
|
123 GNOME_CONFIG="$gnomepath" |
eaab8abda2c0
[gaim-migrate @ 616]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
598
diff
changeset
|
124 AC_SUBST(GNOME_CONFIG) |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
125 AC_PATH_PROG(gaimpath, gaim) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
126 fi |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
127 fi |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
128 fi |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
129 fi |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
130 |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
131 if test "x$enable_gnome" != "xyes" ; then |
1770
7249312f46dc
[gaim-migrate @ 1780]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1752
diff
changeset
|
132 AM_PATH_GLIB(1.2.0,,AC_MSG_ERROR([ |
7249312f46dc
[gaim-migrate @ 1780]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1752
diff
changeset
|
133 *** GLib is required to build Gaim; please make sure you have the GLib |
7249312f46dc
[gaim-migrate @ 1780]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1752
diff
changeset
|
134 *** development headers installed. The latest version of GLib is |
7249312f46dc
[gaim-migrate @ 1780]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1752
diff
changeset
|
135 *** always available at http://www.gtk.org/.])) |
7249312f46dc
[gaim-migrate @ 1780]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1752
diff
changeset
|
136 AM_PATH_GTK(1.2.0,,AC_MSG_ERROR([ |
7249312f46dc
[gaim-migrate @ 1780]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1752
diff
changeset
|
137 *** GTK+ is required to build Gaim; please make sure you have the GTK+ |
7249312f46dc
[gaim-migrate @ 1780]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1752
diff
changeset
|
138 *** development headers installed. The latest version of GTK+ is |
7249312f46dc
[gaim-migrate @ 1780]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1752
diff
changeset
|
139 *** always available at http://www.gtk.org/.]),gthread) |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
140 LIBS="$LIBS $GTK_LIBS" |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
141 AC_PATH_PROG(gaimpath, gaim) |
0 | 142 fi |
1120
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
143 CFLAGS="$CFLAGS $GTK_CFLAGS" |
0 | 144 |
1906
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
145 use_pixbuf=no |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
146 if test "x$enable_pixbuf" = "xyes" ; then |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
147 AC_PATH_PROG(pixbufcfg, gdk-pixbuf-config) |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
148 if test "x$pixbufcfg" != "x" ; then |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
149 GDK_PIXBUF_CFLAGS=`$pixbufcfg --cflags` |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
150 GDK_PIXBUF_LIBS=`$pixbufcfg --libs` |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
151 GDK_PIXBUF_CONFIG="$pixbufcfg" |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
152 AC_SUBST(GDK_PIXBUF_CONFIG) |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
153 AC_SUBST(GDK_PIXBUF_CFLAGS) |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
154 AC_SUBST(GDK_PIXBUF_LIBS) |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
155 CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS" |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
156 LIBS="$LIBS $GDK_PIXBUF_LIBS" |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
157 dnl We should be doing checks to see that the header files and functions exist. eh. |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
158 AC_DEFINE(USE_PIXBUF) |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
159 use_pixbuf=yes |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
160 fi |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
161 fi |
42aa9434800a
[gaim-migrate @ 1916]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1904
diff
changeset
|
162 |
1026 | 163 dnl Check for XScreenSaver |
164 if test "x$enable_xss" = "xyes" ; then | |
1328
49d2eb2baf02
[gaim-migrate @ 1338]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1319
diff
changeset
|
165 XSS_LIBS="no" |
1120
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
166 XSS_HEADERS="no" |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
167 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS=""],[],[-lX11 -lXext -lm]) |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
168 AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="-lXss"],[],[-lX11 -lXext -lm]) |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
169 if test \! "$XSS_LIBS" = "no"; then |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
170 AC_TRY_COMPILE([ |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
171 #include <X11/extensions/scrnsaver.h> |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
172 ],[],[],[ |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
173 AC_DEFINE(USE_SCREENSAVER) |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
174 AC_SUBST(XSS_LIBS) |
1120
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
175 ]) |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
176 else |
1319
ff50d396c2bc
[gaim-migrate @ 1329]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1314
diff
changeset
|
177 XSS_LIBS="" |
1120
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
178 fi |
1026 | 179 else |
1319
ff50d396c2bc
[gaim-migrate @ 1329]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1314
diff
changeset
|
180 XSS_LIBS="" |
1026 | 181 fi |
182 | |
183 | |
184 | |
185 | |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
186 dnl This was taken straight from X-Chat. |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
187 dnl X-Chat is the greatest application ever, not only |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
188 dnl because it's a rocking IRC client but also because |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
189 dnl it's very easy to learn from. |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
190 if test "$enable_perl" = yes ; then |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
191 AC_PATH_PROG(perlpath, perl) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
192 AC_MSG_CHECKING(for Perl compile flags) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
193 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null` |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
194 if test "_$PERL_CFLAGS" = _ ; then |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
195 AC_MSG_RESULT([not found, building without perl.]) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
196 enable_perl = no |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
197 else |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
198 PERL_LIBS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null |$sedpath 's/-lgdbm //'` |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
199 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-ldb //'` |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
200 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lndbm //'` |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
201 if test "$system" = "Linux"; then |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
202 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lnsl //'` |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
203 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lposix //'` |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
204 fi |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
205 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lc //'` |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
206 AC_MSG_RESULT(ok) |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
207 AC_SUBST(PERL_CFLAGS) |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
208 AC_SUBST(PERL_LIBS) |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
209 AC_DEFINE(USE_PERL) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
210 AC_CHECK_FUNCS(Perl_eval_pv) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
211 fi |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
212 fi |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
213 |
0 | 214 if test "$enable_nas" = yes ; then |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
215 AC_DEFINE(NAS_SOUND) |
2018 | 216 LIBS="$LIBS -laudio -lXt" |
0 | 217 fi |
218 | |
219 if test "$enable_esd" = yes ; then | |
220 AM_PATH_GESD | |
221 if test "$no_esd" != yes ; then | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
222 CFLAGS="$CFLAGS $ESD_CFLAGS" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
223 AC_DEFINE(ESD_SOUND) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
224 LDADD="$LDADD $ESD_LIBS" |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
225 else |
981
7e231bc0018a
[gaim-migrate @ 991]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
972
diff
changeset
|
226 enable_esd=no |
0 | 227 fi |
228 fi | |
229 | |
230 if test "$ac_cv_cygwin" = yes ; then | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
231 LDADD="$LDADD -static" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
232 CFLAGS="$CFLAGS -Wall -g" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
233 AC_DEFINE(DEBUG) |
0 | 234 fi |
235 | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
236 AC_SUBST(CFLAGS) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
237 AC_SUBST(LDADD) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
238 AC_SUBST(LIBS) |
0 | 239 |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
240 if test "x$enable_multi" != "xyes" ; then |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
241 AC_DEFINE(NO_MULTI) |
1418
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
242 enable_multi=no |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
243 fi |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
244 |
1418
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
245 if test "x$enable_plugins" = "xyes" ; then |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
246 AC_DEFINE(GAIM_PLUGINS) |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
247 AM_CONDITIONAL(PLUGINS, test "x$enable_plugins" = "xyes") |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
248 else |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
249 enable_plugins=no |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
250 enable_prpls=no |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
251 fi |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
252 |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
253 if test "x$enable_prpls" = "xyes" ; then |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
254 AM_CONDITIONAL(PRPLS, test "x$enable_plugins" = "xyes") |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
255 else |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
256 enable_prpls=no |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
257 fi |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
258 |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
259 dnl checks for icqlib |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
260 AC_CHECK_HEADERS(asm/byteorder.h byteswap.h endian.h machine/endian.h arpa/nameser_compat.h) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
261 AC_CHECK_FUNCS(bswap_32 bswap_16) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
262 AC_C_BIGENDIAN |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
263 |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
264 dnl checks for jabber |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
265 dnl AC_CHECK_SIZEOF(short) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
266 AC_CHECK_FUNCS(snprintf connect) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
267 AC_CHECK_LIB(nsl, gethostent) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
268 |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
269 dnl checks for zephyr |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
270 AC_DEFINE(ZEPHYR_INT32, long) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
271 AC_SUBST(KRB4_CFLAGS) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
272 AC_SUBST(KRB4_LDFLAGS) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
273 AC_SUBST(KRB4_LIBS) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
274 if test "$kerberos" != "no" ; then |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
275 if test "$kerberos" != "yes" ; then |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
276 KRB4_CFLAGS="-I${kerberos}/include" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
277 if test -d "$kerberos/include/kerberosIV" ; then |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
278 KRB4_CFLAGS="$KRB4_CFLAGS -I${kerberos}/include/kerberosIV" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
279 fi |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
280 KRB4_LDFLAGS="-L${kerberos}/lib" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
281 elif test -d /usr/local/include/kerberosIV ; then |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
282 KRB4_CFLAGS="-I/usr/local/include/kerberosIV" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
283 elif test -d /usr/include/kerberosIV ; then |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
284 KRB4_CFLAGS="-I/usr/include/kerberosIV" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
285 fi |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
286 AC_DEFINE(ZEPHYR_USES_KERBEROS) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
287 |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
288 orig_LDFLAGS="$LDFLAGS" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
289 LDFLAGS="$LDFLAGS $KRB4_LDFLAGS" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
290 AC_CHECK_LIB(krb4, krb_rd_req, |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
291 [KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"], |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
292 [AC_CHECK_LIB(krb, krb_rd_req, |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
293 [KRB4_LIBS="-lkrb -ldes"], |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
294 [AC_ERROR(Kerberos 4 libraries not found)], |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
295 -ldes)], |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
296 -ldes425 -lkrb5 -lk5crypto -lcom_err) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
297 orig_LIBS="$LIBS" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
298 LIBS="$LIBS $KRB4_LIBS" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
299 AC_CHECK_FUNCS(krb_set_key krb_rd_req krb_get_lrealm) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
300 AC_CHECK_FUNCS(krb_get_err_text krb_log) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
301 LIBS="$orig_LIBS" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
302 LDFLAGS="$orig_LDFLAGS" |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
303 fi |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
304 AC_CHECK_FUNCS(gethostid lrand48) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
305 AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
306 AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
307 AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
308 AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
309 AC_CHECK_HEADERS(termios.h) |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
310 |
0 | 311 AC_OUTPUT([Makefile |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
312 doc/Makefile |
347
d64101dc5c7e
[gaim-migrate @ 357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
338
diff
changeset
|
313 intl/Makefile |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
314 m4/Makefile |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
315 pixmaps/Makefile |
172
450d62d40185
[gaim-migrate @ 182]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
170
diff
changeset
|
316 plugins/Makefile |
1752
d2357b148870
[gaim-migrate @ 1762]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1700
diff
changeset
|
317 po/Makefile.in |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
318 sounds/Makefile |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
319 src/Makefile |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
320 src/protocols/Makefile |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
321 src/protocols/icq/Makefile |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
322 src/protocols/irc/Makefile |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
323 src/protocols/jabber/Makefile |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
324 src/protocols/msn/Makefile |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
325 src/protocols/napster/Makefile |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
326 src/protocols/oscar/Makefile |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
327 src/protocols/toc/Makefile |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
328 src/protocols/yahoo/Makefile |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
329 src/protocols/zephyr/Makefile |
322
8ed366802f2e
[gaim-migrate @ 332]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
299
diff
changeset
|
330 gaim.spec |
0 | 331 ]) |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
332 |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
333 echo |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
334 echo $PACKAGE $VERSION |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
335 |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
336 echo |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
337 echo Allow Multiple Connections.. : $enable_multi |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
338 echo Build Protocol Plugins...... : $enable_prpls |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
339 echo Protocols to link statically : $STATIC_PRPLS |
1418
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
340 echo |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
341 echo Build with GNOME bits....... : $enable_gnome |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
342 echo Use GdkPixbuf for Icons..... : $use_pixbuf |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
343 echo Build as GNOME applet....... : $enable_panel |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
344 echo |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
345 echo Build with Plugin support... : $enable_plugins |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
346 echo Build with Perl support..... : $enable_perl |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
347 echo |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
348 echo Build with ESD.............. : $enable_esd |
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
349 echo Build with NAS.............. : $enable_nas |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
350 echo |
2086
424a40f12a6c
[gaim-migrate @ 2096]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2018
diff
changeset
|
351 echo Print debugging messages.... : $enable_debug |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
352 echo |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
353 echo Gaim will be installed in $prefix/bin. |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
354 if test "x$gaimpath" != "x" ; then |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
355 echo Warning: You have an old copy of gaim at $gaimpath. |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
356 fi |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
357 echo |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
358 echo configure complete, now type \'make\' |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
359 echo |