# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Sun Nov 7 02:39:34 EET 1999 [metaconfig 3.0 PL70]
+# Generated on Sat Nov 13 15:36:41 EET 1999 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.com)
cat >/tmp/c1$$ <<EOF
d_hasmntopt=''
d_htonl=''
d_inetaton=''
+d_int64t=''
d_isascii=''
d_killpg=''
d_lchown=''
i_gdbm=''
d_grpasswd=''
i_grp=''
-d_int64t=''
i_inttypes=''
i_limits=''
i_locale=''
sPRIu64=''
sPRIx64=''
d_quad=''
-quadcase=''
+quadkind=''
quadtype=''
uquadtype=''
drand01=''
int main()
{
printf("%d\n", (int)sizeof(double));
- return(0);
+ exit(0);
}
EOCP
set try
#ifndef errno /* XXX need better Configure test */
extern int errno;
#endif
-#ifdef $i_unistd
+#$i_unistd I_UNISTD
+#ifdef I_UNISTD
#include <unistd.h>
#endif
#ifdef $i_string
#include <stdio.h>
int main() {
printf("%d\n", (int)sizeof($fpostype));
- return(0);
+ exit(0);
}
EOCP
set try
val="$undef"
echo "No, it doesn't."
case "$lseeksize" in
- 8) echo "(This is okay because your off_t is 64 bits wide.)" ;;
+ 8) echo "(This is okay because your off_t is 64 bits wide.)" >&4 ;;
esac
fi
$rm -f try.* try
val="$undef"
echo "No, it doesn't."
case "$fpossize" in
- 8) echo "(This is okay because your fpos_t is 64 bits wide.)" ;;
+ 8) echo "(This is okay because your fpos_t is 64 bits wide.)" >&4 ;;
esac
fi
$rm -f try.* try
eval $setvar
: check for int64_t
-case "$use64bits" in
-"$define" )
- echo " "
- $echo $n "Checking to see if your system supports int64_t...$c" >&4
- $cat >try.c <<EOCP
+echo " "
+$echo $n "Checking to see if your system supports int64_t...$c" >&4
+$cat >try.c <<EOCP
#include <sys/types.h>
#$i_inttypes I_INTTYPES
#ifdef I_INTTYPES
#endif
int main() { int64_t x = 7; }
EOCP
- set try
- if eval $compile; then
- val="$define"
- echo " Yes, it does." >&4
- else
- val="$undef"
- echo " No, it doesn't." >&4
- fi
- $rm -f try try.*
- ;;
-*) val="$undef"
- ;;
-esac
+set try
+if eval $compile; then
+ val="$define"
+ echo " Yes, it does." >&4
+else
+ val="$undef"
+ echo " No, it doesn't." >&4
+fi
+$rm -f try try.*
set d_int64t
eval $setvar
-
: Look for isascii
echo " "
$cat >isascii.c <<'EOCP'
echo " "
-echo "Checking which 64-bit integer type to use..." >&4
+echo "Checking which 64-bit integer type we could use..." >&4
case "$intsize" in
8) val=int
val='"unsigned int"'
set uquadtype
eval $setvar
- quadcase=1
+ quadkind=1
;;
*) case "$longsize" in
8) val=long
val='"unsigned long"'
set uquadtype
eval $setvar
- quadcase=2
+ quadkind=2
;;
*) case "$uselonglong:$d_longlong:$longlongsize" in
define:define:8)
val='"unsigned long long"'
set uquadtype
eval $setvar
- quadcase=3
+ quadkind=3
;;
*) case "$d_int64t" in
define)
val=uint64_t
set uquadtype
eval $setvar
- quadcase=4
+ quadkind=4
;;
esac
;;
esac
case "$quadtype" in
-'') echo "Alas, no 64-bit integer types in sight." >&4
+'') case "$uselonglong:$d_longlong:$longlongsize" in
+ undef:define:8)
+ echo "(You would have 'long long', but you are not using it.)" >&4 ;;
+ *) echo "Alas, no 64-bit integer types in sight." >&4 ;;
+ esac
d_quad="$undef"
;;
-*) echo "Using '$quadtype' for 64-bit integers." >&4
+*) echo "We could use '$quadtype' for 64-bit integers." >&4
d_quad="$define"
;;
esac
struct sigaction act, oact;
act.sa_flags = 0;
oact.sa_handler = 0;
+ /* so that act and oact are used */
+ exit(act.sa_flags == 0 && oact.sa_handler == 0);
}
EOP
set try
case "$alignbytes" in
'') echo "Checking alignment constraints..." >&4
$cat >try.c <<'EOCP'
+#include <stdio.h>
struct foobar {
char foo;
double bar;
#include <stdio.h>
int main() {
printf("%d\n", (int)sizeof($gidtype));
- return(0);
+ exit(0);
}
EOCP
set try
int main()
{
printf("%d\n", (int)sizeof(char));
- return(0);
+ exit(0);
}
EOCP
set try
int main()
{
printf("%d\n", (int)sizeof(VOID_PTR));
- return(0);
+ exit(0);
}
EOCP
set try
}
END {
printf "#endif /* JUST_NSIG */\n";
- printf "}\n";
+ printf "exit(0);\n}\n";
}
' >>signal.c
$cat >signal.awk <<'EOP'
#include <stdio.h>
int main() {
printf("%d\n", (int)sizeof($uidtype));
- return(0);
+ exit(0);
}
EOCP
set try
privlibexp='$privlibexp'
prototype='$prototype'
ptrsize='$ptrsize'
-quadcase='$quadcase'
+quadkind='$quadkind'
quadtype='$quadtype'
randbits='$randbits'
randfunc='$randfunc'