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