11,/START OF targmatch.h/	d
2/END OF targmatch.h/,$		d
3/^[ 	]*case/,/^[ 	]*esac/ d
4s/^#if/KEEP #if/
5s/^#endif/KEEP #endif/
6s/^[ 	]*#.*$//
7s/^KEEP #/#/
8s/[ 	]*\\$//
9t lab1
10	:lab1
11s/[| 	][| 	]*\([^|() 	][^|() 	]*\)[ 	]*|/{ "\1", NULL },/g
12s/[| 	][| 	]*\([^|() 	][^|() 	]*\)[ 	]*)/{ "\1",/g
13t lab2
14s/^[ 	]*targ_defvec=\([^ 	]*\)/#if !defined (SELECT_VECS) || defined (HAVE_\1)/
15t lab3
16s/.*=.*//
17s/;;//
18b
19	:lab2
20H
21d
22	:lab3
23G
24s/\n/%EOL%/g
25s/\(defined (HAVE_\)\([^)]*\)\(.*\)/\1\2\3\
26\&\2 },\
27#endif/
28s/%EOL%/\
29/g
30p
31s/.*//g
32s/\n//g
33h
34