diff options
-rwxr-xr-x | tools/configure | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure index 464ea4c220..0d0ffda6d8 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -679,6 +679,18 @@ sed > autoconf.h \ | |||
679 | EOF | 679 | EOF |
680 | 680 | ||
681 | if test "$simulator" = "yes"; then | 681 | if test "$simulator" = "yes"; then |
682 | # verify that we have a sed version we can use! | ||
683 | lines=`echo "moo" | sed -e '/moo/cline1\nline2\nline3' | wc -l` | ||
684 | if test "$lines" -eq "1"; then | ||
685 | echo "You have a broken sed version. You must upgrade to be able to " | ||
686 | echo "generate a fine Makefile. See details at:" | ||
687 | echo "http://www.rockbox.org/twiki/bin/view/Main/BrokenSed" | ||
688 | exit | ||
689 | else | ||
690 | version=`sed --version | head -n 1` | ||
691 | echo "$version is a fine sed" | ||
692 | fi | ||
693 | |||
682 | # add simul make stuff on the #SIMUL# line | 694 | # add simul make stuff on the #SIMUL# line |
683 | simmagic='/#SIMUL#/c\ @$(MAKE) -C $(SIMDIR) OBJDIR=$(BUILDDIR)/sim\n @$(MAKE) -C $(ROOTDIR)/uisimulator/common OBJDIR=$(BUILDDIR)/comsim' | 695 | simmagic='/#SIMUL#/c\ @$(MAKE) -C $(SIMDIR) OBJDIR=$(BUILDDIR)/sim\n @$(MAKE) -C $(ROOTDIR)/uisimulator/common OBJDIR=$(BUILDDIR)/comsim' |
684 | else | 696 | else |