Skip to content
Snippets Groups Projects
Commit 513c22df authored by Yang Tse's avatar Yang Tse
Browse files

IBM C/C++ compiler predefined macro check

parent b5afd531
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,9 @@ esac
AC_MSG_CHECKING([whether we are using the IBM C compiler])
CURL_CHECK_DEF([__IBMC__], [], [silent])
if test "$curl_cv_have_def___IBMC__" = "yes"; then
CURL_CHECK_DEF([__IBMCPP__], [], [silent])
if test "$curl_cv_have_def___IBMC__" = "yes" ||
test "$curl_cv_have_def___IBMCPP__" = "yes"; then
AC_MSG_RESULT([yes])
dnl Ensure that compiler optimizations are always thread-safe.
CFLAGS="$CFLAGS -qthreaded"
......
......@@ -251,7 +251,9 @@ esac
AC_MSG_CHECKING([whether we are using the IBM C compiler])
CURL_CHECK_DEF([__IBMC__], [], [silent])
if test "$curl_cv_have_def___IBMC__" = "yes"; then
CURL_CHECK_DEF([__IBMCPP__], [], [silent])
if test "$curl_cv_have_def___IBMC__" = "yes" ||
test "$curl_cv_have_def___IBMCPP__" = "yes"; then
AC_MSG_RESULT([yes])
dnl Ensure that compiler optimizations are always thread-safe.
CFLAGS="$CFLAGS -qthreaded"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment