From b7597efb48126e28dd0bbb12ef07a5e1066093fc Mon Sep 17 00:00:00 2001 From: knu Date: Tue, 11 Jun 2013 08:25:40 +0000 Subject: Update documentation for pkg_config(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/mkmf.rb | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 672b97b7ec..f6637b493d 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1717,11 +1717,21 @@ SRC # :stopdoc: - # Handles meta information about installed libraries. Uses your platform's - # pkg-config program if it has one. + # Returns compile/link information about an installed library in a + # tuple of [cflags, ldflags, libs], by using the + # command found first in the following commands: # - # The actual command name can be overridden by - # --with-pkg-config command line option. + # 1. If --with-{pkg}-config={command} is given via + # command line option: {command} {option} + # + # 2. {pkg}-config {option} + # + # 3. pkg-config {option} {pkg} + # + # Where {option} is, for instance, --cflags. + # + # If an option argument is given, the config command is + # invoked with the option and a stripped output string is returned. def pkg_config(pkg, option=nil) if pkgconfig = with_config("#{pkg}-config") and find_executable0(pkgconfig) # iff package specific config command is given -- cgit v1.2.3