+:msdos\r
+Echo Checking whether `sed' is available...\r
+Sed -e "w junk.$$$" <Nul\r
+If Exist junk.$$$ Goto sedOk\r
+Echo To configure `Emacs' you need to have `sed'!\r
+Goto End\r
+:sedOk\r
+Echo Checking whether `rm' is available...\r
+rm -f junk.$$$\r
+If Not Exist junk.$$$ Goto rmOk\r
+Echo To configure `Emacs' you need to have `rm'!\r
+Goto End\r
+:rmOk\r
+Echo Checking whether `mv' is available...\r
+rm -f junk.1 junk.2\r
+echo foo >junk.1\r
+mv junk.1 junk.2\r
+If Exist junk.2 Goto mvOk\r
+Echo To configure `Emacs' you need to have `mv'!\r
+rm -f junk.1\r
+Goto End\r
+:mvOk\r
+rm -f junk.2\r
+Echo Checking whether `gcc' is available...\r
+echo main(){} >junk.c\r
+gcc -c junk.c\r
+if exist junk.o goto gccOk\r
+Echo To configure `Emacs' you need to have `gcc'!\r
+rm -f junk.c\r
+Goto End\r
+:gccOk\r
+rm -f junk.c junk.o\r
+Rem ----------------------------------------------------------------------\r