1
dnl Process this file with autoconf to produce a configure script.
6
AC_PATH_PROG(INSTALL_INFO, install-info)
7
if test "$INSTALL_INFO x" = " x"
11
AC_SUBST(INSTALL_INFO)
13
AC_PATH_PROG(BASENAME, basename)
14
if test "$BASENAME x" = " x"
16
AC_MSG_ERROR(Cannot find program "basename" on your patch.
17
Hint: Try setting BASENAME environment variable or fixing your PATH.)
20
if test -n "$EMACS" && test "$EMACS" = "t"
25
AC_CHECK_PROGS(EMACS, emacs xemacs,dnl
26
AC_MSG_ERROR('Cannot find emacs in your path.
27
Hint: Try setting EMACS environment variable or fixing your PATH.'))
29
RESULT=`$BASENAME $EMACS`
30
if test "$RESULT" = xemacs
32
if $EMACS -batch -q --vanilla
34
EMACSFLAGS="--vanilla" # We're running Xemacs 20.x or higher
37
EMACSFLAGS="-q -no-site-file" # Still running Xemacs 19.x
39
else if test "$RESULT" = emacs
47
echo -n checking for timer.el...
48
if $EMACS -batch -l timer 2>/dev/null
52
echo no. I will install it for you.
55
EXTRA_OBJS="timer.elc"
59
AC_OUTPUT(Makefile tests/Makefile tests/remailer/Makefile)