From: Ben Laurie Date: Sun, 3 Mar 2013 02:56:45 +0000 (+0000) Subject: Take the first definition of a variable. X-Git-Tag: master-pre-reformat~1353 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bbb8c5620c7a932988473533e2aca385e4b89c5;p=thirdparty%2Fopenssl.git Take the first definition of a variable. --- diff --git a/util/mk1mf.pl b/util/mk1mf.pl index bb528f0c4b3..e19816f4f72 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -69,7 +69,7 @@ open(IN,") { my ($mf_opt, $mf_ref); while (($mf_opt, $mf_ref) = each %mf_import) { - if (/^$mf_opt\s*=\s*(.*)$/) { + if (/^$mf_opt\s*=\s*(.*)$/ && !defined($$mfref)) { $$mf_ref = $1; } }