(Retracted by #9609)
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 3 Apr 2001 00:02:31 +0000 (00:02 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 3 Apr 2001 00:02:31 +0000 (00:02 +0000)
Make it harder for parallel makes to enter 'test' before
Dynaloader and File::Glob are happy.  (In principle 'make_ext'
should be unhappy enough, but sometimes parallel makes seem
to sneak past both in Tru64 and AIX.)

p4raw-id: //depot/perl@9523

Makefile.SH

index f1b353d..3c6e8e3 100644 (file)
@@ -129,6 +129,15 @@ case "$osname" in
        ;;
 esac
 
+case "$usedl" in
+define) testreqext="$testreqext \$(DYNALOADER)" ;;
+esac
+
+case "$DPERL_EXTERNAL_GLOB" in
+"") ;;
+*) testreqext="$testreqext \$(EXTGLOB)" ;;
+esac
+
 echo "Extracting Makefile (with variable substitutions)"
 $spitshell >Makefile <<!GROK!THIS!
 # Makefile.SH
@@ -186,6 +195,9 @@ static_ext = $static_list
 nonxs_ext = $nonxs_list
 ext = \$(dynamic_ext) \$(static_ext) \$(nonxs_ext)
 DYNALOADER = lib/auto/DynaLoader/DynaLoader\$(LIB_EXT)
+EXTGLOB = lib/auto/File/Glob/Glob\$(DLSUFFIX)
+
+TESTREQEXT = $testreqext
 
 libs = $perllibs $cryptlib
 
@@ -892,16 +904,16 @@ _test:
        fi
        @echo "Ran tests" > t/rantests
 
-test check: test_prep
+test check: test_prep $(TESTREQEXT)
        PERL=./perl $(MAKE) _test
 
-test_tty: test_prep
+test_tty: test_prep $(TESTREQEXT)
        PERL=./perl $(MAKE) _test_tty
 
-test_notty: test_prep
+test_notty: test_prep $(TESTREQEXT)
        PERL=./perl $(MAKE) _test_notty
 
-utest ucheck: test_prep
+utest ucheck: test_prep $(TESTREQEXT)
        PERL=./perl UTF8=-utf8 $(MAKE) _test
 
 test-prep:     test_prep
@@ -915,13 +927,13 @@ test-notty:       test_notty
 test_prep.third: test_prep perl.third
        PERL=./perl.third $(MAKE) _test_prep
 
-test.third check.third:        test_prep.third perl.third
+test.third check.third:        test_prep.third perl.third $(TESTREQEXT)
        PERL=./perl.third PERL_DEBUG=PERL_3LOG=1 $(MAKE) _test
 
-utest.third ucheck.third: test_prep.third perl.third
+utest.third ucheck.third: test_prep.third perl.third $(TESTREQEXT)
        PERL=./perl.third PERL_DEBUG=PERL_3LOG=1UTF=-utf8 $(MAKE) _test
 
-test_notty.third: test_prep.third perl.third
+test_notty.third: test_prep.third perl.third $(TESTREQEXT)
        PERL=./perl.third $(MAKE) PERL_DEBUG=PERL_3LOG=1 _test_notty
 
 # Can't depend on lib/Config.pm because that might be where miniperl