Skip to content

Commit

Permalink
Makefile.PL: debugging code
Browse files Browse the repository at this point in the history
Display the directories where the program will look for header files,
then list the files found in those directories.
  • Loading branch information
jkeenan committed May 4, 2024
1 parent 24ee0c2 commit a399e8e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,16 @@ push @h_dirs, split ' ', $Config{libsdirs};
push @h_dirs, qw(/include /usr/include /usr/local/include /usr/include/mach);
@h_dirs = grep { -d $_ } @h_dirs;

print STDERR '@h_dirs:', "\n";
print STDERR " $_\n" for @h_dirs;

$h_files = find_h_files(@h_dirs);

print STDERR '$h_files:', "\n";
for (sort keys %$h_files) {
printf STDERR " %-24s%s\n" => ($_, $h_files->{$_});
}

# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
my %mm_opts;
Expand Down

0 comments on commit a399e8e

Please sign in to comment.