This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Regen Glossary et alia.
[perl5.git] / djgpp / configure.bat
CommitLineData
0a18ebd1
JH
1@echo off
2set CONFIG=
3set PATH_SEPARATOR=;
4set PATH_EXPAND=y
5sh -c 'if test $PATH_SEPARATOR = ";"; then exit 1; fi'
6if ERRORLEVEL 1 goto path_sep_ok
7echo Error:\a
8echo Make sure the environment variable PATH_SEPARATOR=; while building perl!
9echo Please check your DJGPP.ENV!
10goto end
11
12:path_sep_ok
13sh -c 'if test $PATH_EXPAND = "Y" -o $PATH_EXPAND = "y"; then exit 1; fi'
14if ERRORLEVEL 1 goto path_exp_ok
15echo Error:\a
16echo Make sure the environment variable PATH_EXPAND=Y while building perl!
17echo Please check your DJGPP.ENV!
18goto end
19
20:path_exp_ok
21sh -c '$SHELL -c "exit 128"'
22if ERRORLEVEL 128 goto shell_ok
23
24echo Error:\a
25echo The SHELL environment variable must be set to the full path of your sh.exe!
26goto end
27
28:shell_ok
29sh -c 'if test ! -d /tmp; then mkdir /tmp; fi'
30cp djgpp.[hc] config.over ..
31cd ..
32echo Running sed...
33sh djgpp/djgppsed.sh
34
35echo Running Configure...
36sh Configure %1 %2 %3 %4 %5 %6 %7 %8 %9
37:end