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])
7 AC_PATH_PROG([EMACS], [emacs], [emacs])
8 AC_ARG_WITH(emacs, AC_HELP_STRING([--with-emacs],
9 [location of emacs program]), EMACS=$withval)
11 AC_MSG_NOTICE("Checking emacs version")
12 $EMACS -batch -q --no-site-file -eval \
13 '(if (<= emacs-major-version 22)
15 (error "You need GNU Emacs 23 or better.")
19 if test $? -ne 0 ; then
20 AC_MSG_ERROR([Can't continue until above error is corrected.])
23 if test "$NO_CHECK_EMACS_PACKAGES" = "" ; then
24 AC_MSG_NOTICE("Checking prerequiste packages")
25 $EMACS -batch -q --no-site-file -eval \
27 (quote (cl-lib loc-changes load-relative test-simple)))
31 if test $? -ne 0 ; then
32 AC_MSG_ERROR([Can't continue until above error is corrected.])
35 ##################################################################
36 # See if --with-lispdir was set. If not, set it to a reasonable default
37 # based on where bash thinks bashdb is supposed to be installed.
38 ##################################################################
40 AM_MISSING_PROG(GIT2CL, git2cl, $missing_dir)
42 # Check whether --with-lispdir was given.
43 if test "${with_lispdir+set}" = set; then :
45 my_lispdir=$(EMACS_PROG=$EMACS $SH_PROG $(dirname $0)/compute-lispdir.sh)
46 if test "${my_lispdir+set}" = set; then :
47 with_lispdir=$my_lispdir
48 echo "'compute-lispdir.sh' lispdir install directory override: '$with_lispdir'"
53 ## Find out where to install the debugger emacs lisp files
56 lispdir_realgud=$lispdir/realgud
58 AC_SUBST([lispdir_realgud])
60 AM_CONDITIONAL(INSTALL_EMACS_LISP, test "x$lispdir_realgud" != "x")
62 AC_CONFIG_FILES([Makefile \
64 realgud/common/Makefile \
65 realgud/common/buffer/Makefile \
66 realgud/debugger/Makefile \
67 realgud/debugger/bashdb/Makefile \
68 realgud/debugger/gdb/Makefile \
69 realgud/debugger/gub/Makefile \
70 realgud/debugger/kshdb/Makefile \
71 realgud/debugger/perldb/Makefile \
72 realgud/debugger/pdb/Makefile \
73 realgud/debugger/pydb/Makefile \
74 realgud/debugger/pydbgr/Makefile \
75 realgud/debugger/rdebug/Makefile \
76 realgud/debugger/remake/Makefile \
77 realgud/debugger/trepan/Makefile \
78 realgud/debugger/trepan2/Makefile \
79 realgud/debugger/trepan3k/Makefile \
80 realgud/debugger/trepan.pl/Makefile \
81 realgud/debugger/trepanx/Makefile \
82 realgud/debugger/trepan8/Makefile \
83 realgud/debugger/zshdb/Makefile \
84 realgud/lang/Makefile \