summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorRonan Waide <waider@waider.ie>2005-09-05 18:54:27 +0000
committerRonan Waide <waider@waider.ie>2005-09-05 18:54:27 +0000
commit518e16cfb4f8a878e0568010ccbe5256e2b905fa (patch)
tree7dc8a5e3b88464e73efbe3db908920effba5f2c8 /aclocal.m4
parentf100917898f8673b51e290d87dd21bd25e4aff2d (diff)
* if there's a space in EMACS_PROG, quote the whole string.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index cf335fc..72cdd6a 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -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