@@ -19118,19 +19118,59 @@ fi
19118
19118
#
19119
19119
if test "$enable_thread_safety" = yes; then
19120
19120
if test cross_compiling != yes; then
19121
+ for ac_prog in gmake make
19122
+ do
19123
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
19124
+ set dummy $ac_prog; ac_word=$2
19125
+ echo "$as_me:$LINENO: checking for $ac_word" >&5
19126
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19127
+ if test "${ac_cv_prog_MAKE+set}" = set; then
19128
+ echo $ECHO_N "(cached) $ECHO_C" >&6
19129
+ else
19130
+ if test -n "$MAKE"; then
19131
+ ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
19132
+ else
19133
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19134
+ for as_dir in $PATH
19135
+ do
19136
+ IFS=$as_save_IFS
19137
+ test -z "$as_dir" && as_dir=.
19138
+ for ac_exec_ext in '' $ac_executable_extensions; do
19139
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19140
+ ac_cv_prog_MAKE="$ac_prog"
19141
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19142
+ break 2
19143
+ fi
19144
+ done
19145
+ done
19146
+
19147
+ fi
19148
+ fi
19149
+ MAKE=$ac_cv_prog_MAKE
19150
+ if test -n "$MAKE"; then
19151
+ echo "$as_me:$LINENO: result: $MAKE" >&5
19152
+ echo "${ECHO_T}$MAKE" >&6
19153
+ else
19154
+ echo "$as_me:$LINENO: result: no" >&5
19155
+ echo "${ECHO_T}no" >&6
19156
+ fi
19157
+
19158
+ test -n "$MAKE" && break
19159
+ done
19160
+
19121
19161
echo "$as_me:$LINENO: checking thread safety of required library functions." >&5
19122
19162
echo $ECHO_N "checking thread safety of required library functions.... $ECHO_C" >&6
19123
19163
#
19124
19164
# Clean, compile, run, and clean thread test directory.
19125
19165
# If test fails for any reason, remove Makefile.global so the user can't
19126
19166
# compile (to simulate a configure failure).
19127
19167
#
19128
- gmake -C $srcdir/src/tools/thread clean >&5 ||
19168
+ $MAKE -C $srcdir/src/tools/thread clean >&5 ||
19129
19169
( rm -f src/Makefile.global
19130
19170
{ { echo "$as_me:$LINENO: error: Can not clean thread test directory." >&5
19131
19171
echo "$as_me: error: Can not clean thread test directory." >&2;}
19132
19172
{ (exit 1); exit 1; }; })
19133
- gmake -C $srcdir/src/tools/thread >&5 ||
19173
+ $MAKE -C $srcdir/src/tools/thread >&5 ||
19134
19174
( rm -f src/Makefile.global
19135
19175
{ { echo "$as_me:$LINENO: error: Can not build thread test proram." >&5
19136
19176
echo "$as_me: error: Can not build thread test proram." >&2;}
@@ -19140,7 +19180,7 @@ $srcdir/src/tools/thread/thread_test >&5 ||
19140
19180
{ { echo "$as_me:$LINENO: error: Thread test program failed." >&5
19141
19181
echo "$as_me: error: Thread test program failed." >&2;}
19142
19182
{ (exit 1); exit 1; }; })
19143
- gmake -C $srcdir/src/tools/thread clean >&5 ||
19183
+ $MAKE -C $srcdir/src/tools/thread clean >&5 ||
19144
19184
( rm -f src/Makefile.global
19145
19185
{ { echo "$as_me:$LINENO: error: Can not clean thread test directory." >&5
19146
19186
echo "$as_me: error: Can not clean thread test directory." >&2;}
0 commit comments