1
1

Rather than looking for any path, look for any non-absolute path starting

in contrib/platform, in addition to cwd

This commit was SVN r24905.
Этот коммит содержится в:
Brian Barrett 2011-07-20 23:28:17 +00:00
родитель 921852e1e5
Коммит cc660fa57a

Просмотреть файл

@ -35,8 +35,8 @@ AC_DEFUN([OMPI_LOAD_PLATFORM], [
elif test "$with_platform" = "no" ; then elif test "$with_platform" = "no" ; then
AC_MSG_ERROR([--without-platform is not a valid argument]) AC_MSG_ERROR([--without-platform is not a valid argument])
elif test "$with_platform" != "" ; then elif test "$with_platform" != "" ; then
# if no path part, check in contrib/platform # if not an absolute path, check in contrib/platform
if test "`basename $with_platform`" = "$with_platform" ; then if test ! "`echo $with_platform | cut -c1`" = "/" -a ! "`echo $with_platform | cut -c2`" = ".." ; then
if test -r "${srcdir}/contrib/platform/$with_platform" ; then if test -r "${srcdir}/contrib/platform/$with_platform" ; then
with_platform="${srcdir}/contrib/platform/$with_platform" with_platform="${srcdir}/contrib/platform/$with_platform"
fi fi