summaryrefslogtreecommitdiffstats
path: root/README.EXT
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-10 18:38:11 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-10 18:38:11 +0000
commitfef19a531b6695fab92927767c8c0af499f9a815 (patch)
treee514248585c97d56687d9bf027f77ae6f9c38465 /README.EXT
parent2d52b2eea17fda3b22afc6e5411dba933456091f (diff)
downloadruby-fef19a531b6695fab92927767c8c0af499f9a815.tar.gz
ruby-fef19a531b6695fab92927767c8c0af499f9a815.tar.xz
ruby-fef19a531b6695fab92927767c8c0af499f9a815.zip
* Document find_library(), with_config() and dir_config().
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r--README.EXT21
1 files changed, 20 insertions, 1 deletions
diff --git a/README.EXT b/README.EXT
index 5079adb55..f3db6fa45 100644
--- a/README.EXT
+++ b/README.EXT
@@ -985,6 +985,11 @@ These functions are available in extconf.rb:
Checks whether library which contains specified function exists.
Returns true if the library exists.
+ find_library(lib, func, path...)
+
+Checks whether library which contains specified function exists in
+path. Returns true if the library exists.
+
have_func(func, header)
Checks whether func exists with header. Returns true if the function
@@ -993,13 +998,27 @@ check that library first using have_library().
have_header(header)
-Checks for the header files. Returns true if the header file exists.
+Checks whether header exists. Returns true if the header file exists.
create_makefile(target)
Generates the Makefile for the extension library. If you don't invoke
this method, the compilation will not be done.
+ with_config(withval[, default=nil])
+
+Parses the command line options and returns the value specified by
+--with-<withval>.
+
+ dir_config(target[, default_dir])
+ dir_config(target[, default_include, default_lib])
+
+Parses the command line options and adds the directories specified by
+--with-<target>-dir, --with-<target>-include, and/or --with-<target>-lib
+to $CFLAGS and/or $LDFLAGS. --with-<target>-dir=/path is equivalent to
+--with-<target>-include=/path/include --with-<target>-lib=/path/lib.
+Returns an array of the added directories ([include_dir, lib_dir]).
+
/*
* Local variables:
* fill-column: 70