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