comparison configure.ac @ 19200:d470d42d2cb1

propagate from branch 'im.pidgin.pidgin' (head e687870673f02e5605b0bf9877fd579c78fe8c01) to branch 'im.pidgin.soc.2007.certmgr' (head d1d514d18e94b8444eef617bb29ee248c3a0a572)
author William Ehlhardt <williamehlhardt@gmail.com>
date Sun, 12 Aug 2007 20:48:34 +0000
parents afdb0b020d40
children 058bfbc4befe 829b00936eef c5f2e9b7b9ab
comparison
equal deleted inserted replaced
19096:81163e153778 19200:d470d42d2cb1
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], [1]) 46 m4_define([purple_lt_current], [1])
47 m4_define([purple_major_version], [2]) 47 m4_define([purple_major_version], [2])
48 m4_define([purple_minor_version], [1]) 48 m4_define([purple_minor_version], [1])
49 m4_define([purple_micro_version], [0]) 49 m4_define([purple_micro_version], [1])
50 m4_define([purple_version_suffix], []) 50 m4_define([purple_version_suffix], [devel])
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
55 m4_define([gnt_lt_current], [1]) 55 m4_define([gnt_lt_current], [1])
56 m4_define([gnt_major_version], [2]) 56 m4_define([gnt_major_version], [2])
57 m4_define([gnt_minor_version], [0]) 57 m4_define([gnt_minor_version], [1])
58 m4_define([gnt_micro_version], [0]) 58 m4_define([gnt_micro_version], [0])
59 m4_define([gnt_version_suffix], []) 59 m4_define([gnt_version_suffix], [devel])
60 m4_define([gnt_version], 60 m4_define([gnt_version],
61 [gnt_major_version.gnt_minor_version.gnt_micro_version]) 61 [gnt_major_version.gnt_minor_version.gnt_micro_version])
62 m4_define([gnt_display_version], gnt_version[]m4_ifdef([gnt_version_suffix],[gnt_version_suffix])) 62 m4_define([gnt_display_version], gnt_version[]m4_ifdef([gnt_version_suffix],[gnt_version_suffix]))
63 63
64 64
591 ]) 591 ])
592 AC_SUBST(MEANWHILE_CFLAGS) 592 AC_SUBST(MEANWHILE_CFLAGS)
593 AC_SUBST(MEANWHILE_LIBS) 593 AC_SUBST(MEANWHILE_LIBS)
594 594
595 dnl ####################################################################### 595 dnl #######################################################################
596 dnl # Check for Native Avahi headers (for Bonjour)
597 dnl #######################################################################
598 AC_ARG_WITH(avahi-client-includes, [AC_HELP_STRING([--with-avahi-client-includes=DIR], [compile the Bonjour plugin against the Avahi Client includes in DIR])], [ac_avahi_client_includes="$withval"], [ac_avahi_client_includes="no"])
599 AC_ARG_WITH(avahi-client-libs, [AC_HELP_STRING([--with-avahi-client-libs=DIR], [compile the Bonjour plugin against the Avahi Client libs in DIR])], [ac_avahi_client_libs="$withval"], [ac_avahi_client_libs="no"])
600 AVAHI_CFLAGS=""
601 AVAHI_LIBS=""
602
603 dnl Attempt to autodetect Avahi
604 PKG_CHECK_MODULES(AVAHI, [avahi-client avahi-glib], [
605 avahiincludes="yes"
606 avahilibs="yes"
607 ], [
608 AC_MSG_RESULT(no)
609 avahiincludes="no"
610 avahilibs="no"
611 ])
612
613 dnl Override AVAHI_CFLAGS if the user specified an include dir
614 if test "$ac_avahi_client_includes" != "no"; then
615 AVAHI_CFLAGS="-I$ac_avahi_client_includes"
616 fi
617 CPPFLAGS_save="$CPPFLAGS"
618 CPPFLAGS="$CPPFLAGS $AVAHI_CFLAGS"
619 AC_CHECK_HEADER(avahi-client/client.h, [avahiincludes=yes], [avahiincludes=no])
620 CPPFLAGS="$CPPFLAGS $AVAHI_CFLAGS $GLIB_CFLAGS"
621 AC_CHECK_HEADER(avahi-glib/glib-malloc.h, [avahiincludes=yes], [avahiincludes=no])
622 CPPFLAGS="$CPPFLAGS_save"
623
624 dnl Override AVAHI_LIBS if the user specified a libs dir
625 if test "$ac_avahi_client_libs" != "no"; then
626 AVAHI_LIBS="-L$ac_avahi_client_libs -lavahi-common -lavahi-client -lavahi-glib "
627 fi
628 AC_CHECK_LIB(avahi-client, avahi_client_new, [avahilibs=yes], [avahilibs=no], $AVAHI_LIBS)
629
630 AC_SUBST(AVAHI_CFLAGS)
631 AC_SUBST(AVAHI_LIBS)
632
633 AM_CONDITIONAL(MDNS_AVAHI, test "x$avahiincludes" = "xyes" -a "x$avahilibs" = "xyes")
634
635 dnl #######################################################################
596 dnl # Check for Howl headers (for Bonjour) 636 dnl # Check for Howl headers (for Bonjour)
597 dnl ####################################################################### 637 dnl #######################################################################
598 AC_ARG_WITH(howl-includes, [AC_HELP_STRING([--with-howl-includes=DIR], [compile the Bonjour plugin against the Howl includes in DIR])], [ac_howl_includes="$withval"], [ac_howl_includes="no"]) 638 AC_ARG_WITH(howl-includes, [AC_HELP_STRING([--with-howl-includes=DIR], [compile the Bonjour plugin against the Howl includes in DIR])], [ac_howl_includes="$withval"], [ac_howl_includes="no"])
599 AC_ARG_WITH(howl-libs, [AC_HELP_STRING([--with-howl-libs=DIR], [compile the Bonjour plugin against the Howl libs in DIR])], [ac_howl_libs="$withval"], [ac_howl_libs="no"]) 639 AC_ARG_WITH(howl-libs, [AC_HELP_STRING([--with-howl-libs=DIR], [compile the Bonjour plugin against the Howl libs in DIR])], [ac_howl_libs="$withval"], [ac_howl_libs="no"])
600 HOWL_CFLAGS="" 640 HOWL_CFLAGS=""
601 HOWL_LIBS="" 641 HOWL_LIBS=""
602 642
603 dnl Attempt to autodetect avahi-compat-howl 643 dnl Attempt to autodetect avahi-compat-howl
644 dnl TODO: (This should be removed when the native avahi stuff is stable)
604 PKG_CHECK_MODULES(HOWL, avahi-compat-howl, [ 645 PKG_CHECK_MODULES(HOWL, avahi-compat-howl, [
605 howlincludes="yes" 646 howlincludes="yes"
606 howllibs="yes" 647 howllibs="yes"
607 ], [ 648 ], [
608 AC_MSG_RESULT(no) 649 AC_MSG_RESULT(no)
637 fi 678 fi
638 AC_CHECK_LIB(howl, sw_discovery_init, [howllibs=yes], [howllibs=no], $HOWL_LIBS) 679 AC_CHECK_LIB(howl, sw_discovery_init, [howllibs=yes], [howllibs=no], $HOWL_LIBS)
639 680
640 AC_SUBST(HOWL_CFLAGS) 681 AC_SUBST(HOWL_CFLAGS)
641 AC_SUBST(HOWL_LIBS) 682 AC_SUBST(HOWL_LIBS)
683
684 AM_CONDITIONAL(MDNS_HOWL, test "x$howlincludes" = "xyes" -a "x$howllibs" = "xyes")
685
642 686
643 dnl ####################################################################### 687 dnl #######################################################################
644 dnl # Check for SILC client includes and libraries 688 dnl # Check for SILC client includes and libraries
645 dnl ####################################################################### 689 dnl #######################################################################
646 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"]) 690 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"])
817 STATIC_PRPLS="bonjour gg irc jabber msn novell oscar qq sametime silc simple yahoo zephyr" 861 STATIC_PRPLS="bonjour gg irc jabber msn novell oscar qq sametime silc simple yahoo zephyr"
818 fi 862 fi
819 if test "x$have_meanwhile" != "xyes" ; then 863 if test "x$have_meanwhile" != "xyes" ; then
820 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'` 864 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'`
821 fi 865 fi
822 if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then 866 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
823 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'` 867 if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then
868 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'`
869 fi
824 fi 870 fi
825 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then 871 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
826 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc/silc10/'` 872 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc/silc10/'`
827 fi 873 fi
828 if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then 874 if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then
871 yahoo) static_yahoo=yes ;; 917 yahoo) static_yahoo=yes ;;
872 zephyr) static_zephyr=yes ;; 918 zephyr) static_zephyr=yes ;;
873 *) echo "Invalid static protocol $i!!" ; exit ;; 919 *) echo "Invalid static protocol $i!!" ; exit ;;
874 esac 920 esac
875 done 921 done
876 AM_CONDITIONAL(STATIC_BONJOUR, test "x$static_bonjour" = "xyes" -a "x$howlincludes" = "xyes" -a "x$howllibs" = "xyes") 922 AM_CONDITIONAL(STATIC_BONJOUR, test "x$static_bonjour" = "xyes")
877 AM_CONDITIONAL(STATIC_GG, test "x$static_gg" = "xyes") 923 AM_CONDITIONAL(STATIC_GG, test "x$static_gg" = "xyes")
878 AM_CONDITIONAL(STATIC_IRC, test "x$static_irc" = "xyes") 924 AM_CONDITIONAL(STATIC_IRC, test "x$static_irc" = "xyes")
879 AM_CONDITIONAL(STATIC_JABBER, test "x$static_jabber" = "xyes") 925 AM_CONDITIONAL(STATIC_JABBER, test "x$static_jabber" = "xyes")
880 AM_CONDITIONAL(STATIC_MSN, test "x$static_msn" = "xyes") 926 AM_CONDITIONAL(STATIC_MSN, test "x$static_msn" = "xyes")
881 AM_CONDITIONAL(STATIC_NOVELL, test "x$static_novell" = "xyes") 927 AM_CONDITIONAL(STATIC_NOVELL, test "x$static_novell" = "xyes")
896 DYNAMIC_PRPLS="bonjour gg irc jabber msn novell oscar qq sametime silc simple yahoo zephyr" 942 DYNAMIC_PRPLS="bonjour gg irc jabber msn novell oscar qq sametime silc simple yahoo zephyr"
897 fi 943 fi
898 if test "x$have_meanwhile" != "xyes"; then 944 if test "x$have_meanwhile" != "xyes"; then
899 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'` 945 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'`
900 fi 946 fi
901 if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then 947 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
902 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'` 948 if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then
949 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'`
950 fi
903 fi 951 fi
904 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then 952 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
905 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc/silc10/'` 953 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc/silc10/'`
906 fi 954 fi
907 if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then 955 if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then
928 yahoo) dynamic_yahoo=yes ;; 976 yahoo) dynamic_yahoo=yes ;;
929 zephyr) dynamic_zephyr=yes ;; 977 zephyr) dynamic_zephyr=yes ;;
930 *) echo "Invalid dynamic protocol $i!!" ; exit ;; 978 *) echo "Invalid dynamic protocol $i!!" ; exit ;;
931 esac 979 esac
932 done 980 done
933 AM_CONDITIONAL(DYNAMIC_BONJOUR, test "x$dynamic_bonjour" = "xyes" -a "x$bonjourincludes" = "xyes" -a "x$bonjourclient" = "xyes") 981 AM_CONDITIONAL(DYNAMIC_BONJOUR, test "x$dynamic_bonjour" = "xyes" -a [ [ "x$avahiincludes" = "xyes" -a "x$avahilibs " = "xyes" ] -o [ "x$howlincludes" = "xyes" -a "x$howllibs" = "xyes" ] ] )
934 AM_CONDITIONAL(DYNAMIC_GG, test "x$dynamic_gg" = "xyes") 982 AM_CONDITIONAL(DYNAMIC_GG, test "x$dynamic_gg" = "xyes")
935 AM_CONDITIONAL(DYNAMIC_IRC, test "x$dynamic_irc" = "xyes") 983 AM_CONDITIONAL(DYNAMIC_IRC, test "x$dynamic_irc" = "xyes")
936 AM_CONDITIONAL(DYNAMIC_JABBER, test "x$dynamic_jabber" = "xyes") 984 AM_CONDITIONAL(DYNAMIC_JABBER, test "x$dynamic_jabber" = "xyes")
937 AM_CONDITIONAL(DYNAMIC_MSN, test "x$dynamic_msn" = "xyes") 985 AM_CONDITIONAL(DYNAMIC_MSN, test "x$dynamic_msn" = "xyes")
938 AM_CONDITIONAL(DYNAMIC_NOVELL, test "x$dynamic_novell" = "xyes") 986 AM_CONDITIONAL(DYNAMIC_NOVELL, test "x$dynamic_novell" = "xyes")
2035 [compile with debugging support])], , enable_debug=no) 2083 [compile with debugging support])], , enable_debug=no)
2036 2084
2037 if test "x$enable_debug" = "xyes" ; then 2085 if test "x$enable_debug" = "xyes" ; then
2038 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) 2086 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
2039 fi 2087 fi
2088
2089 AM_CONDITIONAL(PURPLE_AVAILABLE, true)
2040 2090
2041 AC_OUTPUT([Makefile 2091 AC_OUTPUT([Makefile
2042 Doxyfile 2092 Doxyfile
2043 doc/Makefile 2093 doc/Makefile
2044 doc/pidgin.1 2094 doc/pidgin.1
2114 pidgin/plugins/gevolution/Makefile 2164 pidgin/plugins/gevolution/Makefile
2115 pidgin/plugins/musicmessaging/Makefile 2165 pidgin/plugins/musicmessaging/Makefile
2116 pidgin/plugins/perl/Makefile 2166 pidgin/plugins/perl/Makefile
2117 pidgin/plugins/perl/common/Makefile.PL 2167 pidgin/plugins/perl/common/Makefile.PL
2118 pidgin/plugins/ticker/Makefile 2168 pidgin/plugins/ticker/Makefile
2119 pidgin/sounds/Makefile
2120 libpurple/example/Makefile 2169 libpurple/example/Makefile
2121 libpurple/gconf/Makefile 2170 libpurple/gconf/Makefile
2122 libpurple/purple.pc 2171 libpurple/purple.pc
2123 libpurple/purple-uninstalled.pc 2172 libpurple/purple-uninstalled.pc
2124 libpurple/plugins/Makefile 2173 libpurple/plugins/Makefile
2147 libpurple/protocols/toc/Makefile 2196 libpurple/protocols/toc/Makefile
2148 libpurple/protocols/yahoo/Makefile 2197 libpurple/protocols/yahoo/Makefile
2149 libpurple/protocols/zephyr/Makefile 2198 libpurple/protocols/zephyr/Makefile
2150 libpurple/tests/Makefile 2199 libpurple/tests/Makefile
2151 libpurple/version.h 2200 libpurple/version.h
2201 share/Makefile
2202 share/sounds/Makefile
2152 finch/Makefile 2203 finch/Makefile
2153 finch/libgnt/Makefile 2204 finch/libgnt/Makefile
2154 finch/libgnt/gnt.pc 2205 finch/libgnt/gnt.pc
2155 finch/libgnt/wms/Makefile 2206 finch/libgnt/wms/Makefile
2156 finch/plugins/Makefile 2207 finch/plugins/Makefile