aix case: assume gcc handles -pthread, in the non-gcc case, use the

compiler as hint (xlc vs xlc_r) if this environment handles threads or not


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15333 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-06-01 11:21:02 +00:00
parent 6062b37261
commit 5d3efae463

View File

@@ -40,7 +40,15 @@ case "$host" in
esac esac
;; ;;
*-*-aix*) *-*-aix*)
enable_pthread_support=yes if test "$GCC" = yes; then
enable_pthread_support=yes
else if expr "$CC" : ".*_r" > /dev/null ; then
enable_pthread_support=yes
PTHREADS_CFLAGS=""
PTHREADS_LIBS=""
else
enable_pthread_support=no
fi
;; ;;
mips-sgi-irix6.[[5-9]]) # maybe works for earlier versions too mips-sgi-irix6.[[5-9]]) # maybe works for earlier versions too
enable_pthread_support=yes enable_pthread_support=yes