diff options
author | Ronan Waide <waider@waider.ie> | 2005-09-05 18:54:27 +0000 |
---|---|---|
committer | Ronan Waide <waider@waider.ie> | 2005-09-05 18:54:27 +0000 |
commit | 518e16cfb4f8a878e0568010ccbe5256e2b905fa (patch) | |
tree | 7dc8a5e3b88464e73efbe3db908920effba5f2c8 /aclocal.m4 | |
parent | f100917898f8673b51e290d87dd21bd25e4aff2d (diff) |
* if there's a space in EMACS_PROG, quote the whole string.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -157,8 +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 If I were pedantic, I'd check that the user-specified executable is - dnl actually working. I might do that someday. + 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`echo $EMACS_PROG | grep \" \"`" != "x"; then + EMACS_PROG=\"$EMACS_PROG\" + fi AC_SUBST(EMACS_PROG) ]) dnl aclocal.m4 ends here |