configure.ac

branch
release-2.x.y
changeset 43264
50facee54d1d
parent 43261
ae888a2c2f89
equal deleted inserted replaced
43263:b9cf92c8b16b 43264:50facee54d1d
924 fi 924 fi
925 ]) 925 ])
926 fi 926 fi
927 927
928 dnl ####################################################################### 928 dnl #######################################################################
929 dnl # Check for Meanwhile headers (for Sametime)
930 dnl #######################################################################
931 AC_ARG_ENABLE(meanwhile,
932 [AC_HELP_STRING([--disable-meanwhile],
933 [compile without meanwhile (required for Sametime support)])],
934 enable_meanwhile="$enableval", enable_meanwhile="yes")
935 if test "x$enable_meanwhile" = "xyes"; then
936 PKG_CHECK_MODULES(MEANWHILE, [meanwhile >= 1.0.0 meanwhile < 2.0.0], [
937 have_meanwhile="yes"
938 ], [
939 have_meanwhile="no"
940 if test "x$force_deps" = "xyes" ; then
941 AC_MSG_ERROR([
942 Meanwhile development headers not found.
943 Use --disable-meanwhile if you do not need meanwhile (Sametime) support.
944 ])
945 fi])
946 fi
947 AC_SUBST(MEANWHILE_CFLAGS)
948 AC_SUBST(MEANWHILE_LIBS)
949
950 dnl #######################################################################
951 dnl # Check for Native Avahi headers (for Bonjour) 929 dnl # Check for Native Avahi headers (for Bonjour)
952 dnl ####################################################################### 930 dnl #######################################################################
953 AC_ARG_ENABLE(avahi, 931 AC_ARG_ENABLE(avahi,
954 [AC_HELP_STRING([--disable-avahi], 932 [AC_HELP_STRING([--disable-avahi],
955 [compile without avahi (required for Bonjour support)])], 933 [compile without avahi (required for Bonjour support)])],
998 fi 976 fi
999 fi 977 fi
1000 AC_SUBST(AVAHI_CFLAGS) 978 AC_SUBST(AVAHI_CFLAGS)
1001 AC_SUBST(AVAHI_LIBS) 979 AC_SUBST(AVAHI_LIBS)
1002 980
1003
1004 dnl #######################################################################
1005 dnl # Check for SILC client includes and libraries
1006 dnl #######################################################################
1007 AC_ARG_WITH(silc-includes, [AC_HELP_STRING([--with-silc-includes=DIR], [compile the SILC plugin against includes in DIR])], [ac_silc_includes="$withval"], [ac_silc_includes="no"])
1008 AC_ARG_WITH(silc-libs, [AC_HELP_STRING([--with-silc-libs=DIR], [compile the SILC plugin against the SILC libs in DIR])], [ac_silc_libs="$withval"], [ac_silc_libs="no"])
1009 SILC_CFLAGS=""
1010 SILC_LIBS=""
1011 have_silc="no"
1012 if test -n "$with_silc_includes" || test -n "$with_silc_libs"; then
1013 silc_manual_check="yes"
1014 else
1015 silc_manual_check="no"
1016 fi
1017 if test "x$silc_manual_check" = "xno"; then
1018 PKG_CHECK_MODULES(SILC, [silcclient >= 1.1], [
1019 have_silc="yes"
1020 silcincludes="yes"
1021 silcclient="yes"
1022 ], [
1023 have_silc="no"
1024 ])
1025 if test "x$have_silc" = "xno"; then
1026 PKG_CHECK_MODULES(SILC, silcclient, [
1027 have_silc="yes"
1028 silc10includes="yes"
1029 silc10client="yes"
1030 ], [
1031 have_silc="no"
1032 ])
1033 dnl If silcclient.pc wasn't found, check for just silc.pc
1034 if test "x$have_silc" = "xno"; then
1035 PKG_CHECK_MODULES(SILC, silc, [
1036 have_silc="yes"
1037 silc10includes="yes"
1038 silc10client="yes"
1039 ], [
1040 have_silc="no"
1041 ])
1042 fi
1043 fi
1044 else
1045 if test "$ac_silc_includes" != "no"; then
1046 SILC_CFLAGS="-I$ac_silc_includes"
1047 fi
1048 CPPFLAGS_save="$CPPFLAGS"
1049 CPPFLAGS="$CPPFLAGS $SILC_CFLAGS"
1050 AC_CHECK_HEADER(silc.h, [silcincludes=yes])
1051 CPPFLAGS="$CPPFLAGS_save"
1052
1053 if test "$ac_silc_libs" != "no"; then
1054 SILC_LIBS="-L$ac_silc_libs"
1055 fi
1056 SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread $LIBDL"
1057 AC_CHECK_LIB(silcclient, silc_client_init, [silcclient=yes], , $SILC_LIBS)
1058
1059 if test "x$silcincludes" = "xyes" -a "x$silcclient" = "xyes"; then
1060 have_silc="yes"
1061 else
1062 CPPFLAGS_save="$CPPFLAGS"
1063 CPPFLAGS="$CPPFLAGS $SILC_CFLAGS"
1064 AC_CHECK_HEADER(silcincludes.h, [silc10includes=yes])
1065 CPPFLAGS="$CPPFLAGS_save"
1066
1067 SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread $LIBDL"
1068 AC_CHECK_LIB(silcclient, silc_client_init, [silc10client=yes], , $SILC_LIBS)
1069 if test "x$silc10includes" = "xyes" -a "x$silc10client" = "xyes"; then
1070 have_silc="yes"
1071 fi
1072 fi
1073 fi
1074 AC_SUBST(SILC_LIBS)
1075 AC_SUBST(SILC_CFLAGS)
1076 dnl SILC Toolkit >= 1.0.1 has a new MIME API
1077 if test "x$silcclient" = "xyes"; then
1078 AC_DEFINE(HAVE_SILCMIME_H, 1, [Define if we have silcmime.h])
1079 elif test "x$silc10client" = "xyes"; then
1080 CPPFLAGS_save="$CPPFLAGS"
1081 CPPFLAGS="$CPPFLAGS $SILC_CFLAGS"
1082 AC_MSG_CHECKING(for silcmime.h)
1083 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1084 #include <silcincludes.h>
1085 #include <silcmime.h>
1086 ]], [[]])], [
1087 AC_MSG_RESULT(yes)
1088 AC_DEFINE(HAVE_SILCMIME_H, 1, [Define if we have silcmime.h])
1089 ], [
1090 AC_MSG_RESULT(no)
1091 ])
1092 CPPFLAGS="$CPPFLAGS_save"
1093 fi
1094
1095 dnl #######################################################################
1096 dnl # Check for Gadu-Gadu protocol library (libgadu)
1097 dnl #######################################################################
1098
1099 PKG_CHECK_MODULES(LIBGADU, [libgadu >= 1.12.0], [have_libgadu=yes], [have_libgadu=no])
1100
1101 if test "x$have_libgadu" = "xyes"; then
1102 AC_CHECK_LIB(gadu, gg_is_gpl_compliant, [:], [
1103 LIBGADU_LIBS=""
1104 LIBGADU_CFLAGS=""
1105 have_libgadu=no
1106 AC_MSG_WARN([
1107 libgadu is not compatible with the GPL when compiled with OpenSSL support.
1108
1109 To compile against system libgadu, please recompile libgadu using:
1110 ./configure --with-openssl=no
1111 Then rerun this ./configure
1112
1113 Falling back to using our own copy of libgadu.
1114 ])
1115 ])
1116 fi
1117
1118 AM_CONDITIONAL(HAVE_LIBGADU, test "x$have_libgadu" = "xyes")
1119 if test "x$have_libgadu" = "xyes"; then
1120 AC_DEFINE(HAVE_LIBGADU, 1, [Linked with external libgadu])
1121 else
1122 AC_CHECK_LIB(gnutls, gnutls_certificate_set_x509_system_trust, [gg_have_gnutls_csxst=yes], [gg_have_gnutls_csxst=no])
1123
1124 gg_gnutls_sts=""
1125 if test "x$gg_have_gnutls_csxst" = "xno"; then
1126 for i in /etc/ssl/ca-bundle.pem \
1127 /etc/ssl/certs/ca-certificates.crt \
1128 /etc/pki/tls/cert.pem \
1129 /usr/local/share/certs/ca-root-nss.crt \
1130 /etc/ssl/cert.pem
1131 do
1132 if test -e $i; then
1133 gg_gnutls_sts="$i"
1134 break
1135 fi
1136 done
1137 fi
1138
1139 if test "x$gg_have_gnutls_csxst" = "xyes"; then
1140 AC_DEFINE(HAVE_GNUTLS_CERTIFICATE_SET_X509_SYSTEM_TRUST, 1, [gnutls contains the gnutls_certificate_set_x509_system_trust function])
1141 fi
1142 if test "x$gg_gnutls_sts" != "x"; then
1143 AC_DEFINE_UNQUOTED(GG_CONFIG_GNUTLS_SYSTEM_TRUST_STORE, ["$gg_gnutls_sts"], [use the given file as GnuTLS default trust store])
1144 fi
1145
1146 PKG_CHECK_MODULES([GNUTLS_2_10], [gnutls >= 2.10.0], [
1147 AC_DEFINE([HAVE_GNUTLS_2_10], [], [Defined if GnuTLS >= 2.10.0 is available.])
1148 ],:)
1149 fi
1150
1151 AC_SUBST(LIBGADU_LIBS)
1152 AC_SUBST(LIBGADU_CFLAGS)
1153
1154
1155 AC_ARG_ENABLE(distrib,,,enable_distrib=no) 981 AC_ARG_ENABLE(distrib,,,enable_distrib=no)
1156 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") 982 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes")
1157 DYNAMIC_PRPLS=all 983 DYNAMIC_PRPLS=all
1158 AC_ARG_WITH(static-prpls, [AC_HELP_STRING([--with-static-prpls], [Link to certain protocols statically])], [STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`], [STATIC_PRPLS=""]) 984 AC_ARG_WITH(static-prpls, [AC_HELP_STRING([--with-static-prpls], [Link to certain protocols statically])], [STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`], [STATIC_PRPLS=""])
1159 if test "x$STATIC_PRPLS" != "x" -a "x$DYNAMIC_PRPLS" = "xall"; then 985 if test "x$STATIC_PRPLS" != "x" -a "x$DYNAMIC_PRPLS" = "xall"; then
1160 DYNAMIC_PRPLS="" 986 DYNAMIC_PRPLS=""
1161 fi 987 fi
1162 988
1163 if test "x$STATIC_PRPLS" = "xall" ; then 989 if test "x$STATIC_PRPLS" = "xall" ; then
1164 STATIC_PRPLS="bonjour gg irc jabber novell sametime silc simple zephyr" 990 STATIC_PRPLS="bonjour irc jabber simple"
1165 fi
1166 if test "x$have_meanwhile" != "xyes" ; then
1167 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'`
1168 fi 991 fi
1169 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then 992 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
1170 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'` 993 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'`
1171 fi
1172 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
1173 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc/silc10/'`
1174 fi
1175 if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then
1176 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc10//'`
1177 fi 994 fi
1178 AC_SUBST(STATIC_PRPLS) 995 AC_SUBST(STATIC_PRPLS)
1179 STATIC_LINK_LIBS= 996 STATIC_LINK_LIBS=
1180 extern_init= 997 extern_init=
1181 load_proto= 998 load_proto=
1182 for i in $STATIC_PRPLS ; do 999 for i in $STATIC_PRPLS ; do
1183 dnl Ugly special case for "libsilcpurple.la": 1000 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib$i.la"
1184 if test "x$i" = "xsilc"; then
1185 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib${i}purple.la"
1186 elif test "x$i" = "xsilc10"; then
1187 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/libsilcpurple.la"
1188 else
1189 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib$i.la"
1190 fi
1191 extern_init="$extern_init extern gboolean purple_init_${i}_plugin();" 1001 extern_init="$extern_init extern gboolean purple_init_${i}_plugin();"
1192 load_proto="$load_proto purple_init_${i}_plugin();" 1002 load_proto="$load_proto purple_init_${i}_plugin();"
1193 1003
1194 case $i in 1004 case $i in
1195 bonjour) static_bonjour=yes ;; 1005 bonjour) static_bonjour=yes ;;
1196 gg) static_gg=yes ;;
1197 irc) static_irc=yes ;; 1006 irc) static_irc=yes ;;
1198 jabber) static_jabber=yes ;; 1007 jabber) static_jabber=yes ;;
1199 novell) static_novell=yes ;;
1200 sametime) static_sametime=yes ;;
1201 silc) static_silc=yes ;;
1202 silc10) static_silc=yes ;;
1203 simple) static_simple=yes ;; 1008 simple) static_simple=yes ;;
1204 zephyr) static_zephyr=yes ;;
1205 *) echo "Invalid static protocol $i!!" ; exit 1 ;; 1009 *) echo "Invalid static protocol $i!!" ; exit 1 ;;
1206 esac 1010 esac
1207 done 1011 done
1208 AM_CONDITIONAL(STATIC_BONJOUR, test "x$static_bonjour" = "xyes") 1012 AM_CONDITIONAL(STATIC_BONJOUR, test "x$static_bonjour" = "xyes")
1209 AM_CONDITIONAL(STATIC_GG, test "x$static_gg" = "xyes")
1210 AM_CONDITIONAL(STATIC_IRC, test "x$static_irc" = "xyes") 1013 AM_CONDITIONAL(STATIC_IRC, test "x$static_irc" = "xyes")
1211 AM_CONDITIONAL(STATIC_JABBER, test "x$static_jabber" = "xyes") 1014 AM_CONDITIONAL(STATIC_JABBER, test "x$static_jabber" = "xyes")
1212 AM_CONDITIONAL(STATIC_NOVELL, test "x$static_novell" = "xyes")
1213 AM_CONDITIONAL(STATIC_SAMETIME, test "x$static_sametime" = "xyes" -a "x$have_meanwhile" = "xyes")
1214 AM_CONDITIONAL(STATIC_SILC, test "x$static_silc" = "xyes" -a "x$have_silc" = "xyes")
1215 AM_CONDITIONAL(STATIC_SIMPLE, test "x$static_simple" = "xyes") 1015 AM_CONDITIONAL(STATIC_SIMPLE, test "x$static_simple" = "xyes")
1216 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes")
1217 AC_SUBST(STATIC_LINK_LIBS) 1016 AC_SUBST(STATIC_LINK_LIBS)
1218 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init static void static_proto_init(void) { $load_proto }, 1017 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init static void static_proto_init(void) { $load_proto },
1219 [Loads static protocol plugin module initialization functions.]) 1018 [Loads static protocol plugin module initialization functions.])
1220 1019
1221 AC_ARG_WITH(dynamic_prpls, [AC_HELP_STRING([--with-dynamic-prpls], [specify which protocols to build dynamically])], [DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`]) 1020 AC_ARG_WITH(dynamic_prpls, [AC_HELP_STRING([--with-dynamic-prpls], [specify which protocols to build dynamically])], [DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`])
1222 if test "x$DYNAMIC_PRPLS" = "xall" ; then 1021 if test "x$DYNAMIC_PRPLS" = "xall" ; then
1223 DYNAMIC_PRPLS="bonjour gg irc jabber novell sametime silc simple zephyr" 1022 DYNAMIC_PRPLS="bonjour irc jabber simple"
1224 fi
1225 if test "x$have_meanwhile" != "xyes"; then
1226 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'`
1227 fi 1023 fi
1228 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then 1024 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
1229 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'` 1025 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'`
1230 fi
1231 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
1232 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc/silc10/'`
1233 fi
1234 if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then
1235 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc10//'`
1236 fi 1026 fi
1237 AC_SUBST(DYNAMIC_PRPLS) 1027 AC_SUBST(DYNAMIC_PRPLS)
1238 for i in $DYNAMIC_PRPLS ; do 1028 for i in $DYNAMIC_PRPLS ; do
1239 case $i in 1029 case $i in
1240 bonjour) dynamic_bonjour=yes ;; 1030 bonjour) dynamic_bonjour=yes ;;
1241 gg) dynamic_gg=yes ;;
1242 irc) dynamic_irc=yes ;; 1031 irc) dynamic_irc=yes ;;
1243 jabber) dynamic_jabber=yes ;; 1032 jabber) dynamic_jabber=yes ;;
1244 novell) dynamic_novell=yes ;;
1245 null) dynamic_null=yes ;; 1033 null) dynamic_null=yes ;;
1246 sametime) dynamic_sametime=yes ;;
1247 silc) dynamic_silc=yes ;;
1248 silc10) dynamic_silc=yes ;;
1249 simple) dynamic_simple=yes ;; 1034 simple) dynamic_simple=yes ;;
1250 zephyr) dynamic_zephyr=yes ;;
1251 *) echo "Invalid dynamic protocol $i!!" ; exit 1 ;; 1035 *) echo "Invalid dynamic protocol $i!!" ; exit 1 ;;
1252 esac 1036 esac
1253 done 1037 done
1254 1038
1255 AC_ARG_ENABLE(plugins, [AC_HELP_STRING([--disable-plugins], [compile without plugin support])], , enable_plugins=yes) 1039 AC_ARG_ENABLE(plugins, [AC_HELP_STRING([--disable-plugins], [compile without plugin support])], , enable_plugins=yes)
1256 AC_ARG_WITH(krb4, [AC_HELP_STRING([--with-krb4=PREFIX], [compile Zephyr plugin with Kerberos 4 support])], kerberos="$withval", kerberos="no")
1257 AC_ARG_WITH(zephyr, [AC_HELP_STRING([--with-zephyr=PREFIX], [compile Zephyr plugin against external libzephyr])], zephyr="$withval", zephyr="no")
1258 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno")
1259 1040
1260 AC_CHECK_HEADERS(sys/utsname.h) 1041 AC_CHECK_HEADERS(sys/utsname.h)
1261 AC_CHECK_FUNC(uname) 1042 AC_CHECK_FUNC(uname)
1262 1043
1263 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes) 1044 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes)
1713 AC_ARG_ENABLE(nss, 1494 AC_ARG_ENABLE(nss,
1714 [ --enable-nss=[yes,no,static] attempt to use Mozilla libnss for SSL support [default=yes]], 1495 [ --enable-nss=[yes,no,static] attempt to use Mozilla libnss for SSL support [default=yes]],
1715 [enable_nss="$enableval"], 1496 [enable_nss="$enableval"],
1716 [enable_nss="yes"]) 1497 [enable_nss="yes"])
1717 1498
1718 msg_ssl="None. Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!" 1499 msg_ssl="None. OpenSSL is NOT usable!"
1719 looked_for_gnutls="no" 1500 looked_for_gnutls="no"
1720 dnl # 1501 dnl #
1721 dnl # Check for GnuTLS if it's specified. 1502 dnl # Check for GnuTLS if it's specified.
1722 dnl # 1503 dnl #
1723 if test "x$enable_gnutls" != "xno"; then 1504 if test "x$enable_gnutls" != "xno"; then
2124 msg_ssl=$msg_gnutls 1905 msg_ssl=$msg_gnutls
2125 elif test "x$looked_for_gnutls" = "xyes" -a "x$looked_for_nss" = "xyes" -a "x$force_deps" = "xyes" ; then 1906 elif test "x$looked_for_gnutls" = "xyes" -a "x$looked_for_nss" = "xyes" -a "x$force_deps" = "xyes" ; then
2126 AC_MSG_ERROR([ 1907 AC_MSG_ERROR([
2127 Neither GnuTLS or NSS SSL development headers found. 1908 Neither GnuTLS or NSS SSL development headers found.
2128 Use --disable-nss --disable-gnutls if you do not need SSL support. 1909 Use --disable-nss --disable-gnutls if you do not need SSL support.
2129 Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!
2130 ]) 1910 ])
2131 elif test "x$looked_for_gnutls" = "xyes" -a "x$force_deps" = "xyes" ; then 1911 elif test "x$looked_for_gnutls" = "xyes" -a "x$force_deps" = "xyes" ; then
2132 AC_MSG_ERROR([ 1912 AC_MSG_ERROR([
2133 GnuTLS SSL development headers not found. 1913 GnuTLS SSL development headers not found.
2134 Use --disable-gnutls if you do not need SSL support. 1914 Use --disable-gnutls if you do not need SSL support.
2135 Novell Groupwise and Google Talk will not work without SSL support.
2136 ]) 1915 ])
2137 elif test "x$looked_for_nss" = "xyes" -a "x$force_deps" = "xyes" ; then 1916 elif test "x$looked_for_nss" = "xyes" -a "x$force_deps" = "xyes" ; then
2138 AC_MSG_ERROR([ 1917 AC_MSG_ERROR([
2139 NSS SSL development headers not found. 1918 NSS SSL development headers not found.
2140 Use --disable-nss if you do not need SSL support. 1919 Use --disable-nss if you do not need SSL support.
2141 Novell Groupwise and Google Talk will not work without SSL support.
2142 ]) 1920 ])
2143 fi 1921 fi
2144 1922
2145 dnl ####################################################################### 1923 dnl #######################################################################
2146 dnl # Check for Tcl 1924 dnl # Check for Tcl
2322 AM_CONDITIONAL(USE_CYRUS_SASL, false) 2100 AM_CONDITIONAL(USE_CYRUS_SASL, false)
2323 AC_MSG_ERROR([Cyrus SASL library not found]) 2101 AC_MSG_ERROR([Cyrus SASL library not found])
2324 ]) 2102 ])
2325 else 2103 else
2326 AM_CONDITIONAL(USE_CYRUS_SASL, false) 2104 AM_CONDITIONAL(USE_CYRUS_SASL, false)
2327 fi
2328
2329 dnl #######################################################################
2330 dnl # Check for Kerberos (for Zephyr)
2331 dnl #######################################################################
2332 AC_DEFINE(ZEPHYR_INT32, long, [Size of an int32.])
2333 AC_SUBST(KRB4_CFLAGS)
2334 AC_SUBST(KRB4_LDFLAGS)
2335 AC_SUBST(KRB4_LIBS)
2336 if test "$kerberos" != "no" ; then
2337 if test "$kerberos" != "yes" ; then
2338 KRB4_CFLAGS="-I${kerberos}/include"
2339 if test -d "$kerberos/include/kerberosIV" ; then
2340 KRB4_CFLAGS="$KRB4_CFLAGS -I${kerberos}/include/kerberosIV"
2341 fi
2342 KRB4_LDFLAGS="-L${kerberos}/lib"
2343 elif test -d /usr/local/include/kerberosIV ; then
2344 KRB4_CFLAGS="-I/usr/local/include/kerberosIV"
2345 elif test -d /usr/include/kerberosIV ; then
2346 KRB4_CFLAGS="-I/usr/include/kerberosIV"
2347 fi
2348 AC_DEFINE(ZEPHYR_USES_KERBEROS, 1, [Define if kerberos should be used in Zephyr.])
2349
2350 orig_LDFLAGS="$LDFLAGS"
2351 LDFLAGS="$LDFLAGS $KRB4_LDFLAGS"
2352 AC_CHECK_LIB(krb4, krb_rd_req,
2353 [KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"],
2354 [AC_CHECK_LIB(krb, krb_rd_req,
2355 [KRB4_LIBS="-lkrb -ldes"],
2356 [AC_MSG_ERROR([Kerberos 4 libraries not found])],
2357 -ldes)],
2358 -ldes425 -lkrb5 -lk5crypto -lcom_err)
2359 orig_LIBS="$LIBS"
2360 LIBS="$LIBS $KRB4_LIBS"
2361 AC_CHECK_FUNCS(krb_set_key krb_rd_req krb_get_lrealm)
2362 AC_CHECK_FUNCS(krb_get_err_text krb_log)
2363 LIBS="$orig_LIBS"
2364 LDFLAGS="$orig_LDFLAGS"
2365 fi
2366
2367 dnl #######################################################################
2368 dnl # Check for external libzephyr
2369 dnl #######################################################################
2370 AC_SUBST(ZEPHYR_CFLAGS)
2371 AC_SUBST(ZEPHYR_LDFLAGS)
2372 AC_SUBST(ZEPHYR_LIBS)
2373 if test "$zephyr" != "no" ; then
2374 if test "$zephyr" != "yes" ; then
2375 ZEPHYR_CFLAGS="-I${zephyr}/include"
2376 ZEPHYR_LDFLAGS="-L${zephyr}/lib"
2377 elif test -d /usr/athena/include/zephyr ; then
2378 ZEPHYR_CFLAGS="-I/usr/athena/include"
2379 elif test -d /usr/include/zephyr ; then
2380 ZEPHYR_CFLAGS="-I/usr/include"
2381 elif test -d /usr/local/include/zephyr ; then
2382 ZEPHYR_CFLAGS="-I/usr/local/include"
2383 fi
2384 AC_DEFINE(LIBZEPHYR_EXT, 1 , [Define if external libzephyr should be used.])
2385 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno")
2386 orig_LDFLAGS="$LDFLAGS"
2387 LDFLAGS="$LDFLAGS $ZEPHYR_LDFLAGS"
2388 AC_CHECK_LIB(zephyr, ZInitialize,
2389 [ZEPHYR_LIBS="-lzephyr"],
2390 [AC_MSG_ERROR([Zephyr libraries not found])],
2391 -lzephyr)
2392 orig_LIBS="$LIBS"
2393 LIBS="$orig_LIBS"
2394 LDFLAGS="$orig_LDFLAGS"
2395 fi 2105 fi
2396 2106
2397 AC_MSG_CHECKING(for me pot o' gold) 2107 AC_MSG_CHECKING(for me pot o' gold)
2398 AC_MSG_RESULT(no) 2108 AC_MSG_RESULT(no)
2399 AC_CHECK_FUNCS(gethostid lrand48 timegm) 2109 AC_CHECK_FUNCS(gethostid lrand48 timegm)
2595 libpurple/plugins/ssl/Makefile 2305 libpurple/plugins/ssl/Makefile
2596 libpurple/plugins/tcl/Makefile 2306 libpurple/plugins/tcl/Makefile
2597 libpurple/Makefile 2307 libpurple/Makefile
2598 libpurple/protocols/Makefile 2308 libpurple/protocols/Makefile
2599 libpurple/protocols/bonjour/Makefile 2309 libpurple/protocols/bonjour/Makefile
2600 libpurple/protocols/gg/Makefile
2601 libpurple/protocols/irc/Makefile 2310 libpurple/protocols/irc/Makefile
2602 libpurple/protocols/jabber/Makefile 2311 libpurple/protocols/jabber/Makefile
2603 libpurple/protocols/novell/Makefile
2604 libpurple/protocols/null/Makefile 2312 libpurple/protocols/null/Makefile
2605 libpurple/protocols/sametime/Makefile
2606 libpurple/protocols/silc/Makefile
2607 libpurple/protocols/silc10/Makefile
2608 libpurple/protocols/simple/Makefile 2313 libpurple/protocols/simple/Makefile
2609 libpurple/protocols/zephyr/Makefile
2610 libpurple/tests/Makefile 2314 libpurple/tests/Makefile
2611 libpurple/purple.h 2315 libpurple/purple.h
2612 libpurple/version.h 2316 libpurple/version.h
2613 share/sounds/Makefile 2317 share/sounds/Makefile
2614 share/ca-certs/Makefile 2318 share/ca-certs/Makefile
2644 echo SSL Library/Libraries......... : $msg_ssl 2348 echo SSL Library/Libraries......... : $msg_ssl
2645 if test "x$SSL_CERTIFICATES_DIR" != "x" ; then 2349 if test "x$SSL_CERTIFICATES_DIR" != "x" ; then
2646 eval eval echo SSL CA certificates directory. : $SSL_CERTIFICATES_DIR 2350 eval eval echo SSL CA certificates directory. : $SSL_CERTIFICATES_DIR
2647 fi 2351 fi
2648 echo Build with Cyrus SASL support. : $enable_cyrus_sasl 2352 echo Build with Cyrus SASL support. : $enable_cyrus_sasl
2649 echo Use kerberos 4 with zephyr.... : $kerberos
2650 echo Use external libzephyr........ : $zephyr
2651 echo Use external libgadu.......... : $have_libgadu
2652 echo Install pixmaps............... : $enable_pixmaps 2353 echo Install pixmaps............... : $enable_pixmaps
2653 echo Old tray icon compatibility... : $enable_traycompat 2354 echo Old tray icon compatibility... : $enable_traycompat
2654 echo Install translations.......... : $enable_i18n 2355 echo Install translations.......... : $enable_i18n
2655 echo Has you....................... : yes 2356 echo Has you....................... : yes
2656 echo 2357 echo

mercurial