Change 30327 by [EMAIL PROTECTED] on 2007/02/16 10:30:57

        Avoid to run config_h.SH twice during configuration.

Affected files ...

... //depot/perl/cflags.SH#45 edit
... //depot/perl/config_h.SH#332 edit

Differences ...

==== //depot/perl/cflags.SH#45 (xtext) ====
Index: perl/cflags.SH
--- perl/cflags.SH#44~30125~    2007-02-05 02:05:10.000000000 -0800
+++ perl/cflags.SH      2007-02-16 02:30:57.000000000 -0800
@@ -17,8 +17,9 @@
 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
 esac
 
-if ! test -f config.h; then
+if test -f config_h.SH && ! test -f config.h; then
     . ./config_h.SH
+    CONFIG_H=already-done
 fi
 
 warn=''

==== //depot/perl/config_h.SH#332 (text) ====
Index: perl/config_h.SH
--- perl/config_h.SH#331~30192~ 2007-02-10 09:22:04.000000000 -0800
+++ perl/config_h.SH    2007-02-16 02:30:57.000000000 -0800
@@ -20,8 +20,11 @@
 case "$0" in
 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
 esac
-echo "Extracting $CONFIG_H (with variable substitutions)"
-sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 
's!^#un-def!#undef!'
+case "$CONFIG_H" in
+already-done) echo "Not re-extracting config.h" ;;
+*)
+    echo "Extracting $CONFIG_H (with variable substitutions)"
+    sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 
's!^#un-def!#undef!'
 /*
  * This file was produced by running the config_h.SH script, which
  * gets its values from $CONFIG_SH, which is generally produced by
@@ -4485,3 +4488,5 @@
 
 #endif
 !GROK!THIS!
+    ;;
+esac
End of Patch.

Reply via email to