File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -245,10 +245,7 @@ else()
245245 )
246246endif ()
247247
248- if (UMF_DISABLE_HWLOC)
249- message (STATUS "hwloc is disabled, hence OS provider, memtargets, "
250- "topology discovery, examples won't be available!" )
251- else ()
248+ if (NOT UMF_DISABLE_HWLOC)
252249 if (NOT DEFINED UMF_HWLOC_REPO)
253250 set (UMF_HWLOC_REPO "https://github.com/open-mpi/hwloc.git" )
254251 endif ()
@@ -272,9 +269,20 @@ else()
272269 "${DLL_PATH_LIST} ;PATH=path_list_append:${LIBHWLOC_DLL_DIRS} " )
273270 else ()
274271 set (UMF_LINK_HWLOC_STATICALLY ON )
272+ find_program (AUTORECONF_EXECUTABLE autoreconf)
273+ if (NOT AUTORECONF_EXECUTABLE)
274+ message (WARNING "autoreconf is not installed. Disabling hwloc." )
275+ set (UMF_DISABLE_HWLOC ON )
276+ set (UMF_LINK_HWLOC_STATICALLY OFF )
277+ endif ()
275278 endif ()
276279 endif ()
280+ endif ()
277281
282+ if (UMF_DISABLE_HWLOC)
283+ message (STATUS "hwloc is disabled, hence OS provider, memtargets, "
284+ "topology discovery, examples won't be available!" )
285+ else ()
278286 if (UMF_LINK_HWLOC_STATICALLY)
279287 message (
280288 STATUS
You can’t perform that action at this time.
0 commit comments