| 159 AC_MSG_RESULT(no) |
159 AC_MSG_RESULT(no) |
| 160 ] |
160 ] |
| 161 ) |
161 ) |
| 162 |
162 |
| 163 dnl ####################################################################### |
163 dnl ####################################################################### |
| 164 dnl # Check for LibXML2 (required) |
164 dnl # Check for GLib 2.0 (required) |
| 165 dnl ####################################################################### |
165 dnl ####################################################################### |
| 166 PKG_CHECK_MODULES(LIBXML, [libxml-2.0], , |
166 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.0.0 gobject-2.0 gmodule-2.0 gthread-2.0], , [ |
| 167 [ |
167 AC_MSG_RESULT(no) |
| |
168 AC_MSG_ERROR([ |
| |
169 |
| |
170 You must have the GLib 2.0 development headers installed to build Gaim. |
| |
171 ])]) |
| |
172 AC_SUBST(GLIB_CFLAGS) |
| |
173 AC_SUBST(GLIB_LIBS) |
| |
174 |
| |
175 dnl ####################################################################### |
| |
176 dnl # Check for GTK+ 2.0 and other things used by the GTK UI |
| |
177 dnl ####################################################################### |
| |
178 AC_ARG_ENABLE(gtkgaim, |
| |
179 [AC_HELP_STRING([--disable-gtkgaim], |
| |
180 [compile without GtkGaim client])], |
| |
181 enable_gtk="$enableval", enable_gtk="yes") |
| |
182 AC_ARG_ENABLE(screensaver, |
| |
183 [AC_HELP_STRING([--disable-screensaver], |
| |
184 [compile without X screensaver extension (used to detect idleness)])], |
| |
185 enable_screensaver="no", enable_screensaver="yes") |
| |
186 AC_ARG_ENABLE(sm, |
| |
187 [AC_HELP_STRING([--disable-sm], |
| |
188 [compile without X session management support])], |
| |
189 enable_sm="no", enable_sm="yes") |
| |
190 AC_ARG_ENABLE(startup-notification, |
| |
191 [AC_HELP_STRING([--disable-startup-notification], |
| |
192 [compile without startup notification support])], |
| |
193 enable_startup_notification="no", enable_startup_notification="yes") |
| |
194 AC_ARG_ENABLE(gtkspell, |
| |
195 [AC_HELP_STRING([--disable-gtkspell], |
| |
196 [compile without GtkSpell automatic spell checking])], |
| |
197 enable_gtkspell="no", enable_gtkspell="yes") |
| |
198 AC_ARG_ENABLE(gevolution, |
| |
199 [AC_HELP_STRING([--disable-gevolution], |
| |
200 [compile without the Gaim Evolution plugin])], |
| |
201 enable_gevolution="no", enable_gevolution="yes") |
| |
202 AC_ARG_ENABLE(cap, |
| |
203 [AC_HELP_STRING([--disable-cap], |
| |
204 [compile without Contact Availability Prediction plugin])], |
| |
205 enable_cap="no", enable_cap="yes") |
| |
206 |
| |
207 if test "x$enable_gtk" = "xyes" ; then |
| |
208 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.0.0], , [ |
| 168 AC_MSG_RESULT(no) |
209 AC_MSG_RESULT(no) |
| 169 AC_MSG_ERROR([ |
210 AC_MSG_ERROR([ |
| |
211 |
| |
212 You must have the GTK+ 2.0 development headers installed to compile Gaim's |
| |
213 GTK+ interface. If you only want to build the console interface then |
| |
214 specify --disable-gtkgaim when running configure. |
| |
215 ])]) |
| |
216 |
| |
217 AC_SUBST(GTK_CFLAGS) |
| |
218 AC_SUBST(GTK_LIBS) |
| |
219 |
| |
220 dnl ####################################################################### |
| |
221 dnl # Check for XScreenSaver |
| |
222 dnl ####################################################################### |
| |
223 if test "x$enable_screensaver" = "xyes" ; then |
| |
224 old_LIBS="$LIBS" |
| |
225 LIBS="$LIBS $GTK_LIBS $x_libpath_add" |
| |
226 XSS_LIBS="" |
| |
227 XSS_HEADERS="" |
| |
228 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"],[],[-lX11 -lXext -lm]) |
| |
229 AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_LIBS $X_EXTRA_LIBS -lXss"],[],[-lX11 -lXext -lm]) |
| |
230 if test "x$XSS_LIBS" != "x"; then |
| |
231 oldCPPFLAGS="$CPPFLAGS" |
| |
232 CPPFLAGS="$CPPFLAGS $x_incpath_add" |
| |
233 AC_TRY_COMPILE([ |
| |
234 #include <X11/Xlib.h> |
| |
235 #include <X11/extensions/scrnsaver.h> |
| |
236 ], [], [], [enable_screensaver=no]) |
| |
237 CPPFLAGS="$oldCPPFLAGS" |
| |
238 else |
| |
239 enable_screensaver=no |
| |
240 fi |
| |
241 LIBS="$old_LIBS" |
| |
242 |
| |
243 if test "x$enable_screensaver" = "xyes" ; then |
| |
244 AC_DEFINE(USE_SCREENSAVER, 1, [Define if we're using XScreenSaver.]) |
| |
245 AC_SUBST(XSS_LIBS) |
| |
246 fi |
| |
247 fi |
| |
248 |
| |
249 dnl ####################################################################### |
| |
250 dnl # Check for X session management libs |
| |
251 dnl ####################################################################### |
| |
252 if test "x$enable_sm" = "xyes"; then |
| |
253 enable_sm=no |
| |
254 AC_CHECK_LIB(SM, SmcSaveYourselfDone, found_sm_lib=true, , [$x_libpath_add -lICE]) |
| |
255 if test "x$found_sm_lib" = "xtrue"; then |
| |
256 oldCPPFLAGS="$CPPFLAGS" |
| |
257 CPPFLAGS="$CPPFLAGS $x_incpath_add" |
| |
258 AC_CHECK_HEADERS(X11/SM/SMlib.h, SM_LIBS="$x_libpath_add -lSM -lICE" enable_sm=yes) |
| |
259 CPPFLAGS="$oldCPPFLAGS" |
| |
260 fi |
| |
261 |
| |
262 if test "x$enable_sm" = "xyes"; then |
| |
263 AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.]) |
| |
264 AC_SUBST(SM_LIBS) |
| |
265 fi |
| |
266 fi |
| |
267 |
| |
268 dnl ####################################################################### |
| |
269 dnl # Check for startup notification |
| |
270 dnl ####################################################################### |
| |
271 if test "x$enable_startup_notification" = "xyes"; then |
| |
272 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, [libstartup-notification-1.0 >= 0.5], , [ |
| |
273 AC_MSG_RESULT(no) |
| |
274 enable_startup_notification=no |
| |
275 ]) |
| |
276 |
| |
277 if test "x$enable_startup_notification" = "xyes"; then |
| |
278 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.]) |
| |
279 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) |
| |
280 AC_SUBST(STARTUP_NOTIFICATION_LIBS) |
| |
281 fi |
| |
282 fi |
| |
283 |
| |
284 dnl ####################################################################### |
| |
285 dnl # Check for GtkSpell |
| |
286 dnl ####################################################################### |
| |
287 if test "x$enable_gtkspell" = "xyes" ; then |
| |
288 PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, , [ |
| |
289 AC_MSG_RESULT(no) |
| |
290 enable_gtkspell=no |
| |
291 ]) |
| |
292 if test "x$enable_gtkspell" = "xyes" ; then |
| |
293 AC_DEFINE(USE_GTKSPELL, 1, [Define if we're using GtkSpell]) |
| |
294 AC_SUBST(GTKSPELL_CFLAGS) |
| |
295 AC_SUBST(GTKSPELL_LIBS) |
| |
296 fi |
| |
297 fi |
| |
298 |
| |
299 dnl ####################################################################### |
| |
300 dnl # Check for stuff needed by the Evolution integration plugin. |
| |
301 dnl ####################################################################### |
| |
302 if test "x$enable_gevolution" = "xyes"; then |
| |
303 evo_deps="libebook-1.2 libedata-book-1.2" |
| |
304 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, , [ |
| |
305 AC_MSG_RESULT(yes) |
| |
306 enable_gevolution="no" |
| |
307 ]) |
| |
308 if test "x$enable_gevolution" = "xno"; then |
| |
309 evo_deps="libebook-1.0 libedata-book-1.0" |
| |
310 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, [ |
| |
311 enable_gevolution="yes" |
| |
312 ], [ |
| |
313 AC_MSG_RESULT(yes) |
| |
314 ]) |
| |
315 fi |
| |
316 if test "x$enable_gevolution" = "xyes"; then |
| |
317 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.]) |
| |
318 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS) |
| |
319 AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS) |
| |
320 fi |
| |
321 fi |
| |
322 |
| |
323 dnl ####################################################################### |
| |
324 dnl # Check for libdbi (for the Contact Availability Prediction plugin) |
| |
325 dnl ####################################################################### |
| |
326 if test "x$enable_cap" = "xyes"; then |
| |
327 AC_CHECK_HEADERS(dbi/dbi.h, , enable_cap="no") |
| |
328 if test "x$enable_cap" = "xyes"; then |
| |
329 AC_CHECK_LIB(dbi, dbi_result_field_is_null, CAP_LIBS="-ldbi", enable_cap="no") |
| |
330 AC_SUBST(CAP_LIBS) |
| |
331 fi |
| |
332 fi |
| |
333 |
| |
334 else # GTK |
| |
335 enable_screensaver=no |
| |
336 enable_sm=no |
| |
337 enable_startup_notification=no |
| |
338 enable_gtkspell=no |
| |
339 enable_gevolution=no |
| |
340 fi # GTK |
| |
341 |
| |
342 AM_CONDITIONAL(ENABLE_GTK, test "x$enable_gtk" = "xyes") |
| |
343 AM_CONDITIONAL(BUILD_GEVOLUTION, test "x$enable_gevolution" = "xyes") |
| |
344 AM_CONDITIONAL(ENABLE_CAP, test "x$enable_cap" = "xyes") |
| |
345 |
| |
346 dnl ####################################################################### |
| |
347 dnl # Check for ncurses? |
| |
348 dnl ####################################################################### |
| |
349 AC_ARG_ENABLE(gntgaim, |
| |
350 [AC_HELP_STRING([--disable-gntgaim], [compile without GntGaim console client])], |
| |
351 enable_gnt=$enableval, enable_gnt=yes) |
| |
352 |
| |
353 dnl ####################################################################### |
| |
354 dnl # Check for LibXML2 (required) |
| |
355 dnl ####################################################################### |
| |
356 PKG_CHECK_MODULES(LIBXML, [libxml-2.0], , [ |
| |
357 AC_MSG_RESULT(no) |
| |
358 AC_MSG_ERROR([ |
| 170 |
359 |
| 171 You must have the libxml2 development headers installed to build Gaim. |
360 You must have the libxml2 development headers installed to build Gaim. |
| 172 ])]) |
361 ])]) |
| 173 AC_SUBST(LIBXML_CFLAGS) |
362 AC_SUBST(LIBXML_CFLAGS) |
| 174 AC_SUBST(LIBXML_LIBS) |
363 AC_SUBST(LIBXML_LIBS) |
| 178 dnl ####################################################################### |
367 dnl ####################################################################### |
| 179 AC_ARG_ENABLE(gstreamer, |
368 AC_ARG_ENABLE(gstreamer, |
| 180 [AC_HELP_STRING([--disable-gstreamer], [compile without GStreamer audio support])], |
369 [AC_HELP_STRING([--disable-gstreamer], [compile without GStreamer audio support])], |
| 181 enable_gst="no", enable_gst="yes") |
370 enable_gst="no", enable_gst="yes") |
| 182 PKG_CHECK_MODULES(GSTREAMER, [gstreamer-0.10], , [ |
371 PKG_CHECK_MODULES(GSTREAMER, [gstreamer-0.10], , [ |
| 183 AC_MSG_RESULT(no) |
372 AC_MSG_RESULT(no) |
| 184 enable_gst="no" |
373 enable_gst="no" |
| 185 ]) |
374 ]) |
| 186 if test "x$enable_gst" != "xno"; then |
375 if test "x$enable_gst" != "xno"; then |
| |
376 AC_DEFINE(USE_GSTREAMER, 1, [Use GStreamer for playing sounds]) |
| 187 AC_SUBST(GSTREAMER_CFLAGS) |
377 AC_SUBST(GSTREAMER_CFLAGS) |
| 188 AC_SUBST(GSTREAMER_LIBS) |
378 AC_SUBST(GSTREAMER_LIBS) |
| 189 AC_DEFINE(USE_GSTREAMER, 1, [Use GStreamer for playing sounds]) |
|
| 190 fi |
379 fi |
| 191 |
380 |
| 192 dnl ####################################################################### |
381 dnl ####################################################################### |
| 193 dnl # Check for Meanwhile headers (for Sametime) |
382 dnl # Check for Meanwhile headers (for Sametime) |
| 194 dnl ####################################################################### |
383 dnl ####################################################################### |
| 195 PKG_CHECK_MODULES(MEANWHILE, [meanwhile >= 1.0.0 meanwhile < 2.0.0], [ |
384 PKG_CHECK_MODULES(MEANWHILE, [meanwhile >= 1.0.0 meanwhile < 2.0.0], [ |
| 196 have_meanwhile="yes" |
385 have_meanwhile="yes" |
| 197 ], [ |
386 ], [ |
| 198 AC_MSG_RESULT(no) |
387 AC_MSG_RESULT(no) |
| 199 have_meanwhile="no" |
388 have_meanwhile="no" |
| 200 ]) |
389 ]) |
| 201 AC_SUBST(MEANWHILE_CFLAGS) |
390 AC_SUBST(MEANWHILE_CFLAGS) |
| 202 AC_SUBST(MEANWHILE_LIBS) |
391 AC_SUBST(MEANWHILE_LIBS) |
| 203 |
392 |
| 204 dnl ####################################################################### |
393 dnl ####################################################################### |
| 205 dnl # Check for Howl headers (for Bonjour) |
394 dnl # Check for Howl headers (for Bonjour) |
| 512 AC_ARG_ENABLE(tcl, [AC_HELP_STRING([--disable-tcl], [compile without Tcl scripting])], , enable_tcl=yes) |
701 AC_ARG_ENABLE(tcl, [AC_HELP_STRING([--disable-tcl], [compile without Tcl scripting])], , enable_tcl=yes) |
| 513 AC_ARG_WITH(tclconfig, [AC_HELP_STRING([--with-tclconfig=DIR], [directory containing tclConfig.sh])]) |
702 AC_ARG_WITH(tclconfig, [AC_HELP_STRING([--with-tclconfig=DIR], [directory containing tclConfig.sh])]) |
| 514 AC_ARG_ENABLE(tk, [AC_HELP_STRING([--disable-tk], [compile without Tcl support for Tk])], , enable_tk=yes) |
703 AC_ARG_ENABLE(tk, [AC_HELP_STRING([--disable-tk], [compile without Tcl support for Tk])], , enable_tk=yes) |
| 515 AC_ARG_WITH(tkconfig, [AC_HELP_STRING([--with-tkconfig=DIR], [directory containing tkConfig.sh])]) |
704 AC_ARG_WITH(tkconfig, [AC_HELP_STRING([--with-tkconfig=DIR], [directory containing tkConfig.sh])]) |
| 516 AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug], [compile with debugging support])], , enable_debug=no) |
705 AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug], [compile with debugging support])], , enable_debug=no) |
| 517 AC_ARG_ENABLE(gtkgaim, [AC_HELP_STRING([--disable-gtkgaim], [compile without GtkGaim client])], |
|
| 518 enable_gtk=$enableval, enable_gtk=yes) |
|
| 519 AC_ARG_ENABLE(gntgaim, [AC_HELP_STRING([--disable-gntgaim], [compile without GntGaim console client])], |
|
| 520 enable_gnt=$enableval, enable_gnt=yes) |
|
| 521 AC_ARG_ENABLE(fatal-asserts, [AC_HELP_STRING([--enable-fatal-asserts], [make assertions fatal (useful for debugging)])], , enable_fatal_asserts=no) |
706 AC_ARG_ENABLE(fatal-asserts, [AC_HELP_STRING([--enable-fatal-asserts], [make assertions fatal (useful for debugging)])], , enable_fatal_asserts=no) |
| 522 dnl We know Gaim won't compile with deprecated APIs disabled. |
707 dnl We know Gaim won't compile with deprecated APIs disabled. |
| 523 dnl We have no desire to support two different versions of the |
708 dnl We have no desire to support two different versions of the |
| 524 dnl same code when it's not necessary, so we're sticking with |
709 dnl same code when it's not necessary, so we're sticking with |
| 525 dnl the deprecated APIs in many cases. |
710 dnl the deprecated APIs in many cases. |
| 526 dnl This option is being left in case things change. |
711 dnl This option is being left in case things change. |
| 527 dnl AC_ARG_ENABLE(deprecated, [AC_HELP_STRING([--disable-deprecated], [compile without deprecated API usage])], , enable_deprecated=yes) |
712 dnl AC_ARG_ENABLE(deprecated, [AC_HELP_STRING([--disable-deprecated], [compile without deprecated API usage])], , enable_deprecated=yes) |
| 528 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes) |
713 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes) |
| 529 AC_ARG_ENABLE(screensaver, [AC_HELP_STRING([--disable-screensaver], [compile without X screensaver extension])], , enable_xss=yes) |
|
| 530 AC_ARG_ENABLE(sm, [AC_HELP_STRING([--disable-sm], [compile without X session management support])], , enable_sm=yes) |
|
| 531 AC_ARG_WITH(krb4, [AC_HELP_STRING([--with-krb4=PREFIX], [compile Zephyr plugin with Kerberos 4 support])], kerberos="$withval", kerberos="no") |
714 AC_ARG_WITH(krb4, [AC_HELP_STRING([--with-krb4=PREFIX], [compile Zephyr plugin with Kerberos 4 support])], kerberos="$withval", kerberos="no") |
| 532 AC_ARG_WITH(zephyr, [AC_HELP_STRING([--with-zephyr=PREFIX], [compile Zephyr plugin against external libzephyr])], zephyr="$withval", zephyr="no") |
715 AC_ARG_WITH(zephyr, [AC_HELP_STRING([--with-zephyr=PREFIX], [compile Zephyr plugin against external libzephyr])], zephyr="$withval", zephyr="no") |
| 533 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") |
716 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") |
| 534 |
717 |
| 535 AC_CHECK_HEADER(sys/utsname.h) |
718 AC_CHECK_HEADER(sys/utsname.h) |
| 853 AM_CONDITIONAL(ENABLE_GNT, test "x$enable_gnt" = "xyes") |
1010 AM_CONDITIONAL(ENABLE_GNT, test "x$enable_gnt" = "xyes") |
| 854 |
1011 |
| 855 AC_CHECK_FUNC(wcwidth, [AC_DEFINE([HAVE_WCWIDTH], [1], [Define to 1 if you have wcwidth function.])]) |
1012 AC_CHECK_FUNC(wcwidth, [AC_DEFINE([HAVE_WCWIDTH], [1], [Define to 1 if you have wcwidth function.])]) |
| 856 |
1013 |
| 857 dnl ####################################################################### |
1014 dnl ####################################################################### |
| 858 dnl # Look for startup-notification, evolution integration, X-libraries, |
|
| 859 dnl # XScreenSaver, X session management, GtkSpell only if GTK+ was found |
|
| 860 dnl ####################################################################### |
|
| 861 |
|
| 862 if test "x$enable_gtk" = "xyes"; then |
|
| 863 |
|
| 864 dnl ####################################################################### |
|
| 865 dnl # Check for startup notification |
|
| 866 dnl ####################################################################### |
|
| 867 AC_ARG_ENABLE(startup-notification, [AC_HELP_STRING([--disable-startup-notification], [compile without startup notification support])], , enable_startup_notification=yes) |
|
| 868 |
|
| 869 if test "x$enable_startup_notification" = "xyes"; then |
|
| 870 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5, |
|
| 871 [ |
|
| 872 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.]) |
|
| 873 enable_startup_notification=yes |
|
| 874 ], [ |
|
| 875 AC_MSG_RESULT(no) |
|
| 876 enable_startup_notification=no |
|
| 877 ]) |
|
| 878 |
|
| 879 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) |
|
| 880 AC_SUBST(STARTUP_NOTIFICATION_LIBS) |
|
| 881 fi |
|
| 882 |
|
| 883 dnl ####################################################################### |
|
| 884 dnl # Check for stuff needed by the evolution integration plugin. |
|
| 885 dnl ####################################################################### |
|
| 886 build_gevo=no |
|
| 887 AC_ARG_ENABLE(gevolution, [AC_HELP_STRING([--disable-gevolution], [compile without the Gaim-Evolution plugin])], , enable_gevolution=yes) |
|
| 888 |
|
| 889 if test "x$enable_gevolution" = "xyes"; then |
|
| 890 evo_deps="libebook-1.2 libedata-book-1.2" |
|
| 891 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, [ |
|
| 892 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.]) |
|
| 893 build_gevo=yes |
|
| 894 ], [ |
|
| 895 AC_MSG_RESULT(yes) |
|
| 896 build_gevo=no |
|
| 897 ]) |
|
| 898 if test "x$build_gevo" = "xno"; then |
|
| 899 evo_deps="libebook-1.0 libedata-book-1.0" |
|
| 900 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, [ |
|
| 901 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.]) |
|
| 902 build_gevo=yes |
|
| 903 ], [ |
|
| 904 AC_MSG_RESULT(yes) |
|
| 905 build_gevo=no |
|
| 906 ]) |
|
| 907 fi |
|
| 908 |
|
| 909 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS) |
|
| 910 AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS) |
|
| 911 fi |
|
| 912 |
|
| 913 dnl ####################################################################### |
|
| 914 dnl # Check for XScreenSaver |
|
| 915 dnl ####################################################################### |
|
| 916 if test "x$enable_xss" = "xyes" ; then |
|
| 917 old_LIBS="$LIBS" |
|
| 918 LIBS="$LIBS $GTK_LIBS $x_libpath_add" |
|
| 919 XSS_LIBS="no" |
|
| 920 XSS_HEADERS="no" |
|
| 921 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"],[],[-lX11 -lXext -lm]) |
|
| 922 AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_LIBS $X_EXTRA_LIBS -lXss"],[],[-lX11 -lXext -lm]) |
|
| 923 if test \! "$XSS_LIBS" = "no"; then |
|
| 924 oldCPPFLAGS="$CPPFLAGS" |
|
| 925 CPPFLAGS="$CPPFLAGS $x_incpath_add" |
|
| 926 AC_TRY_COMPILE([ |
|
| 927 #include <X11/Xlib.h> |
|
| 928 #include <X11/extensions/scrnsaver.h> |
|
| 929 ],[],[ |
|
| 930 AC_DEFINE(USE_SCREENSAVER, 1, [Define if we're using XScreenSaver.])],[enable_xss=no] |
|
| 931 ) |
|
| 932 CPPFLAGS="$oldCPPFLAGS" |
|
| 933 else |
|
| 934 XSS_LIBS="" |
|
| 935 enable_xss=no |
|
| 936 fi |
|
| 937 LIBS="$old_LIBS" |
|
| 938 else |
|
| 939 XSS_LIBS="" |
|
| 940 enable_xss=no |
|
| 941 fi |
|
| 942 AC_SUBST(XSS_LIBS) |
|
| 943 |
|
| 944 dnl ####################################################################### |
|
| 945 dnl # Check for X session management libs |
|
| 946 dnl ####################################################################### |
|
| 947 if test "x$enable_sm" = "xyes"; then |
|
| 948 enable_sm=no |
|
| 949 AC_CHECK_LIB(SM, SmcSaveYourselfDone, found_sm_lib=true, , [$x_libpath_add -lICE]) |
|
| 950 if test "$found_sm_lib" = "true"; then |
|
| 951 oldCPPFLAGS="$CPPFLAGS" |
|
| 952 CPPFLAGS="$CPPFLAGS $x_incpath_add" |
|
| 953 AC_CHECK_HEADERS(X11/SM/SMlib.h, SM_LIBS="$x_libpath_add -lSM -lICE" enable_sm=yes) |
|
| 954 CPPFLAGS="$oldCPPFLAGS" |
|
| 955 fi |
|
| 956 else |
|
| 957 SM_LIBS="" |
|
| 958 enable_sm=no |
|
| 959 fi |
|
| 960 AC_SUBST(SM_LIBS) |
|
| 961 if test "$enable_sm" = "yes"; then |
|
| 962 AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.]) |
|
| 963 fi |
|
| 964 |
|
| 965 AC_DEFUN([GC_TM_GMTOFF], |
|
| 966 [AC_REQUIRE([AC_STRUCT_TM])dnl |
|
| 967 AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff, |
|
| 968 [AC_TRY_COMPILE([#include <sys/types.h> |
|
| 969 #include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_gmtoff;], |
|
| 970 ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)]) |
|
| 971 if test "$ac_cv_struct_tm_gmtoff" = yes; then |
|
| 972 AC_DEFINE(HAVE_TM_GMTOFF, 1, [tm_gmtoff is available.]) |
|
| 973 fi |
|
| 974 ]) |
|
| 975 |
|
| 976 dnl ####################################################################### |
|
| 977 dnl # Check for GtkSpell |
|
| 978 dnl ####################################################################### |
|
| 979 AC_ARG_ENABLE(gtkspell, [AC_HELP_STRING([--disable-gtkspell], [compile without GtkSpell automatic spell checking])], , enable_gtkspell=yes) |
|
| 980 if test "$enable_gtkspell" = yes ; then |
|
| 981 PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, [], [ |
|
| 982 AC_MSG_RESULT(no) |
|
| 983 enable_gtkspell=no |
|
| 984 ]) |
|
| 985 if test "$enable_gtkspell" = "yes" ; then |
|
| 986 AC_SUBST(GTKSPELL_CFLAGS) |
|
| 987 AC_SUBST(GTKSPELL_LIBS) |
|
| 988 AC_DEFINE(USE_GTKSPELL,,[do we have gtkspell?]) |
|
| 989 fi |
|
| 990 fi |
|
| 991 else # GTK |
|
| 992 enable_gevolution=no |
|
| 993 enable_sm=no |
|
| 994 enable_xss=no |
|
| 995 enable_startup_notification=no |
|
| 996 enable_gtkspell=no |
|
| 997 fi # GTK |
|
| 998 |
|
| 999 AM_CONDITIONAL(ENABLE_GTK, test "x$enable_gtk" = "xyes") |
|
| 1000 |
|
| 1001 AM_CONDITIONAL(BUILD_GEVOLUTION, test "x$build_gevo" = "xyes") |
|
| 1002 |
|
| 1003 GC_TM_GMTOFF |
|
| 1004 |
|
| 1005 dnl ####################################################################### |
|
| 1006 dnl # Check for libdbi (Contact Availability Prediction plugin) |
|
| 1007 dnl ####################################################################### |
|
| 1008 AC_ARG_ENABLE(cap, [AC_HELP_STRING([--enable-cap], [compile with Contact Availability Prediction Plugin])], , enable_cap=no) |
|
| 1009 if test "x$enable_cap" = "xyes"; then |
|
| 1010 AC_CHECK_HEADERS(dbi/dbi.h, [], enable_cap=no) |
|
| 1011 fi |
|
| 1012 if test "x$enable_cap" = "xyes"; then |
|
| 1013 AC_CHECK_LIB(dbi, dbi_result_field_is_null, [CAP_LIBS="-ldbi"], [enable_cap=no]) |
|
| 1014 fi |
|
| 1015 AC_SUBST(CAP_LIBS) |
|
| 1016 AM_CONDITIONAL(ENABLE_CAP, test "x$enable_cap" = "xyes") |
|
| 1017 |
|
| 1018 dnl ####################################################################### |
|
| 1019 dnl # Check for Mono support |
1015 dnl # Check for Mono support |
| 1020 dnl ####################################################################### |
1016 dnl ####################################################################### |
| 1021 AC_ARG_ENABLE(mono, [AC_HELP_STRING([--enable-mono], [compile with Mono runtime support])], , enable_mono=no) |
1017 AC_ARG_ENABLE(mono, [AC_HELP_STRING([--enable-mono], [compile with Mono runtime support])], , enable_mono=no) |
| 1022 if test x"$enable_mono" = x"yes" ; then |
1018 if test x"$enable_mono" = x"yes" ; then |
| 1023 AC_MSG_CHECKING(for Mono compile flags) |
1019 AC_MSG_CHECKING(for Mono compile flags) |