summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-02-17 03:23:04 +0100
committerRichard Levitte <levitte@openssl.org>2016-02-17 20:09:33 +0100
commit95b2ebdf99a5fbf9e1f3f71a5ebd9728d57addf5 (patch)
tree1e30cbf87ebf5e0377e65ec8ba9afe5e1839da25 /Configure
parentd918f9cb2d105675728af8be1e14d23208200c24 (diff)
When someone configures an out-of-source build, switch to unified
For example, this works instead of giving a big error message (note the lack of '--unified'): mkdir ../_build (cd ../_build/; ../openssl-src/config; make) Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure10
1 files changed, 2 insertions, 8 deletions
diff --git a/Configure b/Configure
index 74ebfb1d45..58c0f7d0c2 100755
--- a/Configure
+++ b/Configure
@@ -885,9 +885,10 @@ $target{build_scheme} = [ $target{build_scheme} ]
###### TO BE REMOVED BEFORE FINAL RELEASE
######
###### If the user has chosen --unified, we give it to them.
+###### The same happens if we detect that they try to build out-of-source.
if ($target{build_file} eq "Makefile"
&& $target{build_scheme}->[0] eq "unixmake"
- && $unified) {
+ && ($unified || $srcdir ne $blddir)) {
$target{build_scheme} = [ "unified", "unix" ];
}
@@ -1704,13 +1705,6 @@ EOF
print OUT "1;\n";
close(OUT);
-die <<"EOF" if $builder ne "unified" && $srcdir ne $blddir;
-
-***** Trying building anywhere else than in the source tree will not
-***** work for target $config{target}. To make it possible, it needs
-***** to use the "unified" build scheme.
-
-EOF
print "IsMK1MF =", ($builder eq "mk1mf" ? "yes" : "no"), "\n";
print "CC =$target{cc}\n";