Home | History | Annotate | Download | only in config
      1 # Copyright (C) 2016 and later: Unicode, Inc. and others.
      2 # License & terms of use: http://www.unicode.org/copyright.html
      3 # Copyright (C) 1999-2011, International Business Machines  Corporation and others.  All Rights Reserved.
      4 s%^\([a-zA-Z0-9\._-]*\)[ 	]*+=%\1=$(\1) %
      5 s%^[A-Z]*_SO_TARG*%## &%
      6 s%^SHARED_OBJECT.*%## &%
      7 s%^LD_SONAME.*%## &%
      8 s%$(\([^\)]*\))%${\1}%g
      9 s%^	%#M#	%
     10 s@^[a-zA-Z%$.][^=]*$@#M#&@
     11 s@^\([a-zA-Z][-.a-zA-Z_0-9-]*\)[	 ]*=[ 	]*\(.*\)@\1="\2"@
     12 s@^\([a-zA-Z][-a-zA-Z_0-9-]*\)\.\([a-zA-Z_0-9-]*\)[	 ]*=[ 	]*\(.*\)@\1_\2=\3@
     13 s@^\([a-zA-Z][-a-zA-Z_0-9-]*\)\-\([a-zA-Z_0-9-]*\)[	 ]*=[ 	]*\(.*\)@\1_\2=\3@
     14 s@\${\([a-zA-Z][-a-zA-Z_0-9-]*\)\.\([a-zA-Z_0-9-]*\)}@${\1_\2}@g
     15 s@^\(prefix\)=\(.*\)@default_\1=\2\
     16 if [ "x${\1}" = "x" ]; then \1="$default_\1"; fi@
     17 s@^\(ENABLE_RPATH\)=\(.*\)@default_\1=\2\
     18 if [ "x${\1}" = "x" ]; then \1="$default_\1"; fi@
     19 s%^#SH#[ ]*%%
     20 s%'\$\$'%\\\$\\\$%g
     21