2006-10-05 17:08:07 +02:00
|
|
|
AC_INIT([Gajim - A Jabber Instant Messager],
|
|
|
|
[0.11.0],[http://trac.gajim.org/],[gajim])
|
2006-10-11 14:37:08 +02:00
|
|
|
AC_PREREQ([2.59])
|
2006-10-04 02:10:49 +02:00
|
|
|
AM_INIT_AUTOMAKE([1.9])
|
|
|
|
AC_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
IT_PROG_INTLTOOL([0.35.0])
|
|
|
|
|
|
|
|
AM_DISABLE_STATIC
|
|
|
|
AC_ENABLE_SHARED(yes)
|
|
|
|
AC_ENABLE_STATIC(no)
|
|
|
|
|
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_LIBTOOL
|
2006-10-05 17:08:07 +02:00
|
|
|
AC_C_CONST
|
|
|
|
AC_CHECK_HEADERS([libintl.h])
|
2006-10-04 14:22:37 +02:00
|
|
|
AC_PATH_X
|
2006-10-04 02:10:49 +02:00
|
|
|
|
2006-10-05 17:08:07 +02:00
|
|
|
|
2006-10-04 02:10:49 +02:00
|
|
|
GETTEXT_PACKAGE=gajim
|
|
|
|
AC_SUBST([GETTEXT_PACKAGE])
|
|
|
|
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"], [Gettext package])
|
|
|
|
AM_GLIB_GNU_GETTEXT
|
2006-10-05 17:08:07 +02:00
|
|
|
AM_NLS
|
2006-10-04 02:10:49 +02:00
|
|
|
|
|
|
|
|
2006-10-05 17:08:07 +02:00
|
|
|
dnl ****
|
|
|
|
dnl pygtk and gtk+
|
|
|
|
dnl ****
|
2006-10-04 02:10:49 +02:00
|
|
|
PKG_CHECK_MODULES([PYGTK], [gtk+-2.0 >= 2.6.0 pygtk-2.0 >= 2.6.0])
|
|
|
|
AC_SUBST(PYGTK_CFLAGS)
|
|
|
|
AC_SUBST(PYGTK_LIBS)
|
|
|
|
PYGTK_DEFS=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
|
|
|
|
AC_SUBST(PYGTK_DEFS)
|
|
|
|
|
2006-10-05 17:08:07 +02:00
|
|
|
dnl *****
|
|
|
|
dnl dbus
|
|
|
|
dnl *****
|
|
|
|
AC_ARG_ENABLE([remote],
|
|
|
|
[ --disable-remote enable remote control via DBus [default auto]],
|
|
|
|
enable_remote=$enableval, enable_remote=auto)
|
|
|
|
|
|
|
|
if test "x$enable_remote" = "xauto"; then
|
|
|
|
PKG_CHECK_EXISTS([dbus-1],enable_remote=yes,enable_remote=no)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$enable_remote" = "xyes";then
|
|
|
|
PKG_CHECK_MODULES([DBUS], [dbus-1 >= 0.61 dbus-glib-1 >= 0.61])
|
|
|
|
AC_SUBST(DBUS_CFLAGS)
|
|
|
|
AC_SUBST(DBUS_LIBS)
|
|
|
|
have_remote=true
|
|
|
|
else
|
|
|
|
have_remote=false
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_REMOTE_CONTROL, $have_remote)
|
|
|
|
|
|
|
|
dnl ****
|
|
|
|
dnl gtkspell
|
|
|
|
dnl ****
|
2006-10-04 14:22:37 +02:00
|
|
|
AC_ARG_ENABLE(gtkspell,
|
2006-10-05 17:08:07 +02:00
|
|
|
[ --disable-gtkspell build spell checking support [default auto]],
|
|
|
|
enable_gtkspell=$enableval, enable_gtkspell=auto)
|
2006-10-04 02:10:49 +02:00
|
|
|
|
2006-10-04 14:22:37 +02:00
|
|
|
if test "x$enable_gtkspell" = "xauto";then
|
|
|
|
PKG_CHECK_EXISTS([gtkspell-2.0], [enable_gtkspell=yes], [enable_gtkspell=no])
|
|
|
|
fi
|
|
|
|
if test "x$enable_gtkspell" = "xyes";then
|
|
|
|
PKG_CHECK_MODULES([GTKSPELL], [gtkspell-2.0])
|
|
|
|
AC_SUBST(GTKSPELL_CFLAGS)
|
|
|
|
AC_SUBST(GTKSPELL_LIBS)
|
|
|
|
have_gtkspell=true
|
|
|
|
else
|
|
|
|
have_gtkspell=false
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_GTKSPELL, $have_gtkspell)
|
|
|
|
|
|
|
|
|
2006-10-05 17:08:07 +02:00
|
|
|
dnl ****
|
|
|
|
dnl xscreensaver
|
|
|
|
dnl ****
|
|
|
|
AC_ARG_ENABLE([idle],
|
|
|
|
[ --disable-idle build idle module [default auto]],
|
|
|
|
enable_idle=$enableval, enable_idle=yes)
|
|
|
|
|
|
|
|
if test "x$enable_idle" = "xyes";then
|
|
|
|
PKG_CHECK_EXISTS([xscrnsaver], [have_xscrnsaver=yes], [have_xscrnsaver=no])
|
|
|
|
|
|
|
|
if test "x$have_xscrnsaver" = "xyes";then
|
|
|
|
PKG_CHECK_MODULES([XSCRNSAVER], xscrnsaver)
|
|
|
|
AC_SUBST(XSCRNSAVER_LIBS)
|
|
|
|
have_idle=true
|
|
|
|
else
|
|
|
|
# Checks for libraries.
|
|
|
|
AC_CHECK_LIB([X11], [XOpenDisplay])
|
|
|
|
AC_CHECK_LIB([Xext], [XMissingExtension])
|
|
|
|
AC_CHECK_LIB([Xss], [XScreenSaverAllocInfo])
|
|
|
|
XSCRNSAVER_LIBS="$LIBS"
|
|
|
|
AC_SUBST([XSCRNSAVER_LIBS])
|
|
|
|
if test "x$XSCRNSAVER_LIBS" = "x";then
|
|
|
|
have_idle=false
|
|
|
|
else
|
|
|
|
have_idle=true
|
|
|
|
fi
|
|
|
|
fi
|
2006-10-04 14:22:37 +02:00
|
|
|
else
|
2006-10-05 17:08:07 +02:00
|
|
|
have_idle=false
|
2006-10-04 14:22:37 +02:00
|
|
|
fi
|
2006-10-05 17:08:07 +02:00
|
|
|
AM_CONDITIONAL(BUILD_IDLE, $have_idle)
|
2006-10-04 02:10:49 +02:00
|
|
|
|
|
|
|
AM_PATH_PYTHON([2.4])
|
|
|
|
if test "x$PYTHON" = "x:"; then
|
|
|
|
AC_MSG_ERROR([Python not found])
|
|
|
|
fi
|
|
|
|
|
2006-10-05 17:08:07 +02:00
|
|
|
dnl ****
|
|
|
|
dnl tray icon
|
|
|
|
dnl ****
|
|
|
|
AC_ARG_ENABLE(trayicon,
|
|
|
|
[ --disable-trayicon build trayicon module [default yes]],
|
|
|
|
enable_trayicon=$enableval, enable_trayicon=yes)
|
|
|
|
test "x$enable_trayicon" = "xyes" && have_trayicon=true || have_trayicon=false
|
|
|
|
AM_CONDITIONAL(BUILD_TRAYICON, $have_trayicon)
|
|
|
|
|
2006-10-04 02:10:49 +02:00
|
|
|
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
|
2006-10-04 14:22:37 +02:00
|
|
|
AC_SUBST([PYTHON_INCLUDES])
|
2006-10-04 02:10:49 +02:00
|
|
|
|
2006-10-05 17:08:07 +02:00
|
|
|
AC_CONFIG_FILES([
|
2006-10-04 02:10:49 +02:00
|
|
|
Makefile
|
|
|
|
data/Makefile
|
|
|
|
data/glade/Makefile
|
|
|
|
data/emoticons/Makefile
|
|
|
|
data/pixmaps/Makefile
|
|
|
|
data/iconsets/Makefile
|
|
|
|
data/gajim.desktop.in
|
|
|
|
src/Makefile
|
|
|
|
src/common/Makefile
|
|
|
|
scripts/gajim
|
|
|
|
po/Makefile.in
|
|
|
|
])
|
|
|
|
AC_OUTPUT
|
2006-10-05 17:08:07 +02:00
|
|
|
echo "
|
|
|
|
*****************************
|
|
|
|
Build features:
|
|
|
|
spell check ...... ${have_gtkspell}
|
|
|
|
idle module ...... ${have_idle}
|
|
|
|
remote control ... ${have_remote}
|
|
|
|
trayicon ......... ${have_trayicon}
|
|
|
|
*****************************"
|