comparison configure.ac @ 21882:6332fbeeab27

propagate from branch 'im.pidgin.pidgin' (head 1d77c730a1160c77d14354d4ce61455e59c94fbc) to branch 'im.pidgin.pidgin.sadrul.tooltips' (head 171ddd847ab5e59a2d8e1f67c8773930b6a425a4)
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 12 Dec 2007 00:11:11 +0000
parents 41959f031322
children a0b0d20ba15a
comparison
equal deleted inserted replaced
21881:a69a4307c9a8 21882:6332fbeeab27
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], [3]) 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], [3]) 48 m4_define([purple_minor_version], [3])
49 m4_define([purple_micro_version], [1]) 49 m4_define([purple_micro_version], [2])
50 m4_define([purple_version_suffix], [devel]) 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], [3]) 55 m4_define([gnt_lt_current], [3])
56 m4_define([gnt_major_version], [2]) 56 m4_define([gnt_major_version], [2])
57 m4_define([gnt_minor_version], [3]) 57 m4_define([gnt_minor_version], [3])
58 m4_define([gnt_micro_version], [1]) 58 m4_define([gnt_micro_version], [2])
59 m4_define([gnt_version_suffix], [devel]) 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
720 AC_CHECK_LIB(avahi-client, avahi_client_new, [avahilibs=yes], [avahilibs=no], $AVAHI_LIBS) 720 AC_CHECK_LIB(avahi-client, avahi_client_new, [avahilibs=yes], [avahilibs=no], $AVAHI_LIBS)
721 721
722 AC_SUBST(AVAHI_CFLAGS) 722 AC_SUBST(AVAHI_CFLAGS)
723 AC_SUBST(AVAHI_LIBS) 723 AC_SUBST(AVAHI_LIBS)
724 724
725 AM_CONDITIONAL(MDNS_AVAHI, test "x$avahiincludes" = "xyes" -a "x$avahilibs" = "xyes")
726
727 dnl #######################################################################
728 dnl # Check for Howl headers (for Bonjour)
729 dnl #######################################################################
730 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"])
731 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"])
732 HOWL_CFLAGS=""
733 HOWL_LIBS=""
734
735 dnl Attempt to autodetect avahi-compat-howl
736 dnl TODO: (This should be removed when the native avahi stuff is stable)
737 PKG_CHECK_MODULES(HOWL, avahi-compat-howl, [
738 howlincludes="yes"
739 howllibs="yes"
740 ], [
741 AC_MSG_RESULT(no)
742 howlincludes="no"
743 howllibs="no"
744 ])
745
746 dnl Attempt to autodetect Howl
747 if test "x$howlincludes" = "xno"; then
748 PKG_CHECK_MODULES(HOWL, howl, [
749 howlincludes="yes"
750 howllibs="yes"
751 ], [
752 AC_MSG_RESULT(no)
753 howlincludes="no"
754 howllibs="no"
755 ])
756 fi
757
758 dnl Override HOWL_CFLAGS if the user specified an include dir
759 if test "$ac_howl_includes" != "no"; then
760 HOWL_CFLAGS="-I$ac_howl_includes"
761 fi
762 CPPFLAGS_save="$CPPFLAGS"
763 CPPFLAGS="$CPPFLAGS $HOWL_CFLAGS"
764 AC_CHECK_HEADER(howl.h, [howlincludes=yes], [howlincludes=no])
765 CPPFLAGS="$CPPFLAGS_save"
766
767 dnl Override HOWL_LIBS if the user specified a libs dir
768 if test "$ac_howl_libs" != "no"; then
769 HOWL_LIBS="-L$ac_howl_libs -lhowl"
770 fi
771 AC_CHECK_LIB(howl, sw_discovery_init, [howllibs=yes], [howllibs=no], $HOWL_LIBS)
772
773 AC_SUBST(HOWL_CFLAGS)
774 AC_SUBST(HOWL_LIBS)
775
776 AM_CONDITIONAL(MDNS_HOWL, test "x$howlincludes" = "xyes" -a "x$howllibs" = "xyes")
777
778 725
779 dnl ####################################################################### 726 dnl #######################################################################
780 dnl # Check for SILC client includes and libraries 727 dnl # Check for SILC client includes and libraries
781 dnl ####################################################################### 728 dnl #######################################################################
782 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"]) 729 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"])
958 fi 905 fi
959 if test "x$have_meanwhile" != "xyes" ; then 906 if test "x$have_meanwhile" != "xyes" ; then
960 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'` 907 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'`
961 fi 908 fi
962 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then 909 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
963 if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then 910 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'`
964 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'`
965 fi
966 fi 911 fi
967 if test "x$enable_msnp14" != "xyes" ; then 912 if test "x$enable_msnp14" != "xyes" ; then
968 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/msn/msnp9/'` 913 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/msn/msnp9/'`
969 fi 914 fi
970 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then 915 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
1047 fi 992 fi
1048 if test "x$have_meanwhile" != "xyes"; then 993 if test "x$have_meanwhile" != "xyes"; then
1049 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'` 994 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'`
1050 fi 995 fi
1051 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then 996 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
1052 if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then 997 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'`
1053 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'`
1054 fi
1055 fi 998 fi
1056 if test "x$enable_msnp14" != "xyes" ; then 999 if test "x$enable_msnp14" != "xyes" ; then
1057 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/msn/msnp9/'` 1000 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/msn/msnp9/'`
1058 fi 1001 fi
1059 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then 1002 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
1085 yahoo) dynamic_yahoo=yes ;; 1028 yahoo) dynamic_yahoo=yes ;;
1086 zephyr) dynamic_zephyr=yes ;; 1029 zephyr) dynamic_zephyr=yes ;;
1087 *) echo "Invalid dynamic protocol $i!!" ; exit ;; 1030 *) echo "Invalid dynamic protocol $i!!" ; exit ;;
1088 esac 1031 esac
1089 done 1032 done
1090 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" ] ] ) 1033 AM_CONDITIONAL(DYNAMIC_BONJOUR, test "x$dynamic_bonjour" = "xyes" -a [ "x$avahiincludes" = "xyes" -a "x$avahilibs " = "xyes" ] )
1091 AM_CONDITIONAL(DYNAMIC_GG, test "x$dynamic_gg" = "xyes") 1034 AM_CONDITIONAL(DYNAMIC_GG, test "x$dynamic_gg" = "xyes")
1092 AM_CONDITIONAL(DYNAMIC_IRC, test "x$dynamic_irc" = "xyes") 1035 AM_CONDITIONAL(DYNAMIC_IRC, test "x$dynamic_irc" = "xyes")
1093 AM_CONDITIONAL(DYNAMIC_JABBER, test "x$dynamic_jabber" = "xyes") 1036 AM_CONDITIONAL(DYNAMIC_JABBER, test "x$dynamic_jabber" = "xyes")
1094 AM_CONDITIONAL(DYNAMIC_MSN, test "x$dynamic_msn" = "xyes") 1037 AM_CONDITIONAL(DYNAMIC_MSN, test "x$dynamic_msn" = "xyes")
1095 AM_CONDITIONAL(DYNAMIC_MYSPACE, test "x$dynamic_myspace" = "xyes") 1038 AM_CONDITIONAL(DYNAMIC_MYSPACE, test "x$dynamic_myspace" = "xyes")
1333 else 1276 else
1334 echo "Building without D-Bus support" 1277 echo "Building without D-Bus support"
1335 fi 1278 fi
1336 1279
1337 AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes") 1280 AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes")
1281
1282 dnl Check for Python headers (currently useful only for libgnt)
1283 dnl (Thanks to XChat)
1284 AC_PATH_PROG(pythonpath, python)
1285 if test "_$pythonpath" != _ ; then
1286 AC_MSG_CHECKING(for Python compile flags)
1287 PY_PREFIX=`$pythonpath -c 'import sys ; print sys.prefix'`
1288 PY_EXEC_PREFIX=`$pythonpath -c 'import sys ; print sys.exec_prefix'`
1289 changequote(<<, >>)dnl
1290 PY_VERSION=`$pythonpath -c 'import sys ; print sys.version[0:3]'`
1291 PY_MAJOR=`$pythonpath -c 'import sys ; print sys.version[0:2]'`
1292 changequote([, ])dnl
1293 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h -a "$PY_MAJOR" = "2."; then
1294 AC_CHECK_LIB(pthread, pthread_create, )
1295 AC_CHECK_LIB(util, openpty, )
1296 AC_CHECK_LIB(db, dbopen, )
1297 PY_LIBS="-lpython$PY_VERSION -L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config"
1298 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
1299 AC_DEFINE(USE_PYTHON, [1], [Define if python headers are available.])
1300 AC_MSG_RESULT(ok)
1301 else
1302 AC_MSG_RESULT([Can't find Python.h])
1303 PY_LIBS=""
1304 PY_CFLAGS=""
1305 fi
1306 fi
1307 AC_SUBST(PY_CFLAGS)
1308 AC_SUBST(PY_LIBS)
1338 1309
1339 dnl ####################################################################### 1310 dnl #######################################################################
1340 dnl # Check for Mono support 1311 dnl # Check for Mono support
1341 dnl ####################################################################### 1312 dnl #######################################################################
1342 AC_ARG_ENABLE(mono, [AC_HELP_STRING([--enable-mono], [compile with Mono runtime support (experimental)])], , enable_mono=no) 1313 AC_ARG_ENABLE(mono, [AC_HELP_STRING([--enable-mono], [compile with Mono runtime support (experimental)])], , enable_mono=no)