auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] Changes to auctex/preview/aclocal.m4


From: David Kastrup
Subject: [AUCTeX-diffs] Changes to auctex/preview/aclocal.m4
Date: Sun, 22 May 2005 16:56:20 -0400

Index: auctex/preview/aclocal.m4
diff -u auctex/preview/aclocal.m4:1.62 auctex/preview/aclocal.m4:1.63
--- auctex/preview/aclocal.m4:1.62      Mon May  2 10:37:49 2005
+++ auctex/preview/aclocal.m4   Sun May 22 20:56:18 2005
@@ -44,13 +44,27 @@
 AC_ARG_WITH(emacs,
   [  --with-emacs@<:@=PATH@:>@     Use Emacs to build (on PATH if given)],
   [if test "${withval}" = "yes"; then EMACS=emacs
-   else if test "${withval}" = "no"; then EMACS=xemacs
-   else EMACS="${withval}"; fi ; fi])
+   elif test "${withval}" = "no"; then EMACS=xemacs
+   else EMACS="${withval}"; fi])
+
 AC_ARG_WITH(xemacs,
   [  --with-xemacs@<:@=PATH@:>@    Use XEmacs to build (on PATH if given)],
-  [if test "${withval}" = "yes"; then EMACS=xemacs;
-   else if test "${withval}" = "no"; then EMACS=emacs
-   else EMACS="${withval}"; fi ; fi])
+  [if test "x${withval}" != xno
+   then
+     if test "x${with_emacs}" != xno -a "x${with_emacs}" != x
+     then
+       AC_MSG_ERROR([[cannot use both Emacs and XEmacs]])
+     fi
+     if test "x${withval}" = "xyes"
+     then
+       EMACS=xemacs
+     else
+       EMACS="${withval}"
+     fi
+   elif test "x${with_emacs}" = xno
+   then
+     AC_MSG_ERROR([[need to use either Emacs or XEmacs]])
+   fi])
 
 # "${prefix}/bin" is for Windows users
 AC_PATH_PROGS(EMACS, ${EMACS} emacs xemacs, "", ${PATH} "${prefix}/bin" )




reply via email to

[Prev in Thread] Current Thread [Next in Thread]