$NetBSD: patch-aa,v 1.2 2006/06/06 15:48:34 joerg Exp $ --- configure.orig 2006-05-19 16:20:07.000000000 +0000 +++ configure @@ -18957,7 +18957,7 @@ fi -PKG_CHECK_MODULES(JACK, jack, have_jack=yes, have_jack=no) +have_jack=no echo "$as_me:$LINENO: checking for short" >&5 @@ -20503,13 +20503,13 @@ _ACEOF irix* ) -echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 -echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 +echo "$as_me:$LINENO: 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 /* confdefs.h. */ _ACEOF @@ -20572,7 +20572,7 @@ if test $ac_cv_lib_pthread_pthread_creat #define HAVE_LIBPTHREAD 1 _ACEOF - LIBS="-lpthread $LIBS" + LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS" else { { echo "$as_me:$LINENO: error: IRIX posix thread library not found!" >&5 @@ -20746,20 +20746,20 @@ _ACEOF OTHER_OBJS="pa_sgi/pa_sgi.o src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"; - LIBS="-lm -ldmedia -laudio -lpthread"; + LIBS="-lm -ldmedia -laudio ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"; PADLL="libportaudio.so"; SHARED_FLAGS=""; ;; *) - echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 -echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 + echo "$as_me:$LINENO: 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 /* confdefs.h. */ _ACEOF @@ -20854,8 +20854,8 @@ _ACEOF fi THREAD_CFLAGS="-pthread" - DLL_LIBS="$DLL_LIBS -lm -lpthread"; - LIBS="$LIBS -lm -lpthread"; + DLL_LIBS="$DLL_LIBS -lm ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"; + LIBS="$LIBS -lm ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"; PADLL="libportaudio.so"; SHARED_FLAGS="-shared -fPIC";