diff options
author | skrll <skrll> | 2001-05-14 20:21:18 +0000 |
---|---|---|
committer | skrll <skrll> | 2001-05-14 20:21:18 +0000 |
commit | b3ef6f178c18ef32066cb1bd35bb6bdff42d061d (patch) | |
tree | d493d1f21302248a1e73f316e9a4ed4282320738 /devel/pth | |
parent | 98a02fe5636beef4ce452cb3df97c28e31b04fa0 (diff) | |
download | pkgsrc-b3ef6f178c18ef32066cb1bd35bb6bdff42d061d.tar.gz |
When --enable-syscall-hard is specified actually provide wrappers for all
the syscalls that are documented as having wrappers. The ones missing were
wait4 and sigprocmask.
Patches have been sent to package maintainer.
Diffstat (limited to 'devel/pth')
-rw-r--r-- | devel/pth/distinfo | 8 | ||||
-rw-r--r-- | devel/pth/patches/patch-ab | 1021 | ||||
-rw-r--r-- | devel/pth/patches/patch-ac | 58 | ||||
-rw-r--r-- | devel/pth/patches/patch-ad | 42 | ||||
-rw-r--r-- | devel/pth/patches/patch-ae | 37 | ||||
-rw-r--r-- | devel/pth/patches/patch-af | 23 |
6 files changed, 1183 insertions, 6 deletions
diff --git a/devel/pth/distinfo b/devel/pth/distinfo index 95eb2f735b9..f9d46cec84b 100644 --- a/devel/pth/distinfo +++ b/devel/pth/distinfo @@ -1,6 +1,10 @@ -$NetBSD: distinfo,v 1.3 2001/04/21 00:44:42 wiz Exp $ +$NetBSD: distinfo,v 1.4 2001/05/14 20:21:18 skrll Exp $ SHA1 (pth-1.4.0.tar.gz) = bc1adf3fd9a8fa2845f9e89e94255250b479c2d0 Size (pth-1.4.0.tar.gz) = 444799 bytes SHA1 (patch-aa) = c2fafc8eba5f084468fe0d07b1763d801b9ead89 -SHA1 (patch-ab) = 83a63849988f315e8295054069e4eed18d4dca06 +SHA1 (patch-ab) = 543945b092f606b45e2428543e9403ee1056f0b2 +SHA1 (patch-ac) = 77202a5f9f39e63b24288051273a3518e80c47ec +SHA1 (patch-ad) = 0f1e18cff418b066d37333578f2e5874741f2008 +SHA1 (patch-ae) = fe0714f3d1c71f7f347ba217abf918cb7ea8f31b +SHA1 (patch-af) = 95ab72c602d6b69e10de9e3218f4c455036f40ca diff --git a/devel/pth/patches/patch-ab b/devel/pth/patches/patch-ab index aabc13340e5..838fd390d9b 100644 --- a/devel/pth/patches/patch-ab +++ b/devel/pth/patches/patch-ab @@ -1,8 +1,1021 @@ -$NetBSD: patch-ab,v 1.11 2000/03/13 01:20:27 wiz Exp $ +$NetBSD: patch-ab,v 1.12 2001/05/14 20:21:19 skrll Exp $ ---- configure.orig Fri Mar 10 11:07:14 2000 -+++ configure Mon Mar 13 01:51:36 2000 -@@ -5565,6 +5565,7 @@ +--- configure.orig Sat Mar 24 14:50:37 2001 ++++ configure +@@ -2212,7 +2212,7 @@ + done + + +-for ac_hdr in sys/resource.h net/errno.h paths.h ++for ac_hdr in net/errno.h paths.h + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +@@ -2443,13 +2443,59 @@ + fi + + ++for ac_hdr in sys/resource.h ++do ++ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ++echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ++echo "configure:2451: checking for $ac_hdr" >&5 ++if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ cat > conftest.$ac_ext <<EOF ++#line 2456 "configure" ++#include "confdefs.h" ++#include <$ac_hdr> ++EOF ++ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ++{ (eval echo configure:2461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ++if test -z "$ac_err"; then ++ rm -rf conftest* ++ eval "ac_cv_header_$ac_safe=yes" ++else ++ echo "$ac_err" >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.$ac_ext >&5 ++ rm -rf conftest* ++ eval "ac_cv_header_$ac_safe=no" ++fi ++rm -f conftest* ++fi ++if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ++ echo "$ac_t""yes" 1>&6 ++ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` ++ cat >> confdefs.h <<EOF ++#define $ac_tr_hdr 1 ++EOF ++ ++else ++ echo "$ac_t""no" 1>&6 ++fi ++done ++ ++EXTRA_INCLUDE_SYS_RESOURCE_H="#include <sys/resource.h>" ++if test ".$ac_cv_header_sys_resource_h" != .yes; then ++ EXTRA_INCLUDE_SYS_RESOURCE_H="/* $EXTRA_INCLUDE_SYS_RESOURCE_H */" ++fi ++ ++ + echo $ac_n "checking for typedef sig_atomic_t""... $ac_c" 1>&6 +-echo "configure:2448: checking for typedef sig_atomic_t" >&5 ++echo "configure:2494: checking for typedef sig_atomic_t" >&5 + if eval "test \"`echo '$''{'ac_cv_typedef_sig_atomic_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2453 "configure" ++#line 2499 "configure" + #include "confdefs.h" + + #include <signal.h> +@@ -2481,12 +2527,12 @@ + + + echo $ac_n "checking for typedef pid_t""... $ac_c" 1>&6 +-echo "configure:2485: checking for typedef pid_t" >&5 ++echo "configure:2531: checking for typedef pid_t" >&5 + if eval "test \"`echo '$''{'ac_cv_typedef_pid_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2490 "configure" ++#line 2536 "configure" + #include "confdefs.h" + + #include <sys/types.h> +@@ -2518,12 +2564,12 @@ + + + echo $ac_n "checking for typedef size_t""... $ac_c" 1>&6 +-echo "configure:2522: checking for typedef size_t" >&5 ++echo "configure:2568: checking for typedef size_t" >&5 + if eval "test \"`echo '$''{'ac_cv_typedef_size_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2527 "configure" ++#line 2573 "configure" + #include "confdefs.h" + + #include <stdlib.h> +@@ -2555,12 +2601,12 @@ + + + echo $ac_n "checking for typedef ssize_t""... $ac_c" 1>&6 +-echo "configure:2559: checking for typedef ssize_t" >&5 ++echo "configure:2605: checking for typedef ssize_t" >&5 + if eval "test \"`echo '$''{'ac_cv_typedef_ssize_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2564 "configure" ++#line 2610 "configure" + #include "confdefs.h" + + #include <sys/types.h> +@@ -2592,12 +2638,12 @@ + + + echo $ac_n "checking for typedef off_t""... $ac_c" 1>&6 +-echo "configure:2596: checking for typedef off_t" >&5 ++echo "configure:2642: checking for typedef off_t" >&5 + if eval "test \"`echo '$''{'ac_cv_typedef_off_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2601 "configure" ++#line 2647 "configure" + #include "confdefs.h" + + #include <sys/types.h> +@@ -2629,12 +2675,12 @@ + + + echo $ac_n "checking for typedef stack_t""... $ac_c" 1>&6 +-echo "configure:2633: checking for typedef stack_t" >&5 ++echo "configure:2679: checking for typedef stack_t" >&5 + if eval "test \"`echo '$''{'ac_cv_typedef_stack_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2638 "configure" ++#line 2684 "configure" + #include "confdefs.h" + + #include <signal.h> +@@ -2661,13 +2707,13 @@ + + + echo $ac_n "checking for attribute ss_base in struct sigaltstack from sys/signal.h""... $ac_c" 1>&6 +-echo "configure:2665: checking for attribute ss_base in struct sigaltstack from sys/signal.h" >&5 ++echo "configure:2711: checking for attribute ss_base in struct sigaltstack from sys/signal.h" >&5 + if eval "test \"`echo '$''{'ac_cv_structattr_ss_base'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext <<EOF +-#line 2671 "configure" ++#line 2717 "configure" + #include "confdefs.h" + + #include <sys/types.h> +@@ -2681,7 +2727,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_structattr_ss_base=yes + else +@@ -2701,13 +2747,13 @@ + fi + + echo $ac_n "checking for attribute ss_sp in struct sigaltstack from sys/signal.h""... $ac_c" 1>&6 +-echo "configure:2705: checking for attribute ss_sp in struct sigaltstack from sys/signal.h" >&5 ++echo "configure:2751: checking for attribute ss_sp in struct sigaltstack from sys/signal.h" >&5 + if eval "test \"`echo '$''{'ac_cv_structattr_ss_sp'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext <<EOF +-#line 2711 "configure" ++#line 2757 "configure" + #include "confdefs.h" + + #include <sys/types.h> +@@ -2721,7 +2767,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_structattr_ss_sp=yes + else +@@ -2742,10 +2788,10 @@ + + + echo $ac_n "checking for a single-argument based gettimeofday""... $ac_c" 1>&6 +-echo "configure:2746: checking for a single-argument based gettimeofday" >&5 ++echo "configure:2792: checking for a single-argument based gettimeofday" >&5 + cross_compile=no + cat > conftest.$ac_ext <<EOF +-#line 2749 "configure" ++#line 2795 "configure" + #include "confdefs.h" + + #include <sys/types.h> +@@ -2759,7 +2805,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:2763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:2809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + msg="yes" + +@@ -2784,10 +2830,10 @@ + echo "$ac_t""$msg" 1>&6 + + echo $ac_n "checking for struct timespec""... $ac_c" 1>&6 +-echo "configure:2788: checking for struct timespec" >&5 ++echo "configure:2834: checking for struct timespec" >&5 + cross_compile=no + cat > conftest.$ac_ext <<EOF +-#line 2791 "configure" ++#line 2837 "configure" + #include "confdefs.h" + + #include <time.h> +@@ -2799,7 +2845,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:2803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:2849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + msg="yes" + +@@ -2820,12 +2866,12 @@ + echo "$ac_t""$msg" 1>&6 + + echo $ac_n "checking for typedef socklen_t""... $ac_c" 1>&6 +-echo "configure:2824: checking for typedef socklen_t" >&5 ++echo "configure:2870: checking for typedef socklen_t" >&5 + if eval "test \"`echo '$''{'ac_cv_typedef_socklen_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2829 "configure" ++#line 2875 "configure" + #include "confdefs.h" + + #include <sys/socket.h> +@@ -2851,13 +2897,13 @@ + fi + + echo $ac_n "checking for type of argument 3 for accept()""... $ac_c" 1>&6 +-echo "configure:2855: checking for type of argument 3 for accept()" >&5 ++echo "configure:2901: checking for type of argument 3 for accept()" >&5 + if eval "test \"`echo '$''{'ac_cv_argtype_accept3'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat >conftest.$ac_ext <<EOF +-#line 2861 "configure" ++#line 2907 "configure" + #include "confdefs.h" + EOF + for ifile in sys/types.h sys/socket.h; do +@@ -2915,7 +2961,7 @@ + : + + echo $ac_n "checking for fallback socklen_t""... $ac_c" 1>&6 +-echo "configure:2919: checking for fallback socklen_t" >&5 ++echo "configure:2965: checking for fallback socklen_t" >&5 + if eval "test \"`echo '$''{'ac_cv_check_socklentype'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -2942,12 +2988,12 @@ + + + echo $ac_n "checking for typedef nfds_t""... $ac_c" 1>&6 +-echo "configure:2946: checking for typedef nfds_t" >&5 ++echo "configure:2992: checking for typedef nfds_t" >&5 + if eval "test \"`echo '$''{'ac_cv_typedef_nfds_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2951 "configure" ++#line 2997 "configure" + #include "confdefs.h" + + #include <poll.h> +@@ -2973,13 +3019,13 @@ + fi + + echo $ac_n "checking for type of argument 2 for poll()""... $ac_c" 1>&6 +-echo "configure:2977: checking for type of argument 2 for poll()" >&5 ++echo "configure:3023: checking for type of argument 2 for poll()" >&5 + if eval "test \"`echo '$''{'ac_cv_argtype_poll2'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat >conftest.$ac_ext <<EOF +-#line 2983 "configure" ++#line 3029 "configure" + #include "confdefs.h" + EOF + for ifile in sys/types.h poll.h; do +@@ -3037,7 +3083,7 @@ + : + + echo $ac_n "checking for fallback nfds_t""... $ac_c" 1>&6 +-echo "configure:3041: checking for fallback nfds_t" >&5 ++echo "configure:3087: checking for fallback nfds_t" >&5 + if eval "test \"`echo '$''{'ac_cv_check_nfdstype'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -3064,13 +3110,13 @@ + + + echo $ac_n "checking for built-in type long long""... $ac_c" 1>&6 +-echo "configure:3068: checking for built-in type long long" >&5 ++echo "configure:3114: checking for built-in type long long" >&5 + if eval "test \"`echo '$''{'ac_cv_type_longlong'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext <<EOF +-#line 3074 "configure" ++#line 3120 "configure" + #include "confdefs.h" + + #include <sys/types.h> +@@ -3082,7 +3128,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:3086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + cat >> confdefs.h <<\EOF + #define HAVE_LONGLONG 1 +@@ -3101,13 +3147,13 @@ + echo "$ac_t""$ac_cv_type_longlong" 1>&6 + + echo $ac_n "checking for built-in type long double""... $ac_c" 1>&6 +-echo "configure:3105: checking for built-in type long double" >&5 ++echo "configure:3151: checking for built-in type long double" >&5 + if eval "test \"`echo '$''{'ac_cv_type_longdouble'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext <<EOF +-#line 3111 "configure" ++#line 3157 "configure" + #include "confdefs.h" + + #include <sys/types.h> +@@ -3119,7 +3165,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:3123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + cat >> confdefs.h <<\EOF + #define HAVE_LONGDOUBLE 1 +@@ -3150,17 +3196,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:3154: checking for $ac_hdr" >&5 ++echo "configure:3200: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 3159 "configure" ++#line 3205 "configure" + #include "confdefs.h" + #include <$ac_hdr> + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:3164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:3210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -3188,12 +3234,12 @@ + + for ac_func in makecontext swapcontext getcontext setcontext; do + echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 +-echo "configure:3192: checking for function $ac_func" >&5 ++echo "configure:3238: checking for function $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 3197 "configure" ++#line 3243 "configure" + #include "confdefs.h" + + /* System header to define __stub macros and hopefully few prototypes, +@@ -3220,7 +3266,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -3246,7 +3292,7 @@ + + + echo $ac_n "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)""... $ac_c" 1>&6 +-echo "configure:3250: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5 ++echo "configure:3296: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5 + if eval "test \"`echo '$''{'ac_cv_check_mcsc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -3256,7 +3302,7 @@ + + else + cat > conftest.$ac_ext <<EOF +-#line 3260 "configure" ++#line 3306 "configure" + #include "confdefs.h" + + +@@ -3312,7 +3358,7 @@ + } + + EOF +-if { (eval echo configure:3316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + ac_cv_check_mcsc=`cat conftestval` + else +@@ -3337,17 +3383,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:3341: checking for $ac_hdr" >&5 ++echo "configure:3387: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 3346 "configure" ++#line 3392 "configure" + #include "confdefs.h" + #include <$ac_hdr> + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:3351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:3397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -3375,12 +3421,12 @@ + + for ac_func in sigsetjmp siglongjmp setjmp longjmp _setjmp _longjmp; do + echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 +-echo "configure:3379: checking for function $ac_func" >&5 ++echo "configure:3425: checking for function $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 3384 "configure" ++#line 3430 "configure" + #include "confdefs.h" + + /* System header to define __stub macros and hopefully few prototypes, +@@ -3407,7 +3453,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -3433,12 +3479,12 @@ + + for ac_func in sigaltstack sigstack; do + echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 +-echo "configure:3437: checking for function $ac_func" >&5 ++echo "configure:3483: checking for function $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 3442 "configure" ++#line 3488 "configure" + #include "confdefs.h" + + /* System header to define __stub macros and hopefully few prototypes, +@@ -3465,7 +3511,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:3469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -3490,7 +3536,7 @@ + done + + echo $ac_n "checking for signal-mask aware setjmp(3)/longjmp(3)""... $ac_c" 1>&6 +-echo "configure:3494: checking for signal-mask aware setjmp(3)/longjmp(3)" >&5 ++echo "configure:3540: checking for signal-mask aware setjmp(3)/longjmp(3)" >&5 + if eval "test \"`echo '$''{'ac_cv_check_sjlj'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -3537,7 +3583,7 @@ + + else + cat > conftest.$ac_ext <<EOF +-#line 3541 "configure" ++#line 3587 "configure" + #include "confdefs.h" + + #if defined(TEST_ssjlj) +@@ -3637,7 +3683,7 @@ + + + EOF +-if { (eval echo configure:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + rc=`cat conftestval` + else +@@ -3812,12 +3858,12 @@ + + + echo $ac_n "checking for typedef stack_t""... $ac_c" 1>&6 +-echo "configure:3816: checking for typedef stack_t" >&5 ++echo "configure:3862: checking for typedef stack_t" >&5 + if eval "test \"`echo '$''{'ac_cv_typedef_stack_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 3821 "configure" ++#line 3867 "configure" + #include "confdefs.h" + + #include <signal.h> +@@ -3844,7 +3890,7 @@ + + + echo $ac_n "checking for direction of stack growth""... $ac_c" 1>&6 +-echo "configure:3848: checking for direction of stack growth" >&5 ++echo "configure:3894: checking for direction of stack growth" >&5 + if eval "test \"`echo '$''{'ac_cv_check_stackgrowth'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -3855,7 +3901,7 @@ + + else + cat > conftest.$ac_ext <<EOF +-#line 3859 "configure" ++#line 3905 "configure" + #include "confdefs.h" + + #include <stdio.h> +@@ -3884,7 +3930,7 @@ + + + EOF +-if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + ac_cv_check_stackgrowth=`cat conftestval` + else +@@ -3920,12 +3966,12 @@ + + for ac_func in makecontext; do + echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 +-echo "configure:3924: checking for function $ac_func" >&5 ++echo "configure:3970: checking for function $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 3929 "configure" ++#line 3975 "configure" + #include "confdefs.h" + + /* System header to define __stub macros and hopefully few prototypes, +@@ -3952,7 +3998,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -3978,7 +4024,7 @@ + + + echo $ac_n "checking for stack setup via makecontext""... $ac_c" 1>&6 +-echo "configure:3982: checking for stack setup via makecontext" >&5 ++echo "configure:4028: checking for stack setup via makecontext" >&5 + if eval "test \"`echo '$''{'ac_cv_stacksetup_makecontext'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -3995,7 +4041,7 @@ + + else + cat > conftest.$ac_ext <<EOF +-#line 3999 "configure" ++#line 4045 "configure" + #include "confdefs.h" + + #include <stdio.h> +@@ -4130,7 +4176,7 @@ + } + + EOF +-if { (eval echo configure:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:4180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + + ac_cv_stacksetup_makecontext=`cat conftestval` +@@ -4169,12 +4215,12 @@ + + for ac_func in sigaltstack; do + echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 +-echo "configure:4173: checking for function $ac_func" >&5 ++echo "configure:4219: checking for function $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 4178 "configure" ++#line 4224 "configure" + #include "confdefs.h" + + /* System header to define __stub macros and hopefully few prototypes, +@@ -4201,7 +4247,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -4231,12 +4277,12 @@ + + + echo $ac_n "checking for typedef stack_t""... $ac_c" 1>&6 +-echo "configure:4235: checking for typedef stack_t" >&5 ++echo "configure:4281: checking for typedef stack_t" >&5 + if eval "test \"`echo '$''{'ac_cv_typedef_stack_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 4240 "configure" ++#line 4286 "configure" + #include "confdefs.h" + + #include <signal.h> +@@ -4265,7 +4311,7 @@ + + + echo $ac_n "checking for stack setup via sigaltstack""... $ac_c" 1>&6 +-echo "configure:4269: checking for stack setup via sigaltstack" >&5 ++echo "configure:4315: checking for stack setup via sigaltstack" >&5 + if eval "test \"`echo '$''{'ac_cv_stacksetup_sigaltstack'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -4282,7 +4328,7 @@ + + else + cat > conftest.$ac_ext <<EOF +-#line 4286 "configure" ++#line 4332 "configure" + #include "confdefs.h" + + #include <stdio.h> +@@ -4417,7 +4463,7 @@ + } + + EOF +-if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + + ac_cv_stacksetup_sigaltstack=`cat conftestval` +@@ -4455,12 +4501,12 @@ + + for ac_func in sigstack; do + echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 +-echo "configure:4459: checking for function $ac_func" >&5 ++echo "configure:4505: checking for function $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 4464 "configure" ++#line 4510 "configure" + #include "confdefs.h" + + /* System header to define __stub macros and hopefully few prototypes, +@@ -4487,7 +4533,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -4513,7 +4559,7 @@ + + + echo $ac_n "checking for stack setup via sigstack""... $ac_c" 1>&6 +-echo "configure:4517: checking for stack setup via sigstack" >&5 ++echo "configure:4563: checking for stack setup via sigstack" >&5 + if eval "test \"`echo '$''{'ac_cv_stacksetup_sigstack'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -4530,7 +4576,7 @@ + + else + cat > conftest.$ac_ext <<EOF +-#line 4534 "configure" ++#line 4580 "configure" + #include "confdefs.h" + + #include <stdio.h> +@@ -4665,7 +4711,7 @@ + } + + EOF +-if { (eval echo configure:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:4715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + + ac_cv_stacksetup_sigstack=`cat conftestval` +@@ -4776,12 +4822,12 @@ + + for ac_func in syscall; do + echo $ac_n "checking for function $ac_func""... $ac_c" 1>&6 +-echo "configure:4780: checking for function $ac_func" >&5 ++echo "configure:4826: checking for function $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 4785 "configure" ++#line 4831 "configure" + #include "confdefs.h" + + /* System header to define __stub macros and hopefully few prototypes, +@@ -4808,7 +4854,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:4812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -4836,17 +4882,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:4840: checking for $ac_hdr" >&5 ++echo "configure:4886: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 4845 "configure" ++#line 4891 "configure" + #include "confdefs.h" + #include <$ac_hdr> + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:4850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:4896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -4873,12 +4919,12 @@ + done + + echo $ac_n "checking for define SYS_read in sys/syscall.h""... $ac_c" 1>&6 +-echo "configure:4877: checking for define SYS_read in sys/syscall.h" >&5 ++echo "configure:4923: checking for define SYS_read in sys/syscall.h" >&5 + if eval "test \"`echo '$''{'ac_cv_define_SYS_read'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 4882 "configure" ++#line 4928 "configure" + #include "confdefs.h" + + #include <sys/syscall.h> +@@ -4908,7 +4954,7 @@ + + + echo $ac_n "checking whether soft system call mapping is used""... $ac_c" 1>&6 +-echo "configure:4912: checking whether soft system call mapping is used" >&5 ++echo "configure:4958: checking whether soft system call mapping is used" >&5 + # Check whether --enable-syscall-soft or --disable-syscall-soft was given. + if test "${enable_syscall_soft+set}" = set; then + enableval="$enable_syscall_soft" +@@ -4930,7 +4976,7 @@ + + + echo $ac_n "checking whether hard system call mapping is used""... $ac_c" 1>&6 +-echo "configure:4934: checking whether hard system call mapping is used" >&5 ++echo "configure:4980: checking whether hard system call mapping is used" >&5 + # Check whether --enable-syscall-hard or --disable-syscall-hard was given. + if test "${enable_syscall_hard+set}" = set; then + enableval="$enable_syscall_hard" +@@ -5001,7 +5047,7 @@ + + + echo $ac_n "checking whether to activate batch build mode""... $ac_c" 1>&6 +-echo "configure:5005: checking whether to activate batch build mode" >&5 ++echo "configure:5051: checking whether to activate batch build mode" >&5 + # Check whether --enable-batch or --disable-batch was given. + if test "${enable_batch+set}" = set; then + enableval="$enable_batch" +@@ -5018,7 +5064,7 @@ + + TARGET_ALL='$(TARGET_PREQ) $(TARGET_LIBS)' + echo $ac_n "checking whether to activate maintainer build targets""... $ac_c" 1>&6 +-echo "configure:5022: checking whether to activate maintainer build targets" >&5 ++echo "configure:5068: checking whether to activate maintainer build targets" >&5 + # Check whether --enable-maintainer or --disable-maintainer was given. + if test "${enable_maintainer+set}" = set; then + enableval="$enable_maintainer" +@@ -5032,7 +5078,7 @@ + TARGET_ALL="$TARGET_ALL \$(TARGET_MANS)" + fi + echo $ac_n "checking whether to activate test build targets""... $ac_c" 1>&6 +-echo "configure:5036: checking whether to activate test build targets" >&5 ++echo "configure:5082: checking whether to activate test build targets" >&5 + # Check whether --enable-tests or --disable-tests was given. + if test "${enable_tests+set}" = set; then + enableval="$enable_tests" +@@ -5049,7 +5095,7 @@ + + + echo $ac_n "checking whether to build Pthread library""... $ac_c" 1>&6 +-echo "configure:5053: checking whether to build Pthread library" >&5 ++echo "configure:5099: checking whether to build Pthread library" >&5 + # Check whether --enable-pthread or --disable-pthread was given. + if test "${enable_pthread+set}" = set; then + enableval="$enable_pthread" +@@ -5073,17 +5119,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:5077: checking for $ac_hdr" >&5 ++echo "configure:5123: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 5082 "configure" ++#line 5128 "configure" + #include "confdefs.h" + #include <$ac_hdr> + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:5087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:5133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -5142,6 +5188,7 @@ + + + ++ + PTH_EXT_SFIO=FALSE + # Check whether --with-sfio or --without-sfio was given. + if test "${with_sfio+set}" = set; then +@@ -5208,17 +5255,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:5212: checking for $ac_hdr" >&5 ++echo "configure:5259: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 5217 "configure" ++#line 5264 "configure" + #include "confdefs.h" + #include <$ac_hdr> + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:5222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:5269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -5245,7 +5292,7 @@ + done + + echo $ac_n "checking for sfdisc in -lsfio""... $ac_c" 1>&6 +-echo "configure:5249: checking for sfdisc in -lsfio" >&5 ++echo "configure:5296: checking for sfdisc in -lsfio" >&5 + ac_lib_var=`echo sfio'_'sfdisc | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -5253,7 +5300,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lsfio $LIBS" + cat > conftest.$ac_ext <<EOF +-#line 5257 "configure" ++#line 5304 "configure" + #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ + /* We use char because int might match the return type of a gcc2 +@@ -5264,7 +5311,7 @@ + sfdisc() + ; return 0; } + EOF +-if { (eval echo configure:5268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -5335,7 +5382,7 @@ + + fi + echo $ac_n "checking whether to build against Sfio library""... $ac_c" 1>&6 +-echo "configure:5339: checking whether to build against Sfio library" >&5 ++echo "configure:5386: checking whether to build against Sfio library" >&5 + if test ".$with_sfio" = .yes; then + PTH_EXT_SFIO=TRUE + else +@@ -5410,17 +5457,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:5414: checking for $ac_hdr" >&5 ++echo "configure:5461: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 5419 "configure" ++#line 5466 "configure" + #include "confdefs.h" + #include <$ac_hdr> + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:5424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:5471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -5447,7 +5494,7 @@ + done + + echo $ac_n "checking for dmalloc_debug in -ldmalloc""... $ac_c" 1>&6 +-echo "configure:5451: checking for dmalloc_debug in -ldmalloc" >&5 ++echo "configure:5498: checking for dmalloc_debug in -ldmalloc" >&5 + ac_lib_var=`echo dmalloc'_'dmalloc_debug | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -5455,7 +5502,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-ldmalloc $LIBS" + cat > conftest.$ac_ext <<EOF +-#line 5459 "configure" ++#line 5506 "configure" + #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ + /* We use char because int might match the return type of a gcc2 +@@ -5466,7 +5513,7 @@ + dmalloc_debug() + ; return 0; } + EOF +-if { (eval echo configure:5470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -5537,7 +5584,7 @@ + + fi + echo $ac_n "checking whether to build against Dmalloc library""... $ac_c" 1>&6 +-echo "configure:5541: checking whether to build against Dmalloc library" >&5 ++echo "configure:5588: checking whether to build against Dmalloc library" >&5 + if test ".$with_dmalloc" = .yes; then + cat >> confdefs.h <<\EOF + #define PTH_DMALLOC 1 +@@ -5700,6 +5747,7 @@ + s%@PTH_FAKE_POLL@%$PTH_FAKE_POLL%g + s%@PTH_FAKE_RWV@%$PTH_FAKE_RWV%g + s%@EXTRA_INCLUDE_SYS_SELECT_H@%$EXTRA_INCLUDE_SYS_SELECT_H%g ++s%@EXTRA_INCLUDE_SYS_RESOURCE_H@%$EXTRA_INCLUDE_SYS_RESOURCE_H%g + s%@FALLBACK_SIG_ATOMIC_T@%$FALLBACK_SIG_ATOMIC_T%g + s%@FALLBACK_PID_T@%$FALLBACK_PID_T%g + s%@FALLBACK_SIZE_T@%$FALLBACK_SIZE_T%g +@@ -5725,6 +5773,7 @@ s%@PTHREAD_O@%$PTHREAD_O%g s%@LIBPTHREAD_A@%$LIBPTHREAD_A%g s%@LIBPTHREAD_LA@%$LIBPTHREAD_LA%g diff --git a/devel/pth/patches/patch-ac b/devel/pth/patches/patch-ac new file mode 100644 index 00000000000..96535792179 --- /dev/null +++ b/devel/pth/patches/patch-ac @@ -0,0 +1,58 @@ +$NetBSD: patch-ac,v 1.1 2001/05/14 20:21:19 skrll Exp $ + +--- pth_high.c.orig Sat Mar 24 14:49:58 2001 ++++ pth_high.c +@@ -141,8 +141,43 @@ + return 0; + } + ++#ifdef HAVE_SYS_RESOURCE_H ++/* Pth variant of wait4(2) */ ++pid_t pth_wait4(pid_t wpid, int *status, int options, struct rusage *rusage) ++{ ++ pth_event_t ev; ++ static pth_key_t ev_key = PTH_KEY_INIT; ++ pid_t pid; ++ ++ pth_debug2("pth_wait4: called from thread \"%s\"", pth_current->name); ++ ++ for (;;) { ++ /* do a non-blocking poll for the pid */ ++ while ( (pid = pth_sc(wait4)(wpid, status, options|WNOHANG, rusage)) < 0 ++ && errno == EINTR) ; ++ ++ /* if pid was found or caller requested a polling return immediately */ ++ if (pid == -1 || pid > 0 || (pid == 0 && (options & WNOHANG))) ++ break; ++ ++ /* else wait a little bit */ ++ ev = pth_event(PTH_EVENT_TIME|PTH_MODE_STATIC, &ev_key, pth_timeout(0,250000)); ++ pth_wait(ev); ++ } ++ ++ pth_debug2("pth_wait4: leave to thread \"%s\"", pth_current->name); ++ return pid; ++} ++ + /* Pth variant of waitpid(2) */ +-pid_t pth_waitpid(pid_t wpid, int *status, int options) ++pid_t pth_waitpid(pid_t wpid, int *status, int options) ++{ ++ return pth_wait4(wpid, status, options, 0); ++} ++ ++#else ++/* Pth variant of wait4(2) */ ++pid_t pth_waitpid(pid_t wpid, int *status, int options) + { + pth_event_t ev; + static pth_key_t ev_key = PTH_KEY_INIT; +@@ -167,6 +202,8 @@ + pth_debug2("pth_waitpid: leave to thread \"%s\"", pth_current->name); + return pid; + } ++#endif ++ + + /* Pth variant of system(3) */ + int pth_system(const char *cmd) diff --git a/devel/pth/patches/patch-ad b/devel/pth/patches/patch-ad new file mode 100644 index 00000000000..b5bee8266e1 --- /dev/null +++ b/devel/pth/patches/patch-ad @@ -0,0 +1,42 @@ +$NetBSD: patch-ad,v 1.1 2001/05/14 20:21:20 skrll Exp $ + +--- pth_syscall.c.orig Sat Mar 24 14:50:03 2001 ++++ pth_syscall.c +@@ -85,11 +85,13 @@ + #if cpp + #if defined(SYS_sigprocmask) + #define PTH_SC_sigprocmask(a1,a2,a3) ((int)syscall(SYS_sigprocmask,(a1),(a2),(a3))) ++#elif defined(SYS___sigprocmask14) ++#define PTH_SC_sigprocmask(a1,a2,a3) ((int)syscall(SYS___sigprocmask14,(a1),(a2),(a3))) + #else + #define PTH_SC_sigprocmask sigprocmask + #endif + #endif /* cpp */ +-#if PTH_SYSCALL_HARD && defined(SYS_sigprocmask) ++#if PTH_SYSCALL_HARD && (defined(SYS_sigprocmask) || defined(SYS___sigprocmask14)) + int sigprocmask(int how, const sigset_t *set, sigset_t *oset) + { + pth_implicit_init(); +@@ -119,6 +121,22 @@ + { + pth_implicit_init(); + return pth_waitpid(wpid, status, options); ++} ++#endif ++ ++/* Pth hard wrapper for syscall wait4(2) */ ++#if cpp ++#if defined(SYS_wait4) ++#define PTH_SC_wait4(a1,a2,a3,a4) ((int)syscall(SYS_wait4,(a1),(a2),(a3),(a4))) ++#else ++#define PTH_SC_wait4 wait4 ++#endif ++#endif /* cpp */ ++#if PTH_SYSCALL_HARD && defined(SYS_wait4) ++pid_t wait4(pid_t wpid, int *status, int options, struct rusage *rusage) ++{ ++ pth_implicit_init(); ++ return pth_wait4(wpid, status, options, rusage); + } + #endif + diff --git a/devel/pth/patches/patch-ae b/devel/pth/patches/patch-ae new file mode 100644 index 00000000000..4e225d88a48 --- /dev/null +++ b/devel/pth/patches/patch-ae @@ -0,0 +1,37 @@ +$NetBSD: patch-ae,v 1.1 2001/05/14 20:21:20 skrll Exp $ + +--- configure.in.orig Sat Mar 24 14:49:45 2001 ++++ configure.in +@@ -178,7 +178,7 @@ + AC_CHECK_FUNCTIONS(usleep strerror) + + dnl # check for various other headers which we might need +-AC_HAVE_HEADERS(sys/resource.h net/errno.h paths.h) ++AC_HAVE_HEADERS(net/errno.h paths.h) + + dnl # at least the test programs need some socket stuff + AC_CHECK_LIB(nsl, gethostname) +@@ -196,6 +196,15 @@ + fi + AC_SUBST(EXTRA_INCLUDE_SYS_SELECT_H) + ++dnl # check whether we've to use a non-standard #include <sys/resource.h> to get ++dnl # the definition for struct rusage on platforms that support it. ++AC_HAVE_HEADERS(sys/resource.h) ++EXTRA_INCLUDE_SYS_RESOURCE_H="#include <sys/resource.h>" ++if test ".$ac_cv_header_sys_resource_h" != .yes; then ++ EXTRA_INCLUDE_SYS_RESOURCE_H="/* $EXTRA_INCLUDE_SYS_RESOURCE_H */" ++fi ++AC_SUBST(EXTRA_INCLUDE_SYS_RESOURCE_H) ++ + dnl # check whether we've to define sig_atomic_t + AC_CHECK_TYPEDEF(sig_atomic_t, signal.h) + FALLBACK_SIG_ATOMIC_T="typedef int sig_atomic_t;" +@@ -563,6 +572,7 @@ + AC_SUBST(PTHREAD_O) + AC_SUBST(LIBPTHREAD_A) + AC_SUBST(LIBPTHREAD_LA) ++AC_SUBST(LIBTOOL) + AC_SUBST(PTHREAD_CONFIG_1) + AC_SUBST(PTHREAD_3) + AC_SUBST(INSTALL_PTHREAD) diff --git a/devel/pth/patches/patch-af b/devel/pth/patches/patch-af new file mode 100644 index 00000000000..ce8b3eff8f6 --- /dev/null +++ b/devel/pth/patches/patch-af @@ -0,0 +1,23 @@ +$NetBSD: patch-af,v 1.1 2001/05/14 20:21:20 skrll Exp $ + +--- pth.h.in.orig Sat Mar 24 14:49:49 2001 ++++ pth.h.in +@@ -44,6 +44,7 @@ + #include <sys/socket.h> /* for sockaddr */ + #include <sys/signal.h> /* for sigset_t */ + @EXTRA_INCLUDE_SYS_SELECT_H@ ++@EXTRA_INCLUDE_SYS_RESOURCE_H@ + + /* fallbacks for essential typedefs */ + #ifndef _PTHREAD_PRIVATE +@@ -499,7 +500,10 @@ + extern ssize_t pth_pread(int, void *, size_t, off_t); + extern ssize_t pth_pwrite(int, const void *, size_t, off_t); + ++ /* additional replacement functions */ ++extern pid_t pth_wait4(pid_t, int *, int, struct rusage *); + END_DECLARATION ++ + + /* soft system call mapping support */ + #if PTH_SYSCALL_SOFT && !defined(_PTH_PRIVATE) |