]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - make/utilities.pm
Run modulemanager upgrade to check for updates to third party (and extras) modules...
[user/henk/code/inspircd.git] / make / utilities.pm
index d3716f60e1219b6ae889b87fe042bf1a72ed411f..22425714a27fc9efb6c7edaa75589a6c93293d83 100644 (file)
@@ -3,7 +3,7 @@
 #       +------------------------------------+
 #
 #  InspIRCd: (C) 2002-2009 InspIRCd Development Team
-# See: http://www.inspircd.org/wiki/index.php/Credits
+# See: http://wiki.inspircd.org/Credits
 #
 # This program is free but copyrighted software; see
 #      the file COPYING for details.
@@ -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))
                {