Fixes trac:3442: ensure that we don't call "basename" on an empty string.
cmr:v1.7 This commit was SVN r27925. The following Trac tickets were found above: Ticket 3442 --> https://svn.open-mpi.org/trac/ompi/ticket/3442
Этот коммит содержится в:
родитель
8617d0ea57
Коммит
d65194a97d
@ -10,7 +10,7 @@
|
|||||||
# University of Stuttgart. All rights reserved.
|
# University of Stuttgart. All rights reserved.
|
||||||
# Copyright (c) 2004-2005 The Regents of the University of California.
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
# Copyright (c) 2006-2012 Cisco Systems, Inc. All rights reserved.
|
# Copyright (c) 2006-2013 Cisco Systems, Inc. All rights reserved.
|
||||||
# Copyright (c) 2006-2008 Sun Microsystems, Inc. All rights reserved.
|
# Copyright (c) 2006-2008 Sun Microsystems, Inc. All rights reserved.
|
||||||
# Copyright (c) 2006-2007 Los Alamos National Security, LLC. All rights
|
# Copyright (c) 2006-2007 Los Alamos National Security, LLC. All rights
|
||||||
# reserved.
|
# reserved.
|
||||||
@ -458,11 +458,15 @@ end type test_mpi_handle],
|
|||||||
AC_CONFIG_FILES([ompi/mpi/fortran/configure-fortran-output.h])
|
AC_CONFIG_FILES([ompi/mpi/fortran/configure-fortran-output.h])
|
||||||
|
|
||||||
# Values for wrapper compilers
|
# Values for wrapper compilers
|
||||||
OMPI_FC="$FC"
|
OMPI_FC=$FC
|
||||||
set dummy $OMPI_FC
|
set dummy $OMPI_FC
|
||||||
OMPI_FC_ARGV0=[$]2
|
OMPI_FC_ARGV0=[$]2
|
||||||
BASEFC="`basename $OMPI_FC_ARGV0`"
|
AS_IF([test -n "$OMPI_FC_ARGV0"],
|
||||||
OPAL_WHICH([$OMPI_FC_ARGV0], [OMPI_FC_ABSOLUTE])
|
[BASEFC="`basename $OMPI_FC_ARGV0`"
|
||||||
|
OPAL_WHICH([$OMPI_FC_ARGV0], [OMPI_FC_ABSOLUTE])],
|
||||||
|
[OMPI_FC=none
|
||||||
|
BASEFC=none
|
||||||
|
OMPI_FC_ABSOLUTE=none])
|
||||||
|
|
||||||
AC_SUBST(OMPI_FC)
|
AC_SUBST(OMPI_FC)
|
||||||
AC_SUBST(OMPI_FC_ABSOLUTE)
|
AC_SUBST(OMPI_FC_ABSOLUTE)
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user