|
11 | 11 | # Copyright (c) 2004-2005 The Regents of the University of California.
|
12 | 12 | # All rights reserved.
|
13 | 13 | # Copyright (c) 2008-2015 Cisco Systems, Inc. All rights reserved.
|
14 |
| -# Copyright (c) 2015-2021 Research Organization for Information Science |
| 14 | +# Copyright (c) 2015-2022 Research Organization for Information Science |
15 | 15 | # and Technology (RIST). All rights reserved.
|
16 | 16 | # $COPYRIGHT$
|
17 | 17 | #
|
@@ -99,14 +99,21 @@ AC_DEFUN([MCA_ompi_io_romio341_CONFIG],[
|
99 | 99 | . 3rd-party/romio341/localdefs
|
100 | 100 | io_romio341_LIBS="$LIBS"
|
101 | 101 | LIBS="$io_romio341_save_LIBS"
|
102 |
| - OPAL_3RDPARTY_SUBDIRS="$OPAL_3RDPARTY_SUBDIRS romio341" |
103 | 102 | OPAL_3RDPARTY_DIST_SUBDIRS="$OPAL_3RDPARTY_DIST_SUBDIRS romio341"
|
104 | 103 |
|
105 |
| - echo "ROMIO distribution configured successfully" |
106 |
| - $1], |
| 104 | + AC_MSG_NOTICE([ROMIO distribution configured successfully])], |
107 | 105 | [AS_IF([test "$enable_io_romio" = "yes"],
|
108 | 106 | [AC_MSG_ERROR([ROMIO distribution did not configure successfully])],
|
109 |
| - [AC_MSG_WARN([ROMIO distribution did not configure successfully])]) |
110 |
| - $2])])]) |
| 107 | + [AC_MSG_WARN([ROMIO distribution did not configure successfully])])]) |
| 108 | + |
| 109 | + AS_IF([test "$io_romio341_happy" = "1"], |
| 110 | + [AC_CHECK_HEADERS([stdatomic.h], |
| 111 | + [OPAL_3RDPARTY_SUBDIRS="$OPAL_3RDPARTY_SUBDIRS romio341"], |
| 112 | + [AC_MSG_WARN([3rd party ROMIO cannot be built, disqualifying the io/romio341 component]) |
| 113 | + io_romio341_happy=0])]) |
| 114 | + |
| 115 | + AS_IF([test "$io_romio341_happy" = "1"], |
| 116 | + [$1], |
| 117 | + [$2])])]) |
111 | 118 | OPAL_VAR_SCOPE_POP
|
112 | 119 | ])
|
0 commit comments