/
configure.ac
65 lines (51 loc) · 1.8 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.59])
AC_INIT([Stump Window Manager],esyscmd(grep :version stumpwm.asd | cut -d\" -f2 | tr -d \\n),[dbjergaard@gmail.com])
AC_SUBST(MODULE_DIR)
AC_SUBST(LISP_PROGRAM)
AC_SUBST(LISP)
AC_SUBST(COMPRESSION)
AC_SUBST(STUMPWM_ASDF_DIR)
# Checks for programs.
AC_ARG_WITH(lisp, [ --with-lisp=IMPL use the specified lisp], LISP=$withval, LISP="sbcl")
AC_ARG_WITH(module-dir,
[ --with-module-dir=PATH specify location of contrib modules],
MODULE_DIR=$withval, MODULE_DIR="${HOME}/.stumpwm.d/modules")
AC_ARG_ENABLE(compression,
[ --enable-compression use SBCL's core compression feature if available],
COMPRESSION="t",
COMPRESSION="nil")
STUMPWM_ASDF_DIR="`pwd`"
if test -x "$SBCL_PATH"; then
SBCL=$SBCL_PATH
AC_MSG_CHECKING([for sbcl])
AC_MSG_RESULT($SBCL)
else
AC_PATH_PROG([SBCL], sbcl,"")
fi
if test "x$LISP" = "xsbcl"; then
LISP_PROGRAM=$SBCL
if test -z "$SBCL_HOME"; then
AC_MSG_WARN(SBCL_HOME must be defined to use asdf/quicklisp (it should be where your sbcl.core resides))
fi
fi
if test "x$LISP_PROGRAM" = "x"; then
AC_MSG_ERROR([*** No lisp is available.])
fi
AC_MSG_NOTICE([Using $LISP at $LISP_PROGRAM])
# check for makeinfo
AC_CHECK_PROG(MAKEINFO,makeinfo,yes,no)
if test "$MAKEINFO" = "no"; then
AC_MSG_WARN([You do not seem to have makeinfo, so you will not be able
to build the manuals. Please install makeinfo for the manual.])
elif test "$MAKEINFO" = "yes"; then
MAKEINFO=makeinfo
fi
AC_SUBST([MAKEINFO])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
AC_CONFIG_FILES([make-image.lisp])
AC_OUTPUT
AC_CONFIG_FILES([load-stumpwm.lisp])
AC_OUTPUT