summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-05-25 11:09:51 +0100
committerPeter Powell <petpow@saberuk.com>2018-06-24 23:24:46 +0100
commit2241991dda01f114e25a4b0c7dcdf48b1826780b (patch)
tree792476f65ca3947bf493594aecac79d3b2b9abf9 /make
parent9cd7a2e54683a05d175a86e901f2f0df7d680902 (diff)
Show the package name in the message when doing pkg-config lookups.
Diffstat (limited to 'make')
-rw-r--r--make/directive.pm18
1 files changed, 9 insertions, 9 deletions
diff --git a/make/directive.pm b/make/directive.pm
index 2e9e7ed61..6650825bc 100644
--- a/make/directive.pm
+++ b/make/directive.pm
@@ -172,25 +172,25 @@ sub __function_find_compiler_flags {
# Try to look up the compiler flags with pkg-config...
chomp(my $flags = `pkg-config --cflags $name ${\DIRECTIVE_ERROR_PIPE}`);
unless ($?) {
- print_format "Found the compiler flags for <|GREEN ${\basename $file, '.cpp'}|> using pkg-config: <|BOLD $flags|>\n";
+ print_format "Found the <|GREEN $name|> compiler flags for <|GREEN ${\basename $file, '.cpp'}|> using pkg-config: <|BOLD $flags|>\n";
return $flags;
}
# If looking up with pkg-config fails then check the environment...
my $key = __environment 'INSPIRCD_CXXFLAGS_', $name;
if (defined $ENV{$key}) {
- print_format "Found the compiler flags for <|GREEN ${\basename $file, '.cpp'}|> using the environment: <|BOLD $ENV{$key}|>\n";
+ print_format "Found the <|GREEN $name|> compiler flags for <|GREEN ${\basename $file, '.cpp'}|> using the environment: <|BOLD $ENV{$key}|>\n";
return $ENV{$key};
}
# If all else fails then look for the defaults..
if (defined $defaults) {
- print_format "Found the compiler flags for <|GREEN ${\basename $file, '.cpp'}|> using the defaults: <|BOLD $defaults|>\n";
+ print_format "Found the <|GREEN $name|> compiler flags for <|GREEN ${\basename $file, '.cpp'}|> using the defaults: <|BOLD $defaults|>\n";
return $defaults;
}
# We can't find it via pkg-config, via the environment, or via the defaults so give up.
- __error $file, "unable to find the compiler flags for <|GREEN ${\basename $file, '.cpp'}|>!";
+ __error $file, "unable to find the <|GREEN $name|> compiler flags for <|GREEN ${\basename $file, '.cpp'}|>!";
}
sub __function_find_linker_flags {
@@ -199,25 +199,25 @@ sub __function_find_linker_flags {
# Try to look up the linker flags with pkg-config...
chomp(my $flags = `pkg-config --libs $name ${\DIRECTIVE_ERROR_PIPE}`);
unless ($?) {
- print_format "Found the linker flags for <|GREEN ${\basename $file, '.cpp'}|> using pkg-config: <|BOLD $flags|>\n";
+ print_format "Found the <|GREEN $name|> linker flags for <|GREEN ${\basename $file, '.cpp'}|> using pkg-config: <|BOLD $flags|>\n";
return $flags;
}
# If looking up with pkg-config fails then check the environment...
my $key = __environment 'INSPIRCD_CXXFLAGS_', $name;
if (defined $ENV{$key}) {
- print_format "Found the linker flags for <|GREEN ${\basename $file, '.cpp'}|> using the environment: <|BOLD $ENV{$key}|>\n";
+ print_format "Found the <|GREEN $name|> linker flags for <|GREEN ${\basename $file, '.cpp'}|> using the environment: <|BOLD $ENV{$key}|>\n";
return $ENV{$key};
}
# If all else fails then look for the defaults..
if (defined $defaults) {
- print_format "Found the linker flags for <|GREEN ${\basename $file, '.cpp'}|> using the defaults: <|BOLD $defaults|>\n";
+ print_format "Found the <|GREEN $name|> linker flags for <|GREEN ${\basename $file, '.cpp'}|> using the defaults: <|BOLD $defaults|>\n";
return $defaults;
}
# We can't find it via pkg-config, via the environment, or via the defaults so give up.
- __error $file, "unable to find the linker flags for <|GREEN ${\basename $file, '.cpp'}|>!";
+ __error $file, "unable to find the <|GREEN $name|> linker flags for <|GREEN ${\basename $file, '.cpp'}|>!";
}
sub __function_require_system {
@@ -251,7 +251,7 @@ sub __function_require_version {
# If pkg-config isn't installed then we can't do anything here.
if (system "pkg-config --exists $name ${\DIRECTIVE_ERROR_PIPE}") {
- print_warning "unable to look up the version of $name using pkg-config!";
+ print_warning "unable to look up the version of <|GREEN $name|> using pkg-config!";
return undef;
}