aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
Commit message (Collapse)AuthorAgeFilesLines
* math.c: C99-like atan2nobu2014-05-041-0/+1
| | | | | | | | * math.c (math_atan2): return values like as expected by C99 if both two arguments are infinity. based on the patch by cremno phobia <cremno AT mail.ru> in [ruby-core:62310]. [Feature #9799] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (HAVE_STRUCT_STATVFS_F_BASETYPE): File::Statfs#fstypenamengoto2014-05-021-1/+4
| | | | | | | | | | is supported on AIX, HP-UX, and Solaris, by using the value of struct statvfs.f_basetype. * configure.in (HAVE_STRUCT_STATVFS_F_BASETYPE): check struct statvfs.f_basetype which is available on AIX, HP-UX, and Solaris. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (HAVE_STRUCT_STATFS_F_TYPE): check struct statfs.f_typenaruse2014-04-281-1/+1
| | | | | | | | | | to support OpenBSD. * file.c (statfs_type): use above macro to switch. * file.c (statfs_inspect): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: check struct statvfs and struct statvfs.f_fstypename.naruse2014-04-281-0/+7
| | | | | | | | * configure.in: on NetBSD fstatfs is obsoleted. * file.c: support NetBSD for File::Statfs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: refine __builtin_unreachable checknobu2014-04-251-2/+2
| | | | | | | | * configure.in (rb_cv_func___builtin_unreachable): try with an external variable not only by a warning, which might not be shown due to the optimization. [ruby-core:61647] [Bug #9665] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: NetBSD's ksh, used by configure, needs escapes.naruse2014-04-251-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: correct pthread_setname_np's prototype on NetBSD.naruse2014-04-251-1/+4
| | | | | | [Bug #9586] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* file.c: unpack in binarynobu2014-04-231-10/+0
| | | | | | | | * file.c (statfs_fsid): convert with rb_integer_unpack. * configure.in: fsid_t is no longer used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, win32/Makefile.sub: fsid_t is defined in include/ruby/win32.h.usa2014-04-231-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* file.c: fsid_t may not be definednobu2014-04-231-0/+11
| | | | | | | | | * configure.in: check if fsid_t is defined. * file.c (statfs_fsid): fsid_t may not be defined, assume long in that case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c, include/ruby/win32.h (ustatfs): implementation ofusa2014-04-221-0/+2
| | | | | | | | | | | statfs(2) clone. [EXPERIMENTAL] * file.c (rb_io_statfs): use above function. * configure.in, win32/Makefile.sub (struct statfs): available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_io_stafs): use statfs(2) if fstatfs(2) is unavailable.usa2014-04-221-0/+1
| | | | | | | * configure.in (fstatfs): check it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c: newly added a class File::Statfs. (experimental)naruse2014-04-221-0/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: rb_cv_getcwd_mallocnobu2014-04-171-0/+31
| | | | | | | * configure.in (rb_cv_getcwd_malloc): check if getcwd allocates buffer if NULL is given [ruby-core:62072] [Bug #9752] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: FUNC_MINIMIZEDnobu2014-04-171-3/+9
| | | | | | | | | | * configure.in (RUBY_FUNC_ATTRIBUTE): escape double quotes in attribute. * configure.in (FUNC_MINIMIZED): attribute to minimize function body. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: no __builtin_setjmp on x64-mingwnobu2014-04-091-0/+1
| | | | | | | | * configure.in: get rid of __builtin_setjmp/__builtin_longjmp on x64-mingw, which causes SEGV with callcc. [ruby-core:61887] [Bug #9710] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: get rid of clang fatal errornobu2014-04-041-3/+4
| | | | | | | | * configure.in (ac_cv_func___builtin_setjmp): get rid of a bug in clang 3.3 and 3.4, which __builtin_setjmp() causes fatal error in backend, linker error, or segmentation fault. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: restore flagsnobu2014-04-031-2/+3
| | | | | | | | * configure.in (ac_cv_func___builtin_setjmp): should not skip flags restoration in RUBY_WERROR_FLAG by `break`. [ruby-dev:48086] [Bug #9698] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: indentnobu2014-04-031-14/+14
| | | | | | * configure.in (ac_cv_func___builtin_setjmp): adjust indent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: use the first candidatenobu2014-04-021-1/+1
| | | | | | | * configure.in (ac_cv_func___builtin_setjmp): use the first cast which works with __builtin_longjmp(). [Bug #9692] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: fix for clang 5.1 __builtin_longjmpnobu2014-04-021-7/+16
| | | | | | | * configure.in (ac_cv_func___builtin_setjmp): __builtin_longjmp() in clang 5.1 uses `void**`, not `jmp_buf`. [Bug #9692] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: do not use a variable for longjmpnobu2014-04-021-2/+7
| | | | | | | | * configure.in (ac_cv_func___builtin_setjmp): gcc 4.9 disallows a variable as the second argument of __builtin_longjmp(). [ruby-core:61800] [Bug #9692] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add --disable-pie option to configurekanemoto2014-03-261-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix a build problem with clang and --with-opt-dir.knu2014-03-211-1/+4
| | | | | | | | | | | | | | | * configure.in: Fix a build problem with clang and --with-opt-dir. If ruby is configured with --with-opt-dir=dir when using clang as compiler, a warning `clang: warning: argument unused during compilation: '-I dir'` is emitted almost every time clang compiles a file. Unfortunately, RUBY_CHECK_PRINTF_PREFIX takes any output from the compiler as fatal error, and the check thus fails due to the warning. This is an attempt to fix the problem by adding a flag -Qunused-arguments to CFLAGS locally in the function to suppress the warning. [ruby-dev:48062] [Bug #9658] [Fixes GH-571] https://github.com/ruby/ruby/pull/571 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: default os_version_stylenobu2014-03-171-4/+11
| | | | | | | * configure.in (os_version_style): get default style from `/usr/bin/ruby` if possible. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: insert a space for non-GCCnobu2014-03-161-2/+3
| | | | | | | * configure.in (DLDFLAGS): insert a space between option and its argument for non-GCC compilers. [ruby-core:61429] [Bug #9624] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: fix typonobu2014-03-151-1/+1
| | | | | | | * configure.in (DLDFLAGS): fix typo, missing comma. [ruby-core:61429] [Bug #9624] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: check symbol resolution optionsnobu2014-03-151-4/+15
| | | | | | | * configure.in (DLDFLAGS): check for each options to control symbol resolution. [ruby-core:61429] [Bug #9624] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typo on previous commitnaruse2014-03-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix configure for r45306naruse2014-03-111-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: always check dladdr(1).naruse2014-03-101-1/+1
| | | | | | | | | | | * addr2line.c (fill_lines): show the line number in C backtrace if ruby is built without --enable-shared (PIE) on Linux. patch is originally by Shinichiro Hamaji https://twitter.com/shinh/status/441957774264504321 NOTE: ld doesn't insert __executable_start for PIE. dladdr(3)'s argument must be a function pointer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: unquotednobu2014-02-281-1/+1
| | | | | | | * configure.in (SET_THREAD_NAME): needs unquoted to expand a shell variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: check arguments of pthread_setname_npnobu2014-02-281-37/+17
| | | | | | | * configure.in (SET_THREAD_NAME): check proper arguments of pthread_setname_np() and fix definition on BSDs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: define SET_THREAD_NAMEnobu2014-02-271-0/+47
| | | | | | | * configure.in (SET_THREAD_NAME): define according to pthread_setname_np variations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: check __ARCHITECTURE__ properlynobu2014-02-271-3/+4
| | | | | | | * configure.in (rb_cv_architecture_available): check whether __ARCHITECTURE__ is available before replacing CFLAGS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in, win32/Makefile.sub: PACKED_STRUCT with VCnobu2014-02-251-9/+16
| | | | | | | | | * configure.in (PACKED_STRUCT): check VC pragma too, and make function-style macro. * win32/Makefile.sub (PACKED_STRUCT): enable with VC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: fix typonobu2014-02-251-1/+1
| | | | | | | * configure.in (PACKED_STRUCT_UNALIGNED): fix typo. Intel x86 cpus are called x86 or i386 etc, not x386. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: use PACKED_STRUCT_UNALIGNED on x64-mingwnobu2014-02-251-1/+1
| | | | | | * configure.in (PACKED_STRUCT_UNALIGNED): use on x64-mingw too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time: only use packed struct on x86*normal2014-02-241-0/+4
| | | | | | | | | * configure.in: define PACKED_STRUCT_UNALIGNED for x86* * timev.h (struct vtm): use PACKED_STRUCT_UNALIGNED * time.c (struct time_object): ditto [Bug #9558] non-x86 cannot safely access unaligned addresses git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time: rearrange+pack vtm and time_object structsnormal2014-02-241-0/+10
| | | | | | | | | | | | struct time_object shrinks from 88 to 46 bytes on my 64-bit system. * configure.in: use -Wno-packed-bitfield-compat for GCC 4.4+ use __attribute__((packed)) if available * timev.h: shrink and pack struct vtm * time.c: pack struct time_object and adjust/introduce helpers [ruby-core:60794] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: it must see rb_cv_broken_memmem not rb_cv_func_memmem.naruse2014-02-191-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (FILE_COUNT): Removed. (win32.c defines it in itself.)akr2014-02-181-40/+0
| | | | | | | | (FILE_READPTR): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (FILE_READEND): Don't detect it because it is not used.akr2014-02-151-18/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: use pthread_setname_np only if availablenobu2014-02-131-1/+1
| | | | | | | | * configure.in: check if pthread_setname_np is available. * thread_pthread.c: pthread_setname_np is not available on old Darwins. [ruby-core:60524] [Bug #9492] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: revert r44922. I should have used AC_CHECK_FUNCS()glass2014-02-121-111/+111
| | | | | | to just define a symbol if the function is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: use AC_CHECK_FUNC instead of AC_CHECK_FUNCSglass2014-02-121-111/+111
| | | | | | if available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: fix to undefine HAVE_MEMEM collectlly if it is broken.glass2014-02-121-5/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Fix compilation error.akr2014-02-091-1/+6
| | | | | | | | https://bugs.ruby-lang.org/issues/8358#note-16 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (rb_cv_bsd_qsort_r): ensure 'qsort_r' is not BSD version.nobu2014-02-081-3/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (rb_cv_gnu_qsort_r): use compile error "conflictingnaruse2014-02-081-23/+6
| | | | | | types for 'qsort_r'" instead of AC_RUN_IFELSE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e