48 lines
1.6 KiB
Text
48 lines
1.6 KiB
Text
$NetBSD: patch-ag,v 1.2 2006/08/27 20:29:26 ben Exp $
|
|
|
|
--- configure.orig 2003-02-11 23:24:56.000000000 -0800
|
|
+++ configure
|
|
@@ -1883,7 +1883,7 @@ host_os=`echo $ac_cv_host | sed 's/^\([^
|
|
case "${host_os}" in
|
|
darwin* )
|
|
|
|
- OTHER_OBJS="pa_mac_core/pa_mac_core.o";
|
|
+ OTHER_OBJS="pablio/ringbuffer.o pa_mac_core/pa_mac_core.o";
|
|
LIBS="-framework CoreAudio -lm";
|
|
PADLL="libportaudio.dylib";
|
|
SHARED_FLAGS="-framework CoreAudio -dynamiclib";
|
|
@@ -1909,13 +1909,13 @@ case "${host_os}" in
|
|
|
|
*)
|
|
|
|
-echo "$as_me:1912: checking for pthread_create in -lpthread" >&5
|
|
-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
|
|
+echo "$as_me:1912: checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
|
|
+echo $ECHO_N "checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6
|
|
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
-LIBS="-lpthread $LIBS"
|
|
+LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
#line 1920 "configure"
|
|
#include "confdefs.h"
|
|
@@ -1963,7 +1963,7 @@ if test $ac_cv_lib_pthread_pthread_creat
|
|
#define HAVE_LIBPTHREAD 1
|
|
EOF
|
|
|
|
- LIBS="-lpthread $LIBS"
|
|
+ LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
|
|
|
|
else
|
|
{ { echo "$as_me:1969: error: libpthread not found!" >&5
|
|
@@ -1972,7 +1972,7 @@ echo "$as_me: error: libpthread not foun
|
|
fi
|
|
|
|
OTHER_OBJS="pa_unix_oss/pa_unix_oss.o pa_unix_oss/pa_unix.o";
|
|
- LIBS="-lm -lpthread";
|
|
+ LIBS="-lm ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}";
|
|
PADLL="libportaudio.so";
|
|
SHARED_FLAGS="-shared";
|
|
esac
|