]> git.saurik.com Git - bison.git/blame - djgpp/config.bat
Akim Demaille <akim@epita.fr>
[bison.git] / djgpp / config.bat
CommitLineData
3768a1ae
JMG
1@echo off\r
2echo Configuring GNU Bison for DJGPP v2.x...\r
3\r
4Rem The SmallEnv tests protect against fixed and too small size\r
5Rem of the environment in stock DOS shell.\r
6\r
7Rem Find out if NLS is wanted or not,\r
8Rem if dependency-tracking is wanted or not,\r
9Rem if caching is wanted or not\r
10Rem and where the sources are.\r
11Rem We always default to NLS support,\r
12Rem no dependency tracking\r
13Rem and to in place configuration.\r
14set ARGS=\r
15set NLS=enabled\r
16if not "%NLS%" == "enabled" goto SmallEnv\r
17set CACHING=enabled\r
18if not "%CACHING%" == "enabled" goto SmallEnv\r
19set DEPENDENCY_TRACKING=disabled\r
20if not "%DEPENDENCY_TRACKING%" == "disabled" goto SmallEnv\r
21set LIBICONV_PREFIX=disabled\r
22if not "%LIBICONV_PREFIX%" == "disabled" goto SmallEnv\r
23set LIBINTL_PREFIX=disabled\r
24if not "%LIBINTL_PREFIX%" == "disabled" goto SmallEnv\r
25set HTML=enabled\r
26if not "%HTML%" == "enabled" goto SmallEnv\r
27set XSRC=.\r
28if not "%XSRC%" == "." goto SmallEnv\r
29\r
30Rem Loop over all arguments.\r
31Rem Special arguments are: NLS, XSRC, CACHE, STATIC_LIBS, LIBICONV_PREFIX, LIBINTL_PREFIX and DEPS.\r
32Rem All other arguments are stored into ARGS.\r
33:ArgLoop\r
34if "%1" == "nls" goto NextArgument\r
35if "%1" == "NLS" goto NextArgument\r
36if "%1" == "no-nls" goto NoNLS\r
37if "%1" == "no-NLS" goto NoNLS\r
38if "%1" == "NO-NLS" goto NoNLS\r
39goto CachingOption\r
40:NoNLS\r
41if "%1" == "no-nls" set NLS=disabled\r
42if "%1" == "no-NLS" set NLS=disabled\r
43if "%1" == "NO-NLS" set NLS=disabled\r
44if not "%NLS%" == "disabled" goto SmallEnv\r
45goto NextArgument\r
46:CachingOption\r
47if "%1" == "cache" goto NextArgument\r
48if "%1" == "CACHE" goto NextArgument\r
49if "%1" == "no-cache" goto NoCaching\r
50if "%1" == "no-CACHE" goto NoCaching\r
51if "%1" == "NO-CACHE" goto NoCaching\r
52goto DependencyOption\r
53:NoCaching\r
54if "%1" == "no-cache" set CACHING=disabled\r
55if "%1" == "no-CACHE" set CACHING=disabled\r
56if "%1" == "NO-CACHE" set CACHING=disabled\r
57if not "%CACHING%" == "disabled" goto SmallEnv\r
58goto NextArgument\r
59:DependencyOption\r
60if "%1" == "no-dep" goto NextArgument\r
61if "%1" == "no-DEP" goto NextArgument\r
62if "%1" == "NO-DEP" goto NextArgument\r
63if "%1" == "dep" goto DependecyTraking\r
64if "%1" == "DEP" goto DependecyTraking\r
65goto LibiconvPrefixOption\r
66:DependecyTraking\r
67if "%1" == "dep" set DEPENDENCY_TRACKING=enabled\r
68if "%1" == "DEP" set DEPENDENCY_TRACKING=enabled\r
69if not "%DEPENDENCY_TRACKING%" == "enabled" goto SmallEnv\r
70goto NextArgument\r
71:LibiconvPrefixOption\r
72if "%1" == "no-libiconvprefix" goto NextArgument\r
73if "%1" == "no-LIBICONVPREFIX" goto NextArgument\r
74if "%1" == "NO-LIBICONVPREFIX" goto NextArgument\r
75if "%1" == "libiconvprefix" goto WithLibiconvPrefix\r
76if "%1" == "LIBICONVPREFIX" goto WithLibiconvPrefix\r
77goto LibintlPrefixOption\r
78:WithLibiconvPrefix\r
79if "%1" == "libiconvprefix" set LIBICONV_PREFIX=enabled\r
80if "%1" == "LIBICONVPREFIX" set LIBICONV_PREFIX=enabled\r
81if not "%LIBICONV_PREFIX%" == "enabled" goto SmallEnv\r
82goto NextArgument\r
83:LibintlPrefixOption\r
84if "%1" == "no-libiconvprefix" goto NextArgument\r
85if "%1" == "no-LIBICONVPREFIX" goto NextArgument\r
86if "%1" == "NO-LIBICONVPREFIX" goto NextArgument\r
87if "%1" == "libintlprefix" goto _WithLibintlPrefix\r
88if "%1" == "LIBINTLPREFIX" goto _WithLibintlPrefix\r
89goto HTMLOption\r
90:_WithLibintlPrefix\r
91if "%1" == "libintlprefix" set LIBINTL_PREFIX=enabled\r
92if "%1" == "LIBINTLPREFIX" set LIBINTL_PREFIX=enabled\r
93if not "%LIBINTL_PREFIX%" == "enabled" goto SmallEnv\r
94:HTMLOption\r
95if "%1" == "withhtml" goto NextArgument\r
96if "%1" == "withHTML" goto NextArgument\r
97if "%1" == "WITHHTML" goto NextArgument\r
98if "%1" == "withouthtml" goto _WithoutHTML\r
99if "%1" == "withoutHTML" goto _WithoutHTML\r
100if "%1" == "WITHOUTHTML" goto _WithoutHTML\r
101goto SrcDirOption\r
102:_WithoutHTML\r
103if "%1" == "withouthtml" set HTML=disabled\r
104if "%1" == "withoutHTML" set HTML=disabled\r
105if "%1" == "WITHOUTHTML" set HTML=disabled\r
106if not "%HTML%" == "disabled" goto SmallEnv\r
107goto NextArgument\r
108:SrcDirOption\r
109echo %1 | grep -q "/"\r
110if errorlevel 1 goto CollectArgument\r
111set XSRC=%1\r
112if not "%XSRC%" == "%1" goto SmallEnv\r
113goto NextArgument\r
114:CollectArgument\r
115set _ARGS=%ARGS% %1\r
116if not "%_ARGS%" == "%ARGS% %1" if not "%_ARGS%" == "%ARGS%%1" goto SmallEnv\r
117echo %_ARGS% | grep -q "[^ ]"\r
118if not errorlevel 0 set ARGS=%_ARGS%\r
119set _ARGS=\r
120:NextArgument\r
121shift\r
122if not "%1" == "" goto ArgLoop\r
123\r
124Rem Create an arguments file for the configure script.\r
125echo --srcdir=%XSRC% > arguments\r
126if "%CACHING%" == "enabled" echo --cache-file=%XSRC%/djgpp/config.cache >> arguments\r
127if "%DEPENDENCY_TRACKING%" == "enabled" echo --enable-dependency-tracking >> arguments\r
128if "%DEPENDENCY_TRACKING%" == "disabled" echo --disable-dependency-tracking >> arguments\r
129if "%LIBICONV_PREFIX%" == "enabled" echo --with-libiconv-prefix >> arguments\r
130if "%LIBICONV_PREFIX%" == "disabled" echo --without-libiconv-prefix >> arguments\r
131if "%LIBINTL_PREFIX%" == "enabled" echo --with-libintl-prefix >> arguments\r
132if "%LIBINTL_PREFIX%" == "disabled" echo --without-libintl-prefix >> arguments\r
133if "%HTML%" == "enabled" echo --enable-html >> arguments\r
134if "%HTML%" == "disabled" echo --disable-html >> arguments\r
135if not "%ARGS%" == "" echo %ARGS% >> arguments\r
136set ARGS=\r
137set CACHING=\r
138set DEPENDENCY_TRACKING=\r
139\r
140if "%XSRC%" == "." goto InPlace\r
141\r
142:NotInPlace\r
143redir -e /dev/null update %XSRC%/configure.orig ./configure\r
144test -f ./configure\r
145if errorlevel 1 update %XSRC%/configure ./configure\r
146\r
147:InPlace\r
148Rem Update configuration files\r
149echo Updating configuration scripts...\r
150test -f ./configure.orig\r
151if errorlevel 1 update configure configure.orig\r
152sed -f %XSRC%/djgpp/config.sed configure.orig > configure\r
153if errorlevel 1 goto SedError\r
154\r
155Rem Make sure they have a config.site file\r
156set CONFIG_SITE=%XSRC%/djgpp/config.site\r
157if not "%CONFIG_SITE%" == "%XSRC%/djgpp/config.site" goto SmallEnv\r
158\r
159Rem Make sure crucial file names are not munged by unpacking\r
160test -f %XSRC%/po/Makefile.in.in\r
161if not errorlevel 1 mv -f %XSRC%/po/Makefile.in.in %XSRC%/po/Makefile.in-in\r
162test -f %XSRC%/po/Makefile.in-in\r
163if errorlevel 1 mv -f %XSRC%/po/Makefile.in %XSRC%/po/Makefile.in-in\r
164test -f %XSRC%/runtime-po/Makefile.in.in\r
165if not errorlevel 1 mv -f %XSRC%/runtime-po/Makefile.in.in %XSRC%/runtime-po/Makefile.in-in\r
166test -f %XSRC%/runtime-po/Makefile.in-in\r
167if errorlevel 1 mv -f %XSRC%/runtime-po/Makefile.in %XSRC%/runtime-po/Makefile.in-in\r
168test -f %XSRC%/data/c++.m4\r
169if not errorlevel 1 mv -f %XSRC%/data/c++.m4 %XSRC%/data/cxx.m4\r
170test -f %XSRC%/data/cxx.m4\r
171if errorlevel 1 mv -f %XSRC%/data/cpp.m4 %XSRC%/data/cxx.m4\r
172\r
173Rem Fix data/lalr1.cc to reflect the renaming of c++.m4\r
174sed "s/c++\.m4/cxx.m4/" %XSRC%/data/lalr1.cc > lalr1.cc\r
175if errorlevel 1 goto lalr1_ccFileError\r
176mv ./lalr1.cc %XSRC%/data/lalr1.cc\r
177\r
178Rem Define DJGPP specific defs in config.hin\r
179echo Editing config.hin...\r
180test -f %XSRC%/config_h.orig\r
181if errorlevel 1 update %XSRC%/config.hin %XSRC%/config_h.orig\r
182sed -f %XSRC%/djgpp/config_h.sed %XSRC%/config_h.orig > config.hin\r
183if errorlevel 1 goto SedError2\r
184mv -f config.hin %XSRC%/config.hin\r
185\r
186\r
187Rem Fixing ilicit testsuite file name.\r
188test -f %XSRC%/tests/c++.at\r
189if not errorlevel 1 mv -f %XSRC%/tests/c++.at %XSRC%/tests/cxx.at\r
190\r
191Rem Fixing ilicit calc++ file names in the calc++ directory.\r
192test -d %XSRC%/examples/calc++\r
193if not errorlevel 1 mv -f %XSRC%/examples/calc++ %XSRC%/examples/calcxx\r
194test -d %XSRC%/examples/calcxx\r
195if errorlevel 1 mv -f %XSRC%/examples/calcpp %XSRC%/examples/calcxx\r
196test -f %XSRC%/examples/calcxx/calc++-scanner.cc\r
197if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-scanner.cc %XSRC%/examples/calcxx/calcxx-scanner.cc\r
198test -f %XSRC%/examples/calcxx/calcxx-scanner.cc\r
199if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-scanner.cc %XSRC%/examples/calcxx/calcxx-scanner.cc\r
200test -f %XSRC%/examples/calcxx/calc++-scanner.ll\r
201if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-scanner.ll %XSRC%/examples/calcxx/calcxx-scanner.ll\r
202test -f %XSRC%/examples/calcxx/calcxx-scanner.ll\r
203if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-scanner.ll %XSRC%/examples/calcxx/calcxx-scanner.ll\r
204test -f %XSRC%/examples/calcxx/calc++-driver.cc\r
205if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-driver.cc %XSRC%/examples/calcxx/calcxx-driver.cc\r
206test -f %XSRC%/examples/calcxx/calcxx-driver.cc\r
207if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-driver.cc %XSRC%/examples/calcxx/calcxx-driver.cc\r
208test -f %XSRC%/examples/calcxx/calc++-driver.hh\r
209if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-driver.hh %XSRC%/examples/calcxx/calcxx-driver.hh\r
210test -f %XSRC%/examples/calcxx/calcxx-driver.hh\r
211if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-driver.hh %XSRC%/examples/calcxx/calcxx-driver.hh\r
212test -f %XSRC%/examples/calcxx/calc++-parser.cc\r
213if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-parser.cc %XSRC%/examples/calcxx/calcxx-parser.cc\r
214test -f %XSRC%/examples/calcxx/calcxx-parser.cc\r
215if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-parser.cc %XSRC%/examples/calcxx/calcxx-parser.cc\r
216test -f %XSRC%/examples/calcxx/calc++-parser.hh\r
217if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-parser.hh %XSRC%/examples/calcxx/calcxx-parser.hh\r
218test -f %XSRC%/examples/calcxx/calcxx-parser.hh\r
219if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-parser.hh %XSRC%/examples/calcxx/calcxx-parser.hh\r
220test -f %XSRC%/examples/calcxx/calc++-parser.stamp\r
221if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-parser.stamp %XSRC%/examples/calcxx/calcxx-parser.stamp\r
222test -f %XSRC%/examples/calcxx/calcxx-parser.stamp\r
223if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-parser.stamp %XSRC%/examples/calcxx/calcxx-parser.stamp\r
224test -f %XSRC%/examples/calcxx/calc++-parser.yy\r
225if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-parser.yy %XSRC%/examples/calcxx/calcxx-parser.yy\r
226test -f %XSRC%/examples/calcxx/calcxx-parser.yy\r
227if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-parser.yy %XSRC%/examples/calcxx/calcxx-parser.yy\r
228test -f %XSRC%/examples/calcxx/calc++.cc\r
229if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++.cc %XSRC%/examples/calcxx/calcxx.cc\r
230test -f %XSRC%/examples/calcxx/calcxx.cc\r
231if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp.cc %XSRC%/examples/calcxx/calcxx.cc\r
232\r
233Rem Fixing #include lines in calcxx files.\r
234sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx.cc > calcxx.cc\r
235if errorlevel 1 goto calcxxFileError\r
236mv ./calcxx.cc %XSRC%/examples/calcxx/calcxx.cc\r
237sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx-driver.cc > calcxx-driver.cc\r
238if errorlevel 1 goto calcxxFileError\r
239mv ./calcxx-driver.cc %XSRC%/examples/calcxx/calcxx-driver.cc\r
240sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx-driver.hh > calcxx-driver.hh\r
241if errorlevel 1 goto calcxxFileError\r
242mv ./calcxx-driver.hh %XSRC%/examples/calcxx/calcxx-driver.hh\r
243sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx-parser.cc > calcxx-parser.cc\r
244if errorlevel 1 goto calcxxFileError\r
245mv ./calcxx-parser.cc %XSRC%/examples/calcxx/calcxx-parser.cc\r
246sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx-parser.hh > calcxx-parser.hh\r
247if errorlevel 1 goto calcxxFileError\r
248mv ./calcxx-parser.hh %XSRC%/examples/calcxx/calcxx-parser.hh\r
249:sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx-parser.yy > calcxx-parser.yy\r
250:if errorlevel 1 goto calcxxFileError\r
251:mv ./calcxx-parser.yy %XSRC%/examples/calcxx/calcxx-parser.yy\r
252sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx-scanner.cc > calcxx-scanner.cc\r
253if errorlevel 1 goto calcxxFileError\r
254mv ./calcxx-scanner.cc %XSRC%/examples/calcxx/calcxx-scanner.cc\r
255:sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx-scanner.ll > calcxx-scanner.ll\r
256:if errorlevel 1 goto calcxxFileError\r
257:mv ./calcxx-scanner.ll %XSRC%/examples/calcxx/calcxx-scanner.ll\r
258sed "s/calc++/calcxx/" %XSRC%/examples/calcxx/test > test\r
259if errorlevel 1 goto calcxxFileError\r
260mv ./test %XSRC%/examples/calcxx/test\r
261\r
262\r
263Rem Fixing the scanner files to make file names 8.3 valid.\r
264Rem Use only if you want to change the scan-gram.l and scan-skel.l files.\r
265: sed "/outfile=/s/\.yy/yy/" %XSRC%/src/scan-gram.l > scan-gram.l\r
266: if errorlevel 1 goto ScannerFileError\r
267: mv ./scan-gram.l %XSRC%/src/scan-gram.l\r
268: sed "/outfile=/s/\.yy/yy/" %XSRC%/src/scan-skel.l > scan-skel.l\r
269: if errorlevel 1 goto ScannerFileError\r
270: mv ./scan-skel.l %XSRC%/src/scan-skel.l\r
271\r
272\r
273Rem This is required because DOS/Windows are case-insensitive\r
274Rem to file names, and "make install" will do nothing if Make\r
275Rem finds a file called `install'.\r
276if exist INSTALL ren INSTALL INSTALL.txt\r
277\r
278Rem Set SHELL to a sane default or some configure tests stop working\r
279Rem if the package is configured across partitions.\r
280if not "%SHELL%" == "" goto HomeName\r
281set SHELL=/bin/sh\r
282if not "%SHELL%" == "/bin/sh" goto SmallEnv\r
283echo No SHELL found in the environment, using default value\r
284\r
285:HomeName\r
286Rem Set HOME to a sane default so configure stops complaining.\r
287if not "%HOME%" == "" goto HostName\r
288set HOME=%XSRC%/djgpp\r
289if not "%HOME%" == "%XSRC%/djgpp" goto SmallEnv\r
290echo No HOME found in the environment, using default value\r
291\r
292:HostName\r
293Rem Set HOSTNAME so it shows in config.status\r
294if not "%HOSTNAME%" == "" goto hostdone\r
295if "%windir%" == "" goto msdos\r
296set OS=MS-Windows\r
297if not "%OS%" == "MS-Windows" goto SmallEnv\r
298goto haveos\r
299:msdos\r
300set OS=MS-DOS\r
301if not "%OS%" == "MS-DOS" goto SmallEnv\r
302:haveos\r
303if not "%USERNAME%" == "" goto haveuname\r
304if not "%USER%" == "" goto haveuser\r
305echo No USERNAME and no USER found in the environment, using default values\r
306set HOSTNAME=Unknown PC\r
307if not "%HOSTNAME%" == "Unknown PC" goto SmallEnv\r
308goto userdone\r
309:haveuser\r
310set HOSTNAME=%USER%'s PC\r
311if not "%HOSTNAME%" == "%USER%'s PC" goto SmallEnv\r
312goto userdone\r
313:haveuname\r
314set HOSTNAME=%USERNAME%'s PC\r
315if not "%HOSTNAME%" == "%USERNAME%'s PC" goto SmallEnv\r
316:userdone\r
317set _HOSTNAME=%HOSTNAME%, %OS%\r
318if not "%_HOSTNAME%" == "%HOSTNAME%, %OS%" goto SmallEnv\r
319set HOSTNAME=%_HOSTNAME%\r
320:hostdone\r
321set _HOSTNAME=\r
322set OS=\r
323\r
324Rem install-sh is required by the configure script but clashes with the\r
325Rem various Makefile install-foo targets, so we MUST have it before the\r
326Rem script runs and rename it afterwards\r
327test -f %XSRC%/install-sh\r
328if not errorlevel 1 goto NoRen0\r
329test -f %XSRC%/install-sh.sh\r
330if not errorlevel 1 mv -f %XSRC%/install-sh.sh %XSRC%/install-sh\r
331:NoRen0\r
332\r
333if "%NLS%" == "disabled" goto WithoutNLS\r
334\r
335:WithNLS\r
336Rem Check for the needed libraries and binaries.\r
337test -x /dev/env/DJDIR/bin/msgfmt.exe\r
338if errorlevel 1 goto MissingNLSTools\r
339test -x /dev/env/DJDIR/bin/xgettext.exe\r
340if errorlevel 1 goto MissingNLSTools\r
341test -f /dev/env/DJDIR/include/libcharset.h\r
342if errorlevel 1 goto MissingNLSTools\r
343test -f /dev/env/DJDIR/lib/libcharset.a\r
344if errorlevel 1 goto MissingNLSTools\r
345test -f /dev/env/DJDIR/include/iconv.h\r
346if errorlevel 1 goto MissingNLSTools\r
347test -f /dev/env/DJDIR/lib/libiconv.a\r
348if errorlevel 1 goto MissingNLSTools\r
349test -f /dev/env/DJDIR/include/libintl.h\r
350if errorlevel 1 goto MissingNLSTools\r
351test -f /dev/env/DJDIR/lib/libintl.a\r
352if errorlevel 1 goto MissingNLSTools\r
353\r
354Rem Recreate the files in the %XSRC%/po subdir with our ported tools.\r
355redir -e /dev/null rm %XSRC%/po/*.gmo\r
356redir -e /dev/null rm %XSRC%/po/bison.pot\r
357redir -e /dev/null rm %XSRC%/po/cat-id-tbl.c\r
358redir -e /dev/null rm %XSRC%/po/stamp-cat-id\r
359\r
360Rem Update the arguments file for the configure script.\r
361Rem We prefer without-included-gettext because libintl.a from gettext package\r
362Rem is the only one that is garanteed to have been ported to DJGPP.\r
363echo --enable-nls --without-included-gettext >> arguments\r
364goto ConfigurePackage\r
365\r
366:MissingNLSTools\r
367echo Needed libs/tools for NLS not found. Configuring without NLS.\r
368:WithoutNLS\r
369Rem Update the arguments file for the configure script.\r
370echo --disable-nls >> arguments\r
371\r
372:ConfigurePackage\r
373echo Running the ./configure script...\r
374sh ./configure @arguments\r
375if errorlevel 1 goto CfgError\r
376rm arguments\r
377echo Done.\r
378goto End\r
379\r
380:lalr1_ccFileError\r
381echo ./data/lalr1.cc file editing failed!\r
382goto End\r
383\r
384:calcxxFileError\r
385echo ./examples/calcxx file editing failed!\r
386goto End\r
387\r
388:ScannerFileError\r
389echo ./scanner file editing failed!\r
390goto End\r
391\r
392:SedError\r
393echo ./configure script editing failed!\r
394goto End\r
395\r
396:SedError2\r
397echo ./config.hin editing failed!\r
398goto End\r
399\r
400:CfgError\r
401echo ./configure script exited abnormally!\r
402goto End\r
403\r
404:SmallEnv\r
405echo Your environment size is too small. Enlarge it and run me again.\r
406echo Configuration NOT done!\r
407\r
408:End\r
409test -f %XSRC%/install-sh.sh\r
410if not errorlevel 1 goto NoRen1\r
411test -f %XSRC%/install-sh\r
412if not errorlevel 1 mv -f %XSRC%/install-sh %XSRC%/install-sh.sh\r
413:NoRen1\r
414if "%SHELL%" == "/bin/sh" set SHELL=\r
415if "%HOME%" == "%XSRC%/djgpp" set HOME=\r
416set ARGS=\r
417set CONFIG_SITE=\r
418set HOSTNAME=\r
419set NLS=\r
420set CACHING=\r
421set DEPENDENCY_TRACKING=\r
422set XSRC=\r