]> granicus.if.org Git - curl/commitdiff
curl-compilers.m4: check for __ibmxl__ to detect xlclang
authorDaniel Stenberg <daniel@haxx.se>
Wed, 16 Jan 2019 07:11:43 +0000 (08:11 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 16 Jan 2019 07:53:56 +0000 (08:53 +0100)
Follow-up to 2fa0d57e2e3. The __xlc__ symbol is only defined there if a
particular flag is used for legacy macros.

Fixes #3474
Closes #3479

m4/curl-compilers.m4

index a7eee3788987b0d99fcd13b1c3fd8233b668da17..c64db4bc64353900bc0cb8915db844be2f957c5a 100644 (file)
@@ -84,8 +84,8 @@ AC_DEFUN([CURL_CHECK_COMPILER_CLANG], [
   if test "$curl_cv_have_def___clang__" = "yes"; then
     AC_MSG_RESULT([yes])
     AC_MSG_CHECKING([if compiler is xlclang])
-    CURL_CHECK_DEF([__xlc__], [], [silent])
-    if test "$curl_cv_have_def___xlc__" = "yes" ; then
+    CURL_CHECK_DEF([__ibmxl__], [], [silent])
+    if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
       dnl IBM's almost-compatible clang version
       AC_MSG_RESULT([yes])
       compiler_id="XLCLANG"