# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Sun Nov 22 19:12:18 EET 1998 [metaconfig 3.0 PL70]
+# Generated on Thu Dec 3 10:57:23 EET 1998 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by jhi@iki.fi)
cat >/tmp/c1$$ <<EOF
d_pipe=''
d_poll=''
d_portable=''
-d_pthread_create_joinable=''
-pthread_create_joinable=''
+d_old_pthread_create_joinable=''
+old_pthread_create_joinable=''
d_pthread_yield=''
d_sched_yield=''
sched_yield=''
i_neterrno=''
i_niin=''
i_sysin=''
+i_poll=''
d_pwage=''
d_pwchange=''
d_pwclass=''
I've tried to compile and run the following simple program:
EOM
-$cat try.c
+$cat try.c >> try.msg
$cat >> try.msg <<EOM
esac
: Try to guess additional flags to pick up local libraries.
+ : Be careful not to append to a plain 'none'
+ case "$dflt" in
+ none) dflt='' ;;
+ esac
for thisflag in $ldflags; do
case "$thisflag" in
-L*)
To build perl, you must add the current working directory to your
$xxx environment variable before running make. You can do
this with
- $xxx=\`pwd\`; export $xxx
+ $xxx=\`pwd\`:\$$xxx; export $xxx
for Bourne-style shells, or
setenv $xxx \`pwd\`
for Csh-style shells. You *MUST* do this before running make.
eval $inlibc
+echo " "
echo "Checking the availability of certain socket constants..." >& 4
for ENUM in MSG_CTRUNC MSG_DONTROUTE MSG_OOB MSG_PEEK MSG_PROXY SCM_RIGHTS; do
enum=`$echo $ENUM|./tr '[A-Z]' '[a-z]'`
set nice d_nice
eval $inlibc
-: see if pause exists
-set pause d_pause
-eval $inlibc
-
-: see if pipe exists
-set pipe d_pipe
-eval $inlibc
-
-: see if poll exists
-set poll d_poll
-eval $inlibc
-
: how to create joinable pthreads
if test "X$usethreads" = "X$define"; then
echo " "
set try -DJOINABLE=PTHREAD_CREATE_JOINABLE
if eval $compile; then
echo "You seem to use PTHREAD_CREATE_JOINABLE." >&2
- val="$undef"
- set d_pthread_create_joinable
+ val="$undef" # Yes, undef.
+ set d_old_pthread_create_joinable
eval $setvar
- val=0
- set pthread_create_joinable
+ val=""
+ set old_pthread_create_joinable
eval $setvar
else
set try -DJOINABLE=PTHREAD_CREATE_UNDETACHED
if eval $compile; then
echo "You seem to use PTHREAD_CREATE_UNDETACHED." >&2
val="$define"
- set d_pthread_create_joinable
+ set d_old_pthread_create_joinable
eval $setvar
val=PTHREAD_CREATE_UNDETACHED
- set pthread_create_joinable
+ set old_pthread_create_joinable
eval $setvar
else
set try -DJOINABLE=__UNDETACHED
if eval $compile; then
echo "You seem to use __UNDETACHED." >&2
val="$define"
- set d_pthread_create_joinable
+ set d_old_pthread_create_joinable
eval $setvar
val=__UNDETACHED
- set pthread_create_joinable
+ set old_pthread_create_joinable
eval $setvar
else
echo "Egads, nothing obvious found. Guessing that you use 0." >&2
val="$define"
- set d_pthread_create_joinable
+ set d_old_pthread_create_joinable
eval $setvar
val=0
- set pthread_create_joinable
+ set old_pthread_create_joinable
eval $setvar
fi
fi
fi
$rm -f try try.*
else
- d_pthread_create_joinable="$undef"
- pthread_create_joinable=0
+ d_old_pthread_create_joinable="$undef"
+ old_pthread_create_joinable=""
fi
+: see if pause exists
+set pause d_pause
+eval $inlibc
+
+: see if pipe exists
+set pipe d_pipe
+eval $inlibc
+
+: see if poll exists
+set poll d_poll
+eval $inlibc
+
: see whether the various POSIXish _yields exist
$cat >try.c <<EOP
if set $ans val -f; eval $csym; $val; then
cont=''
else
- dflt=n
- rp="Function $ans does not exist. Use that name anyway?"
+ dflt=y
+ rp="I cannot find function $ans. Use that name anyway?"
. ./myread
dflt=rand
case "$ans" in
set i_neterrno
eval $setvar
+: see if this is a poll.h system
+set poll.h i_poll
+eval $inhdr
+
: get C preprocessor symbols handy
echo " "
$echo $n "Hmm... $c"
d_nextkey64='$d_nextkey64'
d_nice='$d_nice'
d_off64t='$d_off64t'
+d_old_pthread_create_joinable='$d_old_pthread_create_joinable'
d_oldpthreads='$d_oldpthreads'
d_oldsock='$d_oldsock'
d_open3='$d_open3'
d_pipe='$d_pipe'
d_poll='$d_poll'
d_portable='$d_portable'
-d_pthread_create_joinable='$d_pthread_create_joinable'
d_pthread_yield='$d_pthread_yield'
d_pwage='$d_pwage'
d_pwchange='$d_pwchange'
i_netdb='$i_netdb'
i_neterrno='$i_neterrno'
i_niin='$i_niin'
+i_poll='$i_poll'
i_pwd='$i_pwd'
i_rpcsvcdbm='$i_rpcsvcdbm'
i_sfio='$i_sfio'
nroff='$nroff'
o_nonblock='$o_nonblock'
obj_ext='$obj_ext'
+old_pthread_create_joinable='$old_pthread_create_joinable'
optimize='$optimize'
orderlib='$orderlib'
osname='$osname'
privlib='$privlib'
privlibexp='$privlibexp'
prototype='$prototype'
-pthread_create_joinable='$pthread_create_joinable'
ptrsize='$ptrsize'
randbits='$randbits'
randfunc='$randfunc'