aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mkmf.rb
Commit message (Collapse)AuthorAgeFilesLines
* * ext/extmk.rb, lib/mkmf.rb (with_config): support --with-extensionnobu2005-10-221-4/+18
| | | | | | | options. [ruby-dev:27449] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): Borland make seems not to allowocean2005-10-201-2/+2
| | | | | | | | empty dependency list. If this change is not good, please correct it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): get rid of a restrictionnobu2005-10-191-1/+2
| | | | | | | of Borland make. fixed: [ruby-dev:27460] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): do not create unnecessary emptynobu2005-10-191-3/+2
| | | | | | | directories. fixed: [ruby-dev:27451] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (find_executable0): default path if environment is notnobu2005-09-221-1/+10
| | | | | | | set. [ruby-dev:27281] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (configuration): generalized nmake dependent code.nobu2005-09-211-1/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (what_type?): guesstimate type.nobu2005-09-061-0/+55
| | | | | | | | * ext/etc/etc.c (setup_passwd), ext/etc/extconf.rb: pw_age might be char*. fixed: [ruby-core:05470] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (xsystem, xpopen): no longer expand by Config.nobu2005-08-301-18/+18
| | | | | | | | | | * lib/mkmf.rb (link_command, cc_command, cpp_command): expand variables at once, and quote hdrdir. fixed: [ruby-core:05680] * lib/mkmf.rb (libpathflag): quote paths. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): need to convert path separetorusa2005-08-051-1/+11
| | | | | | | before invoking install command. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: keep curdir unexpanded.nobu2005-07-121-2/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): add .SUFFIXES from depend file.nobu2005-06-071-2/+9
| | | | | | | fixed: [ruby-dev:26294] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: use the semicolon as the path separatoreban2005-05-271-5/+9
| | | | | | | in the environment of MSYS. fixed: [ruby-dev:26232] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: keep srcdir unexpanded.nobu2005-05-131-4/+4
| | | | | | | | | | | | * lib/mkmf.rb (create_makefile): quote topdir and hdrdir if necessary. fixed: [ruby-core:04932] * lib/mkmf.rb (configuration), {bcc32,win32,wince}/Makefile.sub: make also INSTALL_PROG and INSTALL_DATA system dependent. fixed: [ruby-core:04931] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (have_var): no libs argument is given.nobu2005-05-071-2/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): support platforms have file separatornobu2005-04-201-1/+11
| | | | | | | | | | | | other than /. * {bcc32,win32,wince}/Makefile.sub (BUILD_FILE_SEPARATOR): separator of building platform. * {bcc32,win32,wince}/Makefile.sub (CP, INSTALL): use COPY command. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (configuration): shouldn't output hdrdir twice.usa2005-04-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): hdrdir needs to be defined also innobu2005-04-081-2/+2
| | | | | | | | | | Config::CONFIG. * lib/mkmf.rb (configuration, create_makefile): get rid of recursive macro reference. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): keep directory names in Makefile as macros.nobu2005-04-071-7/+8
| | | | | | | | | * lib/mkmf.rb (configuration, create_makefile): ditto. * lib/mkmf.rb (CXX_EXT): separate C++ extensions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): ensure library directories get madenobu2005-04-021-3/+4
| | | | | | | before copying libraries there. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (CP, INSTALL): get rid of less portable options.nobu2005-04-021-6/+6
| | | | | | | | * lib/mkmf.rb (configuration, create_makefile): correct configuration variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (SRC_EXT): exclude just case different suffixes on casenobu2005-03-311-1/+5
| | | | | | | | | insensitive file system platforms. * README.EXT, README.EXT.ja (Appendix C): utility functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,nobu2005-03-301-63/+198
| | | | | | | | common.mk, configure.in, ext/extmk.rb, lib/mkmf.rb, instruby.rb, runruby.rb: backport extout. [ruby-dev:25963] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (macro_defined?): try to compile for an old compilernobu2005-03-241-6/+13
| | | | | | | | | which doesn't bail out at #error directive. [ruby-dev:25818] * lib/mkmf.rb (check_sizeof): refine logging messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (mkmf_failed): check if Makefile is created withoutnobu2005-03-201-1/+1
| | | | | | | create_makefile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb, rubytest.rb (srcdir): no longer embed srcdir intousa2005-02-061-1/+1
| | | | | | | | | | | | | | | rbconfig.rb. (backported from CVS HEAD) * ext/socket/extconf.rb (sockaddr_storage): winsock2.h have the definition of struct sockaddr_storage, but socket.c doesn't include it because this version of ruby still has binary level compatibility with winsock1. * lib/mkmf.rb (create_makefile): should support header files in depend file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): fix unbalanced parens.nobu2005-02-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: check if getaddrinfo() works fine only whennobu2005-02-061-49/+125
| | | | | | | | | | | | | | | | | | | | | | | wide-getaddrinfo option is not given. fixed: [ruby-dev:25422] * lib/mkmf.rb ($extmk): check if under ext directory. * lib/mkmf.rb (Logging.postpone): allow recursive operation. * lib/mkmf.rb (try_constant): make sure if really a constant, reduce the number of times of compile. * lib/mkmf.rb (have_macro, have_var, byte_order): new functions. * lib/mkmf.rb (find_library): allow directory list with separators. * lib/mkmf.rb (arg_config): manage provided configuration options. * lib/mkmf.rb (dir_config): accept arrays of directory names as default values. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_equal): element size might change duringmatz2004-09-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | comparison. [ruby-dev:24254] * array.c (rb_ary_diff): ditto. [ruby-dev:24274] * array.c (rb_ary_select): ditto. [ruby-dev:24278] * array.c (rb_ary_delete): ditto. [ruby-dev:24283] * array.c (rb_ary_rindex): ditto. [ruby-dev:24275] * array.c (rb_ary_initialize): element size might change during initializing block. [ruby-dev:24284] * dir.c (dir_s_chdir): avoid memory leak and unnecessary chdir to the original directory when exception has caused in changing direcotry or within block. thanks to Johan Holmberg <holmberg@iar.se> [ruby-core:03446] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/extconf.rb (find_tcl, find_tk): find stub library.nobu2004-08-201-2/+4
| | | | | | | | * lib/mkmf.rb (arg_config, with_config): deal with '-' and '_' uniformly. [ruby-dev:24118] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (init_mkmf): Do not add $(libdir) to $LIBPATH inknu2004-07-131-3/+2
| | | | | | | | | | extmk mode. * lib/mkmf.rb (dir_config): Prepend a new library path instead of appending so it is tried first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, lib/mkmf.rb (LIBPATHFLAG): use double quotes due tonobu2004-06-281-1/+1
| | | | | | | DOSISH compilers. [ruby-core:03107] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (libpathflag): should not quote here.nobu2004-06-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (libpathflag, dir_config): quote directory names ifnobu2004-06-261-2/+2
| | | | | | | necessary. [ruby-talk:104505] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (check_sizeof): define result size. [ruby-core:02911]nobu2004-05-201-2/+2
| | | | | | | | * lib/mkmf.rb (create_header): macro name should not include equal sign. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (flo_eq): alway check if operands are NaN.matz2004-05-201-1/+1
| | | | | | | | | | [ruby-list:39685] * lib/cgi/session.rb: use LOCK_SH to read, and a few other improvements. [ruby-core:02328] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (have_type): do not check pointer to incomplete type,nobu2004-05-201-2/+2
| | | | | | | | which always get compiled. [ruby-list:39683] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (have_type, check_sizeof): replace unusable characters.nobu2004-05-121-2/+2
| | | | | | | [ruby-talk:99788] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: $hdrdir should not contain macros for backwardnobu2004-04-231-2/+1
| | | | | | | compatibilitiy. [bruby-dev:28] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb ($ruby, $topdir, $hdrdir): should not be affected bynobu2004-03-241-8/+10
| | | | | | | | | | | | DESTDIR after installed. * lib/mkmf.rb (RUBY): / is not recognized as path separator on nmake/bmake. [ruby-list:39388] * lib/mkmf.rb (init_mkmf): $INCFLAGS also should be lazy-evaluated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: absolute path of ruby is assigned to $(RUBY).gotoyuzo2004-02-141-1/+1
| | | | | | | [ruby-dev:22870] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_tmpsrc): cpp32 of Borland C++ ignores #errornobu2004-02-121-1/+1
| | | | | | | directives in DOS line-ending files at all. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (merge_libs): squeeze successive same libraries.nobu2004-01-211-0/+1
| | | | | | | [ruby-dev:22652] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *** empty log message ***nobu2004-01-121-0/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (LIBPATHFLAG, RPATHFLAG): enclose paths with singlenobu2004-01-121-2/+2
| | | | | | | | | | | quotes. [ruby-dev:22564] * lib/mkmf.rb (libpathflag): do not enclose with quotes always. * {bcc32,win32,wince}/Makefile.sub (LIBPATHFLAG): quoted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (libpathflag): use single quotes. [ruby-dev:22440]nobu2004-01-091-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (next_argv): warn always for stdin on inplace edit mode.matz2003-12-261-2/+1
| | | | | | | | | | | | | | | | | | | | * io.c (read_all): need to check string value. * io.c (argf_read): allow ARGF.read(nil). [ruby-dev:22433] * io.c (rb_f_backquote): need not to check nil result. [ruby-core:02078] * io.c (rb_io_getline): should return nil when read_all gives empty string, even when nil rs is specified. [ruby-core:02077] * pack.c (pack_pack): add sign check for 'i', and 'l'. [ruby-dev:22427] * bignum.c (rb_quad_pack): add range check for 'quad int'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (stack_extend): ignore inline optimization on VC7.usa2003-12-181-23/+20
| | | | | | | | | | | | | * win32/Makefile.sub (OS, RT): can override. * win32/Makefile.sub (LDFLAGS): ditto. shouldn't use pdb:none option. based on Tietew's patch [ruby-dev:22289] * lib/mkmf.rb (create_makefile): should remove deffile if it's made by miniruby. based on nobu's patch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (MTIMES): let makefiles depend to mkmf.rb.nobu2003-12-031-1/+1
| | | | | | | * lib/mkmf.rb (configuration): DLDFLAGS was duplicated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (TRY_LINK, link_command): added support for DLDFLAGSeban2003-11-301-2/+3
| | | | | | | and ARCH_FLAG. [ruby-dev:22085] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkfm.rb (configuration): add ARCH_FLAG to DLDFLAGS.eban2003-11-301-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e