From d20f85740a875ff65deb40d65ccb44aeac984825 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 24 Jun 2003 10:08:00 +0000 Subject: [PATCH] make lib/configure handle zsh gracefully (bug 977) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7206 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 5 +++++ lib/configure.m4 | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/lib/ChangeLog b/lib/ChangeLog index 5ac96e920c..01573b0fb0 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2003-06-24 Jean-Marc Lasgouttes + + * configure.m4: add some code to workaround zsh incompatibilities + (bug 977) + 2003-04-15 Rod Pinna * layouts/elsart.layout: added "Proof" environment diff --git a/lib/configure.m4 b/lib/configure.m4 index 244ac42471..2ad6325e82 100644 --- a/lib/configure.m4 +++ b/lib/configure.m4 @@ -94,6 +94,16 @@ changequote(,)dnl dnl ######### End M4 macros ############################################# +# Be Bourne compatible (taken from autoconf 2.53) +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + + + ####some configuration variables outfile=lyxrc.defaults rc_entries= -- 2.39.2