From f3b14343a5face170ee7ec7fadc7d5545fb38586 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Fri, 19 Oct 2012 20:21:35 -0700 Subject: [PATCH] Add support for correctly compiling on darwin12 --- m4/ax_pthread.m4 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4 index d90de34d1..e9787ce65 100644 --- a/m4/ax_pthread.m4 +++ b/m4/ax_pthread.m4 @@ -82,7 +82,7 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 18 +#serial 19 AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD]) AC_DEFUN([AX_PTHREAD], [ @@ -159,8 +159,12 @@ case ${host_os} in ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" ;; + darwin12*) + ax_pthread_flags="$ax_pthread_flags" + ;; + darwin*) - ax_pthread_flags="-pthread $ax_pthread_flags" + ax_pthread_flags="-pthreads $ax_pthread_flags" ;; esac