Skip to content

Commit 72d3e29

Browse files
committed
configury: do fail lustre detection when llapi_file_create() is not found
The result of this test was previously and incorrectly ignored. Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 592e2cc commit 72d3e29

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

config/ompi_check_lustre.m4

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ dnl Copyright (c) 2004-2006 The Regents of the University of California.
1212
dnl All rights reserved.
1313
dnl Copyright (c) 2009-2017 Cisco Systems, Inc. All rights reserved
1414
dnl Copyright (c) 2008-2018 University of Houston. All rights reserved.
15-
dnl Copyright (c) 2015 Research Organization for Information Science
16-
dnl and Technology (RIST). All rights reserved.
15+
dnl Copyright (c) 2015-2018 Research Organization for Information Science
16+
dnl and Technology (RIST). All rights reserved.
1717
dnl $COPYRIGHT$
1818
dnl
1919
dnl Additional copyrights may follow
@@ -63,8 +63,9 @@ AC_DEFUN([OMPI_CHECK_LUSTRE],[
6363
[ompi_check_lustre_happy="yes"],
6464
[ompi_check_lustre_happy="no"])
6565

66-
AC_MSG_CHECKING([for required lustre data structures])
67-
cat > conftest.c <<EOF
66+
AS_IF([test "$ompi_check_lustre_happy" = "yes"],
67+
[AC_MSG_CHECKING([for required lustre data structures])
68+
cat > conftest.c <<EOF
6869
#include "lustre/lustreapi.h"
6970
void alloc_lum()
7071
{
@@ -76,15 +77,15 @@ void alloc_lum()
7677
}
7778
EOF
7879

79-
# Try the compile
80-
OPAL_LOG_COMMAND(
81-
[$CC $CFLAGS -I$with_lustre/include -c conftest.c],
82-
[ompi_check_lustre_struct_happy="yes"],
83-
[ompi_check_lustre_struct_happy="no"
84-
ompi_check_lustre_happy="no"]
85-
)
86-
rm -f conftest.c conftest.o
87-
AC_MSG_RESULT([$ompi_check_lustre_struct_happy])
80+
# Try the compile
81+
OPAL_LOG_COMMAND(
82+
[$CC $CFLAGS -I$with_lustre/include -c conftest.c],
83+
[ompi_check_lustre_struct_happy="yes"],
84+
[ompi_check_lustre_struct_happy="no"
85+
ompi_check_lustre_happy="no"]
86+
)
87+
rm -f conftest.c conftest.o
88+
AC_MSG_RESULT([$ompi_check_lustre_struct_happy])])
8889
])
8990

9091
AS_IF([test "$ompi_check_lustre_happy" = "yes"],

0 commit comments

Comments
 (0)