summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2005-02-22 17:42:48 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2005-02-22 17:42:48 (GMT)
commit081ac87fedbf20e700299dbe06dfc64fe1e96e7d (patch)
treea2c746e8b28fc834d29c546b8f65d4d4c2315251
parent7ff30cd69523ea8379c1ebbd7efb95eed80a6925 (diff)
downloadhdf5-081ac87fedbf20e700299dbe06dfc64fe1e96e7d.zip
hdf5-081ac87fedbf20e700299dbe06dfc64fe1e96e7d.tar.gz
hdf5-081ac87fedbf20e700299dbe06dfc64fe1e96e7d.tar.bz2
[svn-r10064] Purpose:
Bug fix Description: This checkin addresses two bugs. Firstly, I used the wrong semantics when detecting if $MAKE is defined to the empty string or undefined. Secondly, pmake on IRIX does not work well with automake's dependency tracking if the build is not an in-place build. Solution: Fixed semantics in configure.in. Disabled automatic dependency tracking automatically on IRIX. This is not the optimal fix, but it should work fine as long as no one is doing HDF5 development on IRIX, and it is much easier than trying to detect the exact situations in which dependency tracking fails (or than trying to fix dependency tracking!). Platforms tested: heping, modi4 (pmake and gmake)
-rw-r--r--config/irix5.x10
-rw-r--r--config/irix6.x10
-rwxr-xr-xconfigure2
-rw-r--r--configure.in2
4 files changed, 22 insertions, 2 deletions
diff --git a/config/irix5.x b/config/irix5.x
index 810b221..51b0462 100644
--- a/config/irix5.x
+++ b/config/irix5.x
@@ -6,6 +6,16 @@
#
# See BlankForm in this directory for details
+# Disable dependency tracking on IRIX unless the user specifically asks for
+# it.
+# IRIX's pmake confuses automake (as of version 1.9) if dependency tracking
+# is enabled and it is not an in-place build. Simply disabling dependency
+# tracking on IRIX is simpler to implement than detecting pmake, detecting
+# when a build is not in-place, and then disabling dependency tracking.
+if test -z "${enable_dependency_tracking}"; then
+ enable_dependency_tracking="no"
+fi
+
# The default compiler is `cc' and there is no ranlib.
if test "X-" = "X-$CC"; then
CC=cc
diff --git a/config/irix6.x b/config/irix6.x
index 1fab241..5d4264b 100644
--- a/config/irix6.x
+++ b/config/irix6.x
@@ -6,6 +6,16 @@
#
# See BlankForm in this directory for details.
+# Disable dependency tracking on IRIX unless the user specifically asks for
+# it.
+# IRIX's pmake confuses automake (as of version 1.9) if dependency tracking
+# is enabled and it is not an in-place build. Simply disabling dependency
+# tracking on IRIX is simpler to implement than detecting pmake, detecting
+# when a build is not in-place, and then disabling dependency tracking.
+if test -z "${enable_dependency_tracking}"; then
+ enable_dependency_tracking="no"
+fi
+
# Use SGI supplied C compiler by default. There is no ranlib
if test "X-" = "X-$CC"; then
CC='cc'
diff --git a/configure b/configure
index 0e2d57a..6e03418 100755
--- a/configure
+++ b/configure
@@ -9732,7 +9732,7 @@ rm maketest
AM_MAKEFLAGS=""
-if test ${MAKE}; then
+if test -n "${MAKE-make}"; then
echo "$as_me:$LINENO: checking whether make will build with undefined variables" >&5
echo $ECHO_N "checking whether make will build with undefined variables... $ECHO_C" >&6
diff --git a/configure.in b/configure.in
index 26caaa6..ce8be8a 100644
--- a/configure.in
+++ b/configure.in
@@ -566,7 +566,7 @@ dnl
AC_SUBST(AM_MAKEFLAGS) AM_MAKEFLAGS=""
dnl Don't run test if MAKE is defined but is the empty string
-if test ${MAKE}; then
+if test -n "${MAKE-make}"; then
AC_MSG_CHECKING([whether make will build with undefined variables])