forked from stumpwm/stumpwm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
52 lines (39 loc) · 1.38 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
# -*- 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), [email protected])
AC_SUBST(MODULE_DIR)
AC_SUBST(LISP_PROGRAM)
AC_SUBST(LISP)
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")
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([Please install makeinfo for the manual.])
fi
AC_OUTPUT(Makefile)
AC_OUTPUT(make-image.lisp)
AC_OUTPUT(load-stumpwm.lisp)