diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-20 21:42:57 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-20 21:42:57 +0000 |
commit | dff9228f246dada328795b1ece11c5694529f898 (patch) | |
tree | d1129f84d5bee8b38348c20fd6d5486ea97f2509 /make/utilities.pm | |
parent | 5784c4396975b75809613b9cddb93dafc22a5517 (diff) |
Proritise cached value above a search
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6409 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make/utilities.pm')
-rw-r--r-- | make/utilities.pm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/make/utilities.pm b/make/utilities.pm index 1285a7193..982337577 100644 --- a/make/utilities.pm +++ b/make/utilities.pm @@ -46,6 +46,14 @@ sub extend_pkg_path() sub pkgconfig_get_include_dirs($$$;$) { my ($packagename, $headername, $defaults, $module) = @_; + + if (exists $config{$key}) + { + my $key = "default_includedir_$packagename"; + $ret = $config{$key}; + return $ret; + } + extend_pkg_path(); print "Locating include directory for package \033[1;32m$packagename\033[0m for module \033[1;32m$module\033[0m... "; @@ -94,6 +102,14 @@ sub pkgconfig_get_include_dirs($$$;$) sub pkgconfig_get_lib_dirs($$$;$) { my ($packagename, $libname, $defaults, $module) = @_; + + if (exists $config{$key}) + { + my $key = "default_libdir_$packagename"; + $ret = $config{$key}; + return $ret; + } + extend_pkg_path(); print "Locating library directory for package \033[1;32m$packagename\033[0m for module \033[1;32m$module\033[0m... "; |