Граф коммитов

976 Коммитов

Автор SHA1 Сообщение Дата
ngoto b28715b2fb * configure.in: use LD_LIBRARY_PATH_64 on 64-bit Solaris.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-21 05:34:51 +00:00
nobu e9930a4b56 * process.c (proc_spawn_v, proc_spawn): should not wait the
spawned process.
* process.c (proc_spawn_v): fix missing argument, and try with
  /bin/sh only if failed with ENOEXEC.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-19 05:25:52 +00:00
mrkn 5852b97e4e * configure.in: defines _DARWIN_UNLIMITED_SELECT if the target_os
is darwin.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-19 04:20:10 +00:00
kosaki da6eec340e fix r32943. It did break configure.in completely.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-12 04:42:13 +00:00
kosaki 33c7e324e5 * configure.in: Desbribe "no" configure option for site_ruby
and vendor_ruby. Patch by Vit Ondruch. [Bug #5187][ruby-core:38921]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-12 02:42:51 +00:00
kosaki b6c6ce116e * configure.in: add -Wunused-variable to default CFLAGS.
Patch by Eric Wong. [Feature #5157] [ruby-core:38798]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-07 13:43:37 +00:00
ngoto 3fb4569534 * configure.in: when Solaris cc, use $(CC) to link shared libs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-04 11:36:50 +00:00
mrkn 03418c4e5f * configure.in: set CXX variable to the C++ compiler that matches the
C compiler specified by CC variable (e.g. use g++-4.2 for gcc-4.2).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 17:49:22 +00:00
yugui 6280ce3b68 Forward-ports r32779 from branches/ruby_1_9_3 to trunk. The original commit
by ktsj.
--
configure.in: fix typos.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-31 14:17:45 +00:00
yugui 53d3b13233 Forwardports r32772 and r32773 from branches/ruby_1_9_3 to trunk.
* common.mk (ECHO1): ":" in a make variable replacement cause a syntax
  error with /usr/ccs/bin/make on Solaris.  Uses $(NULLCMD) instead.

* configure.in (NULLCMD): new check.

* Makefile.in (NULLCMD): Reflects checking in configure.

* win32/Makefile.sub (NULLCMD): new assignment.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-31 11:31:55 +00:00
naruse 63bbbdb6fb * configure.in (enable_pthread): use -pthread on OpenBSD without
explicit option. patched by Jeremy Evans. [ruby-core:38572]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-29 07:17:32 +00:00
kosaki 1e52e56037 revert r32647. r32649 is better one.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-23 15:57:21 +00:00
kosaki e39294cac5 * configure.in: changed default optflags to -O0 if the compiler is
llvm-gcc. It prevent ruby crash on OS X 10.7 (Lion).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-23 15:18:32 +00:00
nobu 2915c155e8 * configure.in (RUBY_UNIVERSAL_ARCH): restore arch flag.
Bug #4977


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-16 08:29:21 +00:00
nari c3e0526269 * configure.in: can't subtract void *.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-08 05:39:50 +00:00
nari 17bb77fd77 * gc.c: change water_mark value value that may call
gc_mark(lev <= GC_LEVEL_MAX) in gc_mark().
  In ruby_stack_check(), water_mark is a value that may call some
  C function. Fixes Bug #3781

* configure.in: define GC_MARK_STACKFRAME_WORD that approximate
  size of gc_mark() and gc_mark_children() stackframes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-07 14:59:09 +00:00
kanemoto c6ef31c933 configure.in: Add warnflags for XL/C on AIX during configure
to avoid [Bug #3971]. See [ruby-core:32859]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 12:31:53 +00:00
kosaki 0148d41a13 * signal.c: Now, USE_TRAP_SIGMASK depend on HAVE_PTHREAD_SIGMASK.
The code have already depended on pthread_sigmask since r27464.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-28 10:42:25 +00:00
usa ac3a3c05c9 * configure.in, win32/Makefile.sub (RUBY_SO_NAME): add CPU as prefix
of RUBY_SO_NAME on x64/ia64 mswin/mingw.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-16 02:22:27 +00:00
kosaki 3ad44e0aa1 introduce missing/setproctitle.c
* include/ruby/missing.h: add setproctitle() declaration.
* missing/setproctitle.c: added.
* configure.in: add check for missing/setproctitle.c.

* ruby.c (ruby_process_options): add to call compat_init_setproctitle().
* ruby.c (set_arg0): remove all platform specific code. it's
  moved to missing/setproctitle.c.
* ruby.c (origarg): remove len field. It's no longer used.
* ruby.c (get_arglen): removed.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-14 10:49:47 +00:00
kou 4902517f99 * configure.in: limit to "T" type for prefix of external symbols
because x86_64-w64-mingw32-gcc on Debian GNU/Linux generates the
  following symbol:
    0000000068483390 D _GLOBAL__F__conftest_external

  Approved by nobu.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-12 09:31:34 +00:00
kosaki a1cfaf4b1f * thread_pthread.h (rb_thread_cond_t): add clockid field. it's
no longer an alias of pthread_cond_t.
* thread_pthread.c: adapt new rb_thread_cond_t type.
* thread.c (mutex_alloc): ditto.
* thread_win32.c (native_cond_initialize): ditto.
* configure.in: add check for pthread_cond_attr_setclock() and
  clockid_t type.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-06 16:47:38 +00:00
kosaki 4a9883e92f * thread.c (rb_wait_for_single_fd): use ppoll() instead of poll()
if possible. based on a patch from Eric Wong. [ruby-core:36003].



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-06 14:58:38 +00:00
kosaki 066eecf53a * configure.in: remove nanosleep check. we no longer use it.
r20124 removed last usage.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-06 14:18:06 +00:00
kosaki 249fe0e742 * thread.c (rb_wait_for_single_fd): new. poll(2) based backend for rb_wait_for_single_fd().
Now only Linux uses it.

The patch was written by Eric Wong. [Ruby 1.9 - Feature #4531]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-04 01:07:03 +00:00
nobu 86ed9661b8 * configure.in (STRIP): use proper toolchain. based on a patch
from Jon Forums at [ruby-core:35909].  fixes #4617

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 22:42:46 +00:00
nobu fcfc113b04 * include/ruby/win32.h (ftruncate, truncate, ftello, fseeko): non-64
versions on mingw are useless because they use int32_t.  fixes #4564

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:50:09 +00:00
luislavena c2bfeaa244 Evaluate truncate, ftruncate and ftello existence
This corrects mingw-w64 compilation.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-11 16:38:10 +00:00
kosaki f4755f214c * configure.in: disable fdatasync again on Mac OS X.
[ruby-core:35493][Bug #4500]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-03 12:35:29 +00:00
nobu acd036bcdc * common.mk (configure-ext, build-ext), ext/extmk.rb (extmake):
support paralell-make under ext.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-08 00:33:05 +00:00
nobu 15f0e53a06 * process.c (proc_setgroups): use getgrnam() if getgrnam_r() is
not available.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-08 00:25:40 +00:00
nobu 108eb9c68c * configure.in (RUBY_REPLACE_TYPE): enclose in quotes for multiple
type names.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-08 00:07:19 +00:00
kosaki b1329e3b63 * configure.in: rlim_t use standard RUBY_REPLACE_TYPE mechanism.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-06 14:47:27 +00:00
kosaki 62374161f1 * configure.in: save warnflags. the patch is created by Eric Wong.
[Bug #4465]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-04 12:16:45 +00:00
kosaki 61a4ee9b68 * configure.in: fix and resubmit r30621. [ruby-dev:43203]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-15 10:44:58 +00:00
shyouhei fd569ed7ca * configure.in: revert r30621. That revision introduced mkmf test
failures and it turned out to be OK to revert. [ruby-dev:43203]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-14 12:07:14 +00:00
nobu 020dc4ba60 * configure.in (rubygems): add --disable-rubygems option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-11 03:03:26 +00:00
kosaki 0042bbc1c1 * configure.in (AC_MSG_CHECKING): fixed typo. the patch is
created by Benoit Daloze. Thanks a lot. [Bug #4384][ruby-core:35148]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-08 10:26:42 +00:00
kosaki a9c7af3b6e * configure.in: revert r30725. Now we have proper runtime fallback.
Therefore, no need compile time disabling. (see r30762).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-08 05:03:07 +00:00
kosaki 7fb70b4e0f * configure.in: revert r30698.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-31 12:59:54 +00:00
naruse 33671c826d * configure.in: Mac OS X wrongly reports it has fdatasync(3).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-29 23:03:47 +00:00
kosaki aea93cbed8 * configure.in (--with-valgrind): Fixed r29683. Now this option
is really default on.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 04:05:23 +00:00
kosaki e5971e8c7e We don't only need to change "struct stat.st_size" test, but also
need to change "struct stat.st_blocks" test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 03:12:32 +00:00
kosaki cb1366b48f * configure.in: Add #include<sys/stat.h> when struct stat is
tested. Otherwise, incomplete type dereference error will occur.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 03:07:23 +00:00
kosaki 39473b88a9 * configure.in: redundant variable names made strange conftest
error. Fixed it.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 02:57:21 +00:00
kosaki 92c1dfd9d2 * configure.in: Added mode_t type checking.
* process.c (rb_exec_arg_addopt): Use NUM2MODET() instead
	  NUM2LONG because clang makes compile error by this narrowing
	  conversion.
	* process.c (rb_run_exec_options_err): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 02:00:08 +00:00
nobu 85f8c01a6d * configure.in: should not use -Werror=* flags while conftests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-21 09:15:30 +00:00
luislavena 89bd00d804 * configure.in: Fix incorrectly detected x86_64-w64-mingw32 due
canonalization of target_os. Bug #3889 [ruby-core:32634]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-21 00:18:20 +00:00
kosaki c940b3939a * configure.in: Fix rb_cv_va_args_macro was broken. We are using
-Werror=implicit-function-declaration compile option. therefore
	  we need a function declaration explicitly.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-20 15:38:44 +00:00
kosaki d41d2f26ce * configure.in: Add '#include <stdlib.h>' to
rb_cv_localtime_overflow test too. It's reported by Tomoyuki
	  Chikanaga. Thanks.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-20 14:34:39 +00:00
kosaki 1a3950e294 * configure.in: Add stdlib.h inclusion into rb_cv_negative_time_t
test becuase it's required for exit(3). The patch is
	  created by Tomoyuki Chikanaga. [Bug #4287] [ruby-dev:43060]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-20 03:27:54 +00:00
nobu b794a2bd8c * configure.in (warnflags): add -Werror=implicit-function-declaration
if available.
* lib/mkmf.rb (init_mkmf): ignore warnings in mkmf tests.
* test/mkmf/base.rb (setup, teardown): restore config values.
* test/mkmf/test_flags.rb: split from test_find_executable.rb.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-15 02:57:36 +00:00
usa 377b85f2cb * configure.in, win32/Makefile.sub (RUNRUBY): require path should
include "." because rbconfig.rb is there.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-14 02:37:34 +00:00
yugui 45493bb28a * io.c (Kernel.#syscall): implemented on LP64/LLP64 environments too.
also uses __syscall if available for *BSD on 64bit architecture.
  [ruby-core:34062]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-09 07:39:22 +00:00
nobu 484e94a89c * configure.in (warnflags), lib/mkmf.rb (configuration): turn
warnings into errors only for bundled extensions.
  [ruby-core:33815]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-31 02:46:50 +00:00
nobu 12329a58e1 * configure.in (target_archs): remove temporary objects.
* enc/Makefile.in, enc/depend (clean): remove work directories.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-21 03:45:21 +00:00
kosaki cc9b886691 * io.c (rb_io_advise): New API. IO#advise() allows to tell the
ruby runtime how it expects to use a file handle. This feature
          can be improved a performance some situations.
          Note: This feature is mainly developed by Run Paint Run Run.
          Thank you! [ruby-core:33110] [Ruby 1.9-Feature#4038]

        * io.c (do_io_advise): Helper function.
        * io.c (io_advise_sym_to_const): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-16 15:01:55 +00:00
naruse bd0a9d2fb6 * configure.in: Add -Werror=declaration-after-statement to default
warning flag. If you are using GCC, this flag is useful to
  prevent breaking VC build.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 02:33:04 +00:00
nobu e806b0fed7 * configure.in, win32/Makefile.sub (WERRORFLAG): flag to treat
warnings as errors.
* lib/mkmf.rb (Logging.postpone): yield log file object.
* lib/mkmf.rb (xsystem): add options, :werror only right now.
* lib/mkmf.rb (with_werror): check as if warnings are errors.
* lib/mkmf.rb (convertible_int): make declaration conflict
  warnings errors not to pass wrong type.  [ruby-dev:42684]
* lib/mkmf.rb (COMMON_MACROS): get rid of conflicts.
* win32/Makefile.sub (WARNFLAGS): make declaration conflict
  warnings errors if possible.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-06 23:00:47 +00:00
nobu 3c36edc0d2 * configure.in: link addr2line only for ELF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-27 06:43:30 +00:00
naruse 086301ac73 * addr2line.c: added to show source filename and line number of
functions in backtrace. [ruby-dev:42625]
  a patch from shinichiro.h <shinichiro.hamaji AT gmail.com>

* addr2line.h: ditto.

* common.mk: add addr2line.$(OBJEXT).

* configure.in: check dl_iterate_phdr.

* vm_dump.c (rb_vm_bugreport): use rb_dump_backtrace_with_lines in
  addr2line.c when the binary is ELF.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-26 03:28:50 +00:00
nobu 756dfe9f40 fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-25 14:31:36 +00:00
nobu 66d4bdd114 * configure.in (SITE_DIR, VENDOR_DIR),
version.c (ruby_initial_load_paths): exclude directories that
  are configured without them from $LOAD_PATH. [ruby-core:33267]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-22 21:30:54 +00:00
nobu a97c07fb2e * configure.in (rubylibprefix): No ruby, No libprefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-22 21:30:22 +00:00
naruse 54ba50918e * configure.in: support C level backtrace information on FreeBSD.
When devel/libexecinfo is installed on FreeBSD, now ruby
  can show C level backtrace information.
  http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/libexecinfo/

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-12 07:54:27 +00:00
nobu a22b9b0945 * configure.in (DOT, DOXYGEN, PKG_CONFIG): tools running on build
platform, no tool prefix.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-11 16:36:04 +00:00
nobu 54fb9d3ca7 * configure.in: ANSI C-conforming const and volatile are mandatory
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-11 14:38:36 +00:00
nobu 12f742306e * configure.in (AC_C_CONST, AC_C_INLINE, AC_C_VOLATILE): check
before used in other checks.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-11 14:32:15 +00:00
nobu 6a256d448d * configure.in (RUBY_CHECK_PRINTF_PREFIX): should not break from
RUBY_WERROR_FLAG, so that ac_c_werror_flag gets restored.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-11 14:29:42 +00:00
nobu 7ef29a9f5e * configure.in (Makefile): fix duplicated target again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-11 12:41:12 +00:00
nobu 41cae1744f * file.c (file_expand_path): use cygwin_conv_path on cygwin 1.7 or
later.
* ruby.c (push_include_cygwin): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-11 12:24:41 +00:00
nobu fe9f1e8cf8 * include/ruby/ruby.h (PRI_LL_PREFIX): format type specifier for
LONG_LONG may vary on platforms.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-11 11:49:54 +00:00
nobu 18bd7f8c84 * configure.in (SYMBOL_PREFIX): separate from EXPORT_PREFIX.
* win32/mkexports.rb (Exports#each_export): use SYMBOL_PREFIX.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-11 11:45:32 +00:00
nobu ef98740d31 * configure.in (AC_FUNC_GETPGRP, AC_FUNC_SETPGRP): no need when
not used.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-09 12:14:58 +00:00
nobu e9c4a44f23 * configure.in (EXPORT_PREFIX): check generic prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-09 12:13:06 +00:00
shyouhei 294070d86a * configure.in: support -h for solaris linker when gcc not used
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-08 03:19:14 +00:00
nobu 2cff55dbb3 * configure.in: check only the first symbol to get rid of
duplication.  [ruby-core:33084] #4031

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-07 22:26:25 +00:00
nobu 958456db0f * configure.in (NM): check on all platforms. #4031
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-07 01:13:33 +00:00
nobu 967e92af87 * configure.in (rb_cv_export_prefix): check for prefixed
underscore of exported symbols

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-05 22:33:18 +00:00
nobu 41a25b855a * configure.in (LIBRUBY_RELATIVE): use rpath token expansion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-05 22:28:45 +00:00
nobu 6d9cd4840d * template/ruby.pc.in (arch, sitearch): reordered.
* configure.in: keep failed file.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-05 22:24:06 +00:00
shyouhei eb691b7cf1 * configure.in (--with-valgrind): Now this option is default on.
You can still explicitly disable this feature by specifying
  --without-valgrind.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-04 01:34:35 +00:00
nobu f46689f68f * configure.in (ruby_pc): erase runtime-defined variables and
check if generated pc file is valid.

* template/ruby.pc.in (DEFFILE): need for mingw.

* template/ruby.pc.in (LIBRUBY): fix the order.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-30 05:37:43 +00:00
nobu 767d70841a * Makefile.in (ASFLAGS): needs INCFLAGS.
* configure.in (rb_cv_dynamic_alloca): check if extra source for
  dynamic size alloca.

* missing/x86_64-chkstk.s (___chkstk): necessary for alloca of
  amd64-mingw32msvc-gcc on Ubutu.

* thread_win32.c (ruby_alloca_chkstk): check stack overflow

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-26 09:09:45 +00:00
nobu 7b410abfb8 * configure.in (rb_cv_gcc_atomic_builtins): check for atomic
builtins, all are not available in Apple derivative gcc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-26 00:13:37 +00:00
nobu 4d9a6ab181 * Makefile.in (pkgconfig-data): create pkg-config metadata file.
* tool/rbinstall.rb: install pkg-config metadata file.

* template/ruby.pc.in: template of pkg-config metadata file.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-25 15:29:32 +00:00
nobu a45936d454 * configure.in (dev_t): use RUBY_REPLACE_TYPE.
* file.c (rb_stat_inspect): use PRI_DEVT_PREFIX.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-15 11:30:33 +00:00
naruse 51427700cc * file.c (DEVT2NUM): added. Size of dev_t is depend on the
environment even if POSIX defines dev_t as unsigned integer.
  For example, OpenVMS, 64bit Solaris 9, and NetBSD 6 defines
  dev_t as 64bit unsigned integer.

* file.c (rb_stat_dev): use DEVT2NUM.

* file.c (rb_stat_dev_major): dev_t is not long. major(3)'s return
  value is int.

* file.c (rb_stat_dev_minor): dev_t is not long. minor(3)'s return
  value is int.

* configure.in: check size of dev_t.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-13 23:09:56 +00:00
nobu cea3919ae6 * configure.in (RUBY_CHECK_PRINTF_PREFIX): check for printf format
specifier if possible.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-12 15:03:51 +00:00
nobu 83906099d0 * configure.in (RUBY_MINGW32): canonicalize only on mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-12 01:39:11 +00:00
nobu 3ec721b9c2 * configure.in (RUBY_MINGW32): canonicalize as like mswin version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-10 01:20:11 +00:00
nobu 0ac2f9513f * configure.in (RSHIFT): quote to get rid of argument expansion
for autoconf 2.68.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-09 07:54:42 +00:00
nobu fc8c4690d5 * configure.in (Makefile): get rid of duplicated ruby target when
already there it was.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-03 10:44:30 +00:00
nobu d3a8adc0de * configure.in (LIBRUBY_DLDFLAGS): fix quoting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-25 13:48:42 +00:00
nobu bab83d2628 * configure.in (LIBRUBY_DLDFLAGS): use -unexported_symbol only
when available.  http://trac.macports.org/ticket/26341

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-25 01:30:52 +00:00
kosaki 4fd8930898 configure.in: Always add -mieee for Renesas SH4
SH4 is CPU for embedded which developed by Renesas Electronics.
Renesas SH4 has FPU. When FPU is used on sh4, -mieee of option is necessary.
This supports sh4(basic), sh4el(sh4 little endian) and sh4eb(sh4 big endian).
These do not have FPU though there are other sh4al, sh4al-dsp and etc.

[Feature #3874] [ruby-core:32548]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-25 00:52:20 +00:00
nobu feacd3c2e0 * Makefile.in (install-cross): target to install cross-compiling
stuff.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-24 16:34:56 +00:00
yugui 32e00d382f * configure.in (--disable-install-doc): disables capi too, in addition
to rdoc.
  (--disable-install-rdoc): a new option for disabling only rdoc.
  (--disable-install-capi): a new option for disabling only capi.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-19 13:10:27 +00:00
nobu e8291588c9 * configure.in (LIBRUBY_SO): fix an oversight of replace
RUBY_INSTALL_NAME with RUBY_SO_NAME.  a patch from Jeremy Evans
  at [ruby-core:32474].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-19 04:44:31 +00:00
nobu f2ff3eb6ec * configure.in: read API version from include/ruby/version.h.
* {bcc,win}32/setup.mak (-version-): ditto.

* version.h (RUBY_LIB_VERSION): use API version numbers.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-24 01:11:14 +00:00
nobu 6eb922763f * configure.in: fix typo. a patch from Eric Wong at
[ruby-core:31810].



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-21 20:55:09 +00:00
nobu dccf9e0c45 * configure.in, include/ruby/defines.h (RUBY_FUNC_EXPORTED): macro
to declare exported function.

* array.c (rb_ary_memsize), string.c (rb_str_memsize),
  variable.c (rb_objspace_data_type_memsize): used in
  objspace.  [ruby-dev:42022]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-14 06:33:06 +00:00
nobu 45992b4b25 * ext/purelib.rb: no longer used since the default load path of
miniruby is empty.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-02 22:52:25 +00:00
naruse de06330e8b * configure.in: not [freebsd] but [freebsd*] for AS_CASE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-28 17:38:56 +00:00
nobu 195a7da4ec * configure.in (config.h): add include guard.
* win32/Makefile.sub, bcc32/Makefile.sub (config.h): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-26 09:18:21 +00:00
nobu 8e9a9cf0ec * configure.in (XCFLAGS): missing.h needs config.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-26 05:38:23 +00:00
naruse c6cda4e336 * configure.in: define BROKEN_CLOSE only on FreeBSD.
This needs to merge to 1.9.2.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-26 04:53:06 +00:00
naruse 201d99cc5f * configure.in: define BROKEN_CLOSE on FreeBSD.
This fixes build failure on MSVC. [ruby-core:31481]

* include/ruby/ruby.h, include/ruby/missing.h:
  use BROKEN_CLOSE for replacing close(2).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-26 03:05:25 +00:00
nobu 38c4242cf6 * configure.in (RUBY_MINGW32): ignore msvc suffix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-23 06:09:22 +00:00
nobu b4080cf9ea * configure.in (RUBY_TRY_CFLAGS): try with werror turned on.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-23 06:05:43 +00:00
nobu 85bf9bede4 * configure.in (XCFLAGS): reverted mistakenly removed option.
[ruby-dev:41872]

* include/ruby/missing.h: needs ruby/config.h.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-23 00:00:12 +00:00
nobu 1b1041f847 * configure.in (RUBY_EXTERN): unnecessary after all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-22 11:59:03 +00:00
nobu d5a1efdc61 * configure.in (RUBY_EXTERN): ignore invalid attribute.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-22 03:58:18 +00:00
nobu cc703f2d56 * configure.in: fix for older autoconf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-22 03:30:59 +00:00
nobu 0bd71ff354 * configure.in (XCFLAGS): use -fvisibility=hidden if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 21:38:25 +00:00
nobu 6abe539cfc * configure.in (RMDIR): use --ignore-fail-on-non-empty if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 21:26:56 +00:00
nobu 3afa01255d * configure.in (RUBY_EXTERN): FUNCTION-BODY was missing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 18:23:09 +00:00
nobu 9a8440e5d4 * configure.in: fix for universal binary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-13 12:26:16 +00:00
nobu 7035fd6008 * configure.in (RUBY_DEFAULT_ARCH): adjust for target
cpu. [ruby-core:31243]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-13 11:58:58 +00:00
naruse 8ff0574198 * missing/close.c: ignore ECONNRESET.
FreeBSD wrongly sets ECONNRESET on close(2) and
  it causes false-negative exceptions. [ruby-dev:41778]

* configure.in: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-07 01:29:22 +00:00
kanemoto 78d48a330d * thread_pthread.c (get_stack): use pthread_getthrds_np() for AIX.
* configure.in: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-29 17:29:27 +00:00
nobu 967e3a3598 * configure.in (enable-debug-env): option for RUBY_DEBUG env.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-26 04:07:20 +00:00
nobu 419d8cd6a2 * configure.in (fchown): need to check. [ruby-core:30818]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 21:44:37 +00:00
nobu 259c3a1c4c * configure.in (rb_cv_large_fd_select): needed on mingw, even
though fd_mask is not available.  [ruby-core:30401]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-26 01:35:38 +00:00
nobu d6fe62e943 * configure.in (warnflags): removed -pedantic after all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-21 09:12:14 +00:00
nobu c6b6293bc1 * configure.in: fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-21 08:39:07 +00:00
nobu c09c6ee579 * configure.in (warnflags): add -pedantic if gcc.
* include/ruby/ruby.h (rb_intern): C90 needs nonempty macro
  arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-21 08:35:18 +00:00
nobu 2b8fb39dcb * configure.in (LIBRUBYARG_SHARED): shared library will not be
created unless enable-shared.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-21 04:55:48 +00:00
nobu 73997d38f4 * ruby.c (ruby_init_loadpath_safe): use real path for non-shared
build.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-21 04:35:58 +00:00
nobu 6c05f91b3b * dln.c (rb_w32_check_imported): check if extension library to be
loaded imports from different ruby dll.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 06:09:40 +00:00
kanemoto fa0bec050f * configure.in: can not load libruby.so if gcc is used with
--enable-shared on AIX.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-15 17:25:17 +00:00
akr a00247f57a * time.c (rb_big_abs_find_minbit): use ffs().
* configure.in: check ffs().

* missing/ffs.c: new file.

* include/ruby/missing.h (ffs): declared.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 13:23:20 +00:00
naruse 580677a984 * configure.in: use AC_TRY_LINK instead of AC_TRY_COMPILE.
On Solaris it can compile with signbit but can't link.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-17 14:27:54 +00:00
mrkn 55f7857a77 * configure.in (signbit): signbit is a macro in C99.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14 09:29:29 +00:00
kanemoto 78a59b37a1 * configure.in: can not load libraries if --with-opt-dir is used
on AIX. [Bug #3107]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 14:31:09 +00:00
shyouhei 969041d034 * configure.in: --disable-install-doc should prohibit doxygen.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-08 05:35:37 +00:00
nobu 93af285b28 * configure.in (Makefile): reverted r27244.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-07 07:45:56 +00:00
naruse fed549a104 Fix previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-07 02:47:07 +00:00
nobu cbe2385792 * configure.in (Makefile): qoute init-commands.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-07 00:45:01 +00:00
akr 2bbeb4c0ad * configure.in: test localtime(3) overflow. [ruby-dev:40910]
* time.c (rb_gmtime_r): renamed from rb_gmtime.
  (rb_localtime_r): renamed from rb_localtime.
  (rb_localtime_r2): call rb_localtime_r and validate the result if
  there is overflow problem.
  (rb_gmtime_r2): call rb_gmtime_r and validate the result if there
  is overflow problem.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-06 13:03:43 +00:00
naruse b919cb1d93 * include/ruby/ruby.h: replace snprintf and vsnprintf by
ruby_snprintf and ruby_vsnprintf. [ruby-dev:40909]

* configure.in: don't check snprintf(3) and vsnprintf(3).

* include/ruby/missing.h: don't delare snprintf and vsnprintf.

* include/ruby/ruby.h: include stdarg.h.

* sprintf.c: include vsnprintf.c

* vsnprintf.c: renamed from missing/vsnprintf.c.

* vsnprintf.c: remove useless ifdefs.

* win32/mkexports.rb: use ruby_snprintf and ruby_vsnprintf.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-04 01:10:53 +00:00
naruse 6c4a07dfa7 Revert "* configure.in (ac_cv_func_snprintf, ac_cv_func_vsnprintf):"
This reverts commit r27078.
It causes build failure on some environments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 01:40:43 +00:00
naruse a8a99a7379 * configure.in (ac_cv_func_snprintf, ac_cv_func_vsnprintf):
use own vsnprintf to avoid locale problems and platform
  difference.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-28 13:34:39 +00:00
nobu da8a31bc47 * configure.in (ruby_version): needs runnable CPP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-24 20:44:45 +00:00
mame 30a4825aea * configure.in: revert the previous commit, which seemed to break make
install.  The files of standard libraries are directly installed to
  $(PREFIX)/lib/ruby instead of $(PREFIX)/lib/ruby/1.9.1

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-24 14:01:57 +00:00
nobu 91e6d01790 * configure.in (LDSHARED, CPP): keep $(CC). [ruby-core:28912]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-24 09:16:13 +00:00
nobu 0edceaa7c7 * configure.in (RMDIRS): use rmdir -p if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 09:01:19 +00:00
nobu 43ab72099b * configure.in (RUBY_EXEC_PREFIX): added to config.h.
* ruby.c (ruby_init_loadpath_safe): TMP_RUBY_PREFIX should be
  exec_prefix, not rubylibprefix.  [ruby-core:28718]

* version.c (RUBY_LIB_PREFIX): fallback to RUBY_EXEC_PREFIX.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 21:28:36 +00:00
nobu acd2d29f2e * configure.in (RSHIFT): parenthesize the argument of cast instead
of the result.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 05:03:30 +00:00
nobu 5b8af7521f * missing/signbit.c: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-11 03:14:21 +00:00
nobu 9c0119c4bd * configure.in: check if target_archs has changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-11 02:16:39 +00:00
wanabe e2e46bebcf * configure.in (mingw): do not detect snprintf/vsnprintf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-01 08:45:18 +00:00
akr d5a16d80be * configure.in (RSHIFT): add parenthesis to supress warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-26 12:30:56 +00:00
muraken a8fcae0858 * confiure.in: new --with-ext and --with-out-ext options for extmk.
* tool/mkconfig.rb: normalizing --with-out-ext to --without-ext.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-18 13:33:25 +00:00
akr 792b3efa62 * file.c (rb_group_member): renamed from group_member.
don't use group_member() in glibc because it's not valgrind clean.
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570047


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-16 12:00:24 +00:00
matz 41ec00e019 * configure.in: check pthread_attr_getstack to prevent obsolete
warning for pthread_attr_getstackaddr.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-08 01:32:43 +00:00
naruse 669862a416 * configure.in: FreeBSD, DragonFly BSD and Mac OS X needs
pthread_np.h to use pthread_*_np functions.
  Mac OS X's pthread_*_np also depend sys/signal.h,
  but it is included at signal.h via vm_core.h via thread.c.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-04 01:00:30 +00:00
nobu ec7872aff7 * configure.in: check for non-portable stack attribute functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-03 13:22:32 +00:00
nobu f9994ada30 * configure.in: some tidy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-03 13:20:43 +00:00
nobu 9433d94cff * configure.in, win32/Makefile.sub (EXECUTABLE_EXTS): should be
space-separated.  [ruby-core:27912]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-29 05:21:55 +00:00
nobu e8e41b217c * configure.in (mingw): needs $(DEFFILE) for extension libraries.
[ruby-core:27946]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-29 03:59:39 +00:00
akr 96542c3678 * configure.in: test unsetenv returns a value.
unsetenv is void in older BSDs (FreeBSD 6 and OpenBSD 4.5 at least).

* hash.c (ruby_setenv): don't use the result of unsetenv if unsetenv
  doesn't return a value.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-26 12:41:43 +00:00
nobu 57d4faec1b * configure.in (RUBY_ARCHLIB): moved to version.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 09:16:14 +00:00
nobu ccf67667b8 * version.c (RUBY_LIB, RUBY_*_LIB): moved from configures.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 08:36:14 +00:00
naruse e243aabc0c * configure.in: add missing comma.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 05:17:16 +00:00
shyouhei ff575c7eb7 * configure.in: some tidy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 06:10:16 +00:00
nobu bb8f1415e8 * configure.in: use AS_CASE instead of when, to get rid of
an unintentional substitution.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 00:38:03 +00:00
nobu 23a4f81625 * configure.in: check for if struct timezone is defined.
* missing.h (struct timezone): define if not defined.

* win32/win32.h (struct timezone): defined in the newer w32api.
  [ruby-core:27515]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-12 21:54:47 +00:00
yugui 295bc2fe25 removes the dtrace support. reverts r26239, r26238 and r26235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-05 05:59:23 +00:00
naruse 07146f375b * configure.in (DTRACE): clear this when `dtrace -l` fails.
Note that current FreeBSD needs privilege to call it;
  so to use DTrace on FreeBSD, you should run configure as root.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-04 17:08:02 +00:00
yugui 72b199940d * trace.h: new file. wraps tracing mechanisms.
* defs/dtrace.d: new file. defined a dtrace provider "ruby".

* include/ruby/ruby.h (LIKELY): moved from vm.c.
  (UNLIKELY): ditto.
  (OBJSETUP): probe "object-create".
  (RUBY_EVENT_RESCUE): new event.

* vm_exec.c (DEBUG_ENTER_INSN): embeded a probe insn-entry into it.
  (DEBUG_END_INSN): insn-return.

* vm.c (LIKELY): moved into ruby.h.
  (UNLIKELY): ditto.
  (Init_BareVM): embeded a probe "raise" into it.

* variable.c (rb_class2name_without_alloc): new utility function.

* tool/rbinstall.rb (install?(:ext, :arch, :'ext-arch')): installs 
  dtrace.d if necessary.

* thread_pthread.c (add_signal_thread_list): probe "raise".
  (rb_thread_create_timer_thread): ditto.

* thread.c (rb_thread_schedule_rec): probes "thread-enter" and
  "thread-leave",
  (thread_start_func_2): ditto.
  (thread_cleanup_func): probe "thread-term"

* lib/mkmf.rb: supports dtrace postprocessor on making an extension.

* iseq.c (rb_vm_insn_name): new utility function.
  (rb_vm_insn_len): ditto.

* insns.def (hook): probes "method-etnry", "method-return", "line",
  and "rescue".

* compile.c (iseq_compile_each): adds a trace op for "rescue" probe.

* gc.c (garbage_collect): probes "gc-begin" and "gc-end".
  (obj_free): probe "object-free"
  (garbage_collect_with_gvl): probe "raise"
  (negative_size_allocation_error): ditto.
  (rb_memerror): ditto.

* eval.c (rb_rescue2): probe "rescue"
  (rb_longjmp): probe "raise"

* ext/probe/probe.c: new extension for application defined probes.

* ext/probe/extconf.rb: ditto.

* configure.in (--with-tracing-model): new option to choose a tracing
  mechanism.
  (DTRACE): new substitution. name of dtrace(1).
  (RUBY_TRACING_MODEL): new substitution.
  (DTRACE_OBJ): ditto.
  (MINIDTRACE_OBJ): ditto.
  (GOLFDTRACE_OBJ): ditto.
  (LIBRUBY_DTRACE_OBJ): ditto.
  (RUBY_DTRACE_POSTPROCESS): new macro. checks whether the dtrace on 
  the system needs postprocessing.
  (RUBY_DTRACE_BSD_BROKEN): new macro. checks whether the dtrace
  supports USDT.

* Makefile.in: 
  (DTRACE): new variable. name of dtrace(1).
  (TRACING_MODEL): new variable. name of the chosen tracing mechanism.
  (DTRACE_OBJ): same as the one in configure.in.
  (MINIDTRACE_OBJ): ditto.
  (GOLFDTRACE_OBJ): ditto.
  (LIBRUBY_DTRACE_OBJ): ditto.
  (CPPOUTFILE): new substitution. necessary for generating dtrace.d
  (trace_none.h): new target for TRACING_MODEL=none
  (RUBY_H_INCLUDES): appended a header for tracing.
  (distclean-local): also removes preprocessed version of dtrace.d
  ($(LIBRUBY_A)): needs $(LIBRUBY_DTRACE_OBJ) if dtrace needs 
  postprocessing.
  ($(PROGRAM)): ditto.
  (golf): ditto.
  (miniruby): ditto.
  ($(arch_hdrdir)/ruby/dtrace.d): new target. preprocessed verson 
  of defs/dtrace.d. generated if necessary.
  ($(arch_hdrdir)/ruby/trace_dtrace.h): new target.
  definition of probes.
  ($(LIBRUBY_DTRACE_OBJ)): new target. generated if dtrace needs 
  postprocessing.
  ($(DTRACE_OBJ)): ditto.
  ($(MINIDTRACE_OBJ)): ditto.
  ($(GOLFDTRACE_OBJ)): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-03 15:36:17 +00:00
eban db9e8351f3 * configure.in(MINIRUBY): use "$BASERUBY" as a default ruby executable name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-16 02:21:59 +00:00
nobu 276653a6f5 * configure.in: default ac_cv_prog_CC to CC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-05 04:19:31 +00:00
nobu 7b5ea0ec2f * configure.in, win32/Makefile.sub (EXECUTABLE_EXTS): moved from
dln.c:dln_find_1().

* lib/mkmf.rb (def find_executable0): use EXECUTABLE_EXTS, not
  only EXEEXT.  [ruby-core:26821]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-30 07:54:26 +00:00
nobu 85ca612b13 * configure.in (--with-opt-dir): ignore and suppress a warning.
[ruby-dev:39684]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-14 08:09:41 +00:00
nobu 68eb919442 * configure.in (warnflags): add -Wno-long-long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-09 02:28:31 +00:00
naruse 420c043089 * configure.in (MINIDLNOBJ): set default as dmydln.o.
Now LLVM clang seems to be able to build Ruby 1.9.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-06 03:07:52 +00:00
nobu f6f49eb0b8 * configure.in (RUBY_STACK_GROW_DIRECTION): set return variable always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 08:11:49 +00:00
nobu 2eb5e70de3 * configure.in (rb_cv_stack_grow_dir): fix for universal binary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 07:24:18 +00:00
nobu f6ea31420e * configure.in (sitehdrdir, vendorhdrdir): fixed default values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 07:23:05 +00:00
nobu 32df7768b8 * configure.in (target, target_alias): replace with real cpu.
* mkconfig.rb: build* are not needed in rbconfig.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 05:25:56 +00:00
nobu a56b1bc27b * configure.in (warnflags): use -Wextra only when
-Wno-missing-field-initializers is available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 05:22:53 +00:00
nobu 9a8d0e83c0 * configure.in (optflags): removed -fomit-frame-pointer by default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 05:06:12 +00:00
nobu e9af789d35 * configure.in, Makefile.in, win32/Makefile.sub (XRUBY): runnable
ruby without current libraries.

* common.mk (rdoc): use XRUBY.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-22 22:32:39 +00:00
nobu 2e5e8fd895 * configure.in (warnflags): use -Wextra instead of -Wall.
* gc.c (mark_current_machine_context): get rid of warning.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-22 22:28:52 +00:00
nobu 7c669071c4 * configure.in (cflags, cxxflags): remove duplicating options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-10 09:59:19 +00:00
nobu 66150a89a6 * configure.in, Makefile.in (LIBRUBY_SO), common.mk (ruby.imp),
win32/mkexports.rb (each_export): exclude _threadptr_ functions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-10 09:19:05 +00:00
nobu 8a99a39592 * configure.in: workaround for regexp metacharacters of expr in
prefix path.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 16:01:05 +00:00
nobu e8f007e6b8 * configure.in (THREAD_MODEL): modified message when no thread
model is available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 15:00:32 +00:00
nobu 42f0ea8c61 * configure.in (--enable-pthread): deprecated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 12:21:16 +00:00
nobu 5935818516 * configure.in (optflags): add -fomit-frame-pointer by default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-27 02:58:24 +00:00
nobu 810775bb20 * configure.in (warnflags): check all flags if each are available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-27 01:21:18 +00:00
nobu 99b41f3858 * configure.in (CAPITARGET): enable iff doxygen is available.
* configure.in (INSTALLDOC): enable if rdoc or doxygen are enabled.

* common.mk (docs): target to make documents.

* Makefile.in, win32/Makefile.sub (install-{all,nodoc}): trigger
  by $(INSTALLDOC) from install.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 07:20:19 +00:00
akr 2c7d6b50e4 * configure.in (--enable-frame-address): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-15 12:48:54 +00:00
nobu 4d3dac97ad * common.mk (install-rdoc), configure.in (RDOCTARGET): removed
circular dependency.  [ruby-dev:39339]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-15 06:16:16 +00:00
nobu c59abe419d * configure.in (RUBY_USE_BUILTIN_FRAME_ADDRESS): check after real
target CPU is set.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-15 03:12:28 +00:00
nobu f9b71b888c * configure.in (RUBY_UNIVERSAL_ARCH): check real target CPU after
AC_PROG_CC.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-15 03:01:28 +00:00
nobu 6b34fa44aa * configure.in (RDOCTARGET): use install-all. [ruby-dev:39334]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-14 19:25:05 +00:00
nobu 3ab03a234d * configure.in, common.mk, */configure.bat (rdoc): make before
install if rdoc is enabled.  [ruby-dev:39325]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-14 02:23:47 +00:00
nobu 231fdd86ae * configure.in (XLDFLAGS): link startup code with ObjC support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 09:48:45 +00:00
nobu a4fbd748e2 * configure.in (GCC): subst for GCC depending extension libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 08:31:44 +00:00
nobu 1ce66c6203 * tool/config.{guess,sub}: better guess on darwin 10 .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-11 12:38:15 +00:00
nobu d328ffff91 * configure.in (debugflags): use gdb by default on linux and
darwin.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-11 05:22:46 +00:00
nobu c1dff9b357 * configure.in (XLDFLAGS): keep ARCHFILE macro on AIX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-11 05:19:28 +00:00
nobu 8e295d4c17 * configure.in (RUBY_REPLACE_TYPE): define typename to default
type if the latter is found.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-11 05:17:34 +00:00
naruse 649f648ec1 Fix for Linux compatibility
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-25 14:33:11 +00:00
naruse 0fd1688bf5 Set 'mkdir -p' to MKDIR_P when AC_PROG_MKDIR_P doesn't set MKDIR_P.
* configure.in (MKDIR_P): Set 'mkdir -p' to MKDIR_P
  when AC_PROG_MKDIR_P doesn't set MKDIR_P.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-25 13:36:32 +00:00
nobu 24dc34e3f4 * configure.in (DLDFLAGS): use linker_flag and changed undefined
and multiply_defined behaviors. cf [ruby-core:25086].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-24 17:16:40 +00:00
nobu 4f867dddc4 * configure.in (RUBY_CHECK_SIZEOF): set cross_compiling only when
universal binary.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-24 04:14:12 +00:00
nobu 7439c06ab7 * configure.in (RUBY_PROGRAM_VERSION, RUBY_RELEASE_DATE): extracts
from version.h for cross-compiling.

* template/fake.rb.in (RUBY_VERSION, RUBY_DESCRIPTION): use above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-20 22:14:58 +00:00
matz 529f149bfe * dir.c (DEFINE_STRUCT_DIRENT): use union to allocate sufficient
memory space for Solaris.  a patch from Naohisa GOTO
  <ngoto at gen-info.osaka-u.ac.jp> in [ruby-dev:39132].
  [ruby-dev:39062]

* configure.in (SIZEOF_STRUCT_DIRENT_TOO_SMALL): Solaris dirent
  check.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-19 16:10:06 +00:00
nobu 0ff3bf4f44 * configure.in (rubyhdrdir): fixed typo. [ruby-dev:39079]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-14 05:31:39 +00:00
nobu c29206461f * configure.in (RUBY_CHECK_SIZEOF): set cross_compiling to yes
only when AC_COMPUTE_INT, and inverted the arguments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 09:40:12 +00:00
nobu c9e7e6617b * configure.in (RUBY_CHECK_SIZEOF): use AC_COMPUTE_INT instead of
_AC_COMPUTE_INT_COMPILE with cross compiling, since its arguments
  have been changed at autoconf 2.64.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 09:22:12 +00:00
nobu 24c783e95e * configure.in, Makefile.in (MAKEDIRS): used MKDIR_P instead of
as_mkdir_p.  [ruby-dev:39063]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 07:20:16 +00:00
nobu df9f513387 * configure.in (rb_cv_broken_crypt): needs more checks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 02:52:00 +00:00
nobu ce34147cf4 * configure.in, Makefile.in (TEST_RUNNABLE): tests are not
runnable if cross-compiling.

* common.mk (btest*, test*): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-20 02:13:00 +00:00
nobu b0c869c983 * configure.in (MANGLED_PATH): disabled on cygwin and mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-16 09:33:51 +00:00
yugui d154bc4c7d * Doxyfile.in: removed. merged into template/Doxyfile.template
* configure.in: new checking for dot and doxygen.

* template/Doxyfile.template: merged with Doxyfile.in.
  configured some options.

* common.mk (capi): use $(DOXYGEN) instead of "doxygen".
  (Doxyfile): removed a duplicate entry in the dependency.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 15:34:05 +00:00
nobu b15fd851c6 * configure.in (ruby_version): defaults revision to 0 when no
revision.h exists.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-23 07:16:17 +00:00
nobu 12811c5932 * configure.in: remove PACKAGE_* macros generated by autotools.
[ruby-core:20938]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-23 03:44:01 +00:00
nobu a7dedc272e * io.c (rb_io_fdatasync): new method IO#fdatasync.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-22 04:50:29 +00:00
nobu 4d3c75e2b0 * configure.in (ridir, RI_BASE_NAME): fixed for path expansion.
[ruby-core:23876]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-17 16:09:30 +00:00
nobu f0371f2f28 * configure.in (THREAD_MODEL): reject unknown value and checks
pthread.h only when pthread.  [ruby-core:23577]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-27 22:39:24 +00:00
yugui 8875ffc412 * configure.in ($ridir): new configuration. [ruby-core:23520].
c.f. [ruby-core:23519].

  (--with-ridir): new configure option.

* tool/instruby.rb (:doc, :rdoc): uses $ridir instead of
  a fixed path.

* lib/rdoc/ri/paths.rb: follows $ridir.

* Makefile.in: removes RIDATADIR which is no longer used.

* bcc32/Makefile.sub: generates the 'ridir' entry for RbConfig.
  removes RIDATADIR which is no longer used.

* win32/Makefile.sub: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-23 16:07:46 +00:00
yugui 8d1e0c0a5a * config.guess: moved into tool/.
* config.sub: ditto.

* install-sh: ditto

* configure.in: follows the moves.

* LEGAL: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-22 11:48:52 +00:00
yugui a654e0b57b * instruby.rb: moved into tool/.
* mkconfig.rb: ditto.

* rubytest.rb: ditto.

* runruby.rb: ditto.

* common.mk: follows the moves.

* configure.in: ditto.

* win32/Makefile.sub: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-22 11:48:42 +00:00
nobu 60a5a54e17 * configure.in (ruby_version): now version.h includes
include/ruby/version.h, so need to tell to cpp to see
  $(srcdir)/include.  [ruby-core:23468]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-16 00:03:31 +00:00
nobu 15fabcb2db * Makefile.in, configure.in, win32/Makefile.sub (RUBY_BASE_NAME):
program base name.  [ruby-dev:38241]

* configure.in (--with-soname): base name of shared library.
  [ruby-dev:38290]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-08 01:14:14 +00:00
nobu e6c0a7836c * configure.in (CFLAGS, CXXFLAGS): strips extra spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-05 20:34:05 +00:00
nobu fbcde451c5 * configure.in (ruby_version): uses sed instead of grep if the
result is need, to get rid of GREP_OPTIONS.  [ruby-dev:38336]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-27 07:47:14 +00:00
nobu 9bb7a8ccdd * configure.in (ac_cv_func_daemon): use daemon(3) only on *BSD.
* process.c (proc_daemon): double fork to ensure not having ctty.
  [ruby-core:23311]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-25 09:21:49 +00:00
nobu 143846ad36 * dir.c (dir_path, dir_each, glob_helper): use readdir_r() if
available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-21 00:25:43 +00:00
nobu 6e785b17b6 * configure.in (Makefile): phoeny ruby target needs empty command.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-10 23:45:59 +00:00
nobu 5c53294189 * configure.in (Makefile): info-program needs common.mk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-09 19:54:10 +00:00
nobu 3a60f6efdc * configure.in (RUBY_INSTALL_NAME): use --program-transform-name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-09 18:46:59 +00:00
akr 07aede586f * configure.in: don't override the rule for ruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-09 14:59:51 +00:00
nobu 34f01201f9 * configure.in (LIBRUBY_SO): removed redundant additional version
numbers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-08 00:46:00 +00:00
nobu d9921b1de6 * common.mk (info): shows configured names.
* configure.in (Makefile): works even if RUBY_INSTALL_NAME
  contains macro.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-07 04:35:24 +00:00
nobu 99b38e10f7 * configure.in (LIBRUBY_DLDFLAGS): compatibility version is
ruby_version.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-07 04:14:34 +00:00
nobu 4b4dc16feb * configure.in (RUBY_REPLACE_TYPE): defines type modifier prefix
for printf.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-07 04:10:21 +00:00
nobu 04d1fc84b4 * configure.in (RUBY_DEFINT): use AC_INCLUDES_DEFAULT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 17:47:33 +00:00
nobu c30f5e82a7 * configure.in (RUBY_DEFINT): should pass includes to
AC_CHECK_SIZEOF and RUBY_CHECK_SIZEOF.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 17:27:50 +00:00
nobu 254446f555 * configure.in (CFLAGS, CXXFLAGS): need ARCH_FLAG for universal
binary.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 17:25:28 +00:00
nobu aa75b002de * configure.in (CFLAGS, CXXFLAGS): override with $cflags and
$cxxflags if not given.  [ruby-core:23130]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 14:16:10 +00:00
nobu d456f0aabe * configure.in (CFLAGS, CXXFLAGS): use orignal values if given.
[ruby-core:23130]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 11:16:15 +00:00
akr 3158c0f651 * configure.in (rb_cv_fork_with_pthread): fail if the child process
fail.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-01 11:40:38 +00:00
nobu 48d18d3783 * configure.in (LIBRUBY_LDSHARED): use $(CC) instead of cc.
a patch from Wataru Kimura at [ruby-dev:38225].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-01 10:39:27 +00:00
nobu 0d3bf82f80 * configure.in: fixed the help strings for the header and library
dir switches, and updated to use AS_HELP_STRING.  patches from
  Richard Brown, c.f. [ruby-core:23067].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-31 06:17:38 +00:00
nobu cc11923a9d * configure.in (target_alias): replaces cpu with universal too.
* configure.in (target): replaces cpu with arch by --with-arch.

* mkconfig.rb (TOPDIR): chops arch in config instead of
  RUBY_PLATFORM which varies on universal_binary.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-24 22:45:13 +00:00