2006-10-05 17:08:07 +02:00
|
|
|
AC_INIT([Gajim - A Jabber Instant Messager],
|
2009-05-10 21:32:57 +02:00
|
|
|
[0.12.1.5-svn],[http://trac.gajim.org/],[gajim])
|
2006-10-11 14:37:08 +02:00
|
|
|
AC_PREREQ([2.59])
|
2009-01-11 19:14:06 +01:00
|
|
|
|
2006-10-04 02:10:49 +02:00
|
|
|
AC_CONFIG_HEADER(config.h)
|
2009-01-11 19:14:06 +01:00
|
|
|
AC_CONFIG_AUX_DIR(config)
|
2006-10-12 01:30:02 +02:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2009-01-11 19:14:06 +01:00
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([1.8])
|
2006-10-04 02:10:49 +02:00
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2007-11-14 20:47:52 +01:00
|
|
|
dnl Make Objective-C work with automake
|
|
|
|
AM_CONDITIONAL([am__fastdepOBJC], false)
|
|
|
|
|
2006-10-04 02:10:49 +02:00
|
|
|
IT_PROG_INTLTOOL([0.35.0])
|
2006-10-15 12:32:17 +02:00
|
|
|
PKG_PROG_PKG_CONFIG([0.19])
|
2006-10-04 02:10:49 +02:00
|
|
|
|
|
|
|
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 ****
|
2007-08-10 00:01:36 +02:00
|
|
|
PKG_CHECK_MODULES([PYGTK], [gtk+-2.0 >= 2.8.0 pygtk-2.0 >= 2.8.0])
|
2006-10-04 02:10:49 +02:00
|
|
|
AC_SUBST(PYGTK_CFLAGS)
|
|
|
|
AC_SUBST(PYGTK_LIBS)
|
|
|
|
PYGTK_DEFS=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
|
|
|
|
AC_SUBST(PYGTK_DEFS)
|
|
|
|
|
2009-02-12 23:15:18 +01:00
|
|
|
AM_PATH_PYTHON([2.5])
|
2006-10-04 02:10:49 +02:00
|
|
|
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,
|
2008-06-27 11:28:26 +02:00
|
|
|
[ --disable-trayicon do not build trayicon module [default yes]],
|
2006-10-05 17:08:07 +02:00
|
|
|
enable_trayicon=$enableval, enable_trayicon=yes)
|
|
|
|
test "x$enable_trayicon" = "xyes" && have_trayicon=true || have_trayicon=false
|
|
|
|
AM_CONDITIONAL(BUILD_TRAYICON, $have_trayicon)
|
|
|
|
|
2007-11-14 20:47:52 +01:00
|
|
|
dnl ****
|
|
|
|
dnl Cocoa
|
|
|
|
dnl ****
|
|
|
|
AC_ARG_ENABLE([cocoa],
|
2008-06-27 11:28:26 +02:00
|
|
|
[ --disable-cocoa do not build cocoa integration [default auto]],
|
2007-11-14 20:47:52 +01:00
|
|
|
enable_cocoa=$enableval, enable_cocoa=yes)
|
|
|
|
|
|
|
|
if test "x$enable_cocoa" = "xyes";then
|
|
|
|
dnl There is no pkgconfig for cocoa; lets do a header check
|
|
|
|
temp_save_cflags="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -ObjC"
|
|
|
|
AC_CHECK_HEADER(Cocoa/Cocoa.h, [have_cocoa=true], [have_cocoa=false])
|
|
|
|
AC_CHECK_HEADER(AppKit/AppKit.h, [have_appkit=true], [have_appkit=false])
|
|
|
|
CFLAGS="$temp_save_cflags"
|
|
|
|
|
|
|
|
if test "x$have_cocoa" = "xtrue";then
|
|
|
|
COCOA_LIBS="$COCOA_LIBS -Xlinker -framework -Xlinker Cocoa"
|
|
|
|
fi
|
|
|
|
if test "x$have_appkit" = "xtrue";then
|
|
|
|
COCOA_LIBS="$COCOA_LIBS -Xlinker -framework -Xlinker AppKit"
|
|
|
|
fi
|
|
|
|
if test "x$COCOA_LIBS" != "x";then
|
|
|
|
AC_SUBST(COCOA_LIBS)
|
|
|
|
true
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_COCOA, $have_cocoa)
|
|
|
|
|
|
|
|
dnl ****
|
|
|
|
dnl Carbon
|
|
|
|
dnl ****
|
|
|
|
AC_ARG_ENABLE([carbon],
|
2008-06-27 11:28:26 +02:00
|
|
|
[ --disable-carbon do not build with carbon [default auto]],
|
2007-11-14 20:47:52 +01:00
|
|
|
enable_carbon=$enableval, enable_carbon=yes)
|
|
|
|
|
|
|
|
if test "x$enable_carbon" = "xyes";then
|
|
|
|
dnl There is no pkgconfig for carbon; lets do a header check
|
|
|
|
AC_CHECK_HEADER(Carbon/Carbon.h, [have_carbon=true], [have_carbon=false])
|
|
|
|
AC_CHECK_HEADER(IOKit/IOKitLib.h, [have_iokit=true], [have_iokit=false])
|
|
|
|
|
|
|
|
if test "x$have_carbon" = "xtrue";then
|
|
|
|
CARBON_LIBS="$CARBON_LIBS -Xlinker -framework -Xlinker Carbon"
|
|
|
|
fi
|
|
|
|
if test "x$have_iokit" = "xtrue";then
|
|
|
|
CARBON_LIBS="$CARBON_LIBS -Xlinker -framework -Xlinker IOKit"
|
|
|
|
fi
|
|
|
|
if test "x$CARBON_LIBS" != "x";then
|
|
|
|
AC_SUBST(CARBON_LIBS)
|
|
|
|
have_idle_osx=true
|
|
|
|
dnl Disable custom trayicon
|
|
|
|
have_trayicon=gtk+
|
|
|
|
AM_CONDITIONAL(BUILD_TRAYICON, false)
|
|
|
|
dnl Hack to work around failure in gettext package detection on OS/X
|
|
|
|
if test "x$GMSGFMT" = "x";then
|
|
|
|
AC_SUBST(GMSGFMT, msgfmt)
|
|
|
|
AC_SUBST(MSGFMT, msgfmt)
|
|
|
|
AC_SUBST(XGETTEXT, xgettext)
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
have_carbon=false
|
|
|
|
have_idle_osx=false
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_IDLE_OSX, $have_carbon)
|
|
|
|
AM_CONDITIONAL(BUILD_CARBON, $have_carbon)
|
|
|
|
|
2006-10-12 01:30:02 +02:00
|
|
|
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
|
|
|
|
AC_SUBST(ACLOCAL_AMFLAGS)
|
|
|
|
|
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-11 19:40:56 +02:00
|
|
|
AS_AC_EXPAND(DATADIR, "${datadir}")
|
2009-02-11 11:14:20 +01:00
|
|
|
AS_AC_EXPAND(LIBDIR, "${libdir}")
|
2006-10-11 19:40:56 +02:00
|
|
|
AS_AC_EXPAND(DOCDIR, "${docdir}")
|
2009-02-11 11:46:07 +01:00
|
|
|
AS_AC_EXPAND(LOCALEDIR, "${localedir}")
|
2006-10-11 19:40:56 +02:00
|
|
|
|
|
|
|
AC_SUBST(VERSION)
|
|
|
|
AC_SUBST(PACKAGE)
|
|
|
|
|
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
|
2008-07-23 02:05:23 +02:00
|
|
|
data/moods/Makefile
|
2008-07-28 19:02:01 +02:00
|
|
|
data/activities/Makefile
|
2006-10-04 02:10:49 +02:00
|
|
|
data/gajim.desktop.in
|
2006-10-13 10:15:20 +02:00
|
|
|
data/defs.py
|
2006-10-04 02:10:49 +02:00
|
|
|
src/Makefile
|
2008-07-23 02:05:23 +02:00
|
|
|
src/osx/Makefile
|
|
|
|
src/osx/growl/Makefile
|
|
|
|
src/osx/syncmenu/Makefile
|
2006-10-04 02:10:49 +02:00
|
|
|
scripts/gajim
|
2009-02-17 13:29:54 +01:00
|
|
|
scripts/gajim-remote:scripts/gajim.in
|
|
|
|
scripts/gajim-history-manager:scripts/gajim.in
|
2006-10-04 02:10:49 +02:00
|
|
|
po/Makefile.in
|
|
|
|
])
|
|
|
|
AC_OUTPUT
|
2006-10-05 17:08:07 +02:00
|
|
|
echo "
|
|
|
|
*****************************
|
|
|
|
Build features:
|
|
|
|
trayicon ......... ${have_trayicon}
|
2007-11-14 20:47:52 +01:00
|
|
|
idle module OSX .. ${have_idle_osx}
|
2008-06-27 11:28:26 +02:00
|
|
|
cocoa (OSX)....... ${have_cocoa}
|
2006-10-05 17:08:07 +02:00
|
|
|
*****************************"
|