s/[ \t]+//g;
# Find include dependencies
for (/^\#include([^\n]+)/gm) {
- if (m@^\"([A-Za-z0-9._-]+\.h)\"@) {
+ if (m@^\"([A-Za-z0-9._-]+\.[ch])\"@) {
$uses{$file}{$1} = 1 if exists $exists{$1};
} elsif (m@<([A-Za-z0-9._-]+\.h)>@) {
$uses{$file}{$1} = 1 if exists $generated_header{$1};
PrintPatternDeps ('-msw\\.', "HAVE_MS_WINDOWS");
PrintPatternDeps ('-x\\.', "HAVE_X_WINDOWS");
PrintPatternDeps ('-tty\\.', "HAVE_TTY");
+PrintPatternDeps ('-gtk\\.', "HAVE_GTK");
PrintPatternDeps ('^database', "HAVE_DATABASE");
PrintPatternDeps ('^mule', "MULE");
PrintPatternDeps ('^(?:External|extw-)', "EXTERNAL_WIDGET");