2 # Script that reads in configure and outputs the names of all the defines
3 # it defines that are used nowhere in the code
11 # First, make a list of defines in configure
17 while(/([A-Za-z0-9_]+)/sgm) {
24 open(IN, $in) or die("Can't open $in");
27 if(/AC_DEFINE\(([^,]+),/ and $symbols{$1} != 1) { print "$1\n"; }