8 archname=`uname -m`-${osname}
12 # NetBSD keeps dynamic loading dl*() functions in /usr/lib/crt0.o,
13 # so Configure doesn't find them (unless you abandon the nm scan).
17 if test -f /usr/libexec/ld.elf_so; then
21 cccdlflags="-DPIC -fPIC $cccdlflags"
22 lddlflags="-shared $lddlflags"
23 rpathflag="-Wl,-rpath,"
24 ccdlflags="-Wl,-E $ccdlflags"
25 elif test -f /usr/libexec/ld.so; then
29 cccdlflags="-DPIC -fPIC $cccdlflags"
30 lddlflags="-Bshareable $lddlflags"
36 d_getprotoent_r="$undef"
37 d_getprotobyname_r="$undef"
38 d_getprotobynumber_r="$undef"
39 d_setprotoent_r="$undef"
40 d_endprotoent_r="$undef"
41 d_getservent_r="$undef"
42 d_getservbyname_r="$undef"
43 d_getservbyport_r="$undef"
44 d_setservent_r="$undef"
45 d_endservent_r="$undef"
46 d_gethostbyname_r="$undef"
47 d_gethostbyaddr2_r="$undef"
48 d_gethostbyaddr_r="$undef"
49 d_sethostent_r="$undef"
50 d_gethostent_r="$undef"
51 d_endhostent_r="$undef"
52 d_getprotoent_r_proto="0"
53 d_getprotobyname_r_proto="0"
54 d_getprotobynumber_r_proto="0"
55 d_setprotoent_r_proto="0"
56 d_endprotoent_r_proto="0"
57 d_getservent_r_proto="0"
58 d_getservbyname_r_proto="0"
59 d_getservbyport_r_proto="0"
60 d_setservent_r_proto="0"
61 d_endservent_r_proto="0"
62 d_gethostbyname_r_proto="0"
63 d_gethostbyaddr2_r_proto="0"
64 d_gethostbyaddr_r_proto="0"
65 d_sethostent_r_proto="0"
66 d_endhostent_r_proto="0"
67 d_gethostent_r_proto="0"
71 # there's no problem with vfork.
74 # This is there but in machine/ieeefp_h.
77 # This script UU/usethreads.cbu will get 'called-back' by Configure
78 # after it has prompted the user for whether to use threads.
79 cat > UU/usethreads.cbu <<'EOCBU'
83 for xxx in pthread; do
84 for yyy in $loclibpth $plibpth $glibpth dummy; do
86 if test -f "$zzz"; then
91 if test -f "$zzz"; then
95 zzz=`ls $yyy/lib$xxx.so.* 2>/dev/null`
96 if test "X$zzz" != X; then
101 if test "X$lpthread" != X; then
105 if test "X$lpthread" != X; then
107 libswanted="$libswanted $lpthread"
108 # There is no libc_r as of NetBSD 1.5.2, so no c -> c_r.
109 # This will be revisited when NetBSD gains a native pthreads
112 echo "$0: No POSIX threads library (-lpthread) found. " \
113 "You may want to install GNU pth. Aborting." >&4
120 # Set sensible defaults for Minix: look for local software in
121 # /usr/local, plus the build prefix, which might or might not be
124 loclibpth="/usr/local/lib ${prefix}/lib"
125 locincpth="/usr/local/include ${prefix}/include"
133 for yyy in $loclibpth; do
134 ldflags="$ldflags $rpathflag$yyy"
140 case "$usemallocwrap" in
141 '') usemallocwrap='define' ;;
144 # don't use perl malloc by default
145 case "$usemymalloc" in