1 AC_INIT([jabber.el], [0.8.91], [emacs-jabber-general@lists.sourceforge.net], [emacs-jabber])
2 AC_CONFIG_AUX_DIR([build-aux])
3 AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2 dist-lzma dist-zip 1.9])
4 AC_CONFIG_MACRO_DIR([m4])
7 AS_IF([test "$EMACS" = no], [AC_MSG_ERROR([cannot find Emacs])])
9 AX_CHECK_EMACS_LIB([sha1], [HAVE_SHA1=yes], [HAVE_SHA1=no])
10 AX_CHECK_EMACS_LIB([sha1-el], [HAVE_SHA1_EL=yes], [HAVE_SHA1_EL=no])
11 AX_CHECK_EMACS_LIB([hex-util], [HAVE_HEX_UTIL=yes], [HAVE_HEX_UTIL=no])
12 AX_CHECK_EMACS_LIB([hexrgb], [HAVE_HEXRGB=yes], [HAVE_HEXRGB=no])
14 AM_CONDITIONAL([USE_OUR_SHA1], [test x$HAVE_SHA1 = xno -a x$HAVE_SHA1_EL = xno])
15 AM_CONDITIONAL([USE_OUR_HEX_UTIL], [test x$HAVE_HEX_UTIL = xno])
16 AM_CONDITIONAL([USE_OUR_HEXRGB], [test x$HAVE_HEXRGB = xno])
18 dnl GConf schemas, for registering our URL handler
19 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
20 AM_CONDITIONAL(USE_GCONFTOOL, test "x$GCONFTOOL" != "xno")
21 AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, false)
22 m4_ifndef([AM_GCONF_SOURCE_2], [m4_defun([AM_GCONF_SOURCE_2])])
25 AC_CONFIG_FILES([Makefile tests/Makefile gconf/Makefile jabber-ourversion.el])