1 # awk script for soversions.i -> gnu/lib-names.h; see Makeconfig.
7 soname = version = fields
[2];
8 sub(/^.
*=
/, "", soname
);
9 sub(/^lib.
*\.so\.
/, "", version
);
10 if ($soname !~
/^lib
/) {
12 sub(/\.so.
*$
/, "", extra
);
17 soname =
"\"" soname
"\"";
19 extra =
toupper(extra
);
21 gsub(/-/, "_", extra
);
22 macros
[$
1 FS lib
"_SO"] = soname
;
24 macros
[$
1 FS extra
"_SO"] = soname
;
30 pfx = multi ?
"# define " : "#define ";
31 printf("%-40s%s\n", pfx x
[2], macros
[elt
]);