Skip to content
Permalink
Browse files

curl-compilers.m4: check for __ibmxl__ to detect xlclang

Follow-up to 2fa0d57. The __xlc__ symbol is only defined there if a
particular flag is used for legacy macros.

Fixes #3474
  • Loading branch information...
bagder committed Jan 16, 2019
1 parent 2fa0d57 commit 1bcbd4f3b293e06bdd03e1f5e2713d2a3c6c5d94
Showing with 2 additions and 2 deletions.
  1. +2 −2 m4/curl-compilers.m4
@@ -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"

0 comments on commit 1bcbd4f

Please sign in to comment.
You can’t perform that action at this time.