diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-04-24 03:09:35 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-04-24 03:09:35 +0000 |
| commit | e295c55fae80e81ba449325976e6f9af3b811b8c (patch) | |
| tree | fcec03229220ef71a8bb898c465e36816ea8989e /configure.in | |
| parent | f5dd5bf297a754243f6914b26c047c8ca65c4c23 (diff) | |
| download | postgresql-e295c55fae80e81ba449325976e6f9af3b811b8c.tar.gz | |
Check for gmake, then make, when doing thread test.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/configure.in b/configure.in index bcf4cb6a39..ced20fc610 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $PostgreSQL: pgsql/configure.in,v 1.325 2004/04/23 23:58:07 momjian Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.326 2004/04/24 03:09:35 momjian Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -1220,22 +1220,23 @@ AC_OUTPUT # if test "$enable_thread_safety" = yes; then if test cross_compiling != yes; then +AC_CHECK_PROGS(MAKE, gmake make) AC_MSG_CHECKING([thread safety of required library functions.]) # # Clean, compile, run, and clean thread test directory. # If test fails for any reason, remove Makefile.global so the user can't # compile (to simulate a configure failure). # -gmake -C $srcdir/src/tools/thread clean >&5 || +$MAKE -C $srcdir/src/tools/thread clean >&5 || ( rm -f src/Makefile.global AC_MSG_ERROR([Can not clean thread test directory.])) -gmake -C $srcdir/src/tools/thread >&5 || +$MAKE -C $srcdir/src/tools/thread >&5 || ( rm -f src/Makefile.global AC_MSG_ERROR([Can not build thread test proram.])) $srcdir/src/tools/thread/thread_test >&5 || ( rm -f src/Makefile.global AC_MSG_ERROR([Thread test program failed.])) -gmake -C $srcdir/src/tools/thread clean >&5 || +$MAKE -C $srcdir/src/tools/thread clean >&5 || ( rm -f src/Makefile.global AC_MSG_ERROR([Can not clean thread test directory.])) echo "yes" |
