@@ -102,14 +102,20 @@ AC_DEFUN([_OPAL_CHECK_COMPILER_VENDOR], [
102102 opal_check_compiler_vendor_result= " unknown"
103103
104104 # GNU is probably the most common, so check that one as soon as
105- # possible. Intel pretends to be GNU, so need to check Intel
106- # before checking for GNU.
105+ # possible. Intel and PGI18 pretends to be GNU, so need to check Intel
106+ # and PGI before checking for GNU.
107107
108108 # Intel
109109 AS_IF([test " $opal_check_compiler_vendor_result " = " unknown" ],
110110 [OPAL_IF_IFELSE([defined(__INTEL_COMPILER) || defined(__ICC)],
111111 [opal_check_compiler_vendor_result= " intel" ])])
112112
113+ # Portland Group
114+ AS_IF([test " $opal_check_compiler_vendor_result " = " unknown" ],
115+ [OPAL_IFDEF_IFELSE([__PGI],
116+ [opal_check_compiler_vendor_result= " portland group" ])])
117+
118+
113119 # Fujitsu
114120 AS_IF([test " $opal_check_compiler_vendor_result " = " unknown" ],
115121 [OPAL_IF_IFELSE([defined(__FUJITSU)],
@@ -243,11 +249,6 @@ AC_DEFUN([_OPAL_CHECK_COMPILER_VENDOR], [
243249 [OPAL_IFDEF_IFELSE([__POCC__],
244250 [opal_check_compiler_vendor_result= " pelles" ])])
245251
246- # Portland Group
247- AS_IF([test " $opal_check_compiler_vendor_result " = " unknown" ],
248- [OPAL_IFDEF_IFELSE([__PGI],
249- [opal_check_compiler_vendor_result= " portland group" ])])
250-
251252 # SAS/C
252253 AS_IF([test " $opal_check_compiler_vendor_result " = " unknown" ],
253254 [OPAL_IF_IFELSE([defined(SASC) || defined(__SASC) || defined(__SASC__)],
0 commit comments