comparison configure.ac @ 32672:3828a61c44da

A boring and large patch so I can merge heads.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 23 Dec 2011 08:21:58 +0000
parents 0e69949b3e61
children
comparison
equal deleted inserted replaced
32671:0e69949b3e61 32672:3828a61c44da
200 AC_SYS_LARGEFILE 200 AC_SYS_LARGEFILE
201 201
202 dnl FreeBSD doesn't have libdl, dlopen is provided by libc 202 dnl FreeBSD doesn't have libdl, dlopen is provided by libc
203 AC_CHECK_FUNC(dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")]) 203 AC_CHECK_FUNC(dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")])
204 204
205 dnl Windows and Haiku do not use libm for the math functions, they are part
206 dnl of the C library
207 AC_SEARCH_LIBS([ceil], [m], [], [
208 AC_MSG_ERROR([unable to find the ceil() function])
209 ])
210
205 AC_MSG_CHECKING(for fileno()) 211 AC_MSG_CHECKING(for fileno())
206 AC_RUN_IFELSE([AC_LANG_SOURCE([[ 212 AC_RUN_IFELSE([AC_LANG_SOURCE([[
207 #include <stdio.h> 213 #include <stdio.h>
208 214
209 int main(int argc, char *argv[]) 215 int main(int argc, char *argv[])
399 enable_cap="$enableval", enable_cap="no") 405 enable_cap="$enableval", enable_cap="no")
400 AC_ARG_ENABLE(gestures, 406 AC_ARG_ENABLE(gestures,
401 [AC_HELP_STRING([--disable-gestures], 407 [AC_HELP_STRING([--disable-gestures],
402 [compile without the gestures plugin])], 408 [compile without the gestures plugin])],
403 enable_gestures="$enableval", enable_gestures="yes") 409 enable_gestures="$enableval", enable_gestures="yes")
410 AC_ARG_ENABLE(gcr,
411 [AC_HELP_STRING([--enable-gcr],
412 [compile with GCR certificate widgets])],
413 enable_gcr="$enableval", enable_gcr="no")
404 414
405 AC_PATH_XTRA 415 AC_PATH_XTRA
406 # We can't assume that $x_libraries will be set, because autoconf does not 416 # We can't assume that $x_libraries will be set, because autoconf does not
407 # set it in the case when the X libraries are in a standard place. 417 # set it in the case when the X libraries are in a standard place.
408 # Ditto for $x_includes 418 # Ditto for $x_includes
416 else 426 else
417 x_incpath_add="-I$x_includes" 427 x_incpath_add="-I$x_includes"
418 fi 428 fi
419 429
420 if test "x$enable_gtkui" = "xyes" ; then 430 if test "x$enable_gtkui" = "xyes" ; then
421 PKG_CHECK_MODULES(GTK, [gtk+-3.0 >= 3.0.0], , [ 431 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.10.0], , [
422 AC_MSG_RESULT(no) 432 AC_MSG_RESULT(no)
423 AC_MSG_ERROR([ 433 AC_MSG_ERROR([
424 434
425 You must have GTK+ 2.91.5 or newer development headers installed to compile 435 You must have GTK+ 2.10.0 or newer development headers installed to compile
426 Pidgin. If you want to build only Finch then specify --disable-gtkui when 436 Pidgin. If you want to build only Finch then specify --disable-gtkui when
427 running configure. 437 running configure.
428 ])]) 438 ])])
429 439
430 AC_SUBST(GTK_CFLAGS) 440 AC_SUBST(GTK_CFLAGS)
431 AC_SUBST(GTK_LIBS) 441 AC_SUBST(GTK_LIBS)
432 442
433 dnl We only really need Pango >= 1.4 for decent RTL support 443 dnl We only really need Pango >= 1.4 for decent RTL support
434 PKG_CHECK_MODULES(PANGO, [pango >= 1.4.0], 444 PKG_CHECK_MODULES(PANGO, [pango >= 1.4.0],
435 AC_DEFINE(HAVE_PANGO14, 1, [Define if we have Pango 1.4 or newer.]),:) 445 AC_DEFINE(HAVE_PANGO14, 1, [Define if we have Pango 1.4 or newer.]),:)
446
447 PKG_CHECK_MODULES(WEBKIT, [webkit-1.0 >= 1.1.1], , [
448 AC_MSG_RESULT(no)
449 AC_MSG_ERROR([
450 You must have WebKit 1.1.1 or newer development headers installed to compile
451 Pidgin. If you want to build only Finch then specify --disable-gtkui when
452 running configure.
453 ])])
454 AC_SUBST(WEBKIT_CFLAGS)
455 AC_SUBST(WEBKIT_LIBS)
436 456
437 dnl ####################################################################### 457 dnl #######################################################################
438 dnl # Check if we should compile with X support 458 dnl # Check if we should compile with X support
439 dnl ####################################################################### 459 dnl #######################################################################
440 if test "x$with_x" = "xyes" ; then 460 if test "x$with_x" = "xyes" ; then
543 fi 563 fi
544 564
545 dnl ####################################################################### 565 dnl #######################################################################
546 dnl # Check for GtkSpell 566 dnl # Check for GtkSpell
547 dnl ####################################################################### 567 dnl #######################################################################
548 dnl GtkSpell is not GTK+3 compatible yet
549 enable_gtkspell="no"
550 if test "x$enable_gtkspell" = "xyes" ; then 568 if test "x$enable_gtkspell" = "xyes" ; then
551 PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, , [ 569 PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, , [
552 AC_MSG_RESULT(no) 570 AC_MSG_RESULT(no)
553 enable_gtkspell="no" 571 enable_gtkspell="no"
554 if test "x$force_deps" = "xyes" ; then 572 if test "x$force_deps" = "xyes" ; then
604 sqlite3 development headers not found. 622 sqlite3 development headers not found.
605 Use --disable-cap if you do not need the Contact Availability Prediction plugin. 623 Use --disable-cap if you do not need the Contact Availability Prediction plugin.
606 ]) 624 ])
607 fi]) 625 fi])
608 fi 626 fi
609 627
628 dnl #######################################################################
629 dnl # Check for GCR for its certificate widgets
630 dnl #######################################################################
631 if test "x$enable_gcr" = "xyes"; then
632 PKG_CHECK_MODULES(GCR, gcr-0, [
633 AC_DEFINE(ENABLE_GCR, 1, [Define to 1 if GCR is found.])], [
634 AC_MSG_RESULT(no)
635 enable_gcr="no"
636 if test "x$force_deps" = "xyes" ; then
637 AC_MSG_ERROR([
638 GCR development headers not found.
639 Use --disable-gcr if you do not need GCR certificate widgets.
640 ])
641 fi])
642 fi
643
610 644
611 else # GTK 645 else # GTK
646 enable_gcr=no
612 enable_cap=no 647 enable_cap=no
613 enable_gevolution=no 648 enable_gevolution=no
614 enable_gtkspell=no 649 enable_gtkspell=no
615 enable_screensaver=no 650 enable_screensaver=no
616 enable_sm=no 651 enable_sm=no
619 654
620 AM_CONDITIONAL(ENABLE_GTK, test "x$enable_gtkui" = "xyes") 655 AM_CONDITIONAL(ENABLE_GTK, test "x$enable_gtkui" = "xyes")
621 AM_CONDITIONAL(BUILD_GEVOLUTION, test "x$enable_gevolution" = "xyes") 656 AM_CONDITIONAL(BUILD_GEVOLUTION, test "x$enable_gevolution" = "xyes")
622 AM_CONDITIONAL(ENABLE_CAP, test "x$enable_cap" = "xyes") 657 AM_CONDITIONAL(ENABLE_CAP, test "x$enable_cap" = "xyes")
623 AM_CONDITIONAL(ENABLE_GESTURES, test "x$enable_gestures" = "xyes") 658 AM_CONDITIONAL(ENABLE_GESTURES, test "x$enable_gestures" = "xyes")
659 AM_CONDITIONAL(ENABLE_GCR, test "x$enable_gcr" = "xyes")
624 660
625 661
626 dnl ####################################################################### 662 dnl #######################################################################
627 dnl # Check for ncurses and other things used by the console UI 663 dnl # Check for ncurses and other things used by the console UI
628 dnl ####################################################################### 664 dnl #######################################################################
1070 if test "x$STATIC_PRPLS" != "x" -a "x$DYNAMIC_PRPLS" = "xall"; then 1106 if test "x$STATIC_PRPLS" != "x" -a "x$DYNAMIC_PRPLS" = "xall"; then
1071 DYNAMIC_PRPLS="" 1107 DYNAMIC_PRPLS=""
1072 fi 1108 fi
1073 1109
1074 if test "x$STATIC_PRPLS" = "xall" ; then 1110 if test "x$STATIC_PRPLS" = "xall" ; then
1075 STATIC_PRPLS="bonjour gg irc jabber msn myspace mxit novell oscar sametime silc simple yahoo zephyr" 1111 STATIC_PRPLS="bonjour gg irc jabber msn mxit myspace novell oscar sametime silc simple yahoo zephyr"
1076 fi 1112 fi
1077 if test "x$have_meanwhile" != "xyes" ; then 1113 if test "x$have_meanwhile" != "xyes" ; then
1078 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'` 1114 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'`
1079 fi 1115 fi
1080 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then 1116 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
1115 bonjour) static_bonjour=yes ;; 1151 bonjour) static_bonjour=yes ;;
1116 gg) static_gg=yes ;; 1152 gg) static_gg=yes ;;
1117 irc) static_irc=yes ;; 1153 irc) static_irc=yes ;;
1118 jabber) static_jabber=yes ;; 1154 jabber) static_jabber=yes ;;
1119 msn) static_msn=yes ;; 1155 msn) static_msn=yes ;;
1156 mxit) static_mxit=yes ;;
1120 myspace) static_myspace=yes ;; 1157 myspace) static_myspace=yes ;;
1121 mxit) static_mxit=yes ;;
1122 novell) static_novell=yes ;; 1158 novell) static_novell=yes ;;
1123 oscar) static_oscar=yes ;; 1159 oscar) static_oscar=yes ;;
1124 aim) static_oscar=yes ;; 1160 aim) static_oscar=yes ;;
1125 icq) static_oscar=yes ;; 1161 icq) static_oscar=yes ;;
1126 sametime) static_sametime=yes ;; 1162 sametime) static_sametime=yes ;;
1134 AM_CONDITIONAL(STATIC_BONJOUR, test "x$static_bonjour" = "xyes") 1170 AM_CONDITIONAL(STATIC_BONJOUR, test "x$static_bonjour" = "xyes")
1135 AM_CONDITIONAL(STATIC_GG, test "x$static_gg" = "xyes") 1171 AM_CONDITIONAL(STATIC_GG, test "x$static_gg" = "xyes")
1136 AM_CONDITIONAL(STATIC_IRC, test "x$static_irc" = "xyes") 1172 AM_CONDITIONAL(STATIC_IRC, test "x$static_irc" = "xyes")
1137 AM_CONDITIONAL(STATIC_JABBER, test "x$static_jabber" = "xyes") 1173 AM_CONDITIONAL(STATIC_JABBER, test "x$static_jabber" = "xyes")
1138 AM_CONDITIONAL(STATIC_MSN, test "x$static_msn" = "xyes") 1174 AM_CONDITIONAL(STATIC_MSN, test "x$static_msn" = "xyes")
1175 AM_CONDITIONAL(STATIC_MXIT, test "x$static_mxit" = "xyes")
1139 AM_CONDITIONAL(STATIC_MYSPACE, test "x$static_myspace" = "xyes") 1176 AM_CONDITIONAL(STATIC_MYSPACE, test "x$static_myspace" = "xyes")
1140 AM_CONDITIONAL(STATIC_MXIT, test "x$static_mxit" = "xyes")
1141 AM_CONDITIONAL(STATIC_NOVELL, test "x$static_novell" = "xyes") 1177 AM_CONDITIONAL(STATIC_NOVELL, test "x$static_novell" = "xyes")
1142 AM_CONDITIONAL(STATIC_OSCAR, test "x$static_oscar" = "xyes") 1178 AM_CONDITIONAL(STATIC_OSCAR, test "x$static_oscar" = "xyes")
1143 AM_CONDITIONAL(STATIC_SAMETIME, test "x$static_sametime" = "xyes" -a "x$have_meanwhile" = "xyes") 1179 AM_CONDITIONAL(STATIC_SAMETIME, test "x$static_sametime" = "xyes" -a "x$have_meanwhile" = "xyes")
1144 AM_CONDITIONAL(STATIC_SILC, test "x$static_silc" = "xyes" -a "x$have_silc" = "xyes") 1180 AM_CONDITIONAL(STATIC_SILC, test "x$static_silc" = "xyes" -a "x$have_silc" = "xyes")
1145 AM_CONDITIONAL(STATIC_SIMPLE, test "x$static_simple" = "xyes") 1181 AM_CONDITIONAL(STATIC_SIMPLE, test "x$static_simple" = "xyes")
1149 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init static void static_proto_init(void) { $load_proto }, 1185 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init static void static_proto_init(void) { $load_proto },
1150 [Loads static protocol plugin module initialization functions.]) 1186 [Loads static protocol plugin module initialization functions.])
1151 1187
1152 AC_ARG_WITH(dynamic_prpls, [AC_HELP_STRING([--with-dynamic-prpls], [specify which protocols to build dynamically])], [DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`]) 1188 AC_ARG_WITH(dynamic_prpls, [AC_HELP_STRING([--with-dynamic-prpls], [specify which protocols to build dynamically])], [DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`])
1153 if test "x$DYNAMIC_PRPLS" = "xall" ; then 1189 if test "x$DYNAMIC_PRPLS" = "xall" ; then
1154 DYNAMIC_PRPLS="bonjour gg irc jabber msn myspace mxit novell oscar sametime silc simple yahoo zephyr" 1190 DYNAMIC_PRPLS="bonjour gg irc jabber msn mxit myspace novell oscar sametime silc simple yahoo zephyr"
1155 fi 1191 fi
1156 if test "x$have_meanwhile" != "xyes"; then 1192 if test "x$have_meanwhile" != "xyes"; then
1157 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'` 1193 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'`
1158 fi 1194 fi
1159 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then 1195 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
1168 bonjour) dynamic_bonjour=yes ;; 1204 bonjour) dynamic_bonjour=yes ;;
1169 gg) dynamic_gg=yes ;; 1205 gg) dynamic_gg=yes ;;
1170 irc) dynamic_irc=yes ;; 1206 irc) dynamic_irc=yes ;;
1171 jabber) dynamic_jabber=yes ;; 1207 jabber) dynamic_jabber=yes ;;
1172 msn) dynamic_msn=yes ;; 1208 msn) dynamic_msn=yes ;;
1209 mxit) dynamic_mxit=yes ;;
1173 myspace) dynamic_myspace=yes ;; 1210 myspace) dynamic_myspace=yes ;;
1174 mxit) dynamic_mxit=yes ;;
1175 novell) dynamic_novell=yes ;; 1211 novell) dynamic_novell=yes ;;
1176 null) dynamic_null=yes ;; 1212 null) dynamic_null=yes ;;
1177 oscar) dynamic_oscar=yes ;; 1213 oscar) dynamic_oscar=yes ;;
1178 aim) dynamic_oscar=yes ;; 1214 aim) dynamic_oscar=yes ;;
1179 icq) dynamic_oscar=yes ;; 1215 icq) dynamic_oscar=yes ;;
2494 pidgin/plugins/gevolution/Makefile 2530 pidgin/plugins/gevolution/Makefile
2495 pidgin/plugins/musicmessaging/Makefile 2531 pidgin/plugins/musicmessaging/Makefile
2496 pidgin/plugins/perl/Makefile 2532 pidgin/plugins/perl/Makefile
2497 pidgin/plugins/perl/common/Makefile.PL 2533 pidgin/plugins/perl/common/Makefile.PL
2498 pidgin/plugins/ticker/Makefile 2534 pidgin/plugins/ticker/Makefile
2535 pidgin/themes/Makefile
2499 libpurple/ciphers/Makefile 2536 libpurple/ciphers/Makefile
2500 libpurple/example/Makefile 2537 libpurple/example/Makefile
2501 libpurple/gconf/Makefile 2538 libpurple/gconf/Makefile
2502 libpurple/purple-3.pc 2539 libpurple/purple-3.pc
2503 libpurple/purple-3-uninstalled.pc 2540 libpurple/purple-3-uninstalled.pc
2577 echo 2614 echo
2578 echo Use XScreenSaver Extension.... : $enable_screensaver 2615 echo Use XScreenSaver Extension.... : $enable_screensaver
2579 echo Use X Session Management...... : $enable_sm 2616 echo Use X Session Management...... : $enable_sm
2580 echo Use startup notification...... : $enable_startup_notification 2617 echo Use startup notification...... : $enable_startup_notification
2581 echo Build with GtkSpell support... : $enable_gtkspell 2618 echo Build with GtkSpell support... : $enable_gtkspell
2619 echo Build with GCR widgets........ : $enable_gcr
2582 echo 2620 echo
2583 echo Build with plugin support..... : $enable_plugins 2621 echo Build with plugin support..... : $enable_plugins
2584 echo Build with Mono support....... : $enable_mono 2622 echo Build with Mono support....... : $enable_mono
2585 echo Build with Perl support....... : $enable_perl 2623 echo Build with Perl support....... : $enable_perl
2586 echo Build with Tcl support........ : $enable_tcl 2624 echo Build with Tcl support........ : $enable_tcl