comparison configure.ac @ 27735:98604b4bfa3b

propagate from branch 'im.pidgin.pidgin' (head cc8513f94aa94550d600cd8a5d42475dbf7249c0) to branch 'im.pidgin.pidgin.yaz' (head 3a859b75c16c1c1e2e79d4f4acb4424d13af5e0b)
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Thu, 22 Nov 2007 07:44:59 +0000
parents 3f5b0039428b 7a9b8bd09a05
children 4e6e39be7fef
comparison
equal deleted inserted replaced
27734:3f5b0039428b 27735:98604b4bfa3b
41 # For code under development: [devel] 41 # For code under development: [devel]
42 # For production releases: [] 42 # For production releases: []
43 # 43 #
44 # Make sure to update finch/libgnt/configure.ac with libgnt version changes. 44 # Make sure to update finch/libgnt/configure.ac with libgnt version changes.
45 # 45 #
46 m4_define([purple_lt_current], [2]) 46 m4_define([purple_lt_current], [3])
47 m4_define([purple_major_version], [2]) 47 m4_define([purple_major_version], [2])
48 m4_define([purple_minor_version], [2]) 48 m4_define([purple_minor_version], [3])
49 m4_define([purple_micro_version], [3]) 49 m4_define([purple_micro_version], [0])
50 m4_define([purple_version_suffix], []) 50 m4_define([purple_version_suffix], [])
51 m4_define([purple_version], 51 m4_define([purple_version],
52 [purple_major_version.purple_minor_version.purple_micro_version]) 52 [purple_major_version.purple_minor_version.purple_micro_version])
53 m4_define([purple_display_version], purple_version[]m4_ifdef([purple_version_suffix],[purple_version_suffix])) 53 m4_define([purple_display_version], purple_version[]m4_ifdef([purple_version_suffix],[purple_version_suffix]))
54 54
231 AC_SYS_LARGEFILE 231 AC_SYS_LARGEFILE
232 232
233 dnl FreeBSD doesn't have libdl, dlopen is provided by libc 233 dnl FreeBSD doesn't have libdl, dlopen is provided by libc
234 AC_CHECK_FUNC(dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")]) 234 AC_CHECK_FUNC(dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")])
235 235
236 AC_MSG_CHECKING(for fileno())
237 AC_TRY_RUN([
238 #include <stdio.h>
239
240 int main(int argc, char *argv[])
241 {
242 int fd;
243
244 fd = fileno(stdout);
245
246 return !(fd > 0);
247 }
248 ], [
249 AC_MSG_RESULT(yes)
250 AC_DEFINE([HAVE_FILENO], [1],
251 [Define to 1 if your stdio has int fileno(FILE *).])
252 ], [
253 AC_MSG_RESULT(no)
254 ], [
255 # Fallback for Cross Compiling...
256 # This will enable the compatibility code.
257 AC_MSG_RESULT(no)
258 ])
259
236 AC_MSG_CHECKING(for the %z format string in strftime()) 260 AC_MSG_CHECKING(for the %z format string in strftime())
237 AC_TRY_RUN([ 261 AC_TRY_RUN([
238 #ifdef HAVE_SYS_TIME_H 262 #ifdef HAVE_SYS_TIME_H
239 #include <sys/time.h> 263 #include <sys/time.h>
240 #endif 264 #endif
280 304
281 You must have the GLib 2.0 development headers installed to build. 305 You must have the GLib 2.0 development headers installed to build.
282 ])]) 306 ])])
283 AC_SUBST(GLIB_CFLAGS) 307 AC_SUBST(GLIB_CFLAGS)
284 AC_SUBST(GLIB_LIBS) 308 AC_SUBST(GLIB_LIBS)
309
310 AC_ARG_WITH([extraversion],
311 AC_HELP_STRING([--with-extraversion=STRING],
312 [extra version number to be displayed in Help->About and --help (for packagers)]),
313 EXTRA_VERSION=$withval)
314
315 if test x"$EXTRA_VERSION" != "x" ; then
316 AC_DEFINE_UNQUOTED(DISPLAY_VERSION, "$VERSION-$EXTRA_VERSION", [display version info])
317 else
318 AC_DEFINE_UNQUOTED(DISPLAY_VERSION, "$VERSION", [display version info])
319 fi
285 320
286 AC_ARG_WITH(x, [], 321 AC_ARG_WITH(x, [],
287 with_x="$withval", with_x="yes") 322 with_x="$withval", with_x="yes")
288 AC_ARG_ENABLE(gtkui, [AC_HELP_STRING([--disable-gtkui], 323 AC_ARG_ENABLE(gtkui, [AC_HELP_STRING([--disable-gtkui],
289 [compile without GTK+ user interface])], 324 [compile without GTK+ user interface])],
863 if test "x$gadu_libs" = "xyes"; then 898 if test "x$gadu_libs" = "xyes"; then
864 AC_MSG_CHECKING(for libgadu GPL compatibility) 899 AC_MSG_CHECKING(for libgadu GPL compatibility)
865 CPPFLAGS_save="$CPPFLAGS" 900 CPPFLAGS_save="$CPPFLAGS"
866 CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" 901 CPPFLAGS="$CPPFLAGS $GADU_CFLAGS"
867 AC_TRY_COMPILE([#include <libgadu.h>], [ 902 AC_TRY_COMPILE([#include <libgadu.h>], [
868 #ifdef __GG_LIBGADU_HAVE_OPENSSL 903 #if defined(__GG_LIBGADU_HAVE_OPENSSL) || defined(GG_CONFIG_HAVE_OPENSSL)
869 #error "libgadu is not compatible with the GPL when compiled with OpenSSL support." 904 #error "libgadu is not compatible with the GPL when compiled with OpenSSL support."
870 #endif 905 #endif
871 ], [ 906 ], [
872 AC_MSG_RESULT(yes) 907 AC_MSG_RESULT(yes)
873 AC_DEFINE([HAVE_LIBGADU], [1], 908 AC_DEFINE([HAVE_LIBGADU], [1],
875 ], [ 910 ], [
876 AC_MSG_RESULT(no) 911 AC_MSG_RESULT(no)
877 echo 912 echo
878 echo 913 echo
879 echo "libgadu is not compatible with the GPL when compiled with OpenSSL support." 914 echo "libgadu is not compatible with the GPL when compiled with OpenSSL support."
880 echo "Please recompile libgadu using:" 915 echo "To compile against system libgadu, please recompile libgadu using:"
881 echo "./autogen.sh --disable-libgadu-openssl --disable-static --enable-shared" 916 echo "./autogen.sh --disable-libgadu-openssl --disable-static --enable-shared"
882 echo "Then rerun this ./configure" 917 echo "Then rerun this ./configure"
883 echo 918 echo
919 echo "Falling back to using our own copy of libgadu"
884 echo 920 echo
885 GADU_LIBS="" 921 GADU_LIBS=""
886 GADU_CFLAGS="" 922 GADU_CFLAGS=""
887 gadu_libs=no 923 gadu_libs=no
888 ]) 924 ])
892 AM_CONDITIONAL(USE_INTERNAL_LIBGADU, test "x$gadu_libs" != "xyes") 928 AM_CONDITIONAL(USE_INTERNAL_LIBGADU, test "x$gadu_libs" != "xyes")
893 929
894 AC_SUBST(GADU_LIBS) 930 AC_SUBST(GADU_LIBS)
895 AC_SUBST(GADU_CFLAGS) 931 AC_SUBST(GADU_CFLAGS)
896 932
933 # uncomment the next line to make MSNP14 the available
934 # AC_ARG_ENABLE(msnp14,[AC_HELP_STRING([--enable-msnp14], [Disable the newer MSNP14 protocol])],,enable_msnp14=no)
935 enable_msnp14=no
897 936
898 AC_ARG_ENABLE(distrib,,,enable_distrib=no) 937 AC_ARG_ENABLE(distrib,,,enable_distrib=no)
899 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") 938 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes")
900 DYNAMIC_PRPLS=all 939 DYNAMIC_PRPLS=all
901 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=""]) 940 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=""])
911 fi 950 fi
912 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then 951 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
913 if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then 952 if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then
914 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'` 953 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'`
915 fi 954 fi
955 fi
956 if test "x$enable_msnp14" != "xyes" ; then
957 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/msn/msnp9/'`
916 fi 958 fi
917 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then 959 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
918 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc/silc10/'` 960 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc/silc10/'`
919 fi 961 fi
920 if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then 962 if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then
936 else 978 else
937 if test "x$i" = "xsilc"; then 979 if test "x$i" = "xsilc"; then
938 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib${i}purple.a" 980 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib${i}purple.a"
939 elif test "x$i" = "xsilc10"; then 981 elif test "x$i" = "xsilc10"; then
940 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/libsilcpurple.a" 982 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/libsilcpurple.a"
983 elif test "x$i" = "xmsnp9"; then
984 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/libmsn.a"
941 else 985 else
942 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib$i.a" 986 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib$i.a"
943 fi 987 fi
944 extern_init="$extern_init extern gboolean purple_init_${i}_plugin();" 988 extern_init="$extern_init extern gboolean purple_init_${i}_plugin();"
945 load_proto="$load_proto purple_init_${i}_plugin();" 989 load_proto="$load_proto purple_init_${i}_plugin();"
948 bonjour) static_bonjour=yes ;; 992 bonjour) static_bonjour=yes ;;
949 gg) static_gg=yes ;; 993 gg) static_gg=yes ;;
950 irc) static_irc=yes ;; 994 irc) static_irc=yes ;;
951 jabber) static_jabber=yes ;; 995 jabber) static_jabber=yes ;;
952 msn) static_msn=yes ;; 996 msn) static_msn=yes ;;
997 msnp9) static_msn=yes ;;
953 myspace) static_myspace=yes ;; 998 myspace) static_myspace=yes ;;
954 novell) static_novell=yes ;; 999 novell) static_novell=yes ;;
955 oscar) static_oscar=yes ;; 1000 oscar) static_oscar=yes ;;
956 aim) static_oscar=yes ;; 1001 aim) static_oscar=yes ;;
957 icq) static_oscar=yes ;; 1002 icq) static_oscar=yes ;;
995 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then 1040 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
996 if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then 1041 if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then
997 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'` 1042 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'`
998 fi 1043 fi
999 fi 1044 fi
1045 if test "x$enable_msnp14" != "xyes" ; then
1046 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/msn/msnp9/'`
1047 fi
1000 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then 1048 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
1001 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc/silc10/'` 1049 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc/silc10/'`
1002 fi 1050 fi
1003 if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then 1051 if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then
1004 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc10//'` 1052 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc10//'`
1009 bonjour) dynamic_bonjour=yes ;; 1057 bonjour) dynamic_bonjour=yes ;;
1010 gg) dynamic_gg=yes ;; 1058 gg) dynamic_gg=yes ;;
1011 irc) dynamic_irc=yes ;; 1059 irc) dynamic_irc=yes ;;
1012 jabber) dynamic_jabber=yes ;; 1060 jabber) dynamic_jabber=yes ;;
1013 msn) dynamic_msn=yes ;; 1061 msn) dynamic_msn=yes ;;
1062 msnp9) dynamic_msn=yes ;;
1014 myspace) dynamic_myspace=yes ;; 1063 myspace) dynamic_myspace=yes ;;
1015 novell) dynamic_novell=yes ;; 1064 novell) dynamic_novell=yes ;;
1016 oscar) dynamic_oscar=yes ;; 1065 oscar) dynamic_oscar=yes ;;
1017 aim) dynamic_oscar=yes ;; 1066 aim) dynamic_oscar=yes ;;
1018 icq) dynamic_oscar=yes ;; 1067 icq) dynamic_oscar=yes ;;
1966 AC_SUBST(LIBS) 2015 AC_SUBST(LIBS)
1967 2016
1968 if test "x$enable_plugins" = "xyes" ; then 2017 if test "x$enable_plugins" = "xyes" ; then
1969 AC_DEFINE(PURPLE_PLUGINS, 1, [Define if plugins are enabled.]) 2018 AC_DEFINE(PURPLE_PLUGINS, 1, [Define if plugins are enabled.])
1970 AM_CONDITIONAL(PLUGINS, true) 2019 AM_CONDITIONAL(PLUGINS, true)
2020 PLUGINS_DEFINE="#define PURPLE_PLUGINS 1"
1971 else 2021 else
1972 AM_CONDITIONAL(PLUGINS, false) 2022 AM_CONDITIONAL(PLUGINS, false)
1973 fi 2023 PLUGINS_DEFINE="#undef PURPLE_PLUGINS"
2024 fi
2025 AC_SUBST(PLUGINS_DEFINE)
1974 2026
1975 dnl ####################################################################### 2027 dnl #######################################################################
1976 dnl # Check for Cyrus-SASL (for Jabber) 2028 dnl # Check for Cyrus-SASL (for Jabber)
1977 dnl ####################################################################### 2029 dnl #######################################################################
1978 dnl AC_CHECK_SIZEOF(short) 2030 dnl AC_CHECK_SIZEOF(short)
2165 pidgin.apspec 2217 pidgin.apspec
2166 pidgin/Makefile 2218 pidgin/Makefile
2167 pidgin/pidgin.pc 2219 pidgin/pidgin.pc
2168 pidgin/pidgin-uninstalled.pc 2220 pidgin/pidgin-uninstalled.pc
2169 pidgin/pixmaps/Makefile 2221 pidgin/pixmaps/Makefile
2170 pidgin/pixmaps/animations/Makefile
2171 pidgin/pixmaps/animations/16/Makefile
2172 pidgin/pixmaps/buddy_icons/Makefile
2173 pidgin/pixmaps/buddy_icons/qq/Makefile 2222 pidgin/pixmaps/buddy_icons/qq/Makefile
2174 pidgin/pixmaps/dialogs/Makefile
2175 pidgin/pixmaps/dialogs/16/Makefile
2176 pidgin/pixmaps/dialogs/16/scalable/Makefile
2177 pidgin/pixmaps/dialogs/64/Makefile
2178 pidgin/pixmaps/dialogs/64/scalable/Makefile
2179 pidgin/pixmaps/emblems/Makefile
2180 pidgin/pixmaps/emblems/16/Makefile
2181 pidgin/pixmaps/emblems/16/scalable/Makefile
2182 pidgin/pixmaps/emotes/Makefile
2183 pidgin/pixmaps/emotes/default/Makefile
2184 pidgin/pixmaps/emotes/default/24/Makefile 2223 pidgin/pixmaps/emotes/default/24/Makefile
2185 pidgin/pixmaps/emotes/default/24/scalable/Makefile
2186 pidgin/pixmaps/emotes/none/Makefile 2224 pidgin/pixmaps/emotes/none/Makefile
2187 pidgin/pixmaps/icons/Makefile
2188 pidgin/pixmaps/icons/16/Makefile
2189 pidgin/pixmaps/icons/16/scalable/Makefile
2190 pidgin/pixmaps/icons/22/Makefile
2191 pidgin/pixmaps/icons/22/scalable/Makefile
2192 pidgin/pixmaps/icons/24/Makefile
2193 pidgin/pixmaps/icons/24/scalable/Makefile
2194 pidgin/pixmaps/icons/32/Makefile
2195 pidgin/pixmaps/icons/32/scalable/Makefile
2196 pidgin/pixmaps/icons/48/Makefile
2197 pidgin/pixmaps/icons/48/scalable/Makefile
2198 pidgin/pixmaps/protocols/Makefile
2199 pidgin/pixmaps/protocols/16/Makefile
2200 pidgin/pixmaps/protocols/16/scalable/Makefile
2201 pidgin/pixmaps/protocols/22/Makefile
2202 pidgin/pixmaps/protocols/22/scalable/Makefile
2203 pidgin/pixmaps/protocols/48/Makefile
2204 pidgin/pixmaps/protocols/48/scalable/Makefile
2205 pidgin/pixmaps/status/Makefile
2206 pidgin/pixmaps/status/11/Makefile
2207 pidgin/pixmaps/status/11/scalable/Makefile
2208 pidgin/pixmaps/status/11/rtl/Makefile
2209 pidgin/pixmaps/status/16/Makefile
2210 pidgin/pixmaps/status/16/rtl/Makefile
2211 pidgin/pixmaps/status/16/scalable/Makefile
2212 pidgin/pixmaps/status/22/Makefile
2213 pidgin/pixmaps/status/22/rtl/Makefile
2214 pidgin/pixmaps/status/22/scalable/Makefile
2215 pidgin/pixmaps/status/32/Makefile
2216 pidgin/pixmaps/status/32/rtl/Makefile
2217 pidgin/pixmaps/status/32/scalable/Makefile
2218 pidgin/pixmaps/status/48/Makefile
2219 pidgin/pixmaps/status/48/rtl/Makefile
2220 pidgin/pixmaps/toolbar/Makefile
2221 pidgin/pixmaps/toolbar/16/Makefile
2222 pidgin/pixmaps/toolbar/16/scalable/Makefile
2223 pidgin/pixmaps/toolbar/22/Makefile
2224 pidgin/pixmaps/toolbar/22/scalable/Makefile
2225 pidgin/pixmaps/tray/Makefile
2226 pidgin/pixmaps/tray/16/Makefile
2227 pidgin/pixmaps/tray/16/scalable/Makefile
2228 pidgin/pixmaps/tray/22/Makefile
2229 pidgin/pixmaps/tray/22/scalable/Makefile
2230 pidgin/pixmaps/tray/32/Makefile
2231 pidgin/pixmaps/tray/48/Makefile
2232 pidgin/plugins/Makefile 2225 pidgin/plugins/Makefile
2233 pidgin/plugins/cap/Makefile 2226 pidgin/plugins/cap/Makefile
2234 pidgin/plugins/gestures/Makefile 2227 pidgin/plugins/gestures/Makefile
2235 pidgin/plugins/gevolution/Makefile 2228 pidgin/plugins/gevolution/Makefile
2236 pidgin/plugins/musicmessaging/Makefile 2229 pidgin/plugins/musicmessaging/Makefile
2254 libpurple/protocols/bonjour/Makefile 2247 libpurple/protocols/bonjour/Makefile
2255 libpurple/protocols/gg/Makefile 2248 libpurple/protocols/gg/Makefile
2256 libpurple/protocols/irc/Makefile 2249 libpurple/protocols/irc/Makefile
2257 libpurple/protocols/jabber/Makefile 2250 libpurple/protocols/jabber/Makefile
2258 libpurple/protocols/msn/Makefile 2251 libpurple/protocols/msn/Makefile
2252 libpurple/protocols/msnp9/Makefile
2259 libpurple/protocols/myspace/Makefile 2253 libpurple/protocols/myspace/Makefile
2260 libpurple/protocols/novell/Makefile 2254 libpurple/protocols/novell/Makefile
2261 libpurple/protocols/null/Makefile 2255 libpurple/protocols/null/Makefile
2262 libpurple/protocols/oscar/Makefile 2256 libpurple/protocols/oscar/Makefile
2263 libpurple/protocols/qq/Makefile 2257 libpurple/protocols/qq/Makefile
2267 libpurple/protocols/simple/Makefile 2261 libpurple/protocols/simple/Makefile
2268 libpurple/protocols/toc/Makefile 2262 libpurple/protocols/toc/Makefile
2269 libpurple/protocols/yahoo/Makefile 2263 libpurple/protocols/yahoo/Makefile
2270 libpurple/protocols/zephyr/Makefile 2264 libpurple/protocols/zephyr/Makefile
2271 libpurple/tests/Makefile 2265 libpurple/tests/Makefile
2266 libpurple/purple.h
2272 libpurple/version.h 2267 libpurple/version.h
2273 share/Makefile
2274 share/sounds/Makefile 2268 share/sounds/Makefile
2275 share/ca-certs/Makefile 2269 share/ca-certs/Makefile
2276 finch/finch.pc 2270 finch/finch.pc
2277 finch/Makefile 2271 finch/Makefile
2278 finch/libgnt/Makefile 2272 finch/libgnt/Makefile