From f8706cb33338df49ee6cb2f6be12c6cd0fe398e3 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 20 Jan 2007 21:44:48 +0000 Subject: Add caching of all detected values :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6410 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/utilities.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'make') diff --git a/make/utilities.pm b/make/utilities.pm index 982337577..17a43606f 100644 --- a/make/utilities.pm +++ b/make/utilities.pm @@ -49,6 +49,8 @@ sub pkgconfig_get_include_dirs($$$;$) if (exists $config{$key}) { + print "Locating include directory for package \033[1;32m$packagename\033[0m for module \033[1;32m$module\033[0m... "; + print "\033[1;32m$ret\033[0m (cached)\n"; my $key = "default_includedir_$packagename"; $ret = $config{$key}; return $ret; @@ -94,6 +96,8 @@ sub pkgconfig_get_include_dirs($$$;$) } else { + my $key = "default_includedir_$packagename"; + $config{$key} = $ret; print "\033[1;32m$ret\033[0m\n"; } return $ret; @@ -105,6 +109,8 @@ sub pkgconfig_get_lib_dirs($$$;$) if (exists $config{$key}) { + print "Locating library directory for package \033[1;32m$packagename\033[0m for module \033[1;32m$module\033[0m... "; + print "\033[1;32m$ret\033[0m (cached)\n"; my $key = "default_libdir_$packagename"; $ret = $config{$key}; return $ret; @@ -152,6 +158,8 @@ sub pkgconfig_get_lib_dirs($$$;$) else { print "\033[1;32m$ret\033[0m\n"; + my $key = "default_libdir_$packagename"; + $config{$key} = $ret; } return $ret; } -- cgit v1.2.3