Skip to content

Commit e5a50e4

Browse files
committed
threads: configury updates for argo and qthreads
The OAC_CHECK_PACKAGE macro doesn't have quite the same functionality as the origina ?OPAL_CHECK_PACKAGE? macro, so add some sed magic to get the path we need for argo/qthread related header files. related to open-mpi#10459 Signed-off-by: Howard Pritchard <[email protected]>
1 parent 1829bba commit e5a50e4

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

opal/mca/threads/argobots/configure.m4

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# Copyright (c) 2015 Research Organization for Information Science
1515
# and Technology (RIST). All rights reserved.
1616
# Copyright (c) 2019 Sandia National Laboratories. All rights reserved.
17-
# Copyright (c) 2019 Triad National Security, LLC. All rights
17+
# Copyright (c) 2019-2022 Triad National Security, LLC. All rights
1818
# Reserved.
1919
# Copyright (c) 2021 Argonne National Laboratory. All rights reserved.
2020
# $COPYRIGHT$
@@ -56,8 +56,10 @@ AC_DEFUN([OPAL_CONFIG_ARGOBOTS_THREADS],[
5656

5757
AS_IF([test $opal_argo_happy = yes && test $opal_argo11_happy = no],
5858
[AC_MSG_ERROR([Open MPI requires Argobots 1.1 or newer.])])
59-
AS_IF([test $opal_argo_happy = yes && test $opal_argo11_happy = yes && test -n "$opal_argo_dir"],
60-
[OPAL_ARGO_INCLUDE_PATH="$opal_argo_dir/include/"],
59+
dnl extract the fully qualified include path from the opal_argo_CPPFLAGS variable
60+
dnl for use in threads_argobots.h
61+
AS_IF([test $opal_argo_happy = yes && test $opal_argo11_happy = yes],
62+
[OPAL_ARGO_INCLUDE_PATH=`echo "${opal_argo_CPPFLAGS}/" | sed -e 's/\-I//g' | sed -e 's/ //g'`],
6163
[OPAL_ARGO_INCLUDE_PATH=""])
6264

6365
AS_IF([test $opal_argo_happy = yes],

opal/mca/threads/qthreads/configure.m4

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
1414
# Copyright (c) 2015 Research Organization for Information Science
1515
# and Technology (RIST). All rights reserved.
16-
# Copyright (c) 2019 Triad National Security, LLC. All rights
16+
# Copyright (c) 2019-2022 Triad National Security, LLC. All rights
1717
# reserved.
1818
#
1919
# $COPYRIGHT$
@@ -45,8 +45,10 @@ AC_DEFUN([OPAL_CONFIG_QTHREADS],[
4545
[opal_qthreads_happy=yes],
4646
[opal_qthreads_happy=no])
4747

48-
AS_IF([test $opal_qthreads_happy = yes && test -n "$opal_qthreads_dir"],
49-
[OPAL_QTHREADS_INCLUDE_PATH="$opal_qthreads_dir/include/"],
48+
dnl extract the fully qualified include path from the opal_qthreads_CPPFLAGS variable
49+
dnl for use in threads_qthreads.h
50+
AS_IF([test $opal_qthreads_happy = yes],
51+
[OPAL_QTHREADS_INCLUDE_PATH=`echo "${opal_qthreads_CPPFLAGS}/" | sed -e 's/\-I//g' | sed -e 's/ //g'`],
5052
[OPAL_QTHREADS_INCLUDE_PATH=""])
5153

5254
AS_IF([test $opal_qthreads_happy = yes],

0 commit comments

Comments
 (0)