Added UUID-Mac-Address support, and other details for presence
[siplcs.git] / configure.ac
blob7300a790261a06b70877c991592500a082a40bed
1 # version of this package
2 m4_define(pidgin_sipe_version,  1.3.0)
4 # lower and upper-bound versions of Pidgin
5 m4_define(pidgin_version_max,           2.0.0)
7 AC_INIT([pidgin-sipe], [1.3.0])
9 AC_PREREQ([2.50])
10 AM_INIT_AUTOMAKE([1.9 dist-bzip2 tar-ustar])
12 AC_DISABLE_STATIC
14 AC_PROG_CC
15 AC_PROG_INSTALL
16 AC_PROG_LIBTOOL
17 LIBTOOL="$LIBTOOL --silent"
19 AC_HEADER_STDC
21 GAIM_MIN=pidgin_version_min
22 GAIM_MAX=pidgin_version_max
23 AC_SUBST(PIDGIN_MIN)
24 AC_SUBST(PIDGIN_MAX)
26 # tell pkgconfig to look in the same prefix we're installing this to,
27 # as that's likely where gaim will be found if it's not in the default
28 # pkgconfig path
29 PREFIX=$ac_default_prefix
30 if test "$prefix" != "NONE"; then
31    PREFIX=$prefix
34 PKG_CONFIG_PATH="$PKG_CONFIG_PATH":"$PREFIX/lib/pkgconfig"
35 export PKG_CONFIG_PATH
37 # debug mode
38 AC_ARG_ENABLE(debug,
39         [  --enable-debug         compile with debugging support],,
40         enable_debug=no)
42 if test "$enable_debug" = yes; then
43    AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
46 # Check for Pidgin
47 PKG_CHECK_MODULES(libpurple,
48 [pidgin >= pidgin_version_max],
50         AC_DEFINE(HAVE_PIDGIN, 1, [Define if we've found pidgin.])
53 PIDGIN_CFLAGS=`$PKG_CONFIG --cflags purple`
54 PIDGIN_LIBS=`$PKG_CONFIG --libs purple`
56 AC_SUBST(PIDGIN_CFLAGS)
57 AC_SUBST(PIDGIN_LIBS)
59 dnl Check for inet_aton
60 AC_CHECK_FUNC(inet_aton, , [AC_CHECK_LIB(resolv, inet_aton, ,
61                                          [AC_ERROR(inet_aton not found)])])
63 SIPE_LIBA=`$PKG_CONFIG sipe --variable=libarchive`
64 AC_SUBST(SIPE_LIBA)
66 AC_ARG_ENABLE(static-sipe,
67         [  --enable-static-sipe  statically link in Simple Exchange],
68                 sipe_static="yes", sipe_static="no")
70 AM_CONDITIONAL(SIPE_STATIC, test $sipe_static = yes)
72 # substitutions and generated files
73 AC_CONFIG_FILES(
74         [src/config.h]
75         [Makefile 
76         pixmaps/Makefile 
77         m4macros/Makefile
78         pixmaps/16/Makefile 
79         pixmaps/22/Makefile 
80         pixmaps/48/Makefile 
81         src/Makefile]
84 AC_OUTPUT()
87 echo
88 echo -n "Simple Exchange linking mode... : "
89 if test "$sipe_static" = "yes" ; then
90    echo "static"
91    echo "Simple Exchange library...      : $SIPE_LIBA"
92 else
93    echo "dynamic"
96 echo
97 echo configure complete, now run \`make\`
98 echo
100 # The End.