@@ -11,7 +11,7 @@ dnl University of Stuttgart. All rights reserved.
1111dnl Copyright (c) 2004-2006 The Regents of the University of California.
1212dnl All rights reserved.
1313dnl Copyright (c) 2009-2017 Cisco Systems, Inc. All rights reserved
14- dnl Copyright (c) 2008-2017 University of Houston. All rights reserved.
14+ dnl Copyright (c) 2008-2018 University of Houston. All rights reserved.
1515dnl Copyright (c) 2015 Research Organization for Information Science
1616dnl and Technology (RIST). All rights reserved.
1717dnl $COPYRIGHT $
@@ -45,23 +45,26 @@ AC_DEFUN([OMPI_CHECK_LUSTRE],[
4545 [Build Lustre support, optionally adding DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries])])
4646 OPAL_CHECK_WITHDIR([lustre], [$with_lustre ], [include/lustre/lustreapi.h])
4747
48- AS_IF([test -z " $with_lustre " || test " $with_lustre " = " yes" ],
49- [ompi_check_lustre_dir= " /usr" ],
50- [ompi_check_lustre_dir= $with_lustre ])
51-
52- if test -e " $ompi_check_lustre_dir /lib64" ; then
53- ompi_check_lustre_libdir=" $ompi_check_lustre_dir /lib64"
54- else
55- ompi_check_lustre_libdir=" $ompi_check_lustre_dir /lib"
56- fi
57-
58- # Add correct -I and -L flags
59- OPAL_CHECK_PACKAGE([$1 ], [lustre/lustreapi.h], [lustreapi], [llapi_file_create], [],
60- [$ompi_check_lustre_dir ], [$ompi_check_lustre_libdir ], [ompi_check_lustre_happy= " yes" ],
61- [ompi_check_lustre_happy= " no" ])
62-
63- AC_MSG_CHECKING([for required lustre data structures])
64- cat > conftest.c << EOF
48+ AS_IF([test " $with_lustre " = " no" ],
49+ [ompi_check_lustre_happy= " no" ],
50+ [AS_IF([test -z " $with_lustre " || test " $with_lustre " = " yes" ],
51+ [ompi_check_lustre_dir= " /usr" ],
52+ [ompi_check_lustre_dir= $with_lustre ])
53+
54+ if test -e " $ompi_check_lustre_dir /lib64" ; then
55+ ompi_check_lustre_libdir=" $ompi_check_lustre_dir /lib64"
56+ else
57+ ompi_check_lustre_libdir=" $ompi_check_lustre_dir /lib"
58+ fi
59+
60+ # Add correct -I and -L flags
61+ OPAL_CHECK_PACKAGE([$1 ], [lustre/lustreapi.h], [lustreapi], [llapi_file_create],
62+ [], [$ompi_check_lustre_dir ], [$ompi_check_lustre_libdir ],
63+ [ompi_check_lustre_happy= " yes" ],
64+ [ompi_check_lustre_happy= " no" ])
65+
66+ AC_MSG_CHECKING([for required lustre data structures])
67+ cat > conftest.c << EOF
6568# include "lustre/lustreapi.h"
6669void alloc_lum ()
6770{
@@ -82,7 +85,7 @@ OPAL_LOG_COMMAND(
8285)
8386 rm -f conftest.c conftest.o
8487 AC_MSG_RESULT([$ompi_check_lustre_struct_happy ])
85-
88+ ])
8689
8790 AS_IF([test " $ompi_check_lustre_happy " = " yes" ],
8891 [$2 ],
0 commit comments