diff options
author | Ronan Waide <waider@waider.ie> | 2006-01-29 20:26:41 +0000 |
---|---|---|
committer | Ronan Waide <waider@waider.ie> | 2006-01-29 20:26:41 +0000 |
commit | 98765cd5a29dad3c4243b37a1638b042e8e9eb88 (patch) | |
tree | 1271da079c1363b67c6d6cc459d87df456eed35b /aclocal.m4 | |
parent | 7e624f9e84ee092815d78ad2bfa44c6fc929c64b (diff) |
* check if the provided/found emacs program is executable
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -157,9 +157,12 @@ AC_DEFUN([BBDB_PROG_EMACS], dnl This is critical enough to generate an error and not a warning... AC_MSG_ERROR([*** No Emacs program found.]) fi - dnl AC_CHECK_PROGS appears to verify that it's executable, so we don't - dnl have to. We do, however, need to verify that it's not got spaces in - dnl the path (hello Windows, OS X) + if test -x "${EMACS_PROG}"; then + dnl AC_CHECK_PROGS only verifies this if you don't override manually + AC_MSG_ERROR([*** ${EMACS_PROG} isn't executable.]) + fi + dnl We do need to verify that it's not got spaces in the path + dnl (hello Windows, OS X) if test "x`echo $EMACS_PROG | grep \" \"`" != "x"; then EMACS_PROG=\"$EMACS_PROG\" fi |