]> code.delx.au - gnu-emacs-elpa/blob - configure.ac
1e8accbec53f1debf61d133361c4e16a2a049425
[gnu-emacs-elpa] / configure.ac
1 dnl FIXME: pick up from realgud.el
2 AC_INIT(emacs-realgud, 0.1.0,)
3 AC_CONFIG_SRCDIR(realgud.el)
4 AM_INIT_AUTOMAKE([foreign])
5 AM_MAINTAINER_MODE
6
7 AC_PATH_PROG([EMACS], [emacs], [emacs])
8 AC_ARG_WITH(emacs, AC_HELP_STRING([--with-emacs],
9 [location of emacs program]), EMACS=$withval)
10
11 AC_MSG_NOTICE("Checking emacs version and prerequiste packages")
12 $EMACS -batch -q --no-site-file -eval \
13 '(if (<= emacs-major-version 22)
14 (progn
15 (error "You need GNU Emacs 23 or better.")
16 (kill-emacs 1)
17 )
18 (dolist (package
19 (quote (cl-lib loc-changes load-relative test-simple)))
20 (require package))
21 )'
22 if test $? -ne 0 ; then
23 AC_MSG_ERROR([Can't continue until above error is corrected.])
24 fi
25
26 ##################################################################
27 # See if --with-lispdir was set. If not, set it to a reasonable default
28 # based on where bash thinks bashdb is supposed to be installed.
29 ##################################################################
30
31 AM_MISSING_PROG(GIT2CL, git2cl, $missing_dir)
32
33 # Check whether --with-lispdir was given.
34 if test "${with_lispdir+set}" = set; then :
35 else
36 my_lispdir=$(EMACS_PROG=$EMACS $SH_PROG $(dirname $0)/compute-lispdir.sh)
37 if test "${my_lispdir+set}" = set; then :
38 with_lispdir=$my_lispdir
39 echo "'compute-lispdir.sh' lispdir install directory override: '$with_lispdir'"
40 fi
41 fi
42
43 ##
44 ## Find out where to install the debugger emacs lisp files
45 ##
46 AM_PATH_LISPDIR
47 lispdir_realgud=$lispdir/realgud
48 AC_SUBST([lispdir])
49 AC_SUBST([lispdir_realgud])
50
51 AM_CONDITIONAL(INSTALL_EMACS_LISP, test "x$lispdir_realgud" != "x")
52
53 AC_CONFIG_FILES([Makefile \
54 realgud/Makefile \
55 realgud/common/Makefile \
56 realgud/common/buffer/Makefile \
57 realgud/debugger/Makefile \
58 realgud/debugger/bashdb/Makefile \
59 realgud/debugger/gdb/Makefile \
60 realgud/debugger/gub/Makefile \
61 realgud/debugger/kshdb/Makefile \
62 realgud/debugger/perldb/Makefile \
63 realgud/debugger/pdb/Makefile \
64 realgud/debugger/pydb/Makefile \
65 realgud/debugger/pydbgr/Makefile \
66 realgud/debugger/rdebug/Makefile \
67 realgud/debugger/remake/Makefile \
68 realgud/debugger/trepan/Makefile \
69 realgud/debugger/trepan2/Makefile \
70 realgud/debugger/trepan3k/Makefile \
71 realgud/debugger/trepan.pl/Makefile \
72 realgud/debugger/trepanx/Makefile \
73 realgud/debugger/trepan8/Makefile \
74 realgud/debugger/zshdb/Makefile \
75 realgud/lang/Makefile \
76 test/Makefile \
77 ])
78 AC_OUTPUT