3 # version of this package
4 m4_define(pidgin_sipe_version, 1.2.0)
6 # lower and upper-bound versions of Pidgin
7 m4_define(pidgin_version_max, 2.0.0)
10 AM_INIT_AUTOMAKE(pidgin_sipe, pidgin_sipe_version)
19 LIBTOOL="$LIBTOOL --silent"
23 GAIM_MIN=pidgin_version_min
24 GAIM_MAX=pidgin_version_max
28 # tell pkgconfig to look in the same prefix we're installing this to,
29 # as that's likely where gaim will be found if it's not in the default
31 PREFIX=$ac_default_prefix
32 if test "$prefix" != "NONE"; then
36 PKG_CONFIG_PATH="$PKG_CONFIG_PATH":"$PREFIX/lib/pkgconfig"
37 export PKG_CONFIG_PATH
41 [ --enable-debug compile with debugging support],,
44 if test "$enable_debug" = yes; then
45 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
49 PKG_CHECK_MODULES(libpurple,
50 [pidgin >= pidgin_version_max],
52 AC_DEFINE(HAVE_PIDGIN, 1, [Define if we've found pidgin.])
55 PIDGIN_CFLAGS=`$PKG_CONFIG --cflags purple`
56 PIDGIN_LIBS=`$PKG_CONFIG --libs purple`
58 AC_SUBST(PIDGIN_CFLAGS)
61 dnl Check for inet_aton
62 AC_CHECK_FUNC(inet_aton, , [AC_CHECK_LIB(resolv, inet_aton, ,
63 [AC_ERROR(inet_aton not found)])])
65 SIPE_LIBA=`$PKG_CONFIG sipe --variable=libarchive`
68 AC_ARG_ENABLE(static-sipe,
69 [ --enable-static-sipe statically link in Simple Exchange],
70 sipe_static="yes", sipe_static="no")
72 AM_CONDITIONAL(SIPE_STATIC, test $sipe_static = yes)
74 # substitutions and generated files
89 echo -n "Simple Exchange linking mode... : "
90 if test "$sipe_static" = "yes" ; then
92 echo "Simple Exchange library... : $SIPE_LIBA"
98 echo configure complete, now run \`make\`