Mercurial > pidgin.yaz
comparison configure.ac @ 3425:59589bb7ce1e
[gaim-migrate @ 3451]
HEAD is now GTK 2 only. If you want to use GTK1.2, use our gtk1_stable branch.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sun, 25 Aug 2002 04:59:34 +0000 |
parents | 5df423e0bca8 |
children | 463dc1d3e6a8 |
comparison
equal
deleted
inserted
replaced
3424:0a7af6d4d2a0 | 3425:59589bb7ce1e |
---|---|
102 AM_CONDITIONAL(STATIC_YAHOO, test "x$static_yahoo" = "xyes") | 102 AM_CONDITIONAL(STATIC_YAHOO, test "x$static_yahoo" = "xyes") |
103 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes") | 103 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes") |
104 AC_SUBST(STATIC_LINK_LIBS) | 104 AC_SUBST(STATIC_LINK_LIBS) |
105 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init void static_proto_init() { $load_proto }) | 105 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init void static_proto_init() { $load_proto }) |
106 | 106 |
107 AC_ARG_ENABLE(gtk2, [ --enable-gtk2 compile using GTK 2 (BROKEN)],,enable_gtk2=no) | |
108 AC_ARG_ENABLE(gnome, [ --disable-gnome compile without Gnome bits],,enable_gnome=yes) | |
109 AC_ARG_ENABLE(pixbuf, [ --disable-pixbuf compile without GdkPixbuf],,enable_pixbuf=yes) | |
110 AC_ARG_ENABLE(panel, [ --enable-panel compile as a GNOME applet],,enable_panel=$enable_distrib) | |
111 | |
112 AM_CONDITIONAL(GNOMEAPPLET, test "x$enable_panel" = "xyes") | |
113 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],,enable_esd=yes) | 107 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],,enable_esd=yes) |
114 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],,enable_nas=no) | 108 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],,enable_nas=no) |
115 AC_ARG_ENABLE(artsc, [ --disable-artsc Turn off ArtsC (default=auto)],,enable_artsc=yes) | 109 AC_ARG_ENABLE(artsc, [ --disable-artsc Turn off ArtsC (default=auto)],,enable_artsc=yes) |
116 | 110 |
117 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) | 111 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) |
124 if test "$enable_debug" = yes ; then | 118 if test "$enable_debug" = yes ; then |
125 CFLAGS="$CFLAGS -Wall -g3" | 119 CFLAGS="$CFLAGS -Wall -g3" |
126 AC_DEFINE(DEBUG) | 120 AC_DEFINE(DEBUG) |
127 fi | 121 fi |
128 | 122 |
129 if test "x$enable_gtk2" = "xyes" ; then | 123 AM_PATH_GLIB_2_0(1.3.0,,AC_MSG_ERROR([ |
130 dnl AM_PATH_GTK_2_0(1.3.10,[ | 124 *** GLib 2.0 is required to build Gaim; please make sure you have the GLib |
131 dnl enable_gnome=no | |
132 dnl enable_pixbuf=no | |
133 dnl CFLAGS="$CFLAGS -DGTK_ENABLE_BROKEN" | |
134 dnl UI_LIBS="$UI_LIBS $GTK_LIBS" | |
135 dnl ],enable_gtk2=no) | |
136 | |
137 AC_PATH_PROG(pkgcfg, pkg-config) | |
138 if test "x$pkgcfg" = "x" ; then | |
139 enable_gtk2=no | |
140 else | |
141 GTK_VER=`$pkgcfg gtk+-2.0 --modversion 2>/dev/null` | |
142 if test "x$GTK_VER" = "x" ; then | |
143 enable_gtk2=no | |
144 else | |
145 GTK_CFLAGS=`$pkgcfg gtk+-2.0 --cflags` | |
146 CFLAGS="$CFLAGS -DGTK_ENABLE_BROKEN" | |
147 GTK_LIBS=`$pkgcfg gtk+-2.0 --libs` | |
148 UI_LIBS="$UI_LIBS $GTK_LIBS" | |
149 enable_gnome=no | |
150 enable_pixbuf=no | |
151 fi | |
152 fi | |
153 fi | |
154 | |
155 GNOME_INIT_HOOK([], nofail, applets) | |
156 | |
157 if test "x$enable_gnome" = "xyes" ; then | |
158 if test "x$enable_panel" = "xyes" ; then | |
159 GNOME_X_CHECKS | |
160 CFLAGS="$CFLAGS $GNOME_INCLUDEDIR" | |
161 AC_DEFINE(USE_APPLET) | |
162 AC_DEFINE(USE_GNOME) | |
163 UI_LIBS="$UI_LIBS $GTK_LIBS $GNOME_LIBDIR $GNOME_APPLETS_LIBS $GNOMEUI_LIBS" | |
164 AC_PATH_PROG(gaimpath, gaim_applet) | |
165 else | |
166 AC_PATH_PROG(gnomepath, gnome-config) | |
167 AC_MSG_CHECKING(for Gnome compile flags) | |
168 GNOME_CFLAGS=`$gnomepath gnomeui --cflags 2>/dev/null` | |
169 if test "x$GNOME_CFLAGS" = "x" ; then | |
170 enable_gnome=no | |
171 AC_MSG_RESULT([Gnome not found, building without it.]) | |
172 else | |
173 GNOME_VER=`$gnomepath --version |$sedpath 's/gnome-libs //' 2>/dev/null` | |
174 GNOME_MAJOR=`echo $GNOME_VER |$sedpath 's/\([[0-9]*]*\).\([[0-9]*]*\).\([[0-9]*]*\)/\1/' 2>/dev/null` | |
175 if test "x$GNOME_MAJOR" = "x0" ; then | |
176 enable_gnome = no | |
177 AC_MSG_RESULT([old Gnome found, building without it.]) | |
178 else | |
179 AC_MSG_RESULT(ok) | |
180 CFLAGS="$CFLAGS $GNOME_CFLAGS" | |
181 UI_LIBS="$UI_LIBS `$gnomepath gnomeui --libs 2>/dev/null`" | |
182 AC_DEFINE(USE_GNOME) | |
183 GNOME_CONFIG="$gnomepath" | |
184 AC_SUBST(GNOME_CONFIG) | |
185 AC_PATH_PROG(gaimpath, gaim) | |
186 fi | |
187 fi | |
188 fi | |
189 fi | |
190 | |
191 if test "x$enable_gnome" != "xyes" -a "x$enable_gtk2" != "xyes" ; then | |
192 AM_PATH_GLIB(1.2.5,,AC_MSG_ERROR([ | |
193 *** GLib is required to build Gaim; please make sure you have the GLib | |
194 *** development headers installed. The latest version of GLib is | 125 *** development headers installed. The latest version of GLib is |
195 *** always available at http://www.gtk.org/.])) | 126 *** always available at http://www.gtk.org/.])) |
196 AM_PATH_GTK(1.2.5,,AC_MSG_ERROR([ | 127 AM_PATH_GTK_2_0(1.3.0,,AC_MSG_ERROR([ |
197 *** GTK+ is required to build Gaim; please make sure you have the GTK+ | 128 *** GTK+ 2.0 is required to build Gaim; please make sure you have the GTK+ |
198 *** development headers installed. The latest version of GTK+ is | 129 *** development headers installed. The latest version of GTK+ is |
199 *** always available at http://www.gtk.org/.])) | 130 *** always available at http://www.gtk.org/.])) |
200 UI_LIBS="$UI_LIBS $GTK_LIBS" | 131 |
201 AC_PATH_PROG(gaimpath, gaim) | 132 AC_PATH_PROG(gaimpath, gaim) |
202 fi | 133 CFLAGS="$CFLAGS $GTK_CFLAGS -DGTK_ENABLE_BROKEN" |
203 CFLAGS="$CFLAGS $GTK_CFLAGS" | |
204 | |
205 dnl if test "x$enable_panel" = "xyes" ; then | |
206 dnl Things moved with the new versoin of Orbit. Thanks for | |
207 dnl telling me, Dan. This should fix them. | |
208 dnl | |
209 dnl The gnome-config script should pick this up and affect GNOME_ variables | |
210 dnl correctly. Thus, this check is not needed; if it fails, it is because of | |
211 dnl a broken installation or that your appletsConf.sh file is not updated | |
212 dnl for the new orbit installation. Gaim shouldn't need to do this. | |
213 dnl | |
214 dnl CFLAGS="$CFLAGS $ORBIT_CFLAGS" | |
215 dnl fi | |
216 | |
217 use_pixbuf=no | |
218 if test "x$enable_pixbuf" = "xyes" ; then | |
219 AC_PATH_PROG(pixbufcfg, gdk-pixbuf-config) | |
220 if test "x$pixbufcfg" != "x" ; then | |
221 GDK_PIXBUF_CFLAGS=`$pixbufcfg --cflags` | |
222 GDK_PIXBUF_LIBS=`$pixbufcfg --libs` | |
223 GDK_PIXBUF_CONFIG="$pixbufcfg" | |
224 AC_SUBST(GDK_PIXBUF_CONFIG) | |
225 AC_SUBST(GDK_PIXBUF_CFLAGS) | |
226 AC_SUBST(GDK_PIXBUF_LIBS) | |
227 CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS" | |
228 UI_LIBS="$UI_LIBS $GDK_PIXBUF_LIBS" | |
229 dnl We should be doing checks to see that the header files and functions exist. eh. | |
230 AC_DEFINE(USE_PIXBUF) | |
231 use_pixbuf=yes | |
232 fi | |
233 fi | |
234 AC_SUBST(UI_LIBS) | |
235 | 134 |
236 dnl Check for XScreenSaver | 135 dnl Check for XScreenSaver |
237 if test "x$enable_xss" = "xyes" ; then | 136 if test "x$enable_xss" = "xyes" ; then |
238 AC_PATH_X | 137 AC_PATH_X |
239 old_LIBS="$LIBS" | 138 old_LIBS="$LIBS" |
240 LIBS="$LIBS $UI_LIBS -L$x_libraries" | 139 LIBS="$LIBS $GTK_LIBS -L$x_libraries" |
241 XSS_LIBS="no" | 140 XSS_LIBS="no" |
242 XSS_HEADERS="no" | 141 XSS_HEADERS="no" |
243 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="-L$x_libraries"],[],[-lX11 -lXext -lm]) | 142 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="-L$x_libraries"],[],[-lX11 -lXext -lm]) |
244 AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="-L$x_libraries -lXss"],[],[-lX11 -lXext -lm]) | 143 AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="-L$x_libraries -lXss"],[],[-lX11 -lXext -lm]) |
245 if test \! "$XSS_LIBS" = "no"; then | 144 if test \! "$XSS_LIBS" = "no"; then |
460 echo | 359 echo |
461 echo Allow Multiple Connections.... : $enable_multi | 360 echo Allow Multiple Connections.... : $enable_multi |
462 echo Build Protocol Plugins........ : $enable_prpls | 361 echo Build Protocol Plugins........ : $enable_prpls |
463 echo Protocols to link statically.. : $STATIC_PRPLS | 362 echo Protocols to link statically.. : $STATIC_PRPLS |
464 echo | 363 echo |
465 if test "x$enable_panel" = "xyes" ; then | 364 echo UI Library.................... : GTK 2.0 |
466 echo UI Library.................... : GNOME Panel | |
467 elif test "x$enable_gnome" = "xyes" ; then | |
468 echo UI Library.................... : GNOME App | |
469 elif test "x$enable_gtk2" = "xyes" ; then | |
470 echo UI Library.................... : GTK+ 2.0 | |
471 else | |
472 echo UI Library.................... : GTK+ 1.2 | |
473 fi | |
474 if test "x$enable_gtk2" = "xno" ; then | |
475 dnl echo Use GdkPixbuf................. : yes | |
476 dnl else | |
477 echo Use GdkPixbuf................. : $use_pixbuf | |
478 fi | |
479 echo | 365 echo |
480 echo Build with Plugin support..... : $enable_plugins | 366 echo Build with Plugin support..... : $enable_plugins |
481 echo Build with Perl support....... : $enable_perl | 367 echo Build with Perl support....... : $enable_perl |
482 echo | 368 echo |
483 echo Use XScreenSaver Extension.... : $enable_xss | 369 echo Use XScreenSaver Extension.... : $enable_xss |