Ignore #defines in in patchlevel.h that end the line with backslash.
Nicholas Clark [Mon, 16 Feb 2009 22:47:54 +0000 (22:47 +0000)]
(Otherwise config.sh ends up with part of PERL_VERSION_STRING, and the build
chokes to a stop.)

Configure

index 47ca217..402ba33 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -23167,7 +23167,7 @@ $test -f UU/cmdline.opt && $cat UU/cmdline.opt >> config.sh
 
 : add special variables
 $test -f $src/patchlevel.h && \
-awk '/^#define[        ]+PERL_/ {printf "%s=%s\n",$2,$3}' $src/patchlevel.h >>config.sh
+awk '/^#define[        ]+PERL_.*[^\\]$/ {printf "%s=%s\n",$2,$3}' $src/patchlevel.h >>config.sh
 echo "PERL_PATCHLEVEL='$perl_patchlevel'" >>config.sh
 echo "PERL_CONFIG_SH=true" >>config.sh