@@ -10,7 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
10
10
dnl University of Stuttgart. All rights reserved.
11
11
dnl Copyright (c) 2004-2006 The Regents of the University of California.
12
12
dnl All rights reserved.
13
- dnl Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
13
+ dnl Copyright (c) 2009-2017 Cisco Systems, Inc. All rights reserved
14
14
dnl Copyright (c) 2008-2012 University of Houston. All rights reserved.
15
15
dnl Copyright (c) 2015 Research Organization for Information Science
16
16
dnl and Technology (RIST). All rights reserved.
@@ -39,16 +39,15 @@ AC_DEFUN([OMPI_CHECK_LUSTRE],[
39
39
check_lustre_configuration= " none"
40
40
ompi_check_lustre_happy= " yes"
41
41
42
-
43
42
# Get some configuration information
44
43
AC_ARG_WITH([lustre],
45
44
[AC_HELP_STRING([--with-lustre(=DIR)],
46
45
[Build Lustre support, optionally adding DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries])])
47
46
OPAL_CHECK_WITHDIR([lustre], [$with_lustre ], [include/lustre/liblustreapi.h])
48
47
49
- AS_IF([test -z " $with_lustre " ],
48
+ AS_IF([test -z " $with_lustre " || test " $with_lustre " = " yes " ],
50
49
[ompi_check_lustre_dir= " /usr" ],
51
- [ompi_check_lustre_dir= " $with_lustre " ])
50
+ [ompi_check_lustre_dir= $with_lustre ])
52
51
53
52
if test -e " $ompi_check_lustre_dir /lib64" ; then
54
53
ompi_check_lustre_libdir=" $ompi_check_lustre_dir /lib64"
@@ -88,6 +87,6 @@ OPAL_LOG_COMMAND(
88
87
AS_IF([test " $ompi_check_lustre_happy " = " yes" ],
89
88
[$2 ],
90
89
[AS_IF([test ! -z " $with_lustre " && test " $with_lustre " != " no" ],
91
- [echo LUSTRE support not found])
92
- $3 ])
90
+ [AC_MSG_ERROR([Lustre support requested but not found. Aborting]) ])
91
+ $3 ])
93
92
])
0 commit comments