summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Kreen2007-04-16 12:44:33 +0000
committerMarko Kreen2007-04-16 12:44:33 +0000
commitc38b9bdc7b66c0c1c00432ad5c8fc2bc73f3e512 (patch)
treec5df6d84c77b136e56c4f9d6e526d0a0ea4a2483
parent71f8a18b88a76019b4d62152473bf4c93ade11ca (diff)
dont stop on first make found
-rw-r--r--configure.ac18
1 files changed, 13 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 7307a824..c6699973 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,13 +20,21 @@ AC_ARG_WITH(pgconfig, [ --with-pgconfig=PG_CONFIG path to pg_config (default
test -n "$PG_CONFIG" || AC_MSG_ERROR([Cannot continue without pg_config])
dnl Find GNU make
-AC_PATH_PROGS(MAKE, gmake make)
-AC_MSG_CHECKING(if $MAKE is GNU make)
-if $MAKE --version 2>&1 | grep -q GNU; then
- AC_MSG_RESULT(yes)
+AC_MSG_CHECKING(for GNU make)
+if test -n "$MAKE"; then
+ for a in make gmake gnumake; do
+ if "$a" --version 2>&1 | grep -q GNU; then
+ MAKE="$a"
+ break
+ fi
+ done
+fi
+if test -n "$MAKE"; then
+ AC_MSG_ERROR([GNU make is not found])
else
- AC_MSG_ERROR(no, cannot proceed)
+ AC_MSG_RESULT($MAKE)
fi
+AC_SUBST(MAKE)
dnl Find location of /contrib SQL
AC_MSG_CHECKING(where PostgreSQL SQL extensions are installed)