1
1
# -*- shell-script -*-
2
2
#
3
- # Copyright (c) 2009-2018 Cisco Systems, Inc. All rights reserved
3
+ # Copyright (c) 2009-2019 Cisco Systems, Inc. All rights reserved
4
4
# Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
5
5
# Copyright (c) 2015-2018 Research Organization for Information Science
6
6
# and Technology (RIST). All rights reserved.
17
17
#
18
18
# Priority
19
19
#
20
- AC_DEFUN([MCA_opal_hwloc_hwloc201_PRIORITY ], [80])
20
+ AC_DEFUN([MCA_opal_hwloc_hwloc2_PRIORITY ], [80])
21
21
22
22
#
23
23
# Force this component to compile in static-only mode
24
24
#
25
- AC_DEFUN([MCA_opal_hwloc_hwloc201_COMPILE_MODE ], [
25
+ AC_DEFUN([MCA_opal_hwloc_hwloc2_COMPILE_MODE ], [
26
26
AC_MSG_CHECKING([for MCA component $2 :$3 compile mode])
27
27
$4 = " static"
28
28
AC_MSG_RESULT([$$ 4])
29
29
])
30
30
31
31
# Include hwloc m4 files
32
- m4_include(opal/mca/hwloc/hwloc201 /hwloc/config/hwloc.m4)
33
- m4_include(opal/mca/hwloc/hwloc201 /hwloc/config/hwloc_pkg.m4)
34
- m4_include(opal/mca/hwloc/hwloc201 /hwloc/config/hwloc_check_attributes.m4)
35
- m4_include(opal/mca/hwloc/hwloc201 /hwloc/config/hwloc_check_visibility.m4)
36
- m4_include(opal/mca/hwloc/hwloc201 /hwloc/config/hwloc_check_vendor.m4)
37
- m4_include(opal/mca/hwloc/hwloc201 /hwloc/config/hwloc_components.m4)
38
- m4_include(opal/mca/hwloc/hwloc201 /hwloc/config/hwloc_internal.m4)
39
- m4_include(opal/mca/hwloc/hwloc201 /hwloc/config/netloc.m4)
40
-
41
- # MCA_hwloc_hwloc201_POST_CONFIG ()
32
+ m4_include(opal/mca/hwloc/hwloc2 /hwloc/config/hwloc.m4)
33
+ m4_include(opal/mca/hwloc/hwloc2 /hwloc/config/hwloc_pkg.m4)
34
+ m4_include(opal/mca/hwloc/hwloc2 /hwloc/config/hwloc_check_attributes.m4)
35
+ m4_include(opal/mca/hwloc/hwloc2 /hwloc/config/hwloc_check_visibility.m4)
36
+ m4_include(opal/mca/hwloc/hwloc2 /hwloc/config/hwloc_check_vendor.m4)
37
+ m4_include(opal/mca/hwloc/hwloc2 /hwloc/config/hwloc_components.m4)
38
+ m4_include(opal/mca/hwloc/hwloc2 /hwloc/config/hwloc_internal.m4)
39
+ m4_include(opal/mca/hwloc/hwloc2 /hwloc/config/netloc.m4)
40
+
41
+ # MCA_hwloc_hwloc2_POST_CONFIG ()
42
42
# ---------------------------------
43
- AC_DEFUN([MCA_opal_hwloc_hwloc201_POST_CONFIG ],[
44
- OPAL_VAR_SCOPE_PUSH([opal_hwloc_hwloc201_basedir ])
43
+ AC_DEFUN([MCA_opal_hwloc_hwloc2_POST_CONFIG ],[
44
+ OPAL_VAR_SCOPE_PUSH([opal_hwloc_hwloc2_basedir ])
45
45
46
46
# If we won, then do all the rest of the setup
47
- AS_IF([test " $1 " = " 1" && test " $opal_hwloc_hwloc201_support " = " yes" ],
47
+ AS_IF([test " $1 " = " 1" && test " $opal_hwloc_hwloc2_support " = " yes" ],
48
48
[
49
49
# Set this variable so that the framework m4 knows what
50
50
# file to include in opal/mca/hwloc/hwloc-internal.h
51
- opal_hwloc_hwloc201_basedir = opal/mca/hwloc/hwloc201
52
- opal_hwloc_base_include= " $opal_hwloc_hwloc201_basedir /hwloc201 .h"
51
+ opal_hwloc_hwloc2_basedir = opal/mca/hwloc/hwloc2
52
+ opal_hwloc_base_include= " $opal_hwloc_hwloc2_basedir /hwloc2 .h"
53
53
54
54
# Add some stuff to CPPFLAGS so that the rest of the source
55
55
# tree can be built
56
- file= $opal_hwloc_hwloc201_basedir /hwloc
56
+ file= $opal_hwloc_hwloc2_basedir /hwloc
57
57
CPPFLAGS= " -I$OPAL_TOP_SRCDIR /$file /include $CPPFLAGS "
58
58
AS_IF([test " $OPAL_TOP_BUILDDIR " != " $OPAL_TOP_SRCDIR " ],
59
59
[CPPFLAGS= " -I$OPAL_TOP_BUILDDIR /$file /include $CPPFLAGS " ])
@@ -66,12 +66,12 @@ AC_DEFUN([MCA_opal_hwloc_hwloc201_POST_CONFIG],[
66
66
])dnl
67
67
68
68
69
- # MCA_hwloc_hwloc201_CONFIG ([action-if-found], [action-if-not-found])
69
+ # MCA_hwloc_hwloc2_CONFIG ([action-if-found], [action-if-not-found])
70
70
# --------------------------------------------------------------------
71
- AC_DEFUN([MCA_opal_hwloc_hwloc201_CONFIG ],[
72
- AC_CONFIG_FILES([opal/mca/hwloc/hwloc201 /Makefile])
71
+ AC_DEFUN([MCA_opal_hwloc_hwloc2_CONFIG ],[
72
+ AC_CONFIG_FILES([opal/mca/hwloc/hwloc2 /Makefile])
73
73
74
- OPAL_VAR_SCOPE_PUSH([HWLOC_VERSION opal_hwloc_hwloc201_save_CPPFLAGS opal_hwloc_hwloc201_save_LDFLAGS opal_hwloc_hwloc201_save_LIBS opal_hwloc_hwloc201_save_cairo opal_hwloc_hwloc201_save_xml opal_hwloc_hwloc201_save_mode opal_hwloc_hwloc201_basedir opal_hwloc_hwloc201_file opal_hwloc_hwloc201_save_cflags CPPFLAGS_save LIBS_save opal_hwloc_external])
74
+ OPAL_VAR_SCOPE_PUSH([HWLOC_VERSION opal_hwloc_hwloc2_save_CPPFLAGS opal_hwloc_hwloc2_save_LDFLAGS opal_hwloc_hwloc2_save_LIBS opal_hwloc_hwloc2_save_cairo opal_hwloc_hwloc2_save_xml opal_hwloc_hwloc2_save_mode opal_hwloc_hwloc2_basedir opal_hwloc_hwloc2_file opal_hwloc_hwloc2_save_cflags CPPFLAGS_save LIBS_save opal_hwloc_external])
75
75
76
76
# We know that the external hwloc component will be configured
77
77
# before this one because of its priority. This component is only
@@ -85,20 +85,20 @@ AC_DEFUN([MCA_opal_hwloc_hwloc201_CONFIG],[
85
85
AC_MSG_NOTICE([hwloc:external failed, so this component will be used])])
86
86
87
87
# default to this component not providing support
88
- opal_hwloc_hwloc201_basedir = opal/mca/hwloc/hwloc201
89
- opal_hwloc_hwloc201_support = no
88
+ opal_hwloc_hwloc2_basedir = opal/mca/hwloc/hwloc2
89
+ opal_hwloc_hwloc2_support = no
90
90
91
- opal_hwloc_hwloc201_save_CPPFLAGS = $CPPFLAGS
92
- opal_hwloc_hwloc201_save_LDFLAGS = $LDFLAGS
93
- opal_hwloc_hwloc201_save_LIBS = $LIBS
91
+ opal_hwloc_hwloc2_save_CPPFLAGS = $CPPFLAGS
92
+ opal_hwloc_hwloc2_save_LDFLAGS = $LDFLAGS
93
+ opal_hwloc_hwloc2_save_LIBS = $LIBS
94
94
95
95
# save XML or graphical options
96
- opal_hwloc_hwloc201_save_cairo = $enable_cairo
97
- opal_hwloc_hwloc201_save_xml = $enable_xml
98
- opal_hwloc_hwloc201_save_static = $enable_static
99
- opal_hwloc_hwloc201_save_shared = $enable_shared
100
- opal_hwloc_hwloc201_save_plugins = $enable_plugins
101
- opal_hwloc_hwloc201_save_mode = $hwloc_mode
96
+ opal_hwloc_hwloc2_save_cairo = $enable_cairo
97
+ opal_hwloc_hwloc2_save_xml = $enable_xml
98
+ opal_hwloc_hwloc2_save_static = $enable_static
99
+ opal_hwloc_hwloc2_save_shared = $enable_shared
100
+ opal_hwloc_hwloc2_save_plugins = $enable_plugins
101
+ opal_hwloc_hwloc2_save_mode = $hwloc_mode
102
102
103
103
# never enable hwloc's graphical option
104
104
enable_cairo= no
@@ -129,28 +129,28 @@ AC_DEFUN([MCA_opal_hwloc_hwloc201_CONFIG],[
129
129
130
130
# hwloc checks for compiler visibility, and its needs to do
131
131
# this without "picky" flags.
132
- opal_hwloc_hwloc201_save_cflags = $CFLAGS
132
+ opal_hwloc_hwloc2_save_cflags = $CFLAGS
133
133
CFLAGS= $OPAL_CFLAGS_BEFORE_PICKY
134
134
AS_IF([test -n " $opal_datatype_cuda_CPPFLAGS " ],
135
135
[CPPFLAGS= " $CPPFLAGS $opal_datatype_cuda_CPPFLAGS " ])
136
136
137
137
# Only set the symbol prefix if this component is being used
138
138
# (i.e., if the external component is not being used).
139
139
AS_IF([test " $opal_hwloc_external_support " = " no" ],
140
- [HWLOC_SET_SYMBOL_PREFIX([opal_hwloc201_ ])])
140
+ [HWLOC_SET_SYMBOL_PREFIX([opal_hwloc2_ ])])
141
141
142
142
# Do the bulk of the hwloc core setup
143
- HWLOC_SETUP_CORE([opal/mca/hwloc/hwloc201 /hwloc],
143
+ HWLOC_SETUP_CORE([opal/mca/hwloc/hwloc2 /hwloc],
144
144
[AC_MSG_CHECKING([whether hwloc configure succeeded])
145
145
AC_MSG_RESULT([yes])
146
- HWLOC_VERSION= " internal v` $srcdir /$opal_hwloc_hwloc201_basedir /hwloc/config/hwloc_get_version.sh $srcdir /$opal_hwloc_hwloc201_basedir /hwloc/VERSION` "
146
+ HWLOC_VERSION= " internal v` $srcdir /$opal_hwloc_hwloc2_basedir /hwloc/config/hwloc_get_version.sh $srcdir /$opal_hwloc_hwloc2_basedir /hwloc/VERSION` "
147
147
148
148
# Build flags for our Makefile.am
149
- opal_hwloc_hwloc201_LDFLAGS = ' $(HWLOC_EMBEDDED_LDFLAGS)'
150
- opal_hwloc_hwloc201_LIBS = ' $(OPAL_TOP_BUILDDIR)/' " $opal_hwloc_hwloc201_basedir " ' /hwloc/hwloc/libhwloc_embedded.la $(HWLOC_EMBEDDED_LIBS)'
151
- opal_hwloc_hwloc201_support = yes
149
+ opal_hwloc_hwloc2_LDFLAGS = ' $(HWLOC_EMBEDDED_LDFLAGS)'
150
+ opal_hwloc_hwloc2_LIBS = ' $(OPAL_TOP_BUILDDIR)/' " $opal_hwloc_hwloc2_basedir " ' /hwloc/hwloc/libhwloc_embedded.la $(HWLOC_EMBEDDED_LIBS)'
151
+ opal_hwloc_hwloc2_support = yes
152
152
153
- AC_DEFINE_UNQUOTED([HWLOC_HWLOC201_HWLOC_VERSION ],
153
+ AC_DEFINE_UNQUOTED([HWLOC_HWLOC2_HWLOC_VERSION ],
154
154
[" $HWLOC_VERSION " ],
155
155
[Version of hwloc])
156
156
@@ -163,35 +163,35 @@ AC_DEFUN([MCA_opal_hwloc_hwloc201_CONFIG],[
163
163
],
164
164
[AC_MSG_CHECKING([whether hwloc configure succeeded])
165
165
AC_MSG_RESULT([no])
166
- opal_hwloc_hwloc201_support = no])
167
- CFLAGS= $opal_hwloc_hwloc201_save_cflags
166
+ opal_hwloc_hwloc2_support = no])
167
+ CFLAGS= $opal_hwloc_hwloc2_save_cflags
168
168
169
169
# Restore some env variables, if necessary
170
- AS_IF([test -n " $opal_hwloc_hwloc201_save_cairo " ],
171
- [enable_cairo= $opal_hwloc_hwloc201_save_cairo ])
172
- AS_IF([test -n " $opal_hwloc_hwloc201_save_xml " ],
173
- [enable_xml= $opal_hwloc_hwloc201_save_xml ])
174
- AS_IF([test -n " $opal_hwloc_hwloc201_save_static " ],
175
- [enable_static= $opal_hwloc_hwloc201_save_static ])
176
- AS_IF([test -n " $opal_hwloc_hwloc201_save_shared " ],
177
- [enable_shared= $opal_hwloc_hwloc201_save_shared ])
178
- AS_IF([test -n " $opal_hwloc_hwloc201_save_plugins " ],
179
- [enable_plugins= $opal_hwloc_hwloc201_save_shared ])
180
-
181
- CPPFLAGS= $opal_hwloc_hwloc201_save_CPPFLAGS
182
- LDFLAGS= $opal_hwloc_hwloc201_save_LDFLAGS
183
- LIBS= $opal_hwloc_hwloc201_save_LIBS
184
-
185
- AC_SUBST([opal_hwloc_hwloc201_CFLAGS ])
186
- AC_SUBST([opal_hwloc_hwloc201_CPPFLAGS ])
187
- AC_SUBST([opal_hwloc_hwloc201_LDFLAGS ])
188
- AC_SUBST([opal_hwloc_hwloc201_LIBS ])
170
+ AS_IF([test -n " $opal_hwloc_hwloc2_save_cairo " ],
171
+ [enable_cairo= $opal_hwloc_hwloc2_save_cairo ])
172
+ AS_IF([test -n " $opal_hwloc_hwloc2_save_xml " ],
173
+ [enable_xml= $opal_hwloc_hwloc2_save_xml ])
174
+ AS_IF([test -n " $opal_hwloc_hwloc2_save_static " ],
175
+ [enable_static= $opal_hwloc_hwloc2_save_static ])
176
+ AS_IF([test -n " $opal_hwloc_hwloc2_save_shared " ],
177
+ [enable_shared= $opal_hwloc_hwloc2_save_shared ])
178
+ AS_IF([test -n " $opal_hwloc_hwloc2_save_plugins " ],
179
+ [enable_plugins= $opal_hwloc_hwloc2_save_shared ])
180
+
181
+ CPPFLAGS= $opal_hwloc_hwloc2_save_CPPFLAGS
182
+ LDFLAGS= $opal_hwloc_hwloc2_save_LDFLAGS
183
+ LIBS= $opal_hwloc_hwloc2_save_LIBS
184
+
185
+ AC_SUBST([opal_hwloc_hwloc2_CFLAGS ])
186
+ AC_SUBST([opal_hwloc_hwloc2_CPPFLAGS ])
187
+ AC_SUBST([opal_hwloc_hwloc2_LDFLAGS ])
188
+ AC_SUBST([opal_hwloc_hwloc2_LIBS ])
189
189
190
190
# Finally, add some flags to the wrapper compiler so that our
191
191
# headers can be found.
192
- hwloc_hwloc201_WRAPPER_EXTRA_LDFLAGS = " $HWLOC_EMBEDDED_LDFLAGS "
193
- hwloc_hwloc201_WRAPPER_EXTRA_LIBS = " $HWLOC_EMBEDDED_LIBS "
194
- hwloc_hwloc201_WRAPPER_EXTRA_CPPFLAGS = ' -I${pkgincludedir}/' " $opal_hwloc_hwloc201_basedir /hwloc/include"
192
+ hwloc_hwloc2_WRAPPER_EXTRA_LDFLAGS = " $HWLOC_EMBEDDED_LDFLAGS "
193
+ hwloc_hwloc2_WRAPPER_EXTRA_LIBS = " $HWLOC_EMBEDDED_LIBS "
194
+ hwloc_hwloc2_WRAPPER_EXTRA_CPPFLAGS = ' -I${pkgincludedir}/' " $opal_hwloc_hwloc2_basedir /hwloc/include"
195
195
196
196
# If we are not building the internal hwloc, then indicate that
197
197
# this component should not be built. NOTE: we still did all the
@@ -201,12 +201,12 @@ AC_DEFUN([MCA_opal_hwloc_hwloc201_CONFIG],[
201
201
# distclean" infrastructure to work properly).
202
202
AS_IF([test " $opal_hwloc_external_support " = " yes" ],
203
203
[AC_MSG_NOTICE([using an external hwloc; disqualifying this component])
204
- opal_hwloc_hwloc201_support = no],
204
+ opal_hwloc_hwloc2_support = no],
205
205
[AC_DEFINE([HAVE_DECL_HWLOC_OBJ_OSDEV_COPROC], [1])
206
206
AC_DEFINE([HAVE_HWLOC_TOPOLOGY_DUP], [1])])
207
207
208
208
# Done!
209
- AS_IF([test " $opal_hwloc_hwloc201_support " = " yes" ],
209
+ AS_IF([test " $opal_hwloc_hwloc2_support " = " yes" ],
210
210
[$1 ],
211
211
[$2 ])
212
212
0 commit comments