summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--make/utilities.pm19
1 files changed, 16 insertions, 3 deletions
diff --git a/make/utilities.pm b/make/utilities.pm
index 3c0f76188..2470e1b44 100644
--- a/make/utilities.pm
+++ b/make/utilities.pm
@@ -63,8 +63,14 @@ sub pkgconfig_get_include_dirs($$$)
$ret = "$foo " . $defaults;
}
chomp($ret);
-
- print "\033[1;32m$ret\033[0m\n";
+ if (($ret eq " ") || (!defined $ret))
+ {
+ print "\033[1;32mUsing defaults\033[0m\n";
+ }
+ else
+ {
+ print "\033[1;32m$ret\033[0m\n";
+ }
return $ret;
}
@@ -96,7 +102,14 @@ sub pkgconfig_get_lib_dirs($$$)
$ret = "$foo " . $defaults;
}
chomp($ret);
- print "\033[1;32m$ret\033[0m\n";
+ if (($ret eq " ") || (!defined $ret))
+ {
+ print "\033[1;32mUsing defaults\033[0m\n";
+ }
+ else
+ {
+ print "\033[1;32m$ret\033[0m\n";
+ }
return $ret;
}