@@ -375,7 +375,7 @@ AC_DEFUN([OPAL_CHECK_PMIX],[
375
375
#endif
376
376
] , [ ] ) ] ,
377
377
[ AC_MSG_RESULT ( [ found] )
378
- opal_external_pmix_version=1.2.x
378
+ opal_external_pmix_version=1x
379
379
opal_external_pmix_version_found=1
380
380
opal_external_have_pmix1=1
381
381
opal_external_pmix_happy=yes] ,
@@ -402,6 +402,15 @@ AC_DEFUN([OPAL_CHECK_PMIX],[
402
402
AC_MSG_WARN ( [ header/library files were not found] )
403
403
AC_MSG_ERROR ( [ Cannot continue] ) ] )
404
404
405
+ # Final check - if they didn't point us explicitly at an external version
406
+ # but we found one anyway, use the internal version if it is higher
407
+ AS_IF ( [ test "$opal_external_pmix_version" != "internal" && (test -z "$with_pmix" || test "$with_pmix" = "yes")] ,
408
+ [ AS_IF ( [ test "$opal_external_pmix_version" != "3x"] ,
409
+ [ AC_MSG_WARN ( [ discovered external PMIx version is less than internal version 3.x] )
410
+ AC_MSG_WARN ( [ using internal PMIx] )
411
+ opal_external_pmix_version=internal
412
+ opal_external_pmix_happy=no] ) ] )
413
+
405
414
AC_MSG_CHECKING ( [ PMIx version to be used] )
406
415
AS_IF ( [ test "$opal_external_pmix_happy" = "yes"] ,
407
416
[ AC_MSG_RESULT ( [ external($opal_external_pmix_version)] )
@@ -415,8 +424,8 @@ AC_DEFUN([OPAL_CHECK_PMIX],[
415
424
[ Whether the external PMIx library is v1] )
416
425
AM_CONDITIONAL([ OPAL_WANT_PRUN] , [ test "$opal_prun_happy" = "yes"] )
417
426
418
- AS_IF ( [ test "$opal_external_pmix_version" = "1.2.x "] ,
419
- [ OPAL_SUMMARY_ADD([ [ Miscellaneous] ] ,[ [ PMIx support] ] , [ opal_pmix] , [ $opal_external_pmix_version : WARNING - DYNAMIC OPS NOT SUPPORTED] )] ,
427
+ AS_IF ( [ test "$opal_external_pmix_version" = "1x "] ,
428
+ [ OPAL_SUMMARY_ADD([ [ Miscellaneous] ] ,[ [ PMIx support] ] , [ opal_pmix] , [ 1.2.x : WARNING - DYNAMIC OPS NOT SUPPORTED] )] ,
420
429
[ OPAL_SUMMARY_ADD([ [ Miscellaneous] ] ,[ [ PMIx support] ] , [ opal_pmix] , [ $opal_external_pmix_version] )] )
421
430
422
431
OPAL_VAR_SCOPE_POP
0 commit comments