experimental-foo support for mk1mf.pl.
authorBodo Möller <bodo@openssl.org>
Tue, 2 Dec 2008 23:50:21 +0000 (23:50 +0000)
committerBodo Möller <bodo@openssl.org>
Tue, 2 Dec 2008 23:50:21 +0000 (23:50 +0000)
util/mk1mf.pl

index 10b4c9bcb88a8977191abeeff10e6fcb274ad499..f2b92b2b25bf59e5a1c0b6a87f295471e593d40f 100755 (executable)
@@ -1361,6 +1361,18 @@ sub read_options
                if (exists $valid_options{$t})
                        {return 1;}
                return 0;
+               }
+       # experimental-xxx is mostly like enable-xxx, but opensslconf.v
+       # will still set OPENSSL_NO_xxx unless we set OPENSSL_EXPERIMENTAL_xxx.
+       # (No need to fail if we don't know the algorithm -- this is for adventurous users only.)
+       elsif (/^experimental-/)
+               {
+               my $algo, $ALGO;
+               ($algo = $_) =~ s/^experimental-//;
+               ($ALGO = $algo) =~ tr/[a-z]/[A-Z]/;
+
+               $xcflags="-DOPENSSL_EXPERIMENTAL_$ALGO $xcflags";
+               
                }
        elsif (/^--with-krb5-flavor=(.*)$/)
                {