ruby (605:ab74cec14032) ruby (612:217e48a3b091)
1
2# Copyright (C) Alexander Borisov
3# Copyright (C) NGINX, Inc.
4
5
6shift
7
8for nxt_option; do

--- 77 unchanged lines hidden (view full) ---

86
87if [ $nxt_found = no ]; then
88 $echo
89 $echo $0: error: no Ruby found.
90 $echo
91 exit 1;
92fi
93
1
2# Copyright (C) Alexander Borisov
3# Copyright (C) NGINX, Inc.
4
5
6shift
7
8for nxt_option; do

--- 77 unchanged lines hidden (view full) ---

86
87if [ $nxt_found = no ]; then
88 $echo
89 $echo $0: error: no Ruby found.
90 $echo
91 exit 1;
92fi
93
94NXT_RUBY_VERSION=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["RUBY_PROGRAM_VERSION"])'`
95$echo " + Ruby version: ${NXT_RUBY_VERSION}"
96
94
95nxt_feature="Ruby version"
96nxt_feature_name=""
97nxt_feature_run=value
98nxt_feature_incs="${NXT_RUBY_INCPATH}"
99nxt_feature_libs="${NXT_RUBY_LIBS}"
100nxt_feature_test="
101 #include <ruby.h>
102 #include <ruby/version.h>
103
104 int main() {
105 printf(\"%s\", ruby_version);
106 return 0;
107 }"
108
109. auto/feature
110
111
97if grep ^$NXT_RUBY_MODULE: $NXT_MAKEFILE 2>&1 > /dev/null; then
98 $echo
99 $echo $0: error: duplicate \"$NXT_RUBY_MODULE\" module configured.
100 $echo
101 exit 1;
102fi
103
104$echo " + Ruby module: ${NXT_RUBY_MODULE}.unit.so"

--- 67 unchanged lines hidden ---
112if grep ^$NXT_RUBY_MODULE: $NXT_MAKEFILE 2>&1 > /dev/null; then
113 $echo
114 $echo $0: error: duplicate \"$NXT_RUBY_MODULE\" module configured.
115 $echo
116 exit 1;
117fi
118
119$echo " + Ruby module: ${NXT_RUBY_MODULE}.unit.so"

--- 67 unchanged lines hidden ---