diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-10-28 17:57:10 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-10-28 17:57:10 (GMT) |
commit | 87d9d6bbff0648caf2b24115fa9f3f713cb0037a (patch) | |
tree | f8eb4cda3b5232181173104f31f98b31f352d179 /configure.in | |
parent | f2b52777f461e1f9e9fcdf9d1dc2520b96746382 (diff) | |
download | hdf5-87d9d6bbff0648caf2b24115fa9f3f713cb0037a.zip hdf5-87d9d6bbff0648caf2b24115fa9f3f713cb0037a.tar.gz hdf5-87d9d6bbff0648caf2b24115fa9f3f713cb0037a.tar.bz2 |
[svn-r7770] Purpose:
More Checks
Description:
Added checks for correctly working "basename" and "xargs" programs.
Mike McKay was having troubles with the xargs. The basename check was
just a good idea.
Platforms tested:
Verbena, Arabica, Modi4
Misc. update:
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 04bf4c8..67ec4f1 100644 --- a/configure.in +++ b/configure.in @@ -67,18 +67,35 @@ set >&AS_MESSAGE_LOG_FD AC_MSG_RESULT([done]) dnl ---------------------------------------------------------------------- -dnl Some platforms have broken ``tr'' programs. Check that it actually -dnl does what it's supposed to do. Catch this early since configure -dnl relies upon tr heavily and there's no use continuing if it's broken. +dnl Some platforms have broken tr, basename, and/or xargs programs. Check +dnl that it actually does what it's supposed to do. Catch this early +dnl since configure relies upon tr heavily and there's no use continuing +dnl if it's broken. dnl AC_MSG_CHECKING([if tr works]) -TRTEST=`echo "Test" | tr 'a-z,' 'A-Z '` -if test $TRTEST != "TEST"; then +TR_TEST="`echo Test | tr 'a-z,' 'A-Z '`" +if test $TR_TEST != "TEST"; then AC_MSG_ERROR([tr program doesn't work]) else AC_MSG_RESULT([yes]) fi +AC_MSG_CHECKING([if basename works]) +BASENAME_TEST="`basename /foo/bar/baz/qux/basename_works`" +if test $BASENAME_TEST != "basename_works"; then + AC_MSG_ERROR([basename program doesn't work]) +else + AC_MSG_RESULT([yes]) +fi + +AC_MSG_CHECKING([if xargs works]) +XARGS_TEST="`echo /foo/bar/baz/qux/xargs_works | xargs basename`" +if test $XARGS_TEST != "xargs_works"; then + AC_MSG_ERROR([xargs program doesn't work]) +else + AC_MSG_RESULT([yes]) +fi + dnl ---------------------------------------------------------------------- dnl Check that the cache file was build on the same host as what we're dnl running on now. |