X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopenssl.git;a=blobdiff_plain;f=configdata.pm.in;h=71627b48ef49998d5cc839fd6b798dfb2d6a1db3;hp=6e5c1ad4f674c42099f43aeabd6e4a0052d79089;hb=c4de5d22aa189d357aec18e4a744e3747bd545af;hpb=1f86b8228b49938e0e368f361202570d7eab5806 diff --git a/configdata.pm.in b/configdata.pm.in index 6e5c1ad4f6..71627b48ef 100644 --- a/configdata.pm.in +++ b/configdata.pm.in @@ -124,8 +124,6 @@ unless (caller) { my $prepend = <<"_____"; use File::Spec::Functions; use lib '{- sourcedir('util', 'perl') -}'; -_____ - $prepend .= <<"_____" if defined $target{perl_platform}; use lib '{- sourcedir('Configurations') -}'; use lib '{- $config{builddir} -}'; use platform; @@ -247,7 +245,13 @@ _____ foreach (sort keys %target) { next if $_ =~ m|^_| || $_ eq 'template'; my $quotify = sub { - map { (my $x = $_) =~ s|([\\\$\@"])|\\$1|g; "\"$x\""} @_; + map { + if (defined $_) { + (my $x = $_) =~ s|([\\\$\@"])|\\$1|g; "\"$x\"" + } else { + "undef"; + } + } @_; }; print ' ', $_, ' => '; if (ref($target{$_}) eq "ARRAY") {