forked from realgud/realgud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
83 lines (74 loc) · 2.39 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
dnl FIXME: pick up from realgud.el
AC_INIT(emacs-realgud, 1.5.1,)
AC_CONFIG_SRCDIR(realgud.el)
AM_INIT_AUTOMAKE([foreign])
AM_MAINTAINER_MODE
AC_PATH_PROG([EMACS], [emacs], [emacs])
AC_ARG_WITH(emacs, AC_HELP_STRING([--with-emacs=VALUE],
[location of emacs program]), EMACS=$withval)
AC_MSG_NOTICE("Checking emacs version")
$EMACS -batch -q --no-site-file -eval \
'(if (< emacs-major-version 25)
(progn
(error "You need GNU Emacs 25 or better.")
(kill-emacs 1)
)
)'
if test $? -ne 0 ; then
AC_MSG_ERROR([Can't continue until above error is corrected.])
fi
if test "$NO_CHECK_EMACS_PACKAGES" = "" ; then
AC_MSG_NOTICE("Checking prerequiste packages")
$EMACS -batch -q --no-site-file -eval \
'(dolist (package
(quote (cl-lib loc-changes load-relative test-simple)))
(require package))'
fi
if test $? -ne 0 ; then
AC_MSG_ERROR([Can't continue until above error is corrected.])
fi
##################################################################
# See if --with-lispdir was set. If not, set it to a reasonable
#default.
##################################################################
AM_MISSING_PROG(GIT2CL, git2cl, $missing_dir)
# Check whether --with-lispdir was given.
if test "${with_lispdir+set}" = set; then :
else
my_lispdir=$(EMACS_PROG=$EMACS $SH_PROG $(dirname $0)/compute-lispdir.sh)
if test "${my_lispdir+set}" = set; then :
with_lispdir=$my_lispdir
fi
fi
##
## Find out where to install the debugger emacs lisp files
##
AM_PATH_LISPDIR
lispdir_realgud=$lispdir/realgud
AC_SUBST([lispdir])
AC_SUBST([lispdir_realgud])
AM_CONDITIONAL(INSTALL_EMACS_LISP, test "x$lispdir_realgud" != "x")
AC_CONFIG_FILES([Makefile \
common.mk \
realgud/Makefile \
realgud/common/Makefile \
realgud/common/buffer/Makefile \
realgud/debugger/Makefile \
realgud/debugger/bashdb/Makefile \
realgud/debugger/gdb/Makefile \
realgud/debugger/gub/Makefile \
realgud/debugger/kshdb/Makefile \
realgud/debugger/perldb/Makefile \
realgud/debugger/pdb/Makefile \
realgud/debugger/rdebug/Makefile \
realgud/debugger/remake/Makefile \
realgud/debugger/trepan/Makefile \
realgud/debugger/trepan2/Makefile \
realgud/debugger/trepan3k/Makefile \
realgud/debugger/trepan.pl/Makefile \
realgud/debugger/trepanjs/Makefile \
realgud/debugger/zshdb/Makefile \
realgud/lang/Makefile \
test/Makefile \
])
AC_OUTPUT