experimental-foo support for mk1mf.pl.
This commit is contained in:
		@@ -1104,6 +1104,18 @@ sub read_options
 | 
				
			|||||||
		if (exists $valid_options{$t})
 | 
							if (exists $valid_options{$t})
 | 
				
			||||||
			{return 1;}
 | 
								{return 1;}
 | 
				
			||||||
		return 0;
 | 
							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=(.*)$/)
 | 
						elsif (/^--with-krb5-flavor=(.*)$/)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user