diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-06-26 12:10:16 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-06-26 12:10:16 +0000 |
commit | 5374c1696128bf8908e3cfad547213e2893edf01 (patch) | |
tree | b50d58d713ffef5436d3eefbfa3155a7671a378c /make | |
parent | 59d380cad4bb23ffd4a401ce220eadd647788e8d (diff) |
Make pkg-config failure error clearer
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11417 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make')
-rw-r--r-- | make/utilities.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/make/utilities.pm b/make/utilities.pm index 9776ae7f4..22425714a 100644 --- a/make/utilities.pm +++ b/make/utilities.pm @@ -116,9 +116,9 @@ sub pkgconfig_get_include_dirs($$$;$) my $foo = ""; if ((!defined $v) || ($v eq "")) { - $foo = `locate "$headername" | head -n 1`; - $foo =~ /(.+)\Q$headername\E/; - my $find = $1; + print "\e[31mCould not find $packagename via pkg-config\e[m (\e[1;32mplease install pkg-config\e[m)\n"; + $foo = `locate "$headername" 2>/dev/null | head -n 1`; + my $find = $foo =~ /(.+)\Q$headername\E/ ? $1 : ''; chomp($find); if ((defined $find) && ($find ne "") && ($find ne $packagename)) { |