]> code.delx.au - gnu-emacs-elpa/blob - configure.ac
3rd travis try via el-get
[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")
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 )'
19 if test $? -ne 0 ; then
20 AC_MSG_ERROR([Can't continue until above error is corrected.])
21 fi
22
23 if test "$NO_CHECK_EMACS_PACKAGES" = "" ; then
24 AC_MSG_NOTICE("Checking prerequiste packages")
25 $EMACS -batch -q --no-site-file -eval \
26 '(dolist (package
27 (quote (cl-lib loc-changes load-relative test-simple)))
28 (require package))
29 )'
30 fi
31 if test $? -ne 0 ; then
32 AC_MSG_ERROR([Can't continue until above error is corrected.])
33 fi
34
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 ##################################################################
39
40 AM_MISSING_PROG(GIT2CL, git2cl, $missing_dir)
41
42 # Check whether --with-lispdir was given.
43 if test "${with_lispdir+set}" = set; then :
44 else
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'"
49 fi
50 fi
51
52 ##
53 ## Find out where to install the debugger emacs lisp files
54 ##
55 AM_PATH_LISPDIR
56 lispdir_realgud=$lispdir/realgud
57 AC_SUBST([lispdir])
58 AC_SUBST([lispdir_realgud])
59
60 AM_CONDITIONAL(INSTALL_EMACS_LISP, test "x$lispdir_realgud" != "x")
61
62 AC_CONFIG_FILES([Makefile \
63 realgud/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 \
85 test/Makefile \
86 ])
87 AC_OUTPUT