diff options
author | Ben Taylor <sol11x86@comcast.net> | 2007-06-10 16:03:16 -0400 |
---|---|---|
committer | Ben Taylor <sol11x86@comcast.net> | 2007-06-10 16:03:16 -0400 |
commit | 125e98b02c9d62e09e154f176aacc2b9c51fd164 (patch) | |
tree | 7e7e5b7a735c7118c07498f90362ddf71bd04685 /m4 | |
parent | 415ea8803f0f5637caa995c167cf016f6d9ccf4c (diff) | |
download | xine-lib-125e98b02c9d62e09e154f176aacc2b9c51fd164.tar.gz xine-lib-125e98b02c9d62e09e154f176aacc2b9c51fd164.tar.bz2 |
Added Solaris support for gcc and studio to pthreads.m4
Diffstat (limited to 'm4')
-rw-r--r-- | m4/pthreads.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/m4/pthreads.m4 b/m4/pthreads.m4 index 363a8b4b2..c35d697e9 100644 --- a/m4/pthreads.m4 +++ b/m4/pthreads.m4 @@ -20,6 +20,9 @@ AC_DEFUN([CC_PTHREAD_FLAGS], [ case $host in *-hpux11*) PTHREAD_CFLAGS="" ;; *-darwin*) PTHREAD_CFLAGS="" ;; + *-solaris*) + # Handle Studio compiler + CC_CHECK_CFLAGS([-mt], [PTHREAD_CFLAGS="-mt -D_REENTRANT"], [PTHREAD_CFLAGS="-D_REENTRANT"]);; *) PTHREAD_CFLAGS="-pthread" ;; esac fi @@ -27,6 +30,9 @@ AC_DEFUN([CC_PTHREAD_FLAGS], [ case $host in *-hpux11*) PTHREAD_LIBS="-lpthread" ;; *-darwin*) PTHREAD_LIBS="" ;; + *-solaris*) + # Handle Studio compiler + CC_CHECK_CFLAGS([-mt], [PTHREAD_LIBS="-lpthread -lposix4 -lrt"], [PTHREAD_LIBS="-lpthread -lposix4 -lrt"]);; *) PTHREAD_LIBS="-pthread" ;; esac fi |