Lines 1-6
Link Here
|
1 |
--- configure.in.orig 2017-03-27 17:59:49 UTC |
1 |
--- configure.in.orig 2018-03-18 14:15:27 UTC |
2 |
+++ configure.in |
2 |
+++ configure.in |
3 |
@@ -633,7 +633,7 @@ |
3 |
@@ -633,7 +633,7 @@ AC_DEFUN([RUBY_DTRACE_AVAILABLE], |
4 |
[AC_CACHE_CHECK(whether dtrace USDT is available, rb_cv_dtrace_available, |
4 |
[AC_CACHE_CHECK(whether dtrace USDT is available, rb_cv_dtrace_available, |
5 |
[ |
5 |
[ |
6 |
echo "provider conftest{ probe fire(); };" > conftest_provider.d |
6 |
echo "provider conftest{ probe fire(); };" > conftest_provider.d |
Lines 9-15
Link Here
|
9 |
AC_TRY_COMPILE([@%:@include "conftest_provider.h"], [CONFTEST_FIRE();], [ |
9 |
AC_TRY_COMPILE([@%:@include "conftest_provider.h"], [CONFTEST_FIRE();], [ |
10 |
# DTrace is available on the system |
10 |
# DTrace is available on the system |
11 |
rb_cv_dtrace_available=yes |
11 |
rb_cv_dtrace_available=yes |
12 |
@@ -657,13 +657,13 @@ |
12 |
@@ -657,13 +657,13 @@ AC_DEFUN([RUBY_DTRACE_POSTPROCESS], |
13 |
probe fire(); |
13 |
probe fire(); |
14 |
}; |
14 |
}; |
15 |
_PROBES |
15 |
_PROBES |
Lines 25-31
Link Here
|
25 |
: |
25 |
: |
26 |
}; then |
26 |
}; then |
27 |
if cmp -s conftest.o conftest.${ac_objext}.save; then |
27 |
if cmp -s conftest.o conftest.${ac_objext}.save; then |
28 |
@@ -1290,10 +1290,10 @@ |
28 |
@@ -1290,10 +1290,10 @@ main() |
29 |
], |
29 |
], |
30 |
[ LIBS="-lm $LIBS"]) |
30 |
[ LIBS="-lm $LIBS"]) |
31 |
|
31 |
|
Lines 40-46
Link Here
|
40 |
|
40 |
|
41 |
dnl Checks for header files. |
41 |
dnl Checks for header files. |
42 |
AC_HEADER_DIRENT |
42 |
AC_HEADER_DIRENT |
43 |
@@ -2450,7 +2450,7 @@ |
43 |
@@ -2450,7 +2450,7 @@ if test "$ac_cv_func_qsort_r" != no; then |
44 |
AC_CACHE_CHECK(whether qsort_r is GNU version, rb_cv_gnu_qsort_r, |
44 |
AC_CACHE_CHECK(whether qsort_r is GNU version, rb_cv_gnu_qsort_r, |
45 |
[AC_TRY_COMPILE([ |
45 |
[AC_TRY_COMPILE([ |
46 |
@%:@include <stdlib.h> |
46 |
@%:@include <stdlib.h> |
Lines 49-55
Link Here
|
49 |
int (*compar)(const void *, const void *, void *), |
49 |
int (*compar)(const void *, const void *, void *), |
50 |
void *arg); |
50 |
void *arg); |
51 |
],[ ], |
51 |
],[ ], |
52 |
@@ -2460,7 +2460,7 @@ |
52 |
@@ -2460,7 +2460,7 @@ void qsort_r(void *base, size_t nmemb, size_t size, |
53 |
AC_CACHE_CHECK(whether qsort_r is BSD version, rb_cv_bsd_qsort_r, |
53 |
AC_CACHE_CHECK(whether qsort_r is BSD version, rb_cv_bsd_qsort_r, |
54 |
[AC_TRY_COMPILE([ |
54 |
[AC_TRY_COMPILE([ |
55 |
@%:@include <stdlib.h> |
55 |
@%:@include <stdlib.h> |
Lines 58-64
Link Here
|
58 |
void *arg, int (*compar)(void *, const void *, const void *)); |
58 |
void *arg, int (*compar)(void *, const void *, const void *)); |
59 |
],[ ], |
59 |
],[ ], |
60 |
[rb_cv_bsd_qsort_r=yes], |
60 |
[rb_cv_bsd_qsort_r=yes], |
61 |
@@ -2549,7 +2549,7 @@ |
61 |
@@ -2549,7 +2549,7 @@ main(int argc, char **argv) |
62 |
if test x"$ac_cv_func_clock_gettime" != xyes; then |
62 |
if test x"$ac_cv_func_clock_gettime" != xyes; then |
63 |
# glibc 2.17 moves clock_* functions from librt to the main C library. |
63 |
# glibc 2.17 moves clock_* functions from librt to the main C library. |
64 |
# http://sourceware.org/ml/libc-announce/2012/msg00001.html |
64 |
# http://sourceware.org/ml/libc-announce/2012/msg00001.html |
Lines 67-73
Link Here
|
67 |
if test x"$ac_cv_lib_rt_clock_gettime" = xyes; then |
67 |
if test x"$ac_cv_lib_rt_clock_gettime" = xyes; then |
68 |
AC_DEFINE(HAVE_CLOCK_GETTIME, 1) |
68 |
AC_DEFINE(HAVE_CLOCK_GETTIME, 1) |
69 |
fi |
69 |
fi |
70 |
@@ -2956,7 +2956,7 @@ |
70 |
@@ -2956,7 +2956,7 @@ else |
71 |
fi |
71 |
fi |
72 |
|
72 |
|
73 |
if test x"$enable_pthread" = xyes; then |
73 |
if test x"$enable_pthread" = xyes; then |
Lines 76-82
Link Here
|
76 |
AC_CHECK_LIB($pthread_lib, pthread_kill, |
76 |
AC_CHECK_LIB($pthread_lib, pthread_kill, |
77 |
rb_with_pthread=yes, rb_with_pthread=no) |
77 |
rb_with_pthread=yes, rb_with_pthread=no) |
78 |
if test "$rb_with_pthread" = "yes"; then break; fi |
78 |
if test "$rb_with_pthread" = "yes"; then break; fi |
79 |
@@ -2970,6 +2970,7 @@ |
79 |
@@ -2970,6 +2970,7 @@ if test x"$enable_pthread" = xyes; then |
80 |
[c], [], |
80 |
[c], [], |
81 |
[root], [], |
81 |
[root], [], |
82 |
[c_r], [MAINLIBS="-pthread $MAINLIBS"], |
82 |
[c_r], [MAINLIBS="-pthread $MAINLIBS"], |
Lines 84-90
Link Here
|
84 |
[AS_CASE(["$target_os"], |
84 |
[AS_CASE(["$target_os"], |
85 |
[openbsd*|mirbsd*], [LIBS="-pthread $LIBS"], |
85 |
[openbsd*|mirbsd*], [LIBS="-pthread $LIBS"], |
86 |
[LIBS="-l$pthread_lib $LIBS"])]) |
86 |
[LIBS="-l$pthread_lib $LIBS"])]) |
87 |
@@ -3278,7 +3279,6 @@ |
87 |
@@ -3278,7 +3279,6 @@ if test "$with_dln_a_out" != yes; then |
88 |
: ${LDSHARED='$(CC) -shared'} |
88 |
: ${LDSHARED='$(CC) -shared'} |
89 |
if test "$rb_cv_binary_elf" = yes; then |
89 |
if test "$rb_cv_binary_elf" = yes; then |
90 |
LDFLAGS="$LDFLAGS -rdynamic" |
90 |
LDFLAGS="$LDFLAGS -rdynamic" |
Lines 92-98
Link Here
|
92 |
else |
92 |
else |
93 |
test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED='$(LD) -Bshareable' |
93 |
test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED='$(LD) -Bshareable' |
94 |
fi |
94 |
fi |
95 |
@@ -3751,6 +3751,7 @@ |
95 |
@@ -3751,6 +3751,7 @@ AS_CASE("$enable_shared", [yes], [ |
96 |
[freebsd*|dragonfly*], [ |
96 |
[freebsd*|dragonfly*], [ |
97 |
SOLIBS='$(LIBS)' |
97 |
SOLIBS='$(LIBS)' |
98 |
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)' |
98 |
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)' |