@@ -19113,12 +19113,7 @@ if test "$no_create" != yes; then
1911319113fi
1911419114
1911519115
19116- #
19117- # We have to run the thread test here because it is an external program
19118- # that has to be runable separately for cross-compiling.
19119- #
19120- if test "$enable_thread_safety" = yes; then
19121- if test cross_compiling != yes; then
19116+ # Check for gmake.
1912219117for ac_prog in gmake make
1912319118do
1912419119 # Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -19159,41 +19154,54 @@ fi
1915919154 test -n "$MAKE" && break
1916019155done
1916119156
19162- echo "$as_me:$LINENO: checking thread safety of required library functions." >&5
19163- echo $ECHO_N "checking thread safety of required library functions.... $ECHO_C" >&6
19157+ if ! $MAKE -v | grep 'GNU Make' >/dev/null
19158+ thenrm -f $srcdir/src/Makefile.global
19159+ echo "$as_me:$LINENO: checking Can not find GNU Make. It is required." >&5
19160+ echo $ECHO_N "checking Can not find GNU Make. It is required.... $ECHO_C" >&6
19161+ fi
19162+
19163+ # Thread testing
19164+
19165+ # We have to run the thread test here because it is an external program
19166+ # that has to be runable separately for cross-compiling.
19167+ #
19168+ if test "$enable_thread_safety" = yes; then
19169+ if test cross_compiling != yes; then
1916419170#
1916519171# Clean, compile, run, and clean thread test directory.
1916619172# If test fails for any reason, remove Makefile.global so the user can't
1916719173# compile (to simulate a configure failure).
1916819174#
19169- $MAKE -C $srcdir/src/tools/thread clean >&5 ||
19170- ( rm -f src/Makefile.global
19171- { { echo "$as_me:$LINENO: error: Can not clean thread test directory." >&5
19175+ echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
19176+ echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
19177+ if ! $MAKE -C $srcdir/src/tools/thread clean >&5
19178+ thenrm -f $srcdir/src/Makefile.global
19179+ { { echo "$as_me:$LINENO: error: Can not clean thread test directory." >&5
1917219180echo "$as_me: error: Can not clean thread test directory." >&2;}
19173- { (exit 1); exit 1; }; }) ||
19174- exit $?
19175- $MAKE -C $srcdir/src/tools/thread >&5 ||
19176- ( rm -f src/Makefile.global
19177- { { echo "$as_me:$LINENO: error: Can not build thread test proram." >&5
19181+ { (exit 1); exit 1; }; }
19182+ fi
19183+ if ! $MAKE -C $srcdir/src/tools/thread >&5
19184+ then rm -f$srcdir/ src/Makefile.global
19185+ { { echo "$as_me:$LINENO: error: Can not build thread test proram." >&5
1917819186echo "$as_me: error: Can not build thread test proram." >&2;}
19179- { (exit 1); exit 1; }; }) ||
19180- exit $?
19181- $srcdir/src/tools/thread/thread_test >&5 ||
19182- ( rm -f src/Makefile.global
19183- echo "no"
19184- echo
19185- $srcdir/src/tools/thread/thread_test
19186- echo
19187- { { echo "$as_me:$LINENO: error: Thread test program failed. Your platform is not thread-safe." >&5
19187+ { (exit 1); exit 1; }; }
19188+ fi
19189+ if ! $srcdir/src/tools/thread/thread_test >&5
19190+ then rm -f$srcdir/ src/Makefile.global
19191+ echo "no"
19192+ echo
19193+ $srcdir/src/tools/thread/thread_test
19194+ echo
19195+ { { echo "$as_me:$LINENO: error: Thread test program failed. Your platform is not thread-safe." >&5
1918819196echo "$as_me: error: Thread test program failed. Your platform is not thread-safe." >&2;}
19189- { (exit 1); exit 1; }; }) ||
19190- exit $?
19191- $MAKE -C $srcdir/src/tools/thread clean >&5 ||
19192- ( rm -f src/Makefile.global
19193- { { echo "$as_me:$LINENO: error: Can not clean thread test directory." >&5
19197+ { (exit 1); exit 1; }; }
19198+ fi
19199+ if ! $MAKE -C $srcdir/src/tools/thread clean >&5
19200+ then rm -f$srcdir/ src/Makefile.global
19201+ { { echo "$as_me:$LINENO: error: Can not clean thread test directory." >&5
1919419202echo "$as_me: error: Can not clean thread test directory." >&2;}
19195- { (exit 1); exit 1; }; }) ||
19196- exit $?
19203+ { (exit 1); exit 1; }; }
19204+ fi
1919719205echo "yes"
1919819206else
1919919207{ echo "$as_me:$LINENO: WARNING: