# Initialization AC_INIT([caja-dropbox], [1.16.0], [http://www.mate-desktop.org/]) AM_INIT_AUTOMAKE([1.9 tar-ustar dist-xz foreign no-dist-gzip]) AC_CONFIG_MACRO_DIR([m4]) AC_PREFIX_DEFAULT(/usr) AC_CONFIG_HEADERS(config.h) # not ready for i18n yet #AC_PROG_INTLTOOL([0.29]) # Dependency checks CAJA_REQUIRED=1.1.0 GLIB_REQUIRED=2.14.0 # Used programs AC_PROG_CC AM_PROG_LIBTOOL # Check for pkg-config AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no) AC_PATH_PROG(PKG_CONFIG, pkg-config, no) if test "x$HAVE_PKGCONFIG" = "xno"; then AC_MSG_ERROR(you need to have pkgconfig installed !) fi PKG_CHECK_MODULES(CAJA, libcaja-extension >= $CAJA_REQUIRED) PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED) AC_PATH_PROG([PYTHON], [python]) AC_PATH_PROG([RST2MAN], [rst2man], [python rst2man.py]) AC_SUBST(RST2MAN) # define module checking macro AC_DEFUN([PYTHON_CHECK_MODULE], [ AC_MSG_CHECKING([for $1]) cat <