diff options
author | James Laird <jlaird@hdfgroup.org> | 2006-10-03 22:41:34 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2006-10-03 22:41:34 (GMT) |
commit | e5f0444b3a3d2afd7c13c57d76248141b93f1121 (patch) | |
tree | d84f5183fe9d79237682019063d14083eeb20756 /configure.in | |
parent | d2019d7c50896481df5e242e111508d18350f3ff (diff) | |
download | hdf5-e5f0444b3a3d2afd7c13c57d76248141b93f1121.zip hdf5-e5f0444b3a3d2afd7c13c57d76248141b93f1121.tar.gz hdf5-e5f0444b3a3d2afd7c13c57d76248141b93f1121.tar.bz2 |
[svn-r12715] Incorporated a user-submitted patch to better detect the 'tr' utility
and quote its arguments. Also checks for the 'socket' library on
Solaris.
If this patch passes the Daily Tests and makes the user happy, I'll
port it back to the 1.6 branch.
Tested on mir and sol.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 3f726f7..f14cf56 100644 --- a/configure.in +++ b/configure.in @@ -511,8 +511,17 @@ AC_PROG_MAKE_SET AC_PROG_INSTALL - dnl ---------------------------------------------------------------------- +dnl Check that the tr utility is working properly. + +AC_PATH_PROG(TR, tr) + +TR_TEST=`echo Test | ${TR} ${as_cr_letters}"," ${as_cr_LETTERS}" "` +if test "X${TR_TEST}" != "XTEST"; then + AC_MSG_ERROR([tr program doesn't work]) +fi + + dnl The following variables are used to distinguish between building a dnl serial and parallel library. dnl @@ -573,7 +582,7 @@ case "$CC_BASENAME" in if (echo $cmd | grep / >/dev/null); then path="`echo $cmd | sed 's/\(.*\)\/.*$/\1/'`" else - for path in `echo $PATH | tr : ' '`; do + for path in `echo $PATH | ${TR} ":" " "`; do if test -x $path/$cmd; then break fi @@ -604,7 +613,7 @@ case "$CC_BASENAME" in if (echo $cmd | grep / >/dev/null); then path="`echo $cmd | sed 's/\(.*\)\/.*$/\1/'`" else - for path in `echo $PATH | tr : ' '`; do + for path in `echo $PATH | ${TR} ":" " "`; do if test -x $path/$cmd; then break fi @@ -662,7 +671,7 @@ if test "X$HDF_FORTRAN" = "Xyes"; then if (echo $cmd |grep / >/dev/null); then path="`echo $cmd |sed 's/\(.*\)\/.*$/\1/'`" else - for path in `echo $PATH | tr : ' '`; do + for path in `echo $PATH | ${TR} ":" " "`; do if test -x $path/$cmd; then break; fi @@ -1027,6 +1036,7 @@ AC_CHECK_LIB([m], [ceil]) if test "`uname`" = "SunOS" -o "`uname -sr`" = "HP-UX B.11.00"; then dnl ...for Solaris + AC_CHECK_LIB([socket], [socket]) AC_CHECK_LIB([nsl], [xdr_int]) fi @@ -1999,7 +2009,7 @@ case "X-$DEBUG_PKG" in esac if test -n "$DEBUG_PKG"; then - for pkg in `echo $DEBUG_PKG | tr ${as_cr_letters}',' ${as_cr_LETTERS}' '`; do + for pkg in `echo $DEBUG_PKG | ${TR} ${as_cr_letters}"," ${as_cr_LETTERS}" "`; do H5_CPPFLAGS="$H5_CPPFLAGS -DH5${pkg}_DEBUG" done fi |