# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Tue Sep 29 00:08:14 EET DST 1998 [metaconfig 3.0 PL70]
+# Generated on Wed Sep 30 02:04:24 EET DST 1998 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by jhi@iki.fi)
cat >/tmp/c1$$ <<EOF
CONFIG=true
echo "Doing variable substitutions on .SH files..."
if test -f $src/MANIFEST; then
- set x `awk '{print $1}' <$src/MANIFEST | grep '\.SH'`
+ set x `awk '{print $1}' <$src/MANIFEST | grep '\.SH$'`
else
echo "(Looking for .SH files under the source directory.)"
set x `(cd $src; find . -name "*.SH" -print)`
*) dflt="$ccflags";;
esac
-case "$usemultiplicity" in
-$define)
- case "$dflt" in
- *-DMULTIPLICITY* ) ;;
- *) dflt="$dflt -DMULTIPLICITY"
- ;;
- esac
- ;;
-esac
-
case "$dflt" in
''|' ') dflt=none;;
esac
#include <sys/select.h>
#endif
#include <stdio.h>
-#define S sizeof($selecttype)
+$selecttype b;
+#define S sizeof(*(b))
#define MINBITS 64
#define NBYTES (S * 8 > MINBITS ? S : MINBITS/8)
#define NBITS (NBYTES * 8)
int main() {
char s[NBYTES];
- $selecttype b;
struct timeval t;
int i;
FILE* fp;
if eval $compile_ok; then
selectminbits=`./try`
case "$selectminbits" in
+ '') cat >&4 <<EOM
+Cannot figure out on how many bits at a time your select() operates.
+I'll play safe and guess it is 32 bits.
+EOM
+ selectminbits=32
+ bits="32 bits"
+ ;;
1) bits="1 bit" ;;
*) bits="$selectminbits bits" ;;
esac