| 806 ]) |
806 ]) |
| 807 fi |
807 fi |
| 808 fi |
808 fi |
| 809 fi |
809 fi |
| 810 |
810 |
| |
811 AC_ARG_ENABLE(idn, |
| |
812 [AC_HELP_STRING([--disable-idn], [compile without IDN support])], |
| |
813 [enable_idn="$enableval" force_idn=$enableval], [enable_idn="yes" force_idn=no]) |
| |
814 if test "x$enable_idn" != "xno"; then |
| |
815 PKG_CHECK_MODULES(IDN, libidn >= 0.0.0, [ |
| |
816 AC_DEFINE(USE_IDN, 1, [Use GNU Libidn for stringprep and IDN]) |
| |
817 AC_SUBST(IDN_CFLAGS) |
| |
818 AC_SUBST(IDN_LIBS) |
| |
819 ], [ |
| |
820 AC_MSG_RESULT(no) |
| |
821 if test "x$force_deps" = "xyes" ; then |
| |
822 AC_MSG_ERROR([ |
| |
823 GNU Libidn development headers not found. |
| |
824 Use --disable-idn if you do not need it. |
| |
825 ]) |
| |
826 fi |
| |
827 ]) |
| |
828 fi |
| |
829 |
| 811 dnl ####################################################################### |
830 dnl ####################################################################### |
| 812 dnl # Check for Meanwhile headers (for Sametime) |
831 dnl # Check for Meanwhile headers (for Sametime) |
| 813 dnl ####################################################################### |
832 dnl ####################################################################### |
| 814 AC_ARG_ENABLE(meanwhile, |
833 AC_ARG_ENABLE(meanwhile, |
| 815 [AC_HELP_STRING([--disable-meanwhile], |
834 [AC_HELP_STRING([--disable-meanwhile], |
| 1073 STATIC_LINK_LIBS= |
1092 STATIC_LINK_LIBS= |
| 1074 extern_init= |
1093 extern_init= |
| 1075 load_proto= |
1094 load_proto= |
| 1076 for i in $STATIC_PRPLS ; do |
1095 for i in $STATIC_PRPLS ; do |
| 1077 dnl Ugly special case for "libsilcpurple.la": |
1096 dnl Ugly special case for "libsilcpurple.la": |
| 1078 dnl ... and Ugly special case for multi-protocol oscar |
1097 dnl ... and Ugly special case for multi-protocol oscar and yahoo |
| 1079 if test \( "x$i" = "xoscar" -o "x$i" = "xaim" -o "x$i" = "xicq" \) -a "x$static_oscar" != "xyes"; then |
1098 if test \( "x$i" = "xoscar" -o "x$i" = "xaim" -o "x$i" = "xicq" \) -a "x$static_oscar" != "xyes"; then |
| 1080 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/oscar/liboscar.la" |
1099 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/oscar/liboscar.la" |
| 1081 extern_init="$extern_init extern gboolean purple_init_aim_plugin();" |
1100 extern_init="$extern_init extern gboolean purple_init_aim_plugin();" |
| 1082 extern_init="$extern_init extern gboolean purple_init_icq_plugin();" |
1101 extern_init="$extern_init extern gboolean purple_init_icq_plugin();" |
| 1083 load_proto="$load_proto purple_init_aim_plugin();" |
1102 load_proto="$load_proto purple_init_aim_plugin();" |
| 1084 load_proto="$load_proto purple_init_icq_plugin();" |
1103 load_proto="$load_proto purple_init_icq_plugin();" |
| |
1104 elif test "x$i" = "xyahoo"; then |
| |
1105 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/yahoo/libymsg.la" |
| |
1106 extern_init="$extern_init extern gboolean purple_init_yahoo_plugin();" |
| |
1107 extern_init="$extern_init extern gboolean purple_init_yahoojp_plugin();" |
| |
1108 load_proto="$load_proto purple_init_yahoo_plugin();" |
| |
1109 load_proto="$load_proto purple_init_yahoojp_plugin();" |
| 1085 else |
1110 else |
| 1086 if test "x$i" = "xsilc"; then |
1111 if test "x$i" = "xsilc"; then |
| 1087 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib${i}purple.la" |
1112 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib${i}purple.la" |
| 1088 elif test "x$i" = "xsilc10"; then |
1113 elif test "x$i" = "xsilc10"; then |
| 1089 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/libsilcpurple.la" |
1114 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/libsilcpurple.la" |
| 1729 AC_MSG_CHECKING(for gnutls_priority_set_direct) |
1754 AC_MSG_CHECKING(for gnutls_priority_set_direct) |
| 1730 LIBS_save="$LIBS" |
1755 LIBS_save="$LIBS" |
| 1731 LIBS="$LIBS $GNUTLS_LIBS" |
1756 LIBS="$LIBS $GNUTLS_LIBS" |
| 1732 CPPFLAGS_save="$CPPFLAGS" |
1757 CPPFLAGS_save="$CPPFLAGS" |
| 1733 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS" |
1758 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS" |
| 1734 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <gnutls/gnutls.h>], |
1759 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>]], |
| 1735 [gnutls_session s; gnutls_priority_set_direct(s, NULL, NULL);])], |
1760 [[gnutls_session s; gnutls_priority_set_direct(s, NULL, NULL);]])], |
| 1736 [AC_DEFINE([HAVE_GNUTLS_PRIORITY_FUNCS], 1, |
1761 [AC_DEFINE([HAVE_GNUTLS_PRIORITY_FUNCS], 1, |
| 1737 [Define if your gnutls has gnutls_priority_set_direct and friends]) |
1762 [Define if your gnutls has gnutls_priority_set_direct and friends]) |
| 1738 AC_MSG_RESULT(yes)], |
1763 AC_MSG_RESULT(yes)], |
| 1739 [AC_MSG_RESULT(no)]) |
1764 [AC_MSG_RESULT(no)]) |
| 1740 CPPFLAGS="$CPPFLAGS_save" |
1765 CPPFLAGS="$CPPFLAGS_save" |
| 1976 [ac_cv_moz_nss_libs="yes"], |
2001 [ac_cv_moz_nss_libs="yes"], |
| 1977 [ac_cv_moz_nss_libs="no"]) |
2002 [ac_cv_moz_nss_libs="no"]) |
| 1978 |
2003 |
| 1979 if test "x$ac_cv_moz_nss_libs" = "xno"; then |
2004 if test "x$ac_cv_moz_nss_libs" = "xno"; then |
| 1980 nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3" |
2005 nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3" |
| 1981 LDFLAGS="$LDFLAGS -L$with_nspr_libs -L$with_nss_libs" |
2006 LDFLAGS="$LDFLAGS -L$with_nspr_libs -L$with_nss_libs" |
| 1982 LIBS="$LIBS $nsslibs" |
2007 LIBS="$LIBS $nsslibs" |
| 1983 AC_TRY_LINK_FUNC(NSS_Init, |
2008 AC_TRY_LINK_FUNC(NSS_Init, |
| 1984 [ac_cv_moz_nss_libs="yes"], |
2009 [ac_cv_moz_nss_libs="yes"], |
| 1985 [ac_cv_moz_nss_libs="no"]) |
2010 [ac_cv_moz_nss_libs="no"]) |
| 1986 fi |
2011 fi |
| 2521 echo Build with D-Bus support...... : $enable_dbus |
2546 echo Build with D-Bus support...... : $enable_dbus |
| 2522 echo Build with voice and video.... : $enable_vv |
2547 echo Build with voice and video.... : $enable_vv |
| 2523 if test "x$enable_dbus" = "xyes" ; then |
2548 if test "x$enable_dbus" = "xyes" ; then |
| 2524 eval eval echo D-Bus services directory...... : $DBUS_SERVICES_DIR |
2549 eval eval echo D-Bus services directory...... : $DBUS_SERVICES_DIR |
| 2525 fi |
2550 fi |
| |
2551 echo Build with GNU Libidn......... : $enable_idn |
| 2526 echo Build with NetworkManager..... : $enable_nm |
2552 echo Build with NetworkManager..... : $enable_nm |
| 2527 echo SSL Library/Libraries......... : $msg_ssl |
2553 echo SSL Library/Libraries......... : $msg_ssl |
| 2528 if test "x$SSL_CERTIFICATES_DIR" != "x" ; then |
2554 if test "x$SSL_CERTIFICATES_DIR" != "x" ; then |
| 2529 eval eval echo SSL CA certificates directory. : $SSL_CERTIFICATES_DIR |
2555 eval eval echo SSL CA certificates directory. : $SSL_CERTIFICATES_DIR |
| 2530 fi |
2556 fi |