diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2004-08-17 10:47:57 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2004-08-17 10:47:57 +0000 | 
| commit | 62af3fb7b9fa2d04b613152188f706738a81486e (patch) | |
| tree | 395bfad995345425d054c0c350474bac2b73d123 | |
| parent | db302a1055f43ffd1b0a035b11e8b7704dc3fc58 (diff) | |
added a check for the xlc compiler on AIX, and if that is detect we use
the -qthreaded compiler option
| -rw-r--r-- | configure.ac | 15 | 
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5745d4776..53f4f2dff 100644 --- a/configure.ac +++ b/configure.ac @@ -1047,6 +1047,21 @@ if test "x$RECENTAIX" = "xyes"; then    AC_CHECK_FUNCS( gmtime_r )    AC_DEFINE(_THREAD_SAFE, 1, [define this if you need it to compile thread-safe code]) + +  dnl check if this is the IMB xlc compiler +  dnl Details thanks to => http://predef.sourceforge.net/ +  AC_MSG_CHECKING([if this is the xlc compiler]) +  AC_EGREP_CPP([^__xlC__], [__xlC__], +         dnl action if the text is found, this it has not been replaced by the +         dnl cpp +         XLC="no" +         AC_MSG_RESULT([no]), +         dnl the text was not found, it was replaced by the cpp +         XLC="yes" +         AC_MSG_RESULT([yes]) +         CFLAGS="$CFLAGS -qthreaded" +       ) +  fi  | 
