From 5b8273d67c56786573d38d38ee8ba4fd2a206949 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Sat, 16 Jun 2007 12:50:34 +0000 Subject: [PATCH] Attempt at workaround for the -e bug... I hope it works. (Untested as usual.) Originally committed to SVN as r1222. --- autogen.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 646744170..951e95b96 100644 --- a/autogen.sh +++ b/autogen.sh @@ -1,4 +1,16 @@ -#!/bin/sh +#!/bin/bash + +test "X`echo -e`" = "X-e" && ( + if `which bash`; then + echo "Your builtin echo doesn't support -e, running with bash instead." + bash $0 + exit + elif + echo "Your builtin echo (or echo(1)) doesn't support -e." + echo "If you had bash I'd use that instead, but it seems you don't." + exit 1 + fi +) # Generate file list for automation subdir rm -f automation/Makefile.am