summaryrefslogtreecommitdiff
path: root/README.EXT
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-13 14:46:01 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-13 14:46:01 (GMT)
commita0146d1e8708eb372e415ac733066bee34e3ef36 (patch)
tree8e61d0ff95316f71740ac66e037f2477a740d54b /README.EXT
parent4b01d611dbd7911f3f68f1a8b4666125bceaf25b (diff)
* lib/mkmf.rb (checking_for): should not modify the result.
* lib/mkmf.rb (have_struct_member): accept compiler opttions. * lib/mkmf.rb (convertible_int): add restricted support of struct member, and TYPEOF_ macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r--README.EXT38
1 files changed, 28 insertions, 10 deletions
diff --git a/README.EXT b/README.EXT
index a0e7a38..c8c9342 100644
--- a/README.EXT
+++ b/README.EXT
@@ -750,9 +750,23 @@ need to put
at the top of the file. You can use the functions below to check
various conditions.
- have_library(lib, func): check whether library containing function exists.
- have_func(func, header): check whether function exists
- have_header(header): check whether header file exists
+ have_macro(macro[, headers[, opt]]): check whether macro is defined
+ have_library(lib[, func[, headers[, opt]]]): check whether library containing function exists
+ find_library(lib[, func, *paths]): find library from paths
+ have_func(func[, headers[, opt]): check whether function exists
+ have_var(var[, headers[, opt]]): check whether variable exists
+ have_header(header[, preheaders[, opt]]): check whether header file exists
+ find_header(header, *paths): find header from paths
+ have_framework(fw): check whether framework exists (for MacOS X)
+ have_struct_member(type, member[, headers]): check whether struct has member
+ have_type(type[, headers[, opt]]): check whether type exists
+ find_type(type, opt, *headers): check whether type exists in headers
+ have_const(const[, headers[, opt]]): check whether constant is defined
+ check_sizeof(type[, headers[, opts]]): check size of type
+ check_signedness(type[, headers[, opts]]): check signedness of type
+ convertible_int(type[, headers[, opts]]): find convertible integer type
+ find_executable(bin[, path]): find excutable file path
+ create_header(header): generate configured header
create_makefile(target): generate Makefile
The value of the variables below will affect the Makefile.
@@ -1379,12 +1393,12 @@ Appendix C. Functions Available in extconf.rb
These functions are available in extconf.rb:
- have_macro(macro, headers)
+ have_macro(macro, headers, opt)
Checks whether macro is defined with header. Returns true if the macro
is defined.
- have_library(lib, func)
+ have_library(lib, func, opt)
Checks whether the library exists, containing the specified function.
Returns true if the library exists.
@@ -1394,19 +1408,23 @@ Returns true if the library exists.
Checks whether a library which contains the specified function exists in
path. Returns true if the library exists.
- have_func(func, header)
+ have_func(func, headers, opt)
Checks whether func exists with header. Returns true if the function
exists. To check functions in an additional library, you need to
check that library first using have_library().
+The func shall be either mere function name or function name with
+arguments.
+Example:
+ have_func("LONG2NUM(0)")
- have_var(var, header)
+ have_var(var, header, opt)
Checks whether var exists with header. Returns true if the variable
exists. To check variables in an additional library, you need to
check that library first using have_library().
- have_header(header)
+ have_header(header, preheaders, opt)
Checks whether header exists. Returns true if the header file exists.
@@ -1415,12 +1433,12 @@ Checks whether header exists. Returns true if the header file exists.
Checks whether header exists in path. Returns true if the header file
exists.
- have_struct_member(type, member, header)
+ have_struct_member(type, member, headers, opt)
Checks whether type has member with header. Returns true if the type
is defined and has the member.
- have_type(type, header, opt)
+ have_type(type, headers, opt)
Checks whether type is defined with header. Returns true if the type
is defined.